:root{font-family:Arial,Helvetica,sans-serif;color:#14233b;background:#f4f6f9;font-synthesis:none;--green:#15865a;--muted:#667085;--red:#b4232c;--border:#dfe4ec}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{cursor:wait;opacity:.6}button:focus-visible,a:focus-visible{outline:3px solid #7389a6;outline-offset:3px}input:focus,select:focus{outline:2px solid #15865a;outline-offset:1px}button{border:0;background:transparent;color:inherit}a{color:inherit;text-decoration:none}.top{height:82px;background:#14233b;color:white;padding:18px 24px;display:flex;justify-content:space-between;align-items:center}.brand{display:flex;gap:12px;align-items:center;font-size:21px;font-weight:700}.brand small{display:block;font-size:9px;letter-spacing:2px;margin-top:5px;opacity:.7}.mark{height:40px;width:40px;border:1px solid #ffffff50;border-radius:12px;display:grid;place-items:center;font-size:26px}.icon-button{min-width:44px;min-height:44px;border:1px solid #ffffff30;border-radius:10px}.top .icon-button{font-size:13px}main{max-width:920px;margin:auto;padding:26px 24px 110px}h1,h2,h3,p{margin:0}h1{font-size:28px;letter-spacing:-.7px}h2{font-size:22px}h3{font-size:17px}p{line-height:1.5}.loading{text-align:center;margin-top:60px;color:var(--muted)}.period-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:20px}.period-title select{font-size:24px;font-weight:700;border:0;background:transparent;max-width:100%;padding:4px 24px 4px 0;color:inherit}.subtle{font-size:13px;color:var(--muted);margin-top:6px}.secondary{border:1px solid var(--border);background:white;padding:12px 15px;border-radius:10px;font-weight:600}.weeks{display:flex;gap:7px;margin-bottom:18px;overflow-x:auto;padding-bottom:4px}.weeks button{background:white;border:1px solid var(--border);border-radius:9px;min-width:110px;flex:1;padding:12px 10px;font-weight:600;font-size:13px;white-space:nowrap}.weeks button small{display:block;font-size:11px;font-weight:400;margin-top:5px}.weeks button.active{background:#14233b;color:white;border-color:#14233b}.hero{background:#14233b;color:#fff;padding:26px;border-radius:18px;box-shadow:0 6px 18px #14233b10}.hero.over{background:#b4232c}.eyebrow{font-size:11px;letter-spacing:1.9px;font-weight:700;opacity:.8}.hero .balance{font-size:50px;line-height:1.2;font-weight:700;letter-spacing:-1.6px;margin:8px 0}.hero .caption{font-size:20px;font-weight:500}.hero .formula{font-size:12px;opacity:.7;margin-top:14px}.metrics{display:grid;grid-template-columns:repeat(3,1fr);background:#fff;border:1px solid var(--border);border-radius:14px;margin-top:14px;padding:17px 6px}.metric{padding:0 14px;border-right:1px solid var(--border)}.metric:last-child{border:0}.metric small{font-size:11px;display:block;color:var(--muted);margin-bottom:7px}.metric strong{font-size:20px;white-space:nowrap}.week-status{display:flex;justify-content:space-between;align-items:center;border-radius:12px;background:#e8f5ee;border:1px solid #cce5d9;padding:16px;margin-top:14px}.week-status.over{background:#fff1f2;border-color:#f5c6cb}.week-status strong{font-size:24px;color:var(--green)}.week-status.over strong{color:var(--red)}.week-status small{display:block;margin-top:5px;color:var(--muted);font-size:12px}.closing{background:#edf2f8;border:1px solid #cbd6e5;border-radius:12px;font-size:13px;padding:14px;margin-top:14px;color:#334766}.progress{font-size:12px;color:var(--muted);margin-top:12px;display:flex;justify-content:space-between;gap:10px}.panel{background:white;border:1px solid var(--border);border-radius:16px;margin-top:20px;padding:22px}.panel-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:8px}.tag{font-size:11px;padding:6px 9px;background:#edf1f6;border-radius:7px;white-space:nowrap}.primary{background:#14233b;color:white;padding:15px 20px;font-weight:700;border-radius:10px;width:100%;min-height:50px}.danger{color:var(--red)}label{font-size:13px;display:block;font-weight:600;margin-bottom:16px}input,select.date-select{width:100%;padding:14px;background:white;border:1px solid #cbd4e1;border-radius:9px;font-size:16px;color:#14233b;margin-top:8px;min-height:50px}input[readonly]{background:#f1f4f8}.inputs{display:grid;grid-template-columns:1fr 1fr;gap:14px}.input-wrap{position:relative}.input-wrap span{position:absolute;left:14px;top:23px;font-size:17px;color:var(--muted)}.input-wrap input{padding-left:30px}.day-result{display:flex;justify-content:space-between;gap:10px;background:#f4f6f9;padding:14px;border-radius:10px;margin-bottom:15px}.day-result small{display:block;color:var(--muted);font-size:11px;margin-bottom:6px}.day-result strong{font-size:18px}.positive{color:var(--red)}.negative{color:var(--green)}.hint{color:var(--muted);font-size:12px;margin:10px 0}.error{color:var(--red);font-size:13px;margin:10px 0;line-height:1.5}.saved{font-size:12px;color:var(--green);text-align:right;margin-top:12px}.empty{padding:40px 22px;text-align:center}.empty h1{margin-bottom:14px}.empty p{color:var(--muted);margin-bottom:24px}.empty .primary{max-width:320px}.bottom{position:fixed;bottom:0;left:0;right:0;display:flex;background:#fff;border-top:1px solid var(--border);padding:6px 15px calc(6px + env(safe-area-inset-bottom));z-index:2}.bottom button{flex:1;padding:7px;font-size:11px;color:var(--muted);min-height:55px}.bottom button span{display:block;font-size:24px;line-height:27px;margin-bottom:3px}.bottom button.active{color:#14233b;font-weight:700}.fineprint{font-size:11px;color:var(--muted);margin:20px 4px;line-height:1.6}.actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.actions button{flex:1}.history-card{border:1px solid var(--border);border-radius:14px;background:#fff;margin:14px 0;padding:18px}.history-card .row{display:flex;justify-content:space-between;gap:14px;align-items:center}.history-card .amount{font-size:24px;font-weight:700}.history-card button{margin-top:16px;width:100%}.records{width:100%;border-collapse:collapse;font-size:12px;margin-top:15px}.records th,.records td{text-align:right;padding:11px 5px;border-bottom:1px solid var(--border)}.records th:first-child,.records td:first-child{text-align:left}.records button{font-size:12px;text-decoration:underline;color:#14233b;padding:5px}.login{max-width:440px;margin:40px auto}.login h1{margin-bottom:14px}.login p{color:var(--muted);font-size:14px;margin-bottom:25px}.toast{position:fixed;left:50%;bottom:95px;transform:translateX(-50%);background:#14233b;color:#fff;padding:13px 20px;border-radius:10px;z-index:5;font-size:13px;box-shadow:0 4px 20px #0002;max-width:90vw}.dialog-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}dialog{border:1px solid var(--border);border-radius:18px;padding:26px;max-width:440px;width:calc(100% - 28px);max-height:90dvh;overflow:auto;color:inherit}dialog::backdrop{background:#14233baa}dialog p{font-size:13px;color:var(--muted);margin-bottom:18px}[hidden]{display:none!important}@media(min-width:750px){.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}.dashboard-grid .panel{margin-top:0}.bottom{left:calc(50% - 460px);right:calc(50% - 460px);border-radius:15px 15px 0 0}.metrics .metric strong{font-size:17px}}@media(max-width:480px){.top{height:76px;padding:16px 18px}main{padding:21px 16px 110px}.period-heading{gap:8px}.period-title select{font-size:22px}.period-heading .secondary{font-size:12px;padding:12px}.hero{padding:23px}.hero .balance{font-size:45px}.metrics{padding:16px 3px}.metric{padding:0 9px}.metric strong{font-size:16px}.metric small{font-size:10px}.panel{padding:18px}.weeks button{min-width:94px}.inputs{gap:10px}.day-result strong{font-size:16px}}

/* Current date and selected week are separate states. */
@property --week-edge-angle{syntax:"<angle>";initial-value:0deg;inherits:false}
.weeks{padding:4px 2px 8px}
.weeks button{position:relative;isolation:isolate}
.weeks button.active{background:#eaf0f7;color:#14233b;border-color:#73839a;box-shadow:inset 0 -3px 0 #73839a}
.weeks button.past-week:not(.active){background:#f0f3f7;color:#667085}
.weeks button.current-week{background:#edf7f2;color:#176747;border-color:#75b79b;box-shadow:0 0 5px #75b79b24}
.weeks button.current-week.active{box-shadow:inset 0 -3px 0 #73839a,0 0 5px #75b79b24}
.weeks button.current-week::before{content:"";position:absolute;inset:-1px;padding:2px;border-radius:inherit;pointer-events:none;background:conic-gradient(from var(--week-edge-angle),#75b79b40 0deg,#75b79b40 240deg,#5cc698 290deg,#75b79b40 360deg);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;animation:week-edge-lap 6s linear infinite}
@keyframes week-edge-lap{to{--week-edge-angle:360deg}}
@media(prefers-reduced-motion:reduce){.weeks button.current-week::before{animation:none;background:#75b79b}}

.photo-reader{border:1px solid #cbd4e1;border-radius:12px;padding:12px;margin-bottom:20px}.photo-reader summary{cursor:pointer;font-weight:600;font-size:14px}.photo-preview{display:block;max-width:100%;max-height:360px;object-fit:contain;margin:12px auto}.photo-file{font-size:13px}.photo-reader input[type=checkbox]{width:18px;min-height:18px;margin-right:7px;vertical-align:middle}.photo-read{width:100%;margin-top:8px}.photo-review{margin-top:14px}

.photo-unread{border:2px solid #b4232c!important;background:#fff1f2!important}.photo-review small{display:block;margin-top:5px;color:#8f2933;font-size:11px;font-weight:400}.photo-warning{font-size:12px;color:#8f2933;line-height:1.5;margin:12px 0}.photo-manual{width:100%;margin-top:4px}.photo-reader summary:focus-visible{outline:3px solid #7389a6;outline-offset:3px}

/* Readable week cards, including all four weeks on a phone. */
.weeks button{min-width:0;white-space:normal}
.week-card-title{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px;line-height:1.3}
.week-card-fiscal{display:block;font-size:12px;font-weight:500;line-height:1.3;margin-top:4px}
.week-close-tag{display:inline-block;font-size:9px;font-weight:600;padding:2px 4px;border-radius:4px;background:#e8edf4;color:#536379}
.weeks button small{line-height:1.4;white-space:normal}
@media(max-width:480px){.weeks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:8px}.weeks button{min-width:0;padding:12px 8px}.week-card-title{font-size:14px}.week-card-fiscal{font-size:12px}.weeks button small{font-size:11px}}

/* Company credit, with room for the existing bottom navigation. */
main{padding-bottom:28px}
.app-footer{max-width:920px;margin:0 auto;padding:0 24px calc(88px + env(safe-area-inset-bottom));text-align:center;font-size:11px;line-height:1.5;color:var(--muted)}
.app-footer strong{font-weight:600}

.app-footer a{text-decoration:underline;text-underline-offset:3px}

.route-trigger{padding:0;text-align:left;font-weight:inherit}
.route-trigger:disabled{cursor:default;opacity:1}

