body{font-family:Arial,sans-serif;padding-bottom:env(safe-area-inset-bottom)}[hidden]{display:none!important}.olas-header{max-width:720px;margin:auto;padding:22px 20px 14px;display:flex;gap:12px;align-items:center}.olas-header img{border-radius:16px}.olas-header strong{display:block;font-size:26px;letter-spacing:2px}.olas-header span{display:block;font-size:12px;color:var(--muted);margin-top:3px}.icon-button{border:1px solid var(--line);border-radius:50%;background:var(--paper);font-size:25px;width:44px;height:44px;margin-left:auto}.olas-nav{max-width:680px;margin:0 auto 18px;display:flex;gap:4px}.olas-nav button{flex:1;border:0;background:none;padding:13px 9px;border-radius:26px;color:var(--green);font-weight:600}.olas-nav [aria-current=page]{background:var(--paper);box-shadow:0 2px 5px #254b3610}#olas,.login-wrap{max-width:720px;margin:0 auto;padding:0 20px}h1{font-size:30px;letter-spacing:-.8px}h2{font-size:21px}.muted{line-height:1.5}.login-wrap .muted{margin:14px 0}.login-wrap .primary{margin-top:20px}.balance{padding:25px;background:var(--green);border-radius:24px;color:#f8fbff;box-shadow:0 10px 28px #254b3610}.balance-label{font-size:13px;opacity:.8}.balance-number{font-size:64px;font-weight:600;line-height:1.2;letter-spacing:-2px}.balance-number small{font-size:20px;font-weight:400;letter-spacing:0}.balance-sub{display:flex;gap:24px;border-top:1px solid #ffffff36;margin-top:15px;padding-top:15px;font-size:12px}.balance-sub strong{display:block;font-size:22px;margin-top:5px}.quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.quick{min-height:114px;border:1px solid var(--line);border-radius:22px;background:var(--paper);color:var(--green);font-size:17px;font-weight:700;text-align:left;padding:20px}.quick:first-child{background:#e6eddd}.quick span{display:block;font-size:30px;font-weight:400;margin-bottom:7px}.today-line{margin:22px 0 12px;display:flex;justify-content:space-between;align-items:center;gap:12px}.today-line p{font-size:12px;color:var(--muted)}.summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0 24px}.summary-grid>div{padding:14px 10px;border:1px solid var(--line);border-radius:15px;background:var(--paper);font-size:12px;color:var(--muted)}.summary-grid strong{display:block;color:var(--ink);font-size:22px;margin-top:6px}.entry-list{padding:0 18px;border:1px solid var(--line);border-radius:20px;background:var(--paper);overflow:hidden}.entry{padding:16px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:14px;align-items:start}.entry:last-child{border:0}.entry strong{font-size:14px}.entry small{display:block;color:var(--muted);margin-top:5px;line-height:1.4;overflow-wrap:anywhere}.entry-num{font-size:21px;font-weight:600;text-align:right;white-space:nowrap}.entry-num.positive{color:#39754b}.entry-num.negative{color:#1e3c64}.entry .text-button{display:block;font-size:12px;margin:8px 0 0 auto;padding:4px}.entry.voided{opacity:.6}.empty{padding:25px 5px;font-size:14px;color:var(--muted);line-height:1.5}.sync-info{font-size:11px;color:var(--muted);text-align:center;margin-top:15px}.olas-footer{display:block;max-width:720px;margin:30px auto 20px;padding:0 20px;border:0}.olas-footer details{font-size:13px;border-top:1px solid var(--line);padding-top:20px}.olas-footer summary{cursor:pointer;color:var(--muted);padding:5px 0}.olas-footer label{display:block;margin:20px 0}.olas-footer input{display:block;margin-top:8px;width:100%;max-width:350px}.olas-footer button,.olas-footer a{display:block;margin:18px 0}.olas-footer small{color:var(--muted)}dialog{width:min(480px,calc(100% - 24px));max-height:90dvh;overflow-y:auto;border:0;border-radius:24px;padding:25px;color:var(--ink);background:var(--paper)}dialog::backdrop{background:#14291db0}dialog h2{padding-right:35px}.close-dialog{position:absolute;right:17px;top:15px;width:38px;height:38px;border:0;border-radius:50%;background:var(--pale);color:var(--ink);font-size:25px}dialog .field{margin-top:18px}dialog input,dialog select,dialog textarea{width:100%;font-size:17px}dialog .count-input{font-size:44px;text-align:center;height:85px;font-weight:600;background:var(--bg)}dialog .primary{margin-top:22px;width:100%;min-height:52px}.kind-options{display:flex;border:0;padding:0;gap:7px;margin:18px 0}.kind-options label{flex:1;text-align:center}.kind-options input{position:absolute;opacity:0;width:1px;height:1px}.kind-options span{display:block;padding:12px 5px;border:1px solid var(--line);border-radius:12px;font-size:14px}.kind-options input:checked+span{background:var(--green);color:white}.kind-options input:focus-visible+span{outline:3px solid #245390}.error,.pending-banner{padding:14px;background:#e0eeff;border-radius:14px;font-size:14px;line-height:1.5;margin:12px 0}.pending-banner button{display:block;margin-top:10px}.dialog-note{font-size:13px;line-height:1.5;color:var(--muted);margin-top:13px}#message{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:14px 20px;border-radius:16px;max-width:calc(100% - 30px);width:max-content;font-size:14px;z-index:20;display:none}#message.visible{display:block}.report-filter{padding:20px;margin-bottom:18px}.report-filter .date-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.report-filter label{display:block;font-size:13px}.report-filter input,.report-filter select{width:100%;font-size:16px;margin-top:7px;min-width:0}.report-filter .primary{margin-top:16px}.report-presets{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:15px}.report-presets button{border:1px solid var(--line);background:var(--bg);padding:8px 11px;border-radius:15px;font-size:12px}.report-heading{margin:20px 0 12px}.report-heading p{font-size:13px;margin-top:7px;color:var(--muted)}.report-balances{display:flex;justify-content:space-between;gap:12px;font-size:13px;margin:20px 0}.report-balances strong{display:block;font-size:26px;margin-top:6px}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:16px;margin-bottom:12px}table{border-collapse:collapse;font-size:12px;width:100%;background:var(--paper)}th,td{padding:12px 10px;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap}th{font-size:11px;background:var(--pale)}th:first-child,td:first-child{text-align:left}tfoot{font-weight:700}.print-button{margin:12px 0}.history-top{margin:20px 0}.history-top p{margin-top:8px;font-size:13px}.print-only{display:none}.report-details{margin-top:20px}.report-details summary{padding:12px 0;font-size:14px;cursor:pointer}.report-details td:nth-child(3){white-space:normal;min-width:160px}.report-details td:last-child{white-space:normal;min-width:180px}.loading{padding:35px 0;color:var(--muted)}
.gesture-login{text-align:center;max-width:420px;margin:15px auto}.gesture-login h1{font-size:27px}.gesture-login .muted{min-height:42px}.pattern-pad{width:min(300px,100%);aspect-ratio:1;position:relative;margin:10px auto;touch-action:none;user-select:none;-webkit-user-select:none}.pattern-pad svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;fill:none;stroke:var(--green);stroke-width:6;stroke-linecap:round;stroke-linejoin:round}.pattern-pad line{opacity:.3}.pattern-point{position:absolute;left:calc((var(--x)*100% + 50%)/3);top:calc((var(--y)*100% + 50%)/3);transform:translate(-50%,-50%);height:60px;width:60px;border:0;background:transparent;border-radius:50%;display:grid;place-items:center;padding:0;touch-action:none}.pattern-point span{height:18px;width:18px;border-radius:50%;border:2px solid var(--green);background:var(--paper);pointer-events:none}.pattern-point.chosen{background:#254b3614}.pattern-point.chosen span{background:var(--green);box-shadow:0 0 0 7px #254b3614}.pattern-point:disabled{opacity:.4}.pattern-status{font-size:14px;min-height:40px;line-height:1.4}.pattern-actions{display:flex;justify-content:center;gap:20px;align-items:center;margin:8px 0 18px}.pattern-actions .text-button{font-size:14px}.pattern-pad[aria-disabled=true]{opacity:.6}
@media(max-width:420px){.olas-nav{margin-left:20px;margin-right:20px}.balance-number{font-size:58px}.quick{padding:17px;font-size:15px}.summary-grid strong{font-size:20px}.card{padding:20px}.summary-grid>div{font-size:11px}.balance-sub{gap:20px}}
@media print{@page{size:A4 portrait;margin:12mm}body{background:white;color:#111;font-family:Arial,sans-serif}.olas-header,.olas-nav,.olas-footer,.report-filter,.print-button,#message,.pending-banner,.sync-info,dialog{display:none!important}#olas{max-width:none;margin:0;padding:0}.print-only{display:block}.report-heading h1{font-size:24px}.report-heading p{color:#333}.report-balances{margin:12px 0}.report-balances strong{font-size:19px}.summary-grid{display:none}.table-wrap{overflow:visible;border-radius:0}table{font-size:10px;table-layout:auto}th,td{padding:7px 6px;white-space:normal;color:#111}th{background:#eee}thead{display:table-header-group}tfoot{display:table-row-group}tr{break-inside:avoid}.report-details:not([open]){display:none}.report-details summary{display:none}.report-details td:last-child{min-width:0}.report-details td:nth-child(3){min-width:0}.report-details{break-before:page}h2,h3{break-after:avoid}}

.balance-sub{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.report-balances small{display:block;font-size:12px;margin-top:7px;line-height:1.5}.report-average{margin:24px 0;font-size:17px;break-inside:avoid}.report-presets button:focus-visible{outline:2px solid var(--green)}
@media print{.report-average{font-size:13px;margin-top:16px}}

.report-type{margin-bottom:16px}

.olas-nav button{min-width:0;padding-left:7px;padding-right:7px}.farm-tabs{display:flex;gap:8px;margin:24px 0 12px}.farm-tabs button{border:1px solid var(--line);background:var(--paper);color:var(--green);padding:10px 15px;border-radius:20px}.farm-tabs [aria-pressed=true]{background:var(--green);color:white}.farm-entry-value{text-align:right;flex-shrink:0;font-size:14px}.farm-entry-value strong,.farm-entry-value small{display:block}.farm-entry-value .text-button{margin-top:10px}.farm-note{white-space:pre-wrap;overflow-wrap:anywhere;min-width:130px;max-width:380px}.farm-report-subhead{margin:25px 0 12px}.farm-report-total{margin:18px 0;line-height:1.6}#farm-form textarea{resize:vertical;min-height:90px}
@media(max-width:420px){.olas-nav button{font-size:13px;padding:12px 5px}.farm-entry-value{max-width:110px}.summary-grid strong{font-size:20px}}
@media print{.farm-report-subhead{font-size:16px}.farm-note{min-width:0;max-width:none}.farm-report-total{font-size:12px}}

.report-choice,.report-period{border:0;padding:0;margin:0 0 20px;min-width:0}.report-choice legend,.report-period legend{font-size:13px;font-weight:700;margin-bottom:9px;color:var(--ink)}.report-segments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;background:#e8ecdf;padding:4px;border-radius:16px}.report-types .report-segments{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.report-segments label{position:relative;min-width:0;cursor:pointer}.report-segments input{position:absolute;opacity:0;width:1px;height:1px;margin:0}.report-segments span{min-height:44px;padding:10px 7px;display:flex;align-items:center;justify-content:center;text-align:center;border-radius:12px;line-height:1.3;font-weight:600;color:var(--green);transition:background .15s,color .15s}.report-segments input:checked+span{background:var(--green);color:white;box-shadow:0 2px 6px #254b3626}.report-segments input:focus-visible+span{outline:3px solid #254b7d;outline-offset:2px}.report-options{display:grid;grid-template-columns:1fr 1fr;gap:16px}.report-presets{gap:7px;margin-bottom:12px}.report-presets button{min-height:39px;color:var(--green)}.report-presets [aria-pressed=true]{background:#e2ebd8;border-color:var(--green);font-weight:700}.report-date-range{display:grid;grid-template-columns:1fr 1fr;gap:10px}.report-date-button{display:flex;align-items:center;gap:12px;padding:13px;border:1px solid var(--line);border-radius:16px;background:var(--paper);color:var(--ink);text-align:left;min-width:0}.report-date-button svg{width:24px;height:24px;flex-shrink:0;color:var(--green)}.report-date-button small,.report-date-button strong{display:block}.report-date-button small{font-size:12px;color:var(--muted);margin-bottom:4px}.report-date-button strong{font-size:16px;font-weight:600}.report-date-button:hover{border-color:var(--green)}.calendar-endpoints{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:20px 0}.calendar-endpoints button{border:1px solid var(--line);background:var(--bg);border-radius:14px;padding:12px;color:var(--ink);text-align:left}.calendar-endpoints small,.calendar-endpoints strong{display:block}.calendar-endpoints small{margin-bottom:5px;font-size:12px}.calendar-endpoints [aria-pressed=true]{background:var(--green);color:white;border-color:var(--green)}.calendar-navigation{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.calendar-navigation button{border:0;border-radius:12px;background:var(--bg);color:var(--green);min-width:42px;min-height:42px;font-size:25px}.calendar-navigation .calendar-title{font-size:16px;font-weight:700;flex:1;background:none}.calendar-title span{margin-left:9px;font-size:12px}.calendar-weekdays,.calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.calendar-weekdays span{text-align:center;color:var(--muted);font-size:12px;padding:8px 0}.calendar-days button{width:100%;min-width:0;aspect-ratio:1;min-height:36px;border:0;border-radius:11px;background:transparent;color:var(--ink);font-size:15px;padding:0}.calendar-day.outside{color:#788273}.calendar-day.in-range{background:#e7eddf}.calendar-day.endpoint{background:var(--green);color:white;font-weight:700}.calendar-day[aria-current=date]:not(.endpoint){box-shadow:inset 0 0 0 1px var(--green);font-weight:700}.calendar-days button:disabled,.calendar-navigation button:disabled,.calendar-months button:disabled{opacity:.3;cursor:default}.calendar-days button:focus-visible,.calendar-months button:focus-visible,.calendar-navigation button:focus-visible,.report-date-button:focus-visible{outline:3px solid #254b7d;outline-offset:1px}.calendar-months{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.calendar-months button{min-height:49px;border:1px solid var(--line);border-radius:12px;background:var(--bg);color:var(--ink);font-size:13px}.calendar-months [aria-pressed=true]{background:var(--green);color:white}.calendar-hint{margin-top:15px;color:var(--muted);font-size:13px}.calendar-apply{margin-top:15px!important}
@media(max-width:520px){.report-options{grid-template-columns:1fr;gap:0}.report-filter{padding:16px}.report-segments span{font-size:12px}.report-date-button{padding:12px 9px;gap:8px}.report-date-button strong{font-size:14px}.report-types .report-segments span{min-height:49px}}
@media print{#report-view{width:100%}.table-wrap{width:100%;max-width:100%}th,td{padding:6px 4px;overflow-wrap:anywhere}.farm-note{white-space:pre-wrap}.no-print{display:none!important}}
@media print{html,body{background:white!important}table{table-layout:fixed;background:white}th{overflow-wrap:normal;word-break:normal;font-size:10px;padding:6px 3px}}
.feed-amount-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.feed-amount-row .field{min-width:0}.feed-amount-row label{font-size:13px}.optional{font-size:12px;font-weight:400;color:var(--muted)}.feed-photo-actions{display:flex;gap:8px;margin-top:9px}.feed-photo-actions button{flex:1;font-size:13px;padding:11px 8px}.feed-photo-link{display:block;font-size:13px;color:var(--green);margin-top:8px;text-decoration:underline;text-underline-offset:3px}#feed-photo-preview{margin-top:10px;padding:10px;background:var(--bg);border-radius:14px}#feed-photo-preview img{display:block;max-width:100%;max-height:200px;border-radius:9px;margin:auto}#feed-photo-preview button{display:block;margin:10px auto 0}.feed-document-cell{white-space:normal;text-align:left}.feed-document-cell small{display:block;font-size:11px;margin-top:5px;overflow-wrap:anywhere}

/* Stable layout: retain data while refreshing; motion is limited to fades and size. */
html{scrollbar-gutter:stable}
#olas{min-height:calc(100svh - 180px);overflow-anchor:none}
.balance-number,.balance-sub strong,.summary-grid strong,.entry-num{font-variant-numeric:tabular-nums}
.olas-nav button,.farm-tabs button,.kind-options span,.report-presets button,.calendar-day,.calendar-endpoints button,.calendar-months button{transition:background-color .2s ease,color .2s ease,border-color .2s ease,box-shadow .2s ease}
#report-view{overflow-anchor:none}
.report-status{min-height:56px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px;color:var(--muted);padding:7px 0}
.report-status:empty::before{content:'\00a0'}
.report-status .error{margin:0;flex:1}.report-status button{font-size:13px}
#report-content{transition:opacity .18s ease;display:flow-root}
#report-view[data-unavailable=true] #report-content{opacity:.45;pointer-events:none;user-select:none}
.report-placeholder{min-height:340px;border:1px solid var(--line);border-radius:20px;background:var(--paper)}
.initial-placeholder{min-height:600px}.initial-placeholder>div{height:240px;border-radius:24px;background:#e8ecdf}
dialog{margin:6dvh auto auto;max-height:88dvh;scrollbar-gutter:stable;overscroll-behavior:contain;opacity:0;transition:opacity .16s ease}
dialog[open]{opacity:1}dialog::backdrop{opacity:0;transition:opacity .16s ease}dialog[open]::backdrop{opacity:1}
@starting-style{dialog[open],dialog[open]::backdrop{opacity:0}}
.calendar-body{height:292px}.calendar-days{grid-template-rows:repeat(6,40px)}.calendar-days button{aspect-ratio:auto;height:40px}.calendar-months{height:100%;grid-template-rows:repeat(4,1fr)}
.calendar-hint{min-height:20px}
#entry-form:has([name=kind][type=radio]) #money-field[hidden]{display:block!important;visibility:hidden;pointer-events:none}
#allocation-preview{min-height:59px}
#message{display:block;opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s;pointer-events:none}#message.visible{display:block;opacity:1;visibility:visible}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{html{scrollbar-gutter:auto}#olas{min-height:0!important;height:auto!important;overflow:visible!important;opacity:1!important}.report-status,.initial-placeholder{display:none!important}#report-content{opacity:1!important}#report-view[data-unavailable=true] #report-content{display:none!important}}
#feed-photo-status{min-height:39px}#feed-price{min-height:39px}#feed-photo-preview img{height:200px;width:100%;object-fit:contain}
@supports(interpolate-size:allow-keywords){details::details-content{interpolate-size:allow-keywords;block-size:0;overflow:clip;transition:block-size .2s ease,content-visibility .2s allow-discrete}details[open]::details-content{block-size:auto}}
@media print{details::details-content{block-size:auto!important;overflow:visible!important;transition:none!important}}

.single-date-button{width:100%;margin-top:7px;min-height:54px}.single-date-button strong{font-size:17px}.calendar-selected{margin:20px 0;padding:12px 16px;background:var(--green);color:white;border-radius:14px}.calendar-selected small,.calendar-selected strong{display:block}.calendar-selected small{font-size:12px;margin-bottom:5px}.calendar-selected strong{font-size:18px}#calendar-dialog{margin-top:5dvh}

.olas-footer .footer-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:20px}.footer-actions>form{margin:0;min-width:0;display:flex}.olas-footer .footer-action{display:flex;align-items:center;justify-content:center;text-align:center;margin:0;width:100%;min-width:0;min-height:64px;padding:12px 8px;border:1px solid var(--line);border-radius:14px;background:var(--paper);color:var(--green);font-size:13px;font-weight:600;line-height:1.4;transition:background-color .2s ease,border-color .2s ease}.footer-action:hover{background:var(--pale);border-color:#b8c7ae}.olas-footer .footer-settings label{margin-bottom:0}.footer-settings #device-name-help{margin:7px 0 20px}.footer-settings>small{display:block;margin-top:20px}@media(max-width:360px){.olas-footer .footer-action{font-size:12px;padding:10px 5px}}

/* Compact report controls, a quiet status overlay, and explicit detail switch. */
.report-filter{margin-bottom:12px}.report-period{margin-bottom:0}
.report-types .report-segments+.report-segments{margin-top:12px}
.report-presets{gap:4px}.report-presets button{min-height:32px;padding:5px 9px;font-size:11px;border-color:transparent;border-radius:9px;background:transparent;font-weight:500}
.report-presets [aria-pressed=true]{background:#e8ecdf;border-color:transparent;font-weight:500;box-shadow:none}
#report-view{position:relative}.report-status{position:absolute;top:0;right:0;z-index:1;min-height:0;padding:0;max-width:100%}.report-status:empty{display:none}.report-status:not(:empty){background:var(--paper);padding:8px 12px;border:1px solid var(--line);border-radius:12px}.report-status:empty::before{content:none}
#report-content>.report-balances{margin:8px 0 14px}#report-content>.summary-grid{margin:10px 0 14px}
.report-criteria{font-size:12px;line-height:1.6;color:var(--muted);margin:0 0 14px}
.report-toggle{display:flex;align-items:center;gap:12px;cursor:pointer;font-size:13px;margin:20px 0;min-height:44px}.report-toggle>span:first-child{flex:1}.report-toggle input{position:absolute;opacity:0;width:1px;height:1px}.switch-track{width:42px;height:24px;border-radius:14px;background:#c7cec1;position:relative;flex-shrink:0;transition:background .2s ease}.switch-track::after{content:'';position:absolute;width:18px;height:18px;top:3px;left:3px;border-radius:50%;background:white;transition:transform .2s ease}.report-toggle input:checked+.switch-track{background:var(--green)}.report-toggle input:checked+.switch-track::after{transform:translateX(18px)}.report-toggle input:focus-visible+.switch-track{outline:3px solid #254b7d;outline-offset:3px}
.report-details[hidden]{display:none!important}.report-details h2{margin-bottom:12px}
.pagination{display:flex;justify-content:center;align-items:center;gap:22px;margin:18px 0;font-size:13px}.pagination span{text-align:center;min-width:90px;font-variant-numeric:tabular-nums}.pagination small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.pagination button{min-width:44px;min-height:44px;padding:8px 12px}.pagination button:disabled{opacity:.35}
@media print{section.report-details:not([hidden]){display:block}.report-heading{margin-top:0}.report-criteria{font-size:11px;color:#333;margin-bottom:12px}}

/* Compact row actions and an egg-entry header that stays above the keyboard. */
.entry-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:6px;white-space:nowrap}
.entry .entry-actions .text-button{display:inline-flex;align-items:center;justify-content:center;margin:0;padding:7px 2px;min-height:32px;font-size:12px}
#entry-dialog{position:fixed;inset:auto 0 auto;top:calc(var(--entry-viewport-top,0px) + 12px);margin:0 auto;padding:0;max-height:calc(var(--entry-viewport-height,100dvh) - 24px);overflow:hidden;scrollbar-gutter:auto}
#entry-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr)}
.entry-dialog-header{display:flex;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid var(--line);background:var(--paper);min-width:0}
#entry-dialog .entry-dialog-header h2{flex:1;min-width:0;font-size:18px;line-height:1.25;padding:0;margin:0}
#entry-dialog .entry-dialog-header .primary{flex-shrink:0;width:auto;min-height:44px;margin:0;padding:10px 13px;font-size:14px;border-radius:12px}
#entry-dialog .entry-dialog-header .close-dialog{position:static;flex-shrink:0;width:34px;height:34px;font-size:24px}
#entry-form{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 20px 20px;scroll-padding-block:12px;-webkit-overflow-scrolling:touch}
#entry-form>.field:first-of-type{margin-top:12px}
#entry-form .kind-options{margin:12px 0}
@media(max-width:360px){.entry-dialog-header{gap:7px;padding:10px 12px}#entry-dialog .entry-dialog-header h2{font-size:16px}#entry-form{padding-inline:16px}}

.stock-review{border:1px solid #c8d8b9;background:#f2f6ec;margin:0 0 18px;padding:18px;border-radius:18px}.stock-review h2{font-size:18px;margin:0 0 12px}.stock-review-item{padding:14px 0;border-top:1px solid #d9e2cf}.stock-review-item strong,.stock-review-item small{display:block}.stock-review-item p{font-size:13px;line-height:1.5;margin:8px 0}.stock-review-actions{display:flex;gap:10px;flex-wrap:wrap}.stock-review-actions button{min-height:44px}.stock-review-error{color:#1a3962;font-size:13px}
@media print{.stock-review{display:none}}
.reservation-open{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;margin-top:12px;text-align:left;min-height:54px}
.reservation-open>span:last-child{font-size:14px;font-weight:500;white-space:nowrap}
.balance-sub small{display:block;font-size:12px;line-height:1.5;margin-top:4px;opacity:.8}
.reservation-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 20px}
.reservation-heading>[data-reservation-back]{flex-basis:100%;text-align:left;padding:4px 0}
.reservation-heading h1{margin:0;font-size:24px}
.reservation-heading .primary{width:auto;margin:0;padding:12px 16px;font-size:15px}
.reservation-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px 0;color:var(--muted)}
.reservation-summary strong{display:block;font-size:24px;color:var(--ink);margin-top:4px}
.reservation-filters{display:flex;gap:4px;padding:4px;background:var(--pale);border-radius:14px;margin:8px 0 20px}
.reservation-filters button{flex:1;min-width:0;min-height:44px;border:0;background:transparent;color:inherit;border-radius:10px;padding:9px 5px;font:inherit;font-size:14px;cursor:pointer}
.reservation-filters button[aria-pressed=true]{background:var(--paper);box-shadow:0 1px 3px #0000000d;font-weight:650}
.reservation-filters small{margin-left:5px;opacity:.65}
.reservation-list{display:grid;gap:12px}
.reservation-card{padding:18px;border:1px solid var(--line);border-radius:18px;background:var(--paper);overflow-wrap:anywhere}
.reservation-card-top{display:flex;gap:16px;justify-content:space-between;align-items:start}
.reservation-card h2{font-size:18px;line-height:1.3;margin:0 0 5px}
.reservation-card p{margin:6px 0;font-size:14px}
.reservation-count{flex-shrink:0;font-size:28px;line-height:1.1;text-align:right}
.reservation-count small{display:block;font-size:12px;font-weight:400;margin-top:4px;color:var(--muted)}
.reservation-actions{display:flex;align-items:center;gap:18px;margin-top:14px}
.reservation-actions .secondary{margin-left:auto;padding:9px 16px;min-height:40px;width:auto}
.reservation-issued{display:flex;justify-content:space-between;gap:8px;padding-top:10px}
.reservation-quantities{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.reservation-quantities input{min-width:0}
.reservation-total{padding:13px 16px;border-radius:12px;background:var(--pale);font-size:18px;margin-top:16px}
.reservation-recipient{font-size:20px;font-weight:650;overflow-wrap:anywhere;margin:0 0 12px}
@media(max-width:360px){.reservation-heading h1{font-size:21px}.reservation-filters button{font-size:12px}.reservation-card{padding:14px}.reservation-summary strong{font-size:21px}}

/* Keep the available EggMe count distinct without changing the balance grid. */
.balance-sub .balance-eggme{padding:10px 12px;margin:-10px -12px;border-radius:14px;background:rgba(255,255,255,.11);border:1px solid rgba(116,164,227,.5)}
.balance-sub .balance-eggme strong{color:#85baff}

.eggme-orders-summary{margin:10px 0 20px;border:1px solid #d7dfd6;border-radius:14px;background:#fff;overflow:hidden}.eggme-orders-summary summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 17px;color:#254b36;font-weight:700}.eggme-orders-summary summary::-webkit-details-marker{display:none}.eggme-orders-summary summary span:last-child{font-size:14px;text-align:right}.eggme-orders-list{border-top:1px solid #e8eee7;padding:0 17px}.eggme-order-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #edf1eb}.eggme-order-row:last-child{border-bottom:0}.eggme-order-row strong,.eggme-order-row small{display:block}.eggme-order-row small{color:#627364;margin-top:2px}.eggme-order-row b{white-space:nowrap;color:#254b36}
