.bb-day-done-trigger{min-height:44px!important;background:#e9f3e7!important;color:#205c41!important;border:1px solid #adcbb6!important;border-radius:12px!important;font-weight:750!important}
.bb-day-done-trigger[data-bb-day-done-state="complete"]{background:#fffdf4!important;border-color:#c8d9cc!important;color:#325b46!important}
#app.bbnext-plan .bbnext-day-label,#app.bbnext-plan .bbnext-day-badge{position:relative}
#app.bbnext-plan .bbnext-day-label.bb-day-is-done,#app.bbnext-plan .bbnext-day-badge.bb-day-is-done{background:#23784d!important;border-color:#17663e!important;color:#fff!important;box-shadow:0 0 0 2px #23784d1a!important}
.bb-day-done-check{position:absolute;right:3px;top:4px;display:grid;place-items:center;width:15px;height:15px;border-radius:50%;background:#fff;color:#17663e;font:900 11px/1 system-ui,sans-serif;letter-spacing:0}
#app.bbnext-plan .bb-day-is-checking{cursor:progress!important}
#app.bbnext-plan .bb-day-is-checking::after{content:'';position:absolute;bottom:7px;left:calc(50% - 5px);width:10px;height:10px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:bb-day-done-checking .8s linear infinite}
.bb-day-done-announcement{position:fixed;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@keyframes bb-day-done-checking{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#app.bbnext-plan .bb-day-is-checking::after{animation:none;border-style:dotted}}
.bb-day-done-dialog{box-sizing:border-box;width:min(94vw,580px);max-height:88vh;max-height:88dvh;overflow:auto;padding:24px;border:1px solid #cbd9c6;border-radius:24px;background:#fffdf4;color:#204c3b;box-shadow:0 24px 80px #12352633}
.bb-day-done-dialog::backdrop{background:#102d2780}
.bb-day-done-dialog h2{margin:0 0 12px;font-size:clamp(23px,5vw,30px);line-height:1.15}
.bb-day-done-dialog p{line-height:1.5}
.bb-day-done-meals{list-style:none;padding:0;margin:18px 0;display:grid;gap:8px}
.bb-day-done-meals li{display:grid;gap:4px;padding:12px 14px;border:1px solid #d8e3d2;border-radius:14px;background:#f1f6ec}
.bb-day-done-meals li.is-complete{background:#f6f6ed}
.bb-day-done-meals span{font-size:13px;color:#5a7061}
.bb-day-done-amounts{margin:16px 0;border:1px solid #d7e1cf;border-radius:14px;padding:12px 14px}
.bb-day-done-amounts summary{cursor:pointer;font-weight:750;min-height:32px}
.bb-day-done-amount{display:grid;gap:3px;padding:10px 0;border-top:1px solid #e0e7da;font-size:14px}
.bb-day-done-amount:first-of-type{margin-top:8px}
.bb-day-done-issues,.bb-day-done-issue{color:#78551f}
.bb-day-done-status{font-size:14px;min-height:22px}
.bb-day-done-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.bb-day-done-actions .btn{flex:1;min-width:130px;min-height:48px;border-radius:14px;white-space:normal}
.bb-day-done-actions .primary{background:#215f47;color:#fffdf4}
.bb-day-done-actions .bb-day-undo-review{background:#f7f4e9;color:#34583f;border:1px solid #d6d7be}
.bb-day-done-actions button:disabled{cursor:progress;opacity:.65}
.bb-day-done-dialog button:focus-visible,.bb-day-done-trigger:focus-visible,.bb-day-done-amounts summary:focus-visible{outline:3px solid #ceaa51;outline-offset:3px}
@media(max-width:380px){.bb-day-done-dialog{padding:18px}.bb-day-done-actions .btn{min-width:100%}}
/* Ingredient confirmation stays visible in one Plan panel. */
.bb-day-done-dialog{width:min(calc(100% - 28px),580px);max-height:calc(100dvh - 36px);padding:22px;background:#fffdf6;color:#173c2d;font-family:"Avenir Next",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.4;overscroll-behavior:contain}
.bb-day-done-dialog .bb-day-done-kicker{margin:0 0 9px;color:#657354;font-size:10px;font-weight:850;letter-spacing:.14em}
.bb-day-done-dialog h2{font-size:27px;letter-spacing:-.035em;line-height:1.1;margin:0 0 12px}
.bb-day-done-dialog .bb-day-done-explanation{margin:0 0 18px;font-size:14px;line-height:1.5;color:#526556}
.bb-day-done-meals{margin:0 0 18px}
.bb-day-done-meals li{padding:11px 13px;border-color:#dce5d9;background:#eff3e8}
.bb-day-done-meals strong{font-size:15px;line-height:1.35}
.bb-day-done-meals span{font-size:12px}
.bb-day-done-amounts{margin:0;border:1px solid #dce5d9;padding:0 13px;background:#fffefa}
.bb-day-done-amounts-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 0}
.bb-day-done-amounts-heading h3{margin:0;font-size:14px;font-weight:800}
.bb-day-done-amounts-heading>span{font-size:10px;color:#63715f}
.bb-day-done-amount{padding:12px 0;border-color:#e5e8dc;gap:5px}
.bb-day-done-amount:first-of-type{margin-top:0}
.bb-day-done-amount-main{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.bb-day-done-amount-main strong{font-size:14px;font-weight:650}
.bb-day-done-quantity{flex:none;font-size:14px;font-weight:800;font-variant-numeric:tabular-nums}
.bb-day-done-amount small{font-size:12px;line-height:1.45;color:#657361}
.bb-day-done-amount small.bb-day-done-issue{color:#78551f}
.bb-day-done-status{margin:14px 0 0;font-size:12px;color:#64715e;line-height:1.4}
.bb-day-done-actions{flex-direction:column-reverse;margin-top:16px;gap:8px}
.bb-day-done-actions .btn{flex:none;width:100%;min-height:48px;padding:12px;border:1px solid #d2ddcc;background:#fffdf6;color:#355240;font-family:inherit;font-size:14px;font-weight:750;line-height:1.35;cursor:pointer}
.bb-day-done-actions .primary{background:#123e2d;border-color:#123e2d;color:#fffdf6}
.bb-day-done-pantry-review{margin-top:16px;border-top:1px solid #dce5d9;padding-top:16px}

.bb-day-done-dialog h2:focus{outline:none}
.bb-school-lunch-confirm{display:grid;gap:10px;margin:12px 0 16px;padding:14px;border:1px solid #dce5d9;border-radius:16px;background:#f5f9f1}
.bb-school-lunch-confirm p{margin:0;font-size:13px;line-height:1.5;color:#5b7062}
.bb-school-lunch-confirm .bb-day-done-trigger{width:100%;min-height:46px!important;padding:11px 14px;background:#1b4d33!important;color:#fffdf6!important;border-color:#1b4d33!important;white-space:normal!important}

.bb-day-done-lunch-summary{display:grid;gap:5px;margin:0 0 16px;padding:12px 13px;border:1px solid #dce5d9;border-radius:14px;background:#eff3e8}
.bb-day-done-lunch-summary strong{font-size:15px;line-height:1.35}
.bb-day-done-lunch-days,.bb-day-done-lunch-confirmed{font-size:12px;line-height:1.4;color:#5a7061}
.bb-day-done-lunch-confirmed{font-size:11px}
.bb-day-done-lunch-details{margin:10px 0 0;font-size:12px;color:#526556}
.bb-day-done-lunch-details>summary{cursor:pointer;min-height:28px;padding:5px 0;font-weight:700}
.bb-day-done-lunch-details .bb-day-done-meals{margin:8px 0 0}
.bb-day-done-lunch-details>summary:focus-visible{outline:3px solid #ceaa51;outline-offset:3px}

/* Keep confirmation controls visible while long ingredient lists scroll. */
.bb-day-done-dialog{--bb-done-top:max(12px,env(safe-area-inset-top,0px));--bb-done-bottom:max(12px,env(safe-area-inset-bottom,0px));--bb-done-left:max(12px,env(safe-area-inset-left,0px));--bb-done-right:max(12px,env(safe-area-inset-right,0px));position:fixed;inset:var(--bb-done-top) var(--bb-done-right) var(--bb-done-bottom) var(--bb-done-left);width:min(calc(100% - var(--bb-done-left) - var(--bb-done-right)),580px);max-width:none;max-height:calc(100dvh - var(--bb-done-top) - var(--bb-done-bottom));padding:0;margin:auto;overflow:hidden}
.bb-day-done-dialog[open]{display:flex;flex-direction:column}
.bb-day-done-header{flex:none;padding:20px 20px 12px;background:#fffdf6}
.bb-day-done-dialog .bb-day-done-explanation{margin:0;font-size:14px}
.bb-day-done-content{min-height:0;flex:0 1 auto;overflow:auto;overscroll-behavior:contain;padding:0 20px;scrollbar-width:thin;scroll-padding-block:12px}
.bb-day-done-footer{flex:none;padding:12px 20px 18px;background:#fffdf6;border-top:1px solid #e2e7da}
.bb-day-done-footer .bb-day-done-status{margin:0 0 10px;min-height:0}
.bb-day-done-footer .bb-day-done-actions{margin:0}
.bb-day-done-stock-note{margin:0 0 12px;padding:10px 12px;border-radius:12px;background:#f4f0e2;color:#665832;font-size:12px;line-height:1.45!important}
.bb-day-done-amount{padding:10px 0;gap:3px}
.bb-day-done-amount-main strong{min-width:0;overflow-wrap:anywhere}
.bb-day-done-row-status{font-size:11px!important;line-height:1.35!important}
.bb-day-done-conversion-details{margin:10px 0 12px;color:#5d6a59;font-size:12px}
.bb-day-done-conversion-details>summary{min-height:32px;padding:7px 0;cursor:pointer;font-weight:700}
.bb-day-done-conversion-item{padding:8px 0;border-top:1px solid #e2e7da}
.bb-day-done-conversion-item strong{font-size:12px}
.bb-day-done-conversion-item p{font-size:12px;margin:5px 0;overflow-wrap:anywhere}
.bb-day-done-content>.bb-day-done-amounts:last-child{margin-bottom:12px}
.bb-day-done-content>.bb-day-done-meals{margin-bottom:12px}
.bb-day-done-conversion-details>summary:focus-visible{outline:3px solid #ceaa51;outline-offset:3px}
@media(max-width:380px){.bb-day-done-header{padding:16px 16px 10px}.bb-day-done-dialog h2{font-size:24px}.bb-day-done-dialog .bb-day-done-explanation{font-size:13px}.bb-day-done-content{padding:0 16px}.bb-day-done-footer{padding:10px 16px 14px}.bb-day-done-dialog .bb-day-done-kicker{margin-bottom:7px}.bb-day-done-actions .btn{min-height:44px;padding:10px}.bb-day-done-footer .bb-day-done-status{font-size:11px;margin-bottom:8px}}

.bb-day-done-amount .bb-day-done-stock-math{color:#526b57;font-size:12px!important;font-variant-numeric:tabular-nums;word-spacing:.03em}

/* Read the same reviewed quantities across each ingredient row. */
.bb-day-done-amounts:has(.bb-day-done-ingredient-table){padding:0 10px}
.bb-day-done-ingredient-table{width:100%;table-layout:fixed;border-collapse:collapse;text-align:right;font-size:12px;line-height:1.35;font-variant-numeric:tabular-nums}
.bb-day-done-ingredient-table caption{padding:12px 0;text-align:left;font-size:14px;font-weight:800;color:#173c2d}
.bb-day-done-ingredient-table th{width:22%;padding:8px 4px;border-top:1px solid #e2e7da;border-bottom:1px solid #e2e7da;font-size:10px;font-weight:700;color:#5d6c5c;overflow-wrap:normal;vertical-align:bottom}
.bb-day-done-ingredient-table th:first-child{width:34%;text-align:left;padding-left:0}
.bb-day-done-ingredient-table .bb-day-done-amount{display:table-row;margin:0;padding:0;border:0;font-size:12px}
.bb-day-done-ingredient-table td{padding:12px 4px;border-bottom:1px solid #e2e7da;vertical-align:top;overflow-wrap:anywhere;font-size:12px;font-weight:500}
.bb-day-done-ingredient-table tr:last-child td{border-bottom:0}
.bb-day-done-ingredient-table .bb-day-done-ingredient-name{text-align:left;padding-left:0}
.bb-day-done-ingredient-name strong{font-size:12px!important;font-weight:650!important;line-height:1.35}
.bb-day-done-ingredient-name small{display:block;margin-top:3px;font-size:10px!important;color:#64715e}
.bb-day-done-ingredient-table .bb-day-done-quantity{font-size:12px;font-weight:700}
.bb-day-done-ingredient-table .bb-day-done-cell-review{font-size:10px;color:#78551f}
@media(max-width:380px){.bb-day-done-amounts:has(.bb-day-done-ingredient-table){padding:0 7px}.bb-day-done-ingredient-table th{padding-inline:2px;font-size:10px}.bb-day-done-ingredient-table td{padding:10px 2px;font-size:12px}.bb-day-done-ingredient-table .bb-day-done-quantity{font-size:12px}.bb-day-done-ingredient-name strong{font-size:12px!important}.bb-day-done-ingredient-table .bb-day-done-cell-review{font-size:10px}}

.bb-day-done-projection-label{display:block;margin-top:2px;font-size:8px;font-weight:400;line-height:1.25;color:#64715e}
