:root{--ink:#18221d;--forest:#26372e;--green:#557b5e;--lime:#b8dc5a;--paper:#f5f3ed;--card:#fff;--line:#d8ddd8;--muted:#66706a;--danger:#9b3a2e;--amber:#ae7325;--shadow:0 12px 35px rgba(26,40,31,.08)}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}.topbar{height:76px;background:var(--forest);color:#fff;display:flex;align-items:center;padding:0 4vw;gap:34px;position:sticky;top:0;z-index:5}.brand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none;margin-right:auto}.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--lime);color:var(--forest);font-size:24px;font-weight:900}.brand small{display:block;color:#cdd6d0;font-size:11px;letter-spacing:.04em}.topbar nav{display:flex;gap:25px}.topbar nav a,.link-button{color:#e7ece9;text-decoration:none;font:inherit;font-size:14px;background:none;border:0;cursor:pointer}.page-shell{width:min(1180px,92vw);margin:0 auto;padding:48px 0 80px}.hero,.batch-header{display:flex;align-items:flex-end;justify-content:space-between;gap:35px;margin-bottom:34px}.hero h1,.narrow-header h1,.batch-header h1{font-size:clamp(32px,4vw,55px);line-height:1.02;letter-spacing:-.045em;margin:4px 0 14px;max-width:760px}.hero p,.narrow-header p,.batch-header p{max-width:680px;color:var(--muted);font-size:17px;line-height:1.6}.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:11px!important;font-weight:800;color:var(--green)!important;margin:0}.button{display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:10px;padding:11px 17px;text-decoration:none;font-weight:750;font-size:14px;cursor:pointer}.button.large{padding:15px 21px}.button.primary{background:var(--lime);color:var(--forest)}.button.secondary{background:#fff;color:var(--forest);border-color:var(--line)}.button.dark{background:var(--forest);color:#fff}.card{background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}.stats-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:25px 0 55px}.stat-card{padding:24px;display:grid;gap:5px;background:var(--forest);color:#fff;border-radius:16px}.stat-card.warning{background:#fff;color:var(--ink);border:1px solid #ead3ad}.stat-card span{color:#c9d3cd}.stat-card.warning span{color:var(--amber)}.stat-card strong{font-size:36px}.stat-card a{color:inherit}.section-heading{display:flex;justify-content:space-between;align-items:end;margin:32px 0 14px}.section-heading h2{margin:4px 0;font-size:27px}.table-card{overflow:auto}table{width:100%;border-collapse:collapse}th,td{padding:14px 16px;text-align:left;border-bottom:1px solid #e7eae7;font-size:14px}th{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.08em}.number{text-align:right;font-weight:800}.empty{text-align:center;color:var(--muted);padding:35px}.status{display:inline-flex;border-radius:100px;padding:5px 9px;font-size:11px;font-weight:800}.status.ready{background:#dfeedd;color:#31553a}.status.review{background:#fff0cf;color:#744c13}.status.processing{background:#e1ebf2;color:#28516c}.text-link{color:var(--green);font-weight:800;text-decoration:none}.narrow-header{max-width:800px;margin-bottom:28px}.form-card{max-width:760px;padding:28px}.stack-form p{display:grid;gap:7px;margin:0 0 20px}.stack-form label{font-weight:750;font-size:13px}.stack-form input,.stack-form select,.stack-form textarea,.filter-bar input,.filter-bar select{width:100%;border:1px solid #bdc6bf;border-radius:9px;background:#fff;padding:12px;font:inherit}.stack-form textarea{min-height:100px}.stack-form ul{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:10px}.stack-form ul label{display:flex;gap:6px;align-items:center;background:#f1f4f1;padding:8px 10px;border-radius:8px}.stack-form ul input{width:auto}.form-actions,.button-row{display:flex;gap:10px;justify-content:flex-end}.messages{display:grid;gap:8px;margin-bottom:20px}.message{padding:12px 15px;border-radius:9px;background:#e4efe5}.message.error{background:#f7dfdc;color:var(--danger)}.review-banner{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#fff3d8;border:1px solid #e6c98d;padding:20px;border-radius:14px;margin:20px 0 35px}.review-banner div{display:grid;gap:5px}.review-banner span{color:#69522c;font-size:14px}.distribution-list{display:grid;gap:12px}.product-card{overflow:hidden}.product-card summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;padding:18px 20px}.product-card summary::-webkit-details-marker{display:none}.product-card summary>span:first-child{display:flex;align-items:center;gap:15px}.product-card summary>span:first-child b{color:var(--green);min-width:55px}.product-total{color:var(--muted)}.product-total b{font-size:20px;color:var(--ink)}.product-body{border-top:1px solid var(--line);padding:0 10px 10px}.customer-note{text-align:right;padding:0 14px;color:var(--danger)}.filter-bar{display:grid;grid-template-columns:1fr 230px auto;gap:10px;padding:14px;margin-bottom:18px}.tag{display:inline-flex;background:#e6efe7;color:#36563e;padding:4px 7px;border-radius:6px;margin:2px;font-size:11px;font-weight:750}.missing{color:var(--danger);font-weight:750}.login-panel{max-width:450px;margin:6vh auto;padding:35px}.login-panel h1{font-size:36px;margin:5px 0}.muted{color:var(--muted)}.error-text{color:var(--danger)}
.bulk-form-card{max-width:900px}.upload-field{display:grid;gap:9px;margin-bottom:22px}.upload-field>label{font-weight:750;font-size:13px}.drop-zone{border:2px dashed #aebbb2;border-radius:14px;background:#f8faf8;min-height:230px;padding:28px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;transition:.2s ease;cursor:pointer}.drop-zone:hover,.drop-zone.dragging{border-color:var(--green);background:#edf4ee;box-shadow:inset 0 0 0 2px rgba(85,123,94,.12)}.drop-icon{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:var(--lime);color:var(--forest);font-size:27px;font-weight:900}.drop-zone>strong{font-size:18px}.drop-zone>span{color:var(--muted)}.upload-buttons{display:flex;gap:9px;margin-top:10px;flex-wrap:wrap;justify-content:center}.selection-summary{display:flex;align-items:center;justify-content:space-between;background:#e9f1ea;border-radius:10px;padding:12px 14px}.selection-summary>div{display:flex;gap:10px;align-items:baseline}.selection-summary span{color:var(--muted);font-size:13px}.link-button.danger{color:var(--danger)}.file-preview{list-style:none!important;padding:0!important;margin:0!important;display:grid!important;gap:4px!important}.file-preview li{display:block!important;background:none!important;padding:3px 5px!important;color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-preview .more{font-weight:800;color:var(--green)}.processing-state{align-items:center;gap:13px;padding:14px;background:#edf3e4;border-radius:10px;margin-bottom:18px}.processing-state:not([hidden]){display:flex}.processing-state div{display:grid;gap:3px}.processing-state small{color:var(--muted)}.spinner{width:25px;height:25px;border:3px solid #c7d1c9;border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}button:disabled{opacity:.65;cursor:wait}
@media(max-width:760px){.topbar{height:auto;min-height:72px;padding:12px 4vw;flex-wrap:wrap}.topbar nav{order:3;width:100%;overflow:auto;padding-bottom:5px}.brand small{display:none}.page-shell{padding-top:30px}.hero,.batch-header{align-items:flex-start;flex-direction:column}.stats-grid{grid-template-columns:1fr}.button-row{width:100%;flex-wrap:wrap}.review-banner{align-items:flex-start;flex-direction:column}.product-card summary{align-items:flex-start;gap:10px;flex-direction:column}.filter-bar{grid-template-columns:1fr}.table-card table{min-width:700px}.form-actions{justify-content:stretch}.form-actions .button{flex:1}.selection-summary{align-items:flex-start;gap:8px;flex-direction:column}.selection-summary>div{align-items:flex-start;flex-direction:column}.drop-zone{padding:20px 12px}}

.penny-upload-field{display:grid;gap:8px;margin-bottom:20px}.penny-upload-field>label{font-size:13px;font-weight:750}.penny-upload-field input{min-height:48px}.penny-delivery-override{display:grid;gap:9px;margin:0 0 20px;padding:18px;border:1px solid #d7bd82;border-left:5px solid var(--amber);border-radius:12px;background:#fff8e8}.penny-delivery-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.penny-delivery-heading label{font-size:15px;font-weight:850}.penny-delivery-heading span{padding:5px 9px;border-radius:999px;background:#f1dfb7;color:#714b16;font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.05em}.penny-delivery-override input{width:min(100%,340px);min-height:52px;font-size:16px}.penny-delivery-override small,.penny-delivery-override p{max-width:600px;margin:0;color:#695a3d;font-size:13px;line-height:1.5}.penny-delivery-override p{padding-top:2px}.penny-field-error{color:var(--danger);font-size:13px;font-weight:750}.penny-delivery-override input:focus-visible,.penny-upload-field input:focus-visible{outline:3px solid #92bb6380;outline-offset:2px}@media(max-width:760px){.penny-delivery-override{padding:16px}.penny-delivery-override input{width:100%}}

.permission-matrix-card{overflow:hidden}.permission-matrix-intro{display:flex;justify-content:space-between;gap:30px;padding:20px 24px;background:#f3f6f2;border-bottom:1px solid var(--line)}.permission-matrix-intro p{margin:0;max-width:620px;color:var(--muted);line-height:1.5}.permission-matrix{min-width:1120px}.permission-matrix th:not(:first-child),.permission-matrix td:not(:first-child){text-align:center;min-width:105px}.permission-matrix td:first-child{position:sticky;left:0;background:var(--card);z-index:1;min-width:230px}.permission-matrix td:first-child small{display:block;color:var(--muted);margin-top:4px}.permission-check{display:inline-grid;place-items:center;cursor:pointer}.permission-check input{position:absolute;opacity:0;pointer-events:none}.permission-check span{display:grid;place-items:center;width:38px;height:38px;border:2px solid #bdc9c0;border-radius:10px;color:transparent;background:#fff;font-size:20px;font-weight:900;transition:.15s ease}.permission-check input:checked+span{background:var(--forest);border-color:var(--forest);color:#fff;box-shadow:0 4px 12px rgba(31,61,48,.18)}.permission-check input:disabled+span{opacity:.45;cursor:not-allowed}.permission-matrix-actions{display:flex;justify-content:flex-end;padding:20px 24px;border-top:1px solid var(--line)}
@media(max-width:760px){.permission-matrix-intro{flex-direction:column;gap:10px}.permission-matrix-actions .button{width:100%}}

.user-chip{display:grid;color:#fff;text-decoration:none;font-size:13px;line-height:1.2}.user-chip small{color:#cdd6d0;font-size:10px}.branch-shell{width:min(1380px,94vw)}.branch-hero{margin-bottom:20px}.delivery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:15px}.delivery-card{display:grid;gap:7px;padding:20px;color:var(--ink);text-decoration:none;transition:transform .15s ease,border-color .15s ease}.delivery-card:hover{transform:translateY(-2px);border-color:var(--green)}.delivery-card strong{font-size:25px}.delivery-card small{color:var(--muted)}.delivery-weekday{color:var(--green);font-weight:800}.status.draft{background:#fff0cf;color:#744c13}.status.submitted{background:#dfeedd;color:#31553a}.branch-order-header{margin-bottom:22px}.submitted-banner{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#dfeedd;color:#31553a;border:1px solid #b9d5b6;padding:17px 20px;border-radius:14px;margin-bottom:24px}.order-toolbar{display:grid;grid-template-columns:auto minmax(220px,1fr) auto;align-items:center;gap:14px;padding:15px 18px;position:sticky;top:86px;z-index:4}.order-toolbar label{font-weight:800}.order-toolbar input{border:1px solid #bdc6bf;border-radius:9px;padding:11px 13px;font:inherit}.order-toolbar span{color:var(--muted);font-size:13px}.order-section{scroll-margin-top:160px}.branch-order-table table{min-width:880px}.branch-order-table th:nth-child(1){width:100px}.branch-order-table th:nth-child(3){width:180px}.branch-order-table th:nth-child(4),.branch-order-table th:nth-child(5){width:170px}.quantity-cell input{width:135px;border:1px solid #aebbb2;border-radius:8px;padding:10px;text-align:right;font:inherit;font-weight:800}.quantity-cell input:focus{outline:3px solid rgba(184,220,90,.45);border-color:var(--green)}.quantity-cell input:disabled{background:#eef1ee;color:#66706a}.article-marker,.order-note{display:block;color:var(--muted);font-size:10px;margin-top:3px}.order-actions{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:20px;background:rgba(245,243,237,.96);backdrop-filter:blur(8px);border-top:1px solid var(--line);padding:16px 0;margin-top:25px;z-index:4}.order-actions>span{color:var(--muted);font-size:13px}
@media(max-width:760px){.branch-topbar .user-chip{order:2}.order-toolbar{top:126px;grid-template-columns:1fr}.order-toolbar label{display:none}.order-actions{align-items:stretch;flex-direction:column}.submitted-banner{align-items:flex-start;flex-direction:column}.delivery-grid{grid-template-columns:1fr}}

.mode-switch{display:flex!important;gap:4px!important;background:rgba(255,255,255,.12);padding:4px;border-radius:12px}.mode-switch a{padding:9px 14px;border-radius:9px;font-weight:800;transition:.15s ease}.mode-switch .mode-ordering.active{background:var(--lime);color:var(--forest)}.mode-switch .mode-closing.active{background:#f2a55f;color:#412511}.mode-indicator{display:inline-flex;align-items:center;border-radius:100px;padding:9px 13px;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap}.closing-indicator{background:#f8d1ac;color:#703c15;border:1px solid #e7aa72}.daily-closing-mode{background:#faf4ed}.daily-closing-mode .branch-topbar{background:#583624}.daily-closing-mode .brand-mark{background:#f2a55f;color:#412511}.daily-closing-mode .eyebrow,.daily-closing-mode .delivery-weekday{color:#a75520!important}.closing-card{border-left:5px solid #e5a164}.closing-card:hover{border-color:#b95f25}.closing-card.today{box-shadow:0 0 0 3px rgba(213,122,50,.22),var(--shadow)}.status.closed{background:#f8d1ac;color:#703c15}.closing-banner{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#f8d1ac;color:#583015;border:1px solid #e7aa72;padding:17px 20px;border-radius:14px;margin-bottom:24px}.closing-banner>div{display:grid;gap:4px}.closing-banner span{font-size:13px}.button.reopen{background:#fff;color:#703c15;border-color:#d69258}.button.closing-primary{background:#d97732;color:#fff}.closing-toolbar{border-color:#e9c39f}.closing-toolbar input:focus,.closing-table .quantity-cell input:focus{outline:3px solid rgba(217,119,50,.25);border-color:#bd6427}.closing-actions{background:rgba(250,244,237,.96);border-color:#e9c39f}.closing-table th:nth-child(3),.closing-table th:nth-child(4){width:190px}
.mode-switch .mode-closing.locked{background:#8f332c;color:#fff}.closing-locked-dialog{width:min(610px,calc(100vw - 28px));padding:0;border:0;border-radius:22px;background:#fff;color:var(--ink);box-shadow:0 25px 90px rgba(26,18,15,.45)}.closing-locked-dialog::backdrop{background:rgba(21,25,22,.72);backdrop-filter:blur(4px)}.closing-locked-panel{position:relative;display:grid;justify-items:center;gap:14px;padding:34px;text-align:center;border-top:10px solid var(--danger)}.closing-locked-panel h2{margin:0;color:#792b25;font-size:clamp(27px,5vw,40px);line-height:1.05}.closing-locked-panel p{margin:0;max-width:500px;font-size:17px;line-height:1.5}.closing-locked-icon{display:grid;place-items:center;width:68px;height:68px;border-radius:50%;background:#f7dfdc;color:var(--danger);font-size:42px;font-weight:950}.closing-locked-close{position:absolute;right:14px;top:12px;width:44px;height:44px;border:0;border-radius:50%;background:#f2ece7;color:#583624;font-size:29px;cursor:pointer}.closing-locked-items{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:4px 0 8px}.closing-locked-items strong{padding:12px;border-radius:10px;background:#f7dfdc;color:#792b25;font-size:16px}.closing-locked-panel .button{width:100%}
@media(max-width:520px){.closing-locked-panel{padding:28px 18px 20px}.closing-locked-items{grid-template-columns:1fr}.closing-locked-panel .eyebrow{padding-right:35px}}
@media(max-width:760px){.mode-switch{order:3;width:100%}.mode-switch a{flex:1;text-align:center}.closing-banner{align-items:stretch;flex-direction:column}.closing-header .button-row{align-items:flex-start}.closing-header .mode-indicator{order:2}}

.manual-order-head{padding:22px;margin-bottom:18px}.manual-date-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.manual-date-grid p{display:grid;gap:7px;margin:0}.manual-date-grid label{font-size:12px;font-weight:800}.manual-date-grid input,.manual-date-grid select{width:100%;border:1px solid #bdc6bf;border-radius:9px;background:#fff;padding:12px;font:inherit}.manual-date-grid .errorlist{list-style:none;margin:0;padding:0;color:var(--danger);font-size:12px}.manual-toolbar{top:86px;margin-bottom:18px}.manual-article-table table{min-width:720px}.manual-article-table th:last-child,.manual-article-table td:last-child{width:170px}.production-date-form{display:flex;align-items:center;gap:12px;padding:14px 18px;margin:-10px 0 30px}.production-date-form label{font-weight:800}.production-date-form input{border:1px solid #bdc6bf;border-radius:9px;padding:10px;font:inherit}
@media(max-width:900px){.manual-date-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.manual-date-grid{grid-template-columns:1fr}.production-date-form{align-items:stretch;flex-direction:column}}

/* Filialportal: mittiger Moduswechsel und fingerfreundlicher Tagesabschluss */
.branch-topbar{display:grid;grid-template-columns:1fr auto 1fr}.branch-topbar .brand{margin-right:0;justify-self:start}.branch-topbar .mode-switch{justify-self:center}.branch-account{display:flex;align-items:center;justify-content:flex-end;gap:24px;justify-self:end}.closing-quantity-input[readonly]{cursor:pointer;background:#fff;color:var(--ink);min-height:50px;font-size:20px}.number-pad{width:min(430px,calc(100vw - 28px));padding:0;border:0;border-radius:22px;background:#fff;color:var(--ink);box-shadow:0 25px 80px rgba(34,24,16,.35)}.number-pad::backdrop{background:rgba(20,25,22,.64);backdrop-filter:blur(3px)}.number-pad-panel{padding:22px;display:grid;gap:18px}.number-pad-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.number-pad-head>div{display:grid;gap:4px}.number-pad-head span{color:#a75520;font-size:13px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.number-pad-head strong{font-size:17px;line-height:1.3}.number-pad-close{border:0;background:#f2ece7;border-radius:50%;width:44px;height:44px;flex:0 0 44px;font-size:28px;color:#583624;cursor:pointer}.number-pad-value{display:flex;align-items:center;justify-content:flex-end;min-height:76px;padding:10px 18px;border:2px solid #e0b48f;border-radius:14px;background:#fffaf6;color:#412511;font-size:44px;font-weight:900;line-height:1}.number-pad-keys{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.number-pad-keys button{min-height:68px;border:1px solid #dacbc0;border-radius:14px;background:#f8f5f2;color:#30251e;font:inherit;font-size:27px;font-weight:850;cursor:pointer;touch-action:manipulation}.number-pad-keys button:active{transform:scale(.96);background:#f0d3ba}.number-pad-keys .number-pad-clear{color:#9b3a2e}.number-pad-actions{display:grid;grid-template-columns:1fr 1.3fr;gap:10px}.number-pad-actions .button{min-height:58px;font-size:16px}

@media(max-width:1100px){.branch-topbar{grid-template-columns:1fr 1fr;gap:12px 20px;height:auto;min-height:76px;padding-top:12px;padding-bottom:12px}.branch-topbar .brand{grid-column:1;grid-row:1}.branch-account{grid-column:2;grid-row:1}.branch-topbar .mode-switch{grid-column:1/-1;grid-row:2;justify-self:center}.order-toolbar{top:134px}}
@media(max-width:900px){.branch-shell{width:min(720px,94vw);padding-top:28px}.closing-table{overflow:visible;background:transparent;border:0;box-shadow:none}.closing-table table,.branch-order-table.closing-table table{min-width:0;display:block}.closing-table thead{display:none}.closing-table tbody{display:grid;gap:14px}.closing-table tr{display:grid;grid-template-columns:minmax(90px,.35fr) minmax(0,1fr);background:#fff;border:1px solid #e5d8cd;border-radius:15px;box-shadow:var(--shadow);overflow:hidden}.closing-table td{border:0;padding:14px}.closing-table td:nth-child(1){grid-column:1}.closing-table td:nth-child(2){grid-column:2;font-weight:750}.closing-table .quantity-cell{display:grid;gap:7px;padding-top:8px}.closing-table .quantity-cell::before{content:attr(data-label);font-size:12px;font-weight:850;color:#7a5438}.closing-table .quantity-cell input{width:100%;min-height:64px;text-align:center;font-size:24px}.closing-actions{padding:14px}.closing-actions>span{display:none}}
@media(max-width:600px){.branch-account .user-chip{display:none}.branch-account{gap:0}.mode-switch{width:min(100%,420px)}.mode-switch a{flex:1;text-align:center;padding:12px 10px}.closing-table tr{grid-template-columns:90px minmax(0,1fr)}.closing-table td{padding:12px 11px}.number-pad-panel{padding:17px}.number-pad-keys button{min-height:62px}.number-pad-value{min-height:66px;font-size:38px}}

/* Tagesabschluss-Statistik */
.statistics-header{align-items:center}.statistics-period{display:inline-flex;padding:13px 18px;border-radius:999px;background:var(--forest);color:#fff;font-weight:900;white-space:nowrap}.statistics-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:12px 0 18px}.statistics-kpi{position:relative;overflow:hidden;display:grid;gap:7px;min-height:150px;padding:22px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow)}.statistics-kpi:after{content:"";position:absolute;right:-25px;bottom:-38px;width:105px;height:105px;border-radius:50%;background:rgba(61,113,86,.08)}.statistics-kpi span{color:var(--muted);font-size:13px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.statistics-kpi strong{font-size:clamp(31px,4vw,48px);line-height:1;color:var(--forest)}.statistics-kpi small{color:var(--muted);line-height:1.35}.statistics-kpi.primary{background:var(--forest);color:#fff}.statistics-kpi.primary span,.statistics-kpi.primary small,.statistics-kpi.primary strong{color:#fff}.statistics-kpi.primary:after{background:rgba(183,227,79,.2)}.statistics-kpi.returns{border-top:6px solid #bb493b}.statistics-kpi.tastings{border-top:6px solid #d78635}.statistics-usage-overview{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:30px}.statistics-usage-overview article{display:flex;gap:12px;align-items:center;padding:15px 18px;border-radius:14px;background:#fff;border:1px solid var(--line)}.statistics-usage-overview article div{display:grid;gap:3px}.statistics-usage-overview small{color:var(--muted)}.usage-dot{width:15px;height:15px;border-radius:50%;flex:0 0 15px}.usage-dot.regular{background:#4d9b68}.usage-dot.partial{background:#e0a533}.usage-dot.never{background:#b7483d}.statistics-day-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}.statistics-day{display:grid;grid-template-columns:1fr auto;gap:10px 14px;padding:17px}.statistics-day>div:first-child{display:grid;gap:3px}.statistics-day>div:first-child span,.statistics-day small{color:var(--muted);font-size:12px}.statistics-day b{font-size:22px;color:var(--forest)}.statistics-day small{grid-column:1/-1}.usage-track{grid-column:1/-1;height:8px;border-radius:20px;background:#e6ebe7;overflow:hidden}.usage-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#7aa34d,var(--lime));transition:width .7s ease}.statistics-table-heading{align-items:end}.statistics-filters{display:flex;gap:10px;flex-wrap:wrap}.statistics-filters input,.statistics-filters select{min-height:46px;border:1px solid var(--line);border-radius:11px;background:#fff;padding:9px 13px;font:inherit}.statistics-filters input{min-width:280px}.statistics-table{max-height:680px;overflow:auto}.statistics-table thead{position:sticky;top:0;z-index:2}.statistics-table td:nth-child(n+4){white-space:nowrap}.statistics-table td:nth-child(2){display:grid;gap:3px}.statistics-table td:nth-child(2) small{color:var(--muted)}.usage-status{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:12px;font-weight:900}.usage-status.regular{background:#dcefdc;color:#235c36}.usage-status.partial{background:#ffedbe;color:#7e530b}.usage-status.never{background:#f5d9d5;color:#8f332c}.article-statistics-table{max-height:620px}.article-statistics-table td:nth-child(n+3){text-align:right}.article-statistics-table th:nth-child(n+3){text-align:right}
@media(max-width:1000px){.statistics-kpis{grid-template-columns:repeat(2,1fr)}.statistics-usage-overview{grid-template-columns:1fr}.statistics-table-heading{align-items:stretch}.statistics-filters{width:100%}.statistics-filters input{flex:1}}
@media(max-width:620px){.statistics-header{align-items:flex-start}.statistics-kpis{grid-template-columns:1fr}.statistics-kpi{min-height:130px}.statistics-filters{display:grid}.statistics-filters input{min-width:0;width:100%}.statistics-table{max-height:none}.statistics-period{font-size:13px}}

.order-quantity-input[readonly]{cursor:pointer;background:#fff;color:var(--ink);min-height:50px;font-size:20px}.order-unit-hint{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 15px;border-radius:11px;background:#eef3e5;color:#38503d}.order-unit-hint span{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.order-unit-hint strong{text-align:right}.order-unit-value{position:relative}.order-unit-value .number-pad-value{padding-bottom:24px}.order-unit-value small{position:absolute;right:18px;bottom:10px;color:var(--muted);font-size:12px;font-weight:750}.order-total{text-align:right;padding:0 5px;color:var(--muted)}.order-total strong{color:var(--forest);font-size:21px}
.number-pad-half{min-height:52px;border:2px solid #8ca94b;border-radius:14px;background:#eef6dc;color:#29412e;font:inherit;font-size:18px;font-weight:850;cursor:pointer;touch-action:manipulation}.number-pad-half:active{transform:scale(.98);background:#dcecb8}.number-pad-half[hidden]{display:none}
@media(max-width:900px){.branch-order-entry-table{overflow:visible;background:transparent;border:0;box-shadow:none}.branch-order-entry-table table{min-width:0;display:block}.branch-order-entry-table thead{display:none}.branch-order-entry-table tbody{display:grid;gap:14px}.branch-order-entry-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow);overflow:hidden}.branch-order-entry-table td{border:0;padding:14px}.branch-order-entry-table td:nth-child(1){grid-column:1}.branch-order-entry-table td:nth-child(2){grid-column:2;font-weight:750}.branch-order-entry-table td:nth-child(3){grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:6px;padding-bottom:6px;color:var(--muted)}.branch-order-entry-table td:nth-child(3)::before{content:attr(data-label);font-size:12px;font-weight:850;color:var(--green)}.branch-order-entry-table .quantity-cell{display:grid;gap:7px;padding-top:8px}.branch-order-entry-table .quantity-cell::before{content:attr(data-label);font-size:12px;font-weight:850;color:var(--green)}.branch-order-entry-table .quantity-cell input{width:100%;min-height:64px;text-align:center;font-size:24px}.branch-order-entry-table tr[data-section="goods"] .quantity-cell{grid-column:1/-1}}

.sales-summary{position:relative;isolation:isolate;overflow:hidden;margin:0 0 30px;padding:24px;border-radius:22px;background:linear-gradient(125deg,#173d2d 0%,#245b3d 55%,#346f48 100%);color:#fff;box-shadow:0 18px 45px rgba(25,61,44,.2)}
.sales-summary::before{content:"";position:absolute;z-index:-1;width:340px;height:340px;right:-115px;top:-210px;border-radius:50%;background:radial-gradient(circle,rgba(184,220,90,.65),rgba(184,220,90,0) 68%);animation:sales-summary-glow 7s ease-in-out infinite alternate}
.sales-summary-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.sales-summary-heading .eyebrow{color:#d8f18e!important}.sales-summary-heading h2{margin:3px 0 0;font-size:25px;letter-spacing:-.025em}.sales-price-level{display:inline-flex;align-items:center;min-height:34px;padding:7px 12px;border:1px solid rgba(255,255,255,.18);border-radius:999px;background:rgba(255,255,255,.1);color:#e8f2ec;font-size:12px;font-weight:800;backdrop-filter:blur(8px)}
.sales-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.sales-value-card{position:relative;display:grid;gap:6px;min-height:136px;padding:18px;border:1px solid rgba(255,255,255,.14);border-radius:16px;background:rgba(255,255,255,.09);backdrop-filter:blur(9px);transition:transform .2s ease,background .2s ease}.sales-value-card:hover{transform:translateY(-2px);background:rgba(255,255,255,.13)}.sales-value-card>span{color:#d9e5de;font-size:12px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.sales-value-card>strong{align-self:end;font-size:clamp(27px,3vw,40px);line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-.04em}.sales-value-card>small{color:#bfcfc5;font-size:11px}.sales-value-total{border-color:rgba(216,241,142,.65);background:linear-gradient(145deg,rgba(184,220,90,.2),rgba(255,255,255,.1))}.sales-value-total>strong{color:#d8f18e}.sales-price-warning{margin:15px 2px 0;padding:10px 12px;border-radius:10px;background:rgba(255,226,158,.14);color:#ffebb9;font-size:12px}.sales-price-warning.is-hidden{display:none}
@keyframes sales-summary-glow{from{transform:translate3d(-8px,5px,0) scale(.94);opacity:.65}to{transform:translate3d(10px,-8px,0) scale(1.08);opacity:1}}
@media(max-width:760px){.sales-summary{padding:18px;border-radius:18px}.sales-summary-heading{align-items:flex-start;flex-direction:column}.sales-summary-grid{grid-template-columns:1fr}.sales-value-card{min-height:112px}.sales-value-card>strong{font-size:34px}}
@media(prefers-reduced-motion:reduce){.sales-summary::before{animation:none}.sales-value-card{transition:none}}

.autosave-status{position:fixed;right:18px;bottom:92px;z-index:8;max-width:min(360px,calc(100vw - 36px));padding:11px 15px;border-radius:100px;box-shadow:0 8px 28px rgba(22,34,27,.18);font-size:13px;font-weight:850;transition:.18s ease}.autosave-status.saved{background:#dfeedd;color:#31553a}.autosave-status.saving{background:#fff0cf;color:#744c13}.autosave-status.error{background:#9b3a2e;color:#fff;cursor:pointer}@media(max-width:600px){.autosave-status{right:12px;bottom:86px;max-width:calc(100vw - 24px)}}

.matrix-toolbar,.matrix-toolbar form,.matrix-add-article form{display:flex;align-items:end;gap:1rem;flex-wrap:wrap}.matrix-toolbar{justify-content:space-between;margin-bottom:1rem;padding:18px}.matrix-toolbar label,.matrix-add-article label{display:grid;gap:.4rem;font-weight:700}.matrix-add-article{margin-bottom:1rem;padding:18px}.penny-matrix-card{padding:0;overflow:hidden}.penny-matrix-scroll{overflow:auto;max-height:70vh}.penny-standard-matrix{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0}.penny-standard-matrix th,.penny-standard-matrix td{min-width:112px;padding:.65rem;text-align:center;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff}.penny-standard-matrix thead th{position:sticky;top:0;z-index:3;background:#eef4e8}.penny-standard-matrix th span{display:block;margin-top:.2rem;max-width:135px;font-size:.78rem;font-weight:500;line-height:1.2}.penny-standard-matrix .matrix-location{position:sticky;left:0;z-index:2;min-width:220px;text-align:left;background:#f8f7f1}.penny-standard-matrix thead .matrix-location{z-index:4;background:#e4eddc}.penny-standard-matrix input{width:78px;min-height:48px;padding:.45rem;text-align:center;font-size:1.05rem;font-weight:800}@media(max-width:800px){.penny-matrix-scroll{max-height:64vh}.penny-standard-matrix .matrix-location{min-width:180px}}

/* Inventur Handelswaren */
.mode-switch .mode-inventory.active{background:#5fc7bb;color:#173d39}.mode-switch .mode-inventory.locked{background:#52635e;color:#fff}.inventory-mode{background:#f1f8f6}.inventory-mode .branch-topbar{background:#173d39}.inventory-mode .brand-mark{background:#5fc7bb;color:#173d39}.inventory-mode .eyebrow{color:#267f75}.inventory-header{align-items:stretch}.inventory-countdown-card{display:grid;align-content:center;gap:5px;min-width:310px;padding:18px 22px;border-radius:16px;background:#173d39;color:#fff;box-shadow:var(--shadow)}.inventory-countdown-card span{font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:#a9e6df}.inventory-countdown-card strong{font-size:clamp(23px,3vw,34px);font-variant-numeric:tabular-nums}.inventory-countdown-card small{color:#d7eeeb}.inventory-countdown-card.locked{background:#8f332c}.inventory-toolbar{position:static;top:auto}.inventory-toolbar-meta{display:flex;align-items:center;justify-content:flex-end;gap:10px;white-space:nowrap}.inventory-toolbar #inventory-autosave-status{position:static;right:auto;bottom:auto;max-width:none;padding:7px 11px;box-shadow:none;font-size:12px}.inventory-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px;align-items:start}.inventory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.inventory-product{display:grid;grid-template-columns:1fr auto;gap:8px 12px;min-height:142px;padding:17px;border:2px solid #cedbd7;border-radius:16px;background:#fff;color:var(--ink);text-align:left;font:inherit;box-shadow:0 6px 20px rgba(20,61,55,.08);cursor:pointer;touch-action:manipulation}.inventory-product[hidden]{display:none}.inventory-product:active:not(:disabled){transform:scale(.98);border-color:#267f75}.inventory-product.saved{border-color:#82b9b1;background:#fbfffe}.inventory-product:disabled{cursor:default;opacity:.78}.inventory-product-number{font-size:13px;font-weight:900;color:#267f75}.inventory-product strong{grid-column:1/-1;font-size:17px;line-height:1.25}.inventory-product-quantity{align-self:end;color:var(--muted)}.inventory-product-quantity b{font-size:28px;color:#173d39}.inventory-product small{align-self:end;text-align:right;color:#267f75;font-weight:800}.inventory-actions{position:sticky;bottom:0}.inventory-history{position:sticky;top:134px;max-height:calc(100vh - 165px);padding:18px;overflow:auto}.inventory-history-head h2{margin-top:2px}.inventory-history-entry{display:grid;gap:5px;padding:13px 0;border-top:1px solid var(--line)}.inventory-history-entry strong{font-size:13px}.inventory-history-entry span{font-size:13px;color:var(--muted)}.inventory-history-entry.new{animation:inventory-flash 1.2s ease}@keyframes inventory-flash{0%{background:#bfe8e2}100%{background:transparent}}
.inventory-product.never-received{border-color:#b15a50;background:#fff5f3}.inventory-product.never-received .inventory-product-number,.inventory-product.never-received small{color:#943b32}.inventory-product-quantity i{font-style:normal}.inventory-zero-hint{margin:0;padding:12px 14px;border-radius:12px;background:#eef3e5;color:#496052;line-height:1.4}.inventory-never-button{min-height:58px;padding:12px 16px;border:2px solid #b15a50;border-radius:14px;background:#fff;color:#8f332c;font:inherit;font-size:16px;font-weight:850;cursor:pointer;touch-action:manipulation}.inventory-never-button.active{background:#9b3a2e;color:#fff}.inventory-never-button:active{transform:scale(.98)}
@media(max-width:1200px){.inventory-layout{grid-template-columns:1fr}.inventory-history{position:static;max-height:none}.inventory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.inventory-header{display:grid}.inventory-countdown-card{min-width:0}.inventory-grid{grid-template-columns:1fr}.inventory-product{min-height:128px}.inventory-toolbar{top:auto}.inventory-toolbar-meta{justify-content:space-between}.mode-switch .mode-inventory{flex:1}.inventory-history{padding:15px}}

/* GVL workflow navigation */
.review-complete-banner>div:first-child{display:grid;gap:4px}.review-complete-banner .button-row{margin-left:auto}
@media(max-width:760px){.review-complete-banner .button-row{margin-left:0}.review-complete-banner .button{width:100%}}

/* BBN-Masterimport und touchfreundliche GVL-Kontrolle */
.review-dashboard-header{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:24px}.review-dashboard-header h1{margin:3px 0 8px;font-size:clamp(36px,5vw,60px);letter-spacing:-.05em}.review-dashboard-header p{margin:0;color:var(--muted)}.review-date-panel{padding:18px;margin-bottom:28px}.review-range-form{display:flex;align-items:end;gap:12px;padding-bottom:16px;border-bottom:1px solid var(--line)}.review-range-form label{display:grid;gap:5px;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:var(--green)}.review-range-form input{min-height:48px;border:1px solid var(--line);border-radius:11px;padding:8px 12px;background:#fff;font:inherit;font-size:16px}.review-date-strip{display:flex;gap:10px;padding-top:16px;overflow-x:auto;scroll-snap-type:x proximity}.review-date-chip{scroll-snap-align:start;flex:0 0 76px;min-height:86px;display:grid;place-items:center;align-content:center;border:2px solid var(--line);border-radius:15px;background:#fff;color:var(--ink);text-decoration:none;line-height:1;transition:.16s ease}.review-date-chip small,.review-date-chip span{color:var(--muted);font-size:11px;text-transform:uppercase;font-weight:800}.review-date-chip strong{font-size:27px;margin:4px 0}.review-date-chip.active{background:var(--forest);border-color:var(--forest);color:#fff;box-shadow:0 8px 22px rgba(30,59,44,.23);transform:translateY(-2px)}.review-date-chip.active small,.review-date-chip.active span{color:#d7e4db}.review-day-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:0 0 15px}.review-day-heading h2{margin:4px 0 0;font-size:30px}.review-legend{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px}.legend-dot{width:11px;height:11px;border-radius:50%;margin-left:8px}.legend-dot.done{background:#42a561;box-shadow:0 0 0 4px rgba(66,165,97,.15)}.legend-dot.open{background:#d49a36}.review-branch-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(265px,1fr));gap:15px}.review-branch-card{position:relative;display:grid;gap:13px;min-height:205px;padding:19px;border:2px solid #e0e4e0;border-radius:18px;background:#fff;color:var(--ink);font:inherit;text-align:left;box-shadow:var(--shadow);cursor:pointer;touch-action:manipulation;transition:.16s ease}.review-branch-card:hover,.review-branch-card:focus-visible{transform:translateY(-3px);border-color:#d49a36;outline:0}.review-branch-card.imported{border-color:#e2b662}.review-branch-card.reviewed{border-color:#45a663;box-shadow:0 0 0 4px rgba(69,166,99,.13),0 12px 35px rgba(26,40,31,.08);animation:review-complete-glow 2.6s ease-in-out infinite alternate}.review-branch-card.reviewed:after{content:"✓";position:absolute;right:16px;top:16px;width:31px;height:31px;display:grid;place-items:center;border-radius:50%;background:#45a663;color:#fff;font-weight:950}.review-card-top{display:flex;align-items:center;justify-content:space-between;padding-right:36px}.review-card-top b{font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:var(--green)}.review-card-top strong{font-size:16px}.review-card-name{font-size:21px;font-weight:900;line-height:1.15}.review-card-kpis{display:grid;grid-template-columns:1fr 1fr;gap:8px}.review-card-kpis>span{display:grid;gap:4px;padding:10px 11px;border-radius:11px;background:#f1f4f1}.review-card-kpis small{font-size:10px;color:var(--muted);text-transform:uppercase;font-weight:850}.review-card-kpis b{font-size:20px;font-variant-numeric:tabular-nums}.review-card-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;color:var(--muted);font-size:11px}.review-card-meta b{color:#8b5e18}.reviewed .review-card-meta b{color:#287443}@keyframes review-complete-glow{from{box-shadow:0 0 0 3px rgba(69,166,99,.09),var(--shadow)}to{box-shadow:0 0 0 6px rgba(69,166,99,.2),0 16px 40px rgba(26,90,49,.14)}}
.review-dialog{width:min(1450px,calc(100vw - 28px));height:min(920px,calc(100vh - 28px));padding:0;border:0;border-radius:22px;background:#fff;box-shadow:0 30px 100px rgba(13,27,19,.45)}.review-dialog::backdrop{background:rgba(20,31,25,.72);backdrop-filter:blur(5px)}.review-dialog-shell{position:relative;width:100%;height:100%}.review-dialog iframe{width:100%;height:100%;border:0;border-radius:22px;background:var(--paper)}.review-dialog-close{position:absolute;z-index:3;right:13px;top:13px;width:48px;height:48px;border:0;border-radius:50%;background:#fff;color:var(--forest);font-size:31px;box-shadow:0 5px 18px rgba(0,0,0,.18);cursor:pointer}.popup-mode .topbar{display:none}.popup-mode .page-shell{width:min(1320px,94vw);padding-top:28px}.bbn-review-summary{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 24px;padding:20px 22px;border-radius:18px;background:linear-gradient(120deg,#183b2c,#2d6845);color:#fff;box-shadow:0 12px 32px rgba(26,70,47,.18)}.bbn-review-summary h2{margin:4px 0 0}.bbn-review-summary .eyebrow{color:#d9ef9b!important}.bbn-review-values{display:flex;gap:10px}.bbn-review-values span{display:grid;gap:3px;min-width:155px;padding:12px 15px;border-radius:12px;background:rgba(255,255,255,.1)}.bbn-review-values small{color:#d5e0da;font-size:10px;text-transform:uppercase;font-weight:850}.bbn-review-values strong{font-size:25px}.bbn-position-missing,.bbn-position-present,.bbn-position-empty{display:block;margin-top:5px;font-size:10px;font-weight:850}.bbn-position-missing{color:#a13a2d}.bbn-position-present{color:#2c7a42}.bbn-position-empty{color:var(--muted)}
.bbn-master-note{display:grid;gap:5px;margin-bottom:22px;padding:15px 17px;border-left:5px solid var(--lime);border-radius:11px;background:#eef4df}.bbn-master-note span{color:var(--muted);line-height:1.5}.bbn-recent-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}.bbn-recent-card{display:grid;gap:5px;padding:17px;color:var(--ink);text-decoration:none}.bbn-recent-card strong{font-size:19px}.bbn-recent-card span,.bbn-recent-card small{color:var(--muted)}
@media(max-width:760px){.review-dashboard-header,.review-day-heading,.bbn-review-summary{align-items:stretch;flex-direction:column}.review-dashboard-header{display:flex}.review-range-form{display:grid;grid-template-columns:1fr 1fr}.review-range-form .button{grid-column:1/-1;min-height:50px}.review-branch-grid{grid-template-columns:1fr}.review-branch-card{min-height:190px}.review-dialog{width:100vw;height:100vh;max-width:none;max-height:none;border-radius:0}.review-dialog iframe{border-radius:0}.bbn-review-values{display:grid;grid-template-columns:1fr 1fr}.bbn-review-values span{min-width:0}.review-legend{display:none}}
.correction-export-panel{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 24px;padding:20px 22px;border-left:7px solid var(--forest);background:linear-gradient(115deg,#fff 0%,#f1f6ed 100%)}.correction-export-panel h3{margin:3px 0 5px;font-size:23px}.correction-export-panel p{margin:0;color:var(--muted)}@media(max-width:760px){.correction-export-panel{align-items:stretch;flex-direction:column}.correction-export-panel .button{width:100%;min-height:54px}}
@media(prefers-reduced-motion:reduce){.review-branch-card.reviewed{animation:none}}
