:root { color-scheme: light; --accent: #176b5b; --surface: #fff; --line: #e0e8e7; background: #f3f6f8; color: #233f49; }
#payments-page .fields { margin-bottom: 20px; gap: 20px; }
.login-page { max-width: 520px; padding-top: 10vh; }
.login-page label { display: block; margin-bottom: 20px; }
.login-page input { width: 100%; }
.login-page button { width: 100%; }
body { background: radial-gradient(ellipse at top right, #e6f2f0, transparent 65%), #f3f6f8; }
header { position: sticky; top: 0; z-index: 20; gap: 30px; padding: 16px 4%; background: #ffffffed; backdrop-filter: blur(16px); border-color: var(--line); box-shadow: 0 2px 16px #193e4408; }
.brand { color: #165547; font-size: 27px; }
nav button { font-weight: 600; }
nav button.active { background: #dcf1eb; color: #145a48; box-shadow: inset 0 0 0 1px #c5e3d9; }
main { max-width: 1440px; padding-top: 28px; }
h1 { letter-spacing: -1.2px; color: #193b43; }
h2 { color: #244852; }
.panel { border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 5px 24px #183d4505; }
.title { margin-top: 28px; }
button { border-radius: 10px; background: var(--accent); font-weight: 600; transition: background .15s, box-shadow .15s, transform .15s; }
button:not(:disabled):hover { filter: brightness(.95); box-shadow: 0 3px 10px #185b4a24; transform: translateY(-1px); }
button:disabled { cursor: not-allowed; }
button.secondary { color: #315951; background: #edf4f2; border: 1px solid #d6e4de; }
input, select, textarea { border-color: #cfdddd; border-radius: 9px; background: #fbfdfd; color: #24404a; }
input:focus, select:focus, textarea:focus { outline: 2px solid #318c7955; outline-offset: 2px; border-color: #268773; }
button:focus-visible, summary:focus-visible { outline: 3px solid #399681; outline-offset: 3px; }
input[type=checkbox] { accent-color: var(--accent); }
.sync-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; margin-bottom: 24px; background: #eaf3f0; border: 1px solid #d4e5de; border-radius: 14px; }
.sync-bar > div { min-width: 0; }
.sync-bar strong { display: block; color: #245b4c; font-size: 13px; }
.sync-bar p { font-size: 12px; margin: 3px 0; overflow-wrap: anywhere; }
.sync-bar button { flex-shrink: 0; }
.syncing strong::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #279d83; animation: sync-pulse 1.3s infinite alternate; }
@keyframes sync-pulse { to { opacity: .3; } }
.list-search { margin: 14px 0; max-width: 620px; }
.list-search input { padding: 13px 15px; width: 100%; }
.expense-table tr { border-radius: 14px; padding: 22px; box-shadow: 0 2px 6px #263c4605; }
.expense-table tr:has(input[data-included]:checked) { border-left: 4px solid #4d9e8a; }
.expense-table tr:not(:has(input[data-included]:checked)) { background: #f6f8f9; }
.expense-payment-type { border: 1px solid #c9e2da; }
.payment-document > .choice { width: fit-content; margin-bottom: 16px; }
.payment-document:has(input[type=checkbox]:checked) { border-color: #65a994; box-shadow: 0 0 0 1px #65a994; }
.payment-document h2 { font-size: 19px; }
#payment-progress:not(:empty) { padding: 15px; border-radius: 10px; background: #edf4f8; color: #27546c; }
#payment-stop:not(:disabled) { border-color: #c18466; color: #924e2d; }
details { border-top: 1px solid var(--line); padding-top: 14px; }
summary { cursor: pointer; font-weight: 600; color: #45645f; }
#notice { position: fixed; z-index: 100; bottom: max(20px, env(safe-area-inset-bottom)); right: 20px; width: min(460px, calc(100vw - 40px)); max-height: min(440px, 50dvh); overflow-y: auto; padding: 4px; margin: 0; border: 0; background: transparent; white-space: normal; border-radius: 12px; }
.toast { display: flex; align-items: flex-start; gap: 12px; padding: 18px; margin-top: 10px; background: #edf5f1; color: #204b3f; border: 1px solid #94baa9; border-left: 5px solid #31876b; border-radius: 12px; box-shadow: 0 6px 20px #173b4326; }
.toast.error { background: #fff4f0; color: #813421; border-color: #d19b8a; border-left-color: #b74b32; }
.toast > div { min-width: 0; flex: 1; }
.toast strong { font-size: 13px; }
.toast-message { margin-top: 6px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.toast-dismiss { flex-shrink: 0; background: transparent; color: inherit; font-size: 24px; line-height: 1; padding: 6px 10px; min-width: 40px; min-height: 40px; }
.mapping-row { gap: 16px; }
@media (max-width: 900px) { header { flex-wrap: wrap; gap: 16px; } header .local { display: none; } main { padding: 22px 16px; } }
@media (max-width: 540px) { header { position: static; } header nav { width: 100%; gap: 3px; } header nav button { flex: 1; padding: 10px 8px; } .sync-bar { align-items: flex-start; flex-direction: column; padding: 16px; } .expense-table tr { padding: 16px; } h1 { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }
