:root{--bg:#f6f7f4;--panel:#ffffff;--text:#17201a;--muted:#5f6b62;--line:#dfe5dd;--brand:#0f766e;--brand-strong:#115e59;--danger:#b42318}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Arial,Helvetica,sans-serif;overflow-x:hidden}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.shell{display:flex;flex-direction:column;min-height:100vh}.topbar{align-items:center;background:#12352f;color:white;display:flex;gap:16px;justify-content:space-between;padding:12px clamp(16px,4vw,40px);position:-webkit-sticky;position:sticky;top:0;z-index:10}.view-switcher{margin-left:auto}.view-switcher label{color:rgba(255,255,255,.78);font-size:11px;gap:4px}.view-switcher select{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.28);color:white;min-height:36px;min-width:130px}.view-switcher option{color:var(--text)}.brand{font-size:18px;font-weight:700;letter-spacing:.2px}.nav{display:flex;flex-wrap:wrap;gap:4px}.nav a{border-bottom:2px solid transparent;color:white;opacity:.82;padding:10px 12px 8px}.nav a:hover{border-bottom-color:rgba(255,255,255,.78);opacity:1}.mobile-menu{display:none;position:relative}.mobile-menu summary{align-items:center;border:1px solid rgba(255,255,255,.28);border-radius:6px;cursor:pointer;display:inline-flex;height:38px;justify-content:center;list-style:none;width:42px}.mobile-menu summary::-webkit-details-marker{display:none}.mobile-nav{background:#12352f;border:1px solid rgba(255,255,255,.16);border-radius:8px;display:grid;grid-gap:4px;gap:4px;min-width:210px;padding:8px;position:absolute;right:0;top:46px;z-index:20}.mobile-nav a{border-radius:6px;color:white;padding:10px}.mobile-nav a:hover{background:rgba(255,255,255,.12)}.mobile-exit{justify-content:center;margin-top:8px;width:100%}.ghost{background:transparent;border:1px solid rgba(255,255,255,.28);border-radius:999px;color:white;cursor:pointer;min-height:34px;padding:6px 12px}.ghost:hover{background:rgba(255,255,255,.12)}.content{flex:1 1;margin:0;max-width:none;padding:24px clamp(16px,3vw,40px) 48px;min-width:0;overflow-x:hidden;width:100%}.app-footer{border-top:1px solid var(--line);color:var(--muted);font-size:12px;padding:14px clamp(16px,3vw,40px);text-align:center}.app-footer a:hover{color:var(--brand-strong)}.page-title{align-items:flex-end;display:flex;gap:16px;justify-content:space-between;margin-bottom:20px}h1,h2,h3{margin:0}.muted{color:var(--muted)}.grid{display:grid;grid-gap:16px;gap:16px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.panel{background:var(--panel);border:1px solid var(--line);border-radius:8px;min-width:0;overflow-x:auto;padding:16px}.form{display:grid;grid-gap:12px;gap:12px}.row{display:flex;flex-wrap:wrap;gap:10px}label{color:var(--muted);display:grid;grid-gap:6px;gap:6px;font-size:13px}input,select,textarea{background:white;border:1px solid var(--line);border-radius:6px;color:var(--text);min-height:40px;padding:8px 10px;width:100%}.button,button{align-items:center;background:var(--brand);border:0;border-radius:6px;color:white;cursor:pointer;display:inline-flex;gap:8px;justify-content:center;min-height:40px;padding:8px 12px}.button:hover,button:hover{background:var(--brand-strong)}.danger{background:var(--danger)}.table{border-collapse:collapse;min-width:720px;width:100%}.table td,.table th{border-bottom:1px solid var(--line);padding:10px 8px;text-align:left;vertical-align:top}.table th{color:var(--muted);font-size:12px;text-transform:uppercase}.quantity-input{max-width:110px}.table-actions{align-items:center;display:flex;flex-wrap:nowrap;gap:8px}.table-actions form{margin:0}.filter-submit{display:none}.admin-section{margin-top:16px}.admin-create-row{align-items:end;background:#f7faf8;border:1px solid var(--line);border-radius:8px;display:grid;grid-gap:10px;gap:10px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));margin:12px 0 14px;padding:12px}.admin-create-row button{align-self:end}.admin-edit-row,.admin-table-head{align-items:center;display:grid;grid-gap:10px;gap:10px;width:100%}.admin-table-head span{min-width:0}.admin-cols-3{grid-template-columns:minmax(220px,1fr) 100px 110px}.admin-cols-4{grid-template-columns:minmax(120px,.6fr) minmax(240px,1.4fr) 100px 110px}.admin-cols-6{grid-template-columns:minmax(160px,1fr) minmax(140px,.8fr) minmax(140px,.8fr) minmax(130px,.8fr) 100px 110px}.admin-cols-7{grid-template-columns:minmax(150px,1fr) minmax(130px,.8fr) minmax(130px,.8fr) minmax(120px,.7fr) minmax(150px,.9fr) 100px 110px}.inline-check{align-items:center;display:flex;flex-direction:row;gap:8px;width:auto}.admin-grid{margin-top:16px}.admin-compact-table{min-width:520px}.admin-section input[type=checkbox]{min-height:auto;width:auto}.report-table{table-layout:fixed;min-width:620px}.report-sheet{margin-top:16px}.report-sheet-break{margin-top:24px}.report-paper-header{align-items:start;border-bottom:2px solid var(--text);display:flex;gap:16px;justify-content:space-between;margin-bottom:14px;padding-bottom:10px}.report-paper-header h2{margin-bottom:4px}.report-paper-header p{color:var(--muted);margin:0}.report-simple-table{min-width:0;table-layout:fixed;width:100%}.report-simple-table td,.report-simple-table th{border:1px solid var(--line);padding:8px 10px}.report-simple-table th{background:#eef6f4;color:var(--text)}.report-simple-table td:last-child,.report-simple-table th:last-child{text-align:right;width:110px}.report-client-row td{background:#f7faf8;border-top:2px solid var(--brand)}.report-table td,.report-table th{overflow-wrap:anywhere}.report-columns{display:grid;grid-gap:18px;gap:18px;grid-template-columns:repeat(auto-fit,minmax(420px,1fr));margin-top:16px}.report-insights-grid{display:grid;grid-gap:16px;gap:16px;margin-top:16px;grid-template-columns:repeat(auto-fit,minmax(360px,1fr))}.report-chart-card{margin-top:16px}.report-chart-heading{margin-bottom:12px}.report-card h2,.report-chart-heading h2{margin-bottom:4px}.report-bar-row,.report-bars{display:grid;grid-gap:12px;gap:12px}.report-bar-row{align-items:center;grid-template-columns:minmax(160px,.8fr) minmax(160px,1.5fr) 72px}.report-bar-label{display:grid;grid-gap:3px;gap:3px}.report-bar-label span{color:var(--muted);font-size:12px}.report-bar-track{background:#e6ece9;border-radius:999px;height:14px;overflow:hidden}.report-bar-fill{background:var(--brand);border-radius:inherit;height:100%}.report-bar-row-total .report-bar-fill{background:var(--brand-strong)}.report-bar-value{text-align:right}.report-total-summary{margin-top:28px}.report-total-summary>p{margin-bottom:14px}.report-total-row td{background:#f3f7f5;border-top:2px solid var(--brand);padding-top:14px}.report-group{min-width:0}.report-card{min-width:0;overflow-x:auto}.report-card h3:first-child{border-bottom:1px solid var(--line);margin:-2px -2px 12px;padding:0 0 10px}.subtotal-card{background:#f3f7f5;border:1px solid var(--line);border-radius:8px;margin-top:14px;min-width:0;overflow-x:auto;padding:12px}.subtotal-card h3{margin-bottom:8px}.total-card{background:#eef6f4;margin-top:16px;min-width:0;overflow-x:auto}.total-card h2{margin-bottom:10px}.report-table td:nth-child(5),.report-table th:nth-child(5),.totals-table td:last-child{text-align:right}.login{align-items:center;display:grid;min-height:100vh;padding:20px}.login .panel{margin:auto;max-width:390px;width:100%}.return-item,.return-items{display:grid;grid-gap:10px;gap:10px}.return-item{grid-template-columns:minmax(0,1fr) 140px}.product-code-field{display:grid;grid-gap:8px;gap:8px;min-width:0}.customer-big-input,.product-code-input,.quantity-big-input{font-size:26px;font-weight:700;letter-spacing:0;min-height:56px}.customer-big-input{font-size:20px}.customer-search-field{display:grid;grid-gap:8px;gap:8px}.product-code-input{text-transform:uppercase}.product-match{background:#fff7ed;border:1px solid #fed7aa;border-radius:6px;color:#9a3412;font-size:13px;padding:8px 10px}.product-match-ok{background:#eef6f4;border-color:var(--line);color:var(--brand-strong);font-weight:700}.product-suggestions{display:grid;grid-gap:6px;gap:6px}.product-suggestions button{align-items:center;background:#f7faf8;border:1px solid var(--line);color:var(--text);display:grid;grid-gap:2px;gap:2px;justify-items:start;min-height:46px;text-align:left}.product-suggestions span{color:var(--muted);font-size:12px}@media print{@page{margin:10mm;size:A4 portrait}.app-footer,.button,.no-print,.topbar,.view-switcher,button{display:none!important}body{background:white}.content{max-width:none;padding:0}.panel{border:0;padding:0}.report-sheet{break-inside:auto;page-break-inside:auto}.report-sheet-break{break-before:page;page-break-before:always}.report-paper-header{margin-bottom:5mm}.report-simple-table{min-width:0}.report-card{border:1px solid #cfd6d1;padding:6mm}h1,h2,h3{page-break-after:avoid;break-after:avoid}.report-group,.report-total-title,table,tr{break-inside:avoid;page-break-inside:avoid}thead{display:table-header-group}tfoot{display:table-footer-group}.table td,.table th{font-size:9px;padding:4px 3px}.report-columns{gap:8mm;grid-template-columns:1fr 1fr}.report-table td:first-child,.report-table th:first-child{width:17%}.report-table td:nth-child(2),.report-table td:nth-child(4),.report-table th:nth-child(2),.report-table th:nth-child(4){width:23%}.report-table td:nth-child(5),.report-table th:nth-child(5){width:10%}}@media (max-width:640px){.topbar{align-items:center;flex-direction:row;gap:10px}.brand{flex:0 0 auto}.view-switcher{flex:1 1;margin-left:0;min-width:0}.view-switcher select{min-width:0;width:100%}.desktop-exit,.desktop-nav{display:none}.mobile-menu{display:block}.page-title{align-items:stretch;flex-direction:column}.return-item{grid-template-columns:1fr}.panel{padding:12px}.table td,.table th{font-size:12px;padding:8px 6px}.table-actions{flex-wrap:nowrap}.report-columns,.report-insights-grid{grid-template-columns:minmax(0,1fr)}.report-bar-row{align-items:stretch;grid-template-columns:1fr}.report-bar-value{text-align:left}.report-card{min-width:0}.admin-cols-3,.admin-cols-4,.admin-cols-6,.admin-cols-7,.admin-edit-row{grid-template-columns:1fr}.table{display:block;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;width:100%;-webkit-overflow-scrolling:touch;white-space:nowrap}.table tbody,.table tfoot,.table thead{display:table;min-width:720px;width:720px}.report-table tbody,.report-table tfoot,.report-table thead{min-width:620px;width:620px}.table td,.table th{white-space:normal}}