:root { color-scheme: light; --ink:#193441; --muted:#657681; --line:#dce4e8; --accent:#178582; --paper:#fff; font:15px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif; color:var(--ink); background:#f1f4f5; }
* { box-sizing:border-box; } body { margin:0; } button,input,select,textarea { font:inherit; } button,a,input,select,textarea { -webkit-tap-highlight-color:transparent; } button,.button { cursor:pointer; border:1px solid var(--line); background:#fff; color:var(--ink); border-radius:12px; padding:12px 16px; min-height:48px; text-decoration:none; display:inline-flex; justify-content:center; align-items:center; gap:8px; font-weight:650; } button:disabled { opacity:.5; cursor:default; } button:focus-visible,a:focus-visible { outline:3px solid #eda849; outline-offset:3px; } button.primary,.button.primary { background:var(--accent); color:#fff; border-color:var(--accent); } button.danger { color:#ad332c; border-color:#eac2bf; } .full { width:100%; } a { color:var(--accent); } label { display:block; font-weight:650; margin:15px 0; } input,select,textarea { display:block; width:100%; padding:13px 14px; margin-top:7px; min-height:50px; border:1px solid #cad6db; border-radius:10px; background:#fff; color:var(--ink); font-size:16px; } textarea { min-height:80px; resize:vertical; } h1,h2,h3,p { margin:0; } h1 { font-size:25px; line-height:1.25; } h2 { font-size:20px; } h3 { font-size:16px; } small,.muted { color:var(--muted); } .icon { width:24px; height:24px; flex-shrink:0; } [hidden] { display:none!important; }
.mobile-logo { color:inherit; text-decoration:none; font-size:25px; font-weight:850; letter-spacing:-1px; } .mobile-logo span { color:#63d0bf; } .mobile-login { min-height:100dvh; display:grid; place-items:center; background:radial-gradient(ellipse at 10% 0%,#286466,transparent 70%),#122e3b; padding:24px 18px; } .mobile-login-card { width:100%; max-width:380px; background:#fff; padding:30px 26px 20px; border-radius:22px; box-shadow:0 20px 60px #071b3066; } .mobile-login-card .mobile-logo { text-align:center; font-size:40px; color:#163744; } .mobile-login-card .mobile-logo span { color:#198c85; } .login-caption { font-size:11px; letter-spacing:3px; text-align:center; color:var(--muted); margin:5px 0 24px; } .mobile-login-card h1 { font-size:22px; margin-bottom:20px; text-align:center; } .mobile-login-card details { background:#f2f6f7; padding:10px 12px; border-radius:10px; } .mobile-login-card summary { cursor:pointer; font-size:13px; color:var(--muted); } #business-label { font-weight:700; color:var(--ink); margin-left:8px; overflow-wrap:anywhere; } .login-bottom { display:block; text-align:center; margin-top:24px; font-size:11px; }
.mobile-header { position:sticky; top:0; z-index:10; background:#132e3b; color:#fff; min-height:60px; display:flex; align-items:center; gap:12px; padding:8px max(16px,env(safe-area-inset-right)) 8px max(16px,env(safe-area-inset-left)); } .mobile-header .mobile-logo { flex:1; } .mobile-header button { background:transparent; color:#fff; border:0; min-width:44px; padding:6px; font-size:24px; min-height:44px; } #mobile-back { font-size:36px; line-height:1; } .mobile-connection { display:flex; justify-content:space-between; gap:14px; padding:8px 18px; background:#fff; border-bottom:1px solid var(--line); font-size:11px; color:var(--muted); } #connection { color:#157b67; } #connection[data-online="false"] { color:#b33b2e; } #mobile-content { max-width:680px; margin:auto; padding:22px 16px calc(100px + env(safe-area-inset-bottom)); min-height:calc(100dvh - 100px); } .mobile-bottom { position:fixed; bottom:0; left:0; right:0; background:#fff; border-top:1px solid var(--line); display:flex; justify-content:center; gap:6px; padding:6px 10px calc(6px + env(safe-area-inset-bottom)); z-index:12; } .mobile-bottom button { flex:1; max-width:220px; display:flex; flex-direction:column; gap:0; border:0; min-height:56px; border-radius:12px; color:var(--muted); font-size:25px; padding:3px; } .mobile-bottom span { font-size:11px; } .mobile-bottom button.active { color:#08786e; background:#eaf6f2; }
.mobile-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:20px; } .mobile-heading p { margin-top:6px; font-size:13px; color:var(--muted); } .mobile-heading button { padding:8px; min-width:44px; flex-shrink:0; } .mobile-business { color:var(--muted); font-size:13px; margin-bottom:6px; } .mobile-tiles { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px 10px; margin-top:28px; } .mobile-tile { border:0; background:transparent; flex-direction:column; gap:9px; padding:0; min-width:0; font-size:12px; font-weight:650; } .mobile-tile .tile-icon { display:grid; place-items:center; border-radius:21px; width:70px; height:70px; box-shadow:0 5px 10px #152d3b12; background:#208c77; color:#fff; } .mobile-tile .icon { width:30px; height:30px; } .mobile-tile.blue .tile-icon { background:#347aaa; } .mobile-tile.orange .tile-icon { background:#ce8240; } .mobile-tile.purple .tile-icon { background:#826398; } .mobile-tile.red .tile-icon { background:#b85952; } .mobile-tile.slate .tile-icon { background:#587382; }
.mobile-metrics { display:flex; gap:10px; margin:18px 0; } .mobile-metrics>div { flex:1; border:1px solid var(--line); background:#fff; padding:16px 12px; border-radius:14px; } .mobile-metrics strong { display:block; font-size:24px; letter-spacing:-.5px; line-height:1.2; } .mobile-metrics small { display:block; margin-top:5px; font-size:11px; } .mobile-list { display:grid; gap:8px; } .mobile-row { width:100%; display:flex; align-items:center; justify-content:flex-start; text-align:left; gap:12px; border:1px solid var(--line); border-radius:13px; padding:15px 13px; background:#fff; min-width:0; } .mobile-row .row-avatar { display:grid; place-items:center; width:42px; height:42px; border-radius:50%; background:#eaf2f4; color:#446573; flex-shrink:0; font-size:17px; } .mobile-row .row-copy { flex:1; min-width:0; } .mobile-row strong { display:block; font-size:15px; overflow-wrap:anywhere; } .mobile-row small { display:block; font-size:12px; margin-top:3px; font-weight:450; } .mobile-row .row-end { text-align:right; flex-shrink:0; font-size:13px; } .mobile-row .row-end .icon { width:18px; height:18px; } .mobile-row.hold { border-left:4px solid #c28c34; } .mobile-row.collected .row-avatar { color:#227b5c; background:#e6f6ec; } .mobile-row.no_milk .row-avatar { background:#f7e9e7; color:#ad5147; } .mobile-tabs { display:flex; gap:8px; margin:14px 0; } .mobile-tabs button { flex:1; padding:10px 8px; font-size:13px; } .mobile-tabs button.active { color:#fff; background:var(--ink); border-color:var(--ink); } .mobile-search { margin:0 0 15px; } .mobile-search input { margin:0; } .mobile-actions { display:flex; gap:8px; margin:16px 0; flex-wrap:wrap; } .mobile-actions>* { flex:1; white-space:nowrap; font-size:13px; } .mobile-empty { padding:32px 16px; color:var(--muted); text-align:center; border:1px dashed #cad7db; border-radius:14px; } .mobile-note,.mobile-card { background:#fff; padding:18px; border:1px solid var(--line); border-radius:14px; margin:16px 0; } .mobile-note { color:var(--muted); font-size:13px; } .mobile-note p+p { margin-top:8px; } .mobile-brand { text-align:center; color:#95a0a6; font-size:10px; margin-top:32px; } .mobile-error,.error { padding:12px 14px; border:1px solid #ecc3bc; border-radius:10px; background:#fff0ed; color:#ac3529; margin:12px 0; font-size:14px; white-space:pre-line; } .mobile-balance { padding:20px; color:#226944; background:#e4f3e9; border-radius:15px; margin:16px 0; } .mobile-balance.debtor { background:#fce9e7; color:#b2382e; } .mobile-balance strong { display:block; font-size:29px; } .mobile-balance small { color:inherit; } .mobile-section-title { font-size:13px; color:var(--muted); margin:22px 0 10px; } .mobile-pagination { display:flex; gap:10px; justify-content:space-between; align-items:center; margin-top:16px; font-size:12px; }
.mobile-entry-name { text-align:center; margin:10px 0 22px; } .mobile-entry-name p { font-size:13px; color:var(--muted); margin-top:6px; } .mobile-quantity { display:flex; align-items:baseline; justify-content:center; border:2px solid #a8ccc3; border-radius:16px; background:#fff; padding:10px 16px; margin:14px 0; } .mobile-quantity input { width:100%; border:0; margin:0; text-align:center; font-size:42px; line-height:1.2; font-weight:750; padding:8px 0; background:transparent; box-shadow:none; outline:none; color:var(--ink); } .mobile-quantity span { font-size:16px; color:var(--muted); } .mobile-keypad { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin:18px 0; } .mobile-keypad button { font-size:26px; min-height:58px; border-radius:14px; box-shadow:0 2px 0 #cad4d8; } .mobile-entry .full.primary { font-size:18px; min-height:56px; } .mobile-entry .mobile-actions button { font-size:13px; padding:10px 8px; }
.modal { width:min(94vw,560px); max-height:90dvh; padding:0; border:0; border-radius:18px; color:var(--ink); } .modal::backdrop { background:#102c3e99; } .modal-title { padding:16px; display:flex; align-items:center; justify-content:space-between; gap:10px; border-bottom:1px solid var(--line); font-weight:750; } .modal-title button { padding:4px; min-height:36px; min-width:36px; } .modal-body { padding:16px; } .form-actions { display:flex; gap:8px; justify-content:flex-end; margin-top:20px; flex-wrap:wrap; } .sortable-list { max-height:55dvh; overflow:auto; list-style:none; padding:0; overscroll-behavior:contain; } .sortable-list li { display:flex; align-items:center; gap:8px; padding:8px 0; border-bottom:1px solid var(--line); background:#fff; } .sortable-list li span { flex:1; font-size:13px; } .sortable-list button { padding:6px 10px; min-width:38px; min-height:42px; } .sortable-list .drag-handle { cursor:grab; touch-action:none; user-select:none; font-size:24px; } .sortable-list .dragging { outline:2px solid var(--accent); background:#eaf7f1; } .loading { padding:40px; text-align:center; color:var(--muted); } #toasts { position:fixed; bottom:90px; left:16px; right:16px; z-index:40; pointer-events:none; } .toast { margin:8px auto; max-width:550px; background:#193d43; border:1px solid #27645d; color:#fff; padding:14px 18px; border-radius:12px; box-shadow:0 5px 24px #102c3e22; white-space:pre-line; } .toast.danger { background:#9b392f; border-color:#9b392f; } .split { display:flex; justify-content:space-between; gap:12px; } .mobile-record-line { display:flex; justify-content:space-between; padding:10px 0; gap:12px; border-bottom:1px solid var(--line); } .mobile-record-line span { color:var(--muted); } .mobile-record-line strong { text-align:right; overflow-wrap:anywhere; }
@media(min-width:600px) { .mobile-tiles { gap:26px; } .mobile-tile .tile-icon { width:84px; height:84px; } #mobile-content { padding-top:30px; } .mobile-entry { max-width:440px; margin:auto; } }
@media(prefers-reduced-motion:no-preference) { button { transition:background .15s,color .15s; } button:active:not(:disabled) { transform:translateY(1px); } }

.enrollment{max-width:640px;margin:20px auto;padding:0 16px 40px}.enrollment h1{margin:20px 0}.enrollment>p{margin-bottom:20px}.enrollment .panel{border:1px solid var(--line);border-radius:14px;background:#fff;margin:16px 0;overflow:hidden}.enrollment .panel-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:15px;border-bottom:1px solid var(--line)}.enrollment .panel-body{padding:16px}.enrollment .info{padding:16px;background:#e8f2f4;border-radius:14px;font-size:13px}.enrollment .info p{margin-top:12px}.enrollment .table-wrap{overflow:auto}.enrollment table{border-collapse:collapse;min-width:430px;font-size:12px}.enrollment td,.enrollment th{padding:12px;text-align:left;border-bottom:1px solid var(--line)}.enrollment .brand{font-size:28px;font-weight:850}.enrollment .eyebrow{font-size:11px;color:var(--muted)}

html:has(.mobile-app),html:has(.mobile-login){height:100%;overscroll-behavior:none;text-size-adjust:100%;-webkit-text-size-adjust:100%}
.mobile-app{height:100dvh;overflow:hidden;display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto;touch-action:pan-y}
.mobile-header{grid-row:1;position:static;min-height:48px;padding-top:max(4px,env(safe-area-inset-top));padding-bottom:4px}
.mobile-header .mobile-logo{font-size:23px}.mobile-header button{min-height:38px;font-size:22px}
.mobile-connection{grid-row:2;padding:5px 16px;font-size:10px;min-height:24px}
#mobile-announcement{grid-row:3;margin:0 10px 5px}
#mobile-content{grid-row:4;width:100%;min-height:0;height:100%;padding:12px 14px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.mobile-bottom{grid-row:5;position:static;padding:4px 8px max(4px,env(safe-area-inset-bottom));min-height:56px}
.mobile-bottom button{min-height:48px;font-size:23px}.mobile-bottom span{font-size:10px}
.mobile-app #dialogs{display:contents}.mobile-login{touch-action:pan-y}
.mobile-heading{margin-bottom:12px}.mobile-heading h1{font-size:23px}
#mobile-content[data-screen=home]{display:flex;flex-direction:column;overflow:hidden;gap:3px}
[data-screen=home] .mobile-business{margin:0;font-size:12px}
[data-screen=home] .mobile-heading{margin:0 0 3px}[data-screen=home] .mobile-heading h1{font-size:22px}
[data-screen=home] .mobile-heading p{font-size:11px;margin-top:2px}
[data-screen=home] .mobile-metrics{margin:6px 0;gap:7px}[data-screen=home] .mobile-metrics>div{padding:8px 10px;border-radius:11px}
[data-screen=home] .mobile-metrics strong{font-size:21px}[data-screen=home] .mobile-metrics small{font-size:10px;margin-top:3px}
[data-screen=home] .mobile-tiles{flex:1;min-height:0;margin:6px 0;grid-auto-rows:minmax(0,1fr);gap:clamp(3px,1dvh,10px) 6px}
[data-screen=home] .mobile-tile{min-height:0;gap:4px;padding:2px;font-size:11px;line-height:1.15}
[data-screen=home] .tile-icon{width:clamp(34px,7dvh,58px);height:clamp(34px,7dvh,58px);border-radius:16px;flex-shrink:0}
[data-screen=home] .tile-icon .icon{width:25px;height:25px}
[data-screen=home] .mobile-brand{margin:0;font-size:9px}
#mobile-content[data-screen=entry]{overflow:hidden;padding:8px 12px}
.mobile-entry{height:100%;max-width:460px;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:6px;margin:auto}
.mobile-entry .mobile-heading{margin:0}.mobile-entry .mobile-heading h1{font-size:20px}.mobile-entry .mobile-heading p{font-size:11px;margin-top:2px}
.mobile-entry-name{margin:0;text-align:center}.mobile-entry-name h2{font-size:20px;line-height:1.15}.mobile-entry-name p{font-size:11px;margin-top:2px}
#milk-entry{display:flex;flex-direction:column;gap:6px;min-height:0}
.mobile-quantity{margin:0;padding:4px 12px;flex:0 0 auto}
.mobile-quantity input{padding:0;min-height:44px;font-size:36px}
.mobile-keypad{flex:1;min-height:0;grid-template-rows:repeat(4,minmax(0,1fr));gap:6px;margin:0}
.mobile-keypad button{min-height:0;padding:3px;font-size:25px;border-radius:12px;box-shadow:0 1px 0 #cad4d8}
.mobile-entry .full.primary{flex:0 0 auto;min-height:44px;padding:8px;font-size:17px}
.mobile-entry .form-error{margin:0;padding:8px;font-size:12px;max-height:60px;overflow:auto;flex:0 0 auto}
.mobile-entry>.mobile-actions{margin:0;gap:6px;flex-wrap:nowrap}.mobile-entry>.mobile-actions button{min-height:42px;font-size:12px;padding:8px 5px}
#mobile-content[data-screen=run]{display:flex;flex-direction:column;overflow:hidden;gap:8px}
[data-screen=run] .mobile-heading{flex:0 0 auto;margin:0}[data-screen=run] .mobile-metrics{flex:0 0 auto;margin:0}
[data-screen=run] .mobile-metrics>div{padding:10px 12px}[data-screen=run] .mobile-metrics strong{font-size:23px}
.mobile-run-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}
[data-screen=run] .mobile-actions{flex:0 0 auto;margin:0}
.checkbox.remember-choice{display:flex;align-items:center;gap:9px;font-size:14px;margin:18px 0}
.checkbox.remember-choice input{display:block;width:20px;height:20px;min-height:20px;margin:0;padding:0;flex-shrink:0;accent-color:var(--accent)}
@media(max-height:630px){[data-screen=home] .mobile-metrics>div{padding:5px 9px}[data-screen=home] .mobile-metrics strong{font-size:18px}[data-screen=home] .mobile-heading h1{font-size:19px}[data-screen=home] .tile-icon{width:clamp(30px,6dvh,44px);height:clamp(30px,6dvh,44px)}.mobile-entry .mobile-heading h1{font-size:18px}.mobile-entry-name h2{font-size:18px}.mobile-quantity input{min-height:34px;font-size:30px}.mobile-entry>.mobile-actions button{min-height:36px}.mobile-entry .full.primary{min-height:38px}}
@media(orientation:landscape) and (max-height:520px){.mobile-header{min-height:38px}.mobile-header button{min-height:30px;font-size:18px}.mobile-connection{min-height:20px;padding:3px 12px}.mobile-bottom{min-height:42px;padding:2px 8px}.mobile-bottom button{min-height:38px;font-size:19px}.mobile-bottom span{font-size:9px}#mobile-content{padding:6px 12px}[data-screen=home] .mobile-business,[data-screen=home] #mobile-day-summary,[data-screen=home] .mobile-brand{display:none}[data-screen=home] .mobile-heading h1{font-size:18px}[data-screen=home] .mobile-heading p{display:none}[data-screen=home] .mobile-tiles{grid-template-columns:repeat(5,minmax(0,1fr));margin:2px 0;gap:4px}[data-screen=home] .mobile-tile{font-size:10px;gap:2px}[data-screen=home] .tile-icon{width:30px;height:30px;border-radius:9px}[data-screen=home] .tile-icon .icon{width:20px;height:20px}.mobile-entry{max-width:680px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;gap:5px 14px}.mobile-entry>.mobile-heading{grid-column:1;grid-row:1}.mobile-entry-name{grid-column:1;grid-row:2;align-self:center}#milk-entry{grid-column:2;grid-row:1 / 4}.mobile-entry>.mobile-actions{grid-column:1;grid-row:3}.mobile-quantity input{min-height:28px;font-size:27px}.mobile-keypad button{font-size:20px;border-radius:8px}.mobile-entry .full.primary{min-height:32px;padding:3px}.mobile-entry>.mobile-actions button{font-size:11px;min-height:34px;padding:6px 3px}}

.site-announcement{background:#fff4d4;border:1px solid #e4cc86;border-radius:10px;color:#6e511a}.site-announcement[hidden]{display:none}.announcement-open{display:block;width:100%;min-height:0;border:0;background:transparent;color:inherit;padding:7px 10px;text-align:left;font-size:12px;line-height:1.25}.announcement-open b{margin-right:7px}.announcement-open span{font-weight:450;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.announcement-detail{white-space:pre-wrap;overflow-wrap:anywhere}

.operation-status{position:fixed;right:20px;bottom:20px;z-index:10000;display:flex;align-items:center;gap:10px;max-width:calc(100vw - 32px);padding:13px 18px;border:1px solid #aac6d1;border-radius:8px;background:#fff;color:#244758;box-shadow:0 4px 20px #17384926;font-size:14px;pointer-events:none}
button[aria-busy=true]{display:inline-flex;align-items:center;justify-content:center;gap:8px}.operation-status .spinner,button[aria-busy=true] .spinner{display:inline-block;width:16px;height:16px;flex-shrink:0;border:2px solid #bfd2d9;border-top-color:currentColor;border-radius:50%;animation:operation-spin .75s linear infinite}@keyframes operation-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.operation-status .spinner,button[aria-busy=true] .spinner{animation:none}}@media print{.operation-status{display:none!important}}
