/* Octa Food animated packing mark and persistent stock workflow */
.package-art{height:250px;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:inset 0 0 50px rgba(255,184,77,.06)}
.package-art svg{width:245px;overflow:visible}.package-art>span{margin-top:-12px;color:#8fe1d1;font:700 9px "DM Sans",sans-serif;letter-spacing:3px}
.box-back{fill:#ffd27c}.box-front{fill:#e3933d}.box-right{fill:#bb6828}.flap{fill:#ffc45f;transform-box:fill-box;transform-origin:center;animation:flapOpen 3.8s ease-in-out infinite}.flap-right{animation-delay:.08s}.octa-mark{fill:none;stroke:#0d7169;stroke-width:8;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:50;animation:checkMark 3.8s ease-in-out infinite}.meal{fill:#fff8e8;stroke:#e11919;stroke-width:3;animation:mealDrop 3.8s cubic-bezier(.3,.7,.25,1) infinite}.meal path{fill:none;stroke:#ffb84d;stroke-width:3}.meal-two{animation-delay:.32s}.meal-three{animation-delay:.64s}
@keyframes flapOpen{0%,15%,88%,100%{transform:rotate(0)}30%,72%{transform:translateY(-12px) rotate(-10deg)}}
@keyframes mealDrop{0%,20%{opacity:0;transform:translateY(-55px)}38%,70%{opacity:1;transform:translateY(70px)}78%,100%{opacity:0;transform:translateY(70px)}}
@keyframes checkMark{0%,55%{stroke-dashoffset:50;opacity:0}68%,90%{stroke-dashoffset:0;opacity:1}100%{opacity:0}}
.stock-import{min-height:65px;margin:13px 0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px dashed #d5a756;border-radius:14px;background:#fff8eb}.stock-import button,.picker-button{min-height:42px;padding:0 18px;border:0;border-radius:11px;color:#fff;background:linear-gradient(135deg,#c46d16,#e11919);font-size:11px;font-weight:800;cursor:pointer;box-shadow:0 8px 20px rgba(196,109,22,.18)}.picker-button{margin-top:8px;background:linear-gradient(135deg,#163b47,#16706b)}.stock-import small{max-width:48%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:9px}
.commit-bar{display:grid;grid-template-columns:1fr 210px auto;gap:12px;align-items:end;padding:18px 25px;border-bottom:1px solid var(--line);background:#fff8eb}.commit-bar label{display:flex;flex-direction:column;gap:7px;color:#6e5b42;font-size:10px;font-weight:700}.commit-bar input{height:45px;padding:0 12px;border:1px solid #ddc9a8;border-radius:11px;background:#fff}.commit-bar button{height:45px;padding:0 20px;border:0;border-radius:12px;color:#fff;background:linear-gradient(135deg,#c46d16,#e11919);font-weight:800;cursor:pointer}.commit-bar button:disabled{opacity:.5;cursor:not-allowed}.commit-bar p{grid-column:1/-1;min-height:0;margin:0;text-align:center;font-size:10px}.summary-cards{grid-template-columns:repeat(5,1fr)}
.history-panel{margin-top:24px;padding:25px 28px;border-radius:27px;background:#fff;box-shadow:0 22px 55px rgba(16,40,45,.13)}.history-heading{display:flex;align-items:center;justify-content:space-between}.history-heading h2{margin:5px 0 0}.history-heading button,.history-actions button{border:1px solid var(--line);border-radius:10px;background:#fff;padding:9px 12px;cursor:pointer;font-size:10px;font-weight:700}.history-list{display:grid;gap:10px;margin-top:18px}.history-row{display:grid;grid-template-columns:minmax(0,1fr) 150px 120px auto;gap:10px;align-items:center;padding:13px;border:1px solid var(--line);border-radius:14px;background:#f7faf9}.history-row input{height:40px;padding:0 10px;border:1px solid #cbd8d5;border-radius:9px;background:#fff}.history-stats{font-size:10px;color:var(--muted)}.history-actions{display:flex;gap:6px}.history-actions .delete{color:#b42318;border-color:#efc2bd}
@media(prefers-reduced-motion:reduce){.flap,.meal,.octa-mark{animation:none}.meal{display:none}.octa-mark{stroke-dashoffset:0;opacity:1}}
@media(max-width:900px){.commit-bar{grid-template-columns:1fr 1fr}.commit-bar button{grid-column:1/-1}.history-row{grid-template-columns:1fr 1fr}.history-actions{grid-column:1/-1}.summary-cards{grid-template-columns:repeat(2,1fr)}}

/* Saved weeks can be reopened and exported without uploading source files. */
.history-row{grid-template-columns:minmax(0,1fr) 150px 140px minmax(310px,auto)}
.history-actions{display:flex;gap:6px;flex-wrap:wrap}
.history-actions .view{color:#0f6765;border-color:#a9d4cc;background:#edf8f5}
.history-actions .download{color:#7a4a00;border-color:#efd39e;background:#fff9ed}
@media(max-width:900px){.history-row{grid-template-columns:1fr 1fr}.history-actions{grid-column:1/-1}}

/* Bags and spoons calculator */
.consumables-panel{padding:24px 28px;border-bottom:1px solid var(--line);background:linear-gradient(135deg,#f8fbfa,#fff8ea)}
.standalone-consumables{margin:24px 0;overflow:hidden;border:1px solid rgba(24,59,66,.12);border-radius:27px;box-shadow:0 22px 55px rgba(16,40,45,.13)}
.customer-count-placeholder{grid-column:1/-1;padding:18px;border:1px dashed #d8b56f;border-radius:13px;text-align:center;color:#806944;background:#fffaf0;font-size:10px;font-weight:700}
.customer-upload-trigger{position:relative;z-index:1;box-sizing:border-box;width:100%;clear:both;display:grid;gap:7px;margin-top:24px;cursor:pointer;transition:.2s ease}.customer-upload-trigger:hover,.customer-upload-trigger:focus-visible{border-color:#e59d28;background:#fff4da;box-shadow:0 8px 22px rgba(197,130,24,.15);transform:translateY(-1px)}.customer-upload-trigger strong{color:#173f45;font-size:13px}.customer-upload-trigger span{color:#8b754f;font-size:10px}
.consumables-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:24px}.consumables-heading h3{margin:5px 0 8px;font-size:25px;line-height:1.3}.consumables-heading p{margin:0;color:var(--muted);font-size:10px;line-height:1.8}.consumables-controls{display:flex;gap:10px}.consumables-controls label{display:flex;flex-direction:column;gap:6px;color:#617477;font-size:9px;font-weight:700}.consumables-controls select,.consumables-controls input{box-sizing:border-box;height:42px;min-width:155px;padding:0 12px;border:1px solid #c8d8d4;border-radius:11px;color:var(--navy);background:#fff;font-weight:800;outline:none}.consumables-controls input{text-align:center;font:800 15px "DM Sans",sans-serif}.consumables-controls input:focus,.consumables-controls select:focus{border-color:#16807a;box-shadow:0 0 0 3px rgba(22,128,122,.12)}
.customer-counts{display:grid;grid-template-columns:repeat(6,minmax(105px,1fr));gap:8px;margin-top:18px}.customer-day{padding:10px;border:1px solid #d8e4e1;border-radius:13px;background:#fff}.customer-day label{display:block;margin-bottom:7px;color:#40666b;font-size:9px;font-weight:800}.customer-day input{width:100%;height:39px;border:1px solid #c5d6d2;border-radius:9px;text-align:center;color:#173b43;background:#f8fbfa;font:800 16px "DM Sans",sans-serif}.customer-day.missing{border-color:#efc077;background:#fff9ee}.customer-day.missing label::after{content:" · أدخل العدد";color:#b7680a}
.supply-results{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:16px}.supply-card{position:relative;min-height:172px;display:grid;grid-template-columns:118px 1fr;align-items:center;gap:18px;padding:20px 24px;overflow:hidden;border-radius:22px}.supply-card::after{content:"";position:absolute;width:180px;height:180px;border:28px solid rgba(255,255,255,.2);border-radius:50%;left:-80px;bottom:-110px}.bag-card{color:#4d3100;background:linear-gradient(135deg,#ffd681,#ffb84d)}.spoon-card{color:#0e4f50;background:linear-gradient(135deg,#d8f3ed,#79dccb)}.supply-icon{position:relative;z-index:1;width:104px;height:104px;display:grid;place-items:center;border-radius:26px;background:rgba(255,255,255,.7);box-shadow:0 12px 30px rgba(25,65,67,.12)}.supply-icon svg{width:64px;height:64px;fill:none;stroke:currentColor;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}.supply-card>div:last-child{position:relative;z-index:1}.supply-card small{font:800 9px "DM Sans",sans-serif;letter-spacing:1.7px}.supply-card h4{margin:5px 0 4px;font-size:22px}.supply-card strong{display:inline-block;margin-left:8px;font:800 44px "DM Sans",sans-serif;line-height:1}.supply-card span{font-size:11px;font-weight:800}.supply-card p{margin:8px 0 0;font-size:9px;opacity:.75}
.daily-supplies{display:grid;gap:7px;margin-top:12px}.daily-supply-row{display:grid;grid-template-columns:1fr repeat(3,130px);align-items:center;gap:8px;padding:10px 14px;border:1px solid #dce7e4;border-radius:12px;background:#fff}.daily-supply-row strong{font-size:11px}.daily-supply-row span{text-align:center;color:#577074;font-size:10px}.daily-supply-row b{color:#153f45;font:800 13px "DM Sans",sans-serif}
.supply-report-actions{display:flex;justify-content:center;margin-top:18px}.supply-report-actions button{min-width:310px;min-height:50px;padding:0 24px;border:0;border-radius:14px;color:#fff;background:linear-gradient(135deg,#163b47,#176a69);box-shadow:0 12px 26px rgba(22,59,71,.18);font-weight:800;cursor:pointer;transition:.2s ease}.supply-report-actions button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 16px 30px rgba(22,59,71,.24)}.supply-report-actions button:disabled{cursor:not-allowed;opacity:.4;box-shadow:none}
@media(max-width:900px){.consumables-heading{flex-direction:column}.customer-upload-trigger{margin-top:20px}.customer-counts{grid-template-columns:repeat(3,1fr)}.supply-card{grid-template-columns:86px 1fr}.supply-icon{width:78px;height:78px}.daily-supply-row{grid-template-columns:1fr repeat(3,90px)}}
@media(max-width:560px){.consumables-panel{padding:20px}.consumables-controls{width:100%;display:grid;grid-template-columns:1fr 1fr}.consumables-controls select,.consumables-controls input{width:100%;min-width:0}.manual-customer-control{grid-column:1/-1}.customer-counts{grid-template-columns:repeat(2,1fr)}.supply-results{grid-template-columns:1fr}.daily-supply-row{grid-template-columns:1fr 1fr}.daily-supply-row strong{grid-column:1/-1}}

/* Full-width plates workflow with a visual symbol for every packaging item. */
.workspace{grid-template-columns:1fr;gap:24px}.upload-panel,.inventory-panel{width:100%}.dropzone{min-height:150px}.inventory-list{max-height:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;overflow:visible}.inventory-row{grid-template-columns:46px minmax(0,1fr) 110px;min-height:72px}.package-item-icon{width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;border:1px solid #c9ddd8;border-radius:12px;color:#116964;background:linear-gradient(145deg,#f1fbf8,#fff7e8)}.package-item-icon svg{width:31px;height:31px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.item-with-icon{display:flex;align-items:center;gap:10px;min-width:230px}.item-with-icon span:last-child{line-height:1.65}.table-wrap{padding:0 10px 12px}.results table{min-width:1120px}td:first-child{min-width:260px}
.unified-packaging-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;padding:0;overflow:hidden}.integrated-upload-block,.stock-block{min-width:0;padding:30px}.integrated-upload-block{border-left:1px solid var(--line);background:linear-gradient(145deg,#fff,#f3f9f7)}.stock-block{background:linear-gradient(145deg,#fffdf8,#fff)}.unified-packaging-panel .dropzone{min-height:190px}.unified-packaging-panel .inventory-list{grid-template-columns:1fr;max-height:430px;overflow:auto}
@media(max-width:900px){.unified-packaging-panel{grid-template-columns:1fr}.integrated-upload-block{border-left:0;border-bottom:1px solid var(--line)}.supply-report-actions button{width:100%;min-width:0}}
.dropzone{position:relative}.native-file-overlay{position:absolute;inset:0;z-index:5;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.dropzone>*:not(.native-file-overlay){position:relative;z-index:2;pointer-events:none}
@media(max-width:1050px){.inventory-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.inventory-list{grid-template-columns:1fr}.inventory-row{grid-template-columns:42px minmax(0,1fr) 92px}.stock-import{align-items:stretch;flex-direction:column}.stock-import small{max-width:100%;text-align:center}}
