:root{--bg:#f5f7fb;--panel:#fff;--text:#172033;--muted:#64748b;--line:#e5e7eb;--primary:#2563eb;--primary2:#0f766e;--danger:#dc2626;--warn:#b45309;--radius:8px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,Segoe UI,Arial,sans-serif}a{text-decoration:none;color:inherit}.app-shell{display:flex;min-height:100vh}.sidebar{width:268px;background:#111827;color:#d1d5db;padding:18px 14px;position:sticky;top:0;height:100vh;overflow-y:auto}.brand{display:flex;align-items:center;gap:10px;color:#fff;font-weight:700;font-size:18px;margin:4px 8px 22px}.brand-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:8px;background:linear-gradient(135deg,#2563eb,#0f766e);color:#fff}.side-menu{display:grid;gap:6px}.menu-link,.menu-toggle,.submenu-link{display:flex;align-items:center;gap:10px;width:100%;border-radius:8px;font-weight:600}.menu-link,.menu-toggle{padding:11px 12px}.menu-toggle{justify-content:space-between;background:transparent;color:#d1d5db;border:0;text-align:left}.menu-toggle-label{display:flex;align-items:center;gap:10px}.menu-link:hover,.menu-link.active,.menu-toggle:hover,.menu-group.open>.menu-toggle{background:#1f2937;color:#fff}.menu-chevron{font-size:18px;line-height:1;transition:transform .18s ease}.menu-group.open .menu-chevron{transform:rotate(90deg)}.submenu{display:none;margin:5px 0 3px 14px;padding:4px 0 4px 12px;border-left:1px solid #374151}.menu-group.open .submenu{display:grid;gap:4px}.submenu-link{padding:9px 10px;color:#9ca3af;font-size:14px}.submenu-link:hover,.submenu-link.active{background:#0f172a;color:#fff}.submenu-link i{font-size:15px}.main{flex:1;min-width:0;display:flex;flex-direction:column}.topbar{height:72px;background:var(--panel);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:16px;justify-content:space-between;padding:0 24px;position:sticky;top:0;z-index:5}.topbar small{display:block;color:var(--muted);font-size:12px;margin-top:3px}.content{padding:24px;flex:1}.footer{padding:18px 24px;color:var(--muted);font-size:13px;border-top:1px solid var(--line)}.nav-toggle{display:none}.grid{display:grid;gap:16px}.grid.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:18px}.metric{display:flex;align-items:center;justify-content:space-between}.metric b{font-size:28px}.metric span{color:var(--muted);font-size:13px}.toolbar{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-bottom:14px}.btn,button{border:0;border-radius:8px;padding:10px 14px;background:var(--primary);color:#fff;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;gap:7px}.btn.secondary{background:var(--primary2)}.btn.danger{background:var(--danger)}.btn.ghost{background:#eef2ff;color:#1e3a8a}.btn.light{background:#f1f5f9;color:#334155}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:8px;background:#fff}table{border-collapse:collapse;width:100%;min-width:720px}th,td{text-align:left;border-bottom:1px solid var(--line);padding:12px 14px;vertical-align:top}th{background:#f8fafc;color:#475569;font-size:13px}tr:last-child td{border-bottom:0}.form{display:grid;gap:14px;max-width:860px}.form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}label{display:grid;gap:6px;font-weight:700;font-size:13px;color:#334155}input,select,textarea{width:100%;border:1px solid #cbd5e1;border-radius:8px;padding:10px 12px;background:#fff;color:#111827}textarea{min-height:120px;resize:vertical}.actions{display:flex;gap:8px;flex-wrap:wrap}.alert{padding:12px 14px;border-radius:8px;margin-bottom:16px;background:#ecfdf5;color:#065f46;border:1px solid #bbf7d0}.alert.warning{background:#fffbeb;color:#92400e;border-color:#fde68a}.alert.error{background:#fef2f2;color:#991b1b;border-color:#fecaca}.badge{display:inline-flex;padding:4px 8px;border-radius:999px;background:#e0f2fe;color:#075985;font-size:12px;font-weight:700}.login-page{background:linear-gradient(145deg,#0f172a,#1e293b 58%,#0f766e);min-height:100vh;display:grid;place-items:center;padding:20px}.login-shell{width:min(420px,100%)}.login-card{background:#fff;border-radius:12px;padding:28px;box-shadow:0 24px 60px rgba(2,6,23,.28)}.login-card h1{margin:0 0 6px;font-size:28px}.login-card p{margin:0 0 22px;color:var(--muted)}.login-card .form{gap:16px}.wa-list{display:grid;gap:8px}.muted{color:var(--muted)}
@media (max-width:960px){.grid.cols-4,.grid.cols-2,.form-row{grid-template-columns:1fr}.sidebar{position:fixed;left:-280px;transition:.2s;z-index:20}.sidebar.open{left:0}.nav-toggle{display:inline-flex;background:#f1f5f9;color:#111827}.topbar{padding:0 14px}.content{padding:16px}.app-shell{display:block}.main{min-height:100vh}}
.product-detail{display:grid;grid-template-columns:minmax(220px,340px) minmax(0,1fr);gap:16px}.product-photo-card{display:grid;gap:12px;align-content:start}.product-detail-photo{width:100%;max-height:420px;object-fit:contain;border-radius:8px;border:1px solid var(--line);background:#f8fafc}.empty-photo{display:grid;place-items:center;min-height:240px;border:1px dashed #cbd5e1;border-radius:8px;color:var(--muted);background:#f8fafc}.detail-list{display:grid;gap:10px}.detail-list div{display:grid;grid-template-columns:minmax(120px,180px) minmax(0,1fr);gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}.detail-list div:last-child{border-bottom:0}.detail-list span{color:var(--muted);font-size:13px}.detail-list strong{font-weight:700;word-break:break-word}
@media (max-width:720px){.toolbar{align-items:flex-start;flex-direction:column}.product-detail{grid-template-columns:1fr}.detail-list div{grid-template-columns:1fr;gap:3px}.product-detail-photo{max-height:320px}}

.transfer-items{display:grid;gap:10px;margin:10px 0}.transfer-item-row{display:grid;grid-template-columns:minmax(220px,1fr) minmax(90px,130px) minmax(160px,1fr);gap:10px;align-items:end;padding:12px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}
@media (max-width:720px){.transfer-item-row{grid-template-columns:1fr}}

.submenu-group{display:grid;gap:4px}.submenu-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;border:0;border-radius:8px;padding:9px 10px;background:transparent;color:#9ca3af;font-weight:700;text-align:left}.submenu-toggle-label{display:flex;align-items:center;gap:10px;min-width:0}.submenu-toggle-label span,.submenu-link span{min-width:0;overflow-wrap:anywhere}.submenu-toggle:hover,.submenu-group.open>.submenu-toggle{background:#0f172a;color:#fff}.submenu-group.open>.submenu-toggle .menu-chevron{transform:rotate(90deg)}.nested-submenu{display:none;margin:3px 0 3px 18px;padding:4px 0 4px 10px;border-left:1px solid #334155}.submenu-group.open .nested-submenu{display:grid;gap:4px}.submenu-link.nested{font-size:13px;padding:8px 10px}

.master-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:16px}.master-header h2{margin:0 0 6px}.master-header p{margin:0}.master-form{max-width:none;margin-bottom:16px}.master-form h3,.master-list h2{margin:0}.master-list .toolbar{align-items:flex-start}.actions form{margin:0}button.danger{background:var(--danger)}@media (max-width:720px){.master-header{flex-direction:column}.master-header .btn{width:100%;justify-content:center}.actions{align-items:stretch}.actions .btn,.actions button{justify-content:center}}

.product-form{max-width:none}.form-section{display:grid;gap:12px;padding-bottom:16px;border-bottom:1px solid var(--line)}.form-section:last-of-type{border-bottom:0}.form-section h3{margin:0;font-size:15px}.product-form-grid{display:grid;gap:14px}.product-form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.product-form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.product-form-grid.four{grid-template-columns:repeat(4,minmax(160px,1fr))}.product-form-grid.five{grid-template-columns:repeat(5,minmax(130px,1fr))}.product-form-grid .span-2{grid-column:span 2}.sticky-actions{position:sticky;bottom:0;background:linear-gradient(180deg,rgba(255,255,255,.86),#fff);padding-top:12px}.import-layout{display:grid;grid-template-columns:minmax(280px,.9fr) minmax(320px,1.1fr);gap:16px;margin-bottom:16px}.import-card{min-width:0}.mini-table table{min-width:760px}@media (max-width:1180px){.product-form-grid.four,.product-form-grid.five{grid-template-columns:repeat(2,minmax(0,1fr))}.product-form-grid .span-2{grid-column:span 2}.import-layout{grid-template-columns:1fr}}@media (max-width:720px){.product-form-grid.two,.product-form-grid.three,.product-form-grid.four,.product-form-grid.five{grid-template-columns:1fr}.product-form-grid .span-2{grid-column:auto}.sticky-actions{position:static}.import-layout{grid-template-columns:1fr}.master-header .actions{width:100%}.master-header .actions .btn{flex:1;justify-content:center}}

.transfer-form{max-width:none}.transfer-form-grid{display:grid;gap:14px}.transfer-form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.section-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.section-title-row h3,.section-title-row p{margin:0}.transfer-items{display:grid;gap:10px;margin:0}.transfer-item-row{display:grid;grid-template-columns:minmax(260px,1.6fr) minmax(90px,.35fr) minmax(180px,1fr) auto;gap:10px;align-items:end;padding:12px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}.transfer-product-field{min-width:0}.transfer-remove-btn{height:42px;align-self:end}.transfer-remove-btn:disabled{opacity:.45;cursor:not-allowed}@media (max-width:1080px){.transfer-item-row{grid-template-columns:minmax(220px,1fr) minmax(90px,130px);}.transfer-item-row label:nth-child(3){grid-column:1 / -1}.transfer-remove-btn{grid-column:1 / -1;justify-content:center}}@media (max-width:720px){.transfer-form-grid.two{grid-template-columns:1fr}.section-title-row{flex-direction:column}.section-title-row .btn{width:100%;justify-content:center}.transfer-item-row{grid-template-columns:1fr}.transfer-item-row label:nth-child(3),.transfer-remove-btn{grid-column:auto}}

.customer-form{max-width:none}.customer-form-grid{display:grid;gap:14px}.customer-form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-form-grid.three{grid-template-columns:minmax(220px,1.2fr) minmax(80px,.35fr) minmax(220px,1.2fr)}.customer-list-card{padding:16px}.customer-table{min-width:1280px}.customer-address{min-width:320px;max-width:520px;white-space:normal}.customer-coordinate{margin-top:6px;font-size:12px}.customer-table-wrap{max-height:calc(100vh - 220px)}@media (max-width:900px){.customer-form-grid.two,.customer-form-grid.three{grid-template-columns:1fr}.customer-table-wrap{max-height:none}}

.sale-form{max-width:none}.sale-form-grid{display:grid;gap:14px}.sale-form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.sale-form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.select-search{margin-bottom:6px}.sale-items{display:grid;gap:10px}.sale-item-row{display:grid;grid-template-columns:minmax(260px,1.5fr) minmax(80px,.35fr) minmax(130px,.6fr) minmax(130px,.6fr) minmax(160px,.8fr) auto;gap:10px;align-items:end;padding:12px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}.sale-product-field{min-width:0}.sale-remove-btn{height:42px}.sale-remove-btn:disabled{opacity:.45;cursor:not-allowed}.sale-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.sale-summary div{padding:14px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}.sale-summary span{display:block;color:var(--muted);font-size:12px;margin-bottom:5px}.sale-summary strong{font-size:18px}@media (max-width:1280px){.sale-item-row{grid-template-columns:minmax(220px,1fr) minmax(80px,120px) minmax(130px,1fr);}.sale-remove-btn,.sale-item-row label:nth-child(5){grid-column:1 / -1;justify-content:center}}@media (max-width:820px){.sale-form-grid.two,.sale-form-grid.three,.sale-summary{grid-template-columns:1fr}.sale-item-row{grid-template-columns:1fr}.sale-remove-btn,.sale-item-row label:nth-child(5){grid-column:auto}}

.searchable-select{position:relative}.searchable-select select{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}.select-search{margin-bottom:0}.select-search-results{position:absolute;left:0;right:0;top:100%;z-index:30;max-height:240px;overflow:auto;margin-top:6px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 16px 36px rgba(15,23,42,.14);padding:6px}.select-search-option{display:block;width:100%;padding:9px 10px;border-radius:6px;background:#fff;color:var(--text);text-align:left;font-weight:600}.select-search-option:hover,.select-search-option:focus{background:#eef2ff;color:#1e3a8a}.select-search-empty{padding:10px;color:var(--muted);font-size:13px}.sale-item-row{overflow:visible}.form-section{overflow:visible}

.customer-form-grid.three-equal{grid-template-columns:repeat(3,minmax(0,1fr))}.cooperative-list{display:grid;gap:14px}.cooperative-card{display:grid;gap:14px;padding:14px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}.cooperative-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.copy-checks{display:flex;gap:10px;flex-wrap:wrap}.copy-checks label{display:flex;align-items:center;gap:6px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#fff}.copy-checks input{width:auto}.cooperative-card input[readonly]{background:#eef2ff;color:#475569}@media (max-width:900px){.customer-form-grid.three-equal{grid-template-columns:1fr}.cooperative-card-head{align-items:flex-start;flex-direction:column}.cooperative-card-head .btn{width:100%;justify-content:center}.copy-checks{display:grid}}

.customer-section-label{display:inline-flex;width:max-content;padding:4px 9px;border-radius:999px;background:#e0f2fe;color:#075985;font-size:12px;font-weight:800;letter-spacing:0;text-transform:uppercase}.customer-form>.form-section{padding:18px;border:1px solid var(--line);border-radius:8px;background:#fff}.customer-form>.form-section+.form-section{margin-top:2px}.cooperative-card{background:#fff;border:1px solid #cbd5e1;border-left:4px solid var(--primary);box-shadow:0 8px 22px rgba(15,23,42,.05)}.cooperative-card-head{padding-bottom:10px;border-bottom:1px solid var(--line)}.cooperative-card-head strong{font-size:15px}.cooperative-card-head .btn:disabled{opacity:.45;cursor:not-allowed}.customer-form-grid.three{grid-template-columns:minmax(90px,.35fr) minmax(220px,1.2fr) minmax(220px,1fr)}@media (max-width:1100px){.customer-form-grid.three,.customer-form-grid.three-equal{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:720px){.customer-form>.form-section{padding:14px}.customer-form-grid.two,.customer-form-grid.three,.customer-form-grid.three-equal{grid-template-columns:1fr}.cooperative-card{padding:12px}.customer-section-label{width:100%;justify-content:center}.sticky-actions{gap:8px}.sticky-actions .btn,.sticky-actions button{flex:1;justify-content:center}}

.customer-list-grid{display:grid;gap:16px}.customer-list-item{display:grid;gap:14px}.customer-list-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.customer-list-head h3{margin:8px 0 6px}.customer-meta{display:flex;gap:10px;flex-wrap:wrap;color:var(--muted);font-size:13px}.customer-meta a{color:#1e40af;font-weight:700}.customer-list-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.customer-list-summary div{padding:12px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}.customer-list-summary span,.customer-coop-grid span{display:block;color:var(--muted);font-size:12px;margin-bottom:4px}.customer-list-summary strong,.customer-coop-grid strong{word-break:break-word}.customer-coop-list{display:grid;gap:10px}.customer-coop-title{display:flex;align-items:center;gap:10px}.customer-coop-item{display:grid;gap:10px;padding:12px;border:1px solid #cbd5e1;border-left:4px solid var(--primary);border-radius:8px;background:#fff}.customer-coop-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.customer-coop-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.customer-coop-grid>div{padding:10px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}.customer-coop-address{grid-column:span 2}.customer-coop-grid a{color:#1e40af;font-weight:700;word-break:break-word}@media (max-width:1080px){.customer-coop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-coop-address{grid-column:span 2}}@media (max-width:720px){.customer-list-head{flex-direction:column}.customer-list-head .actions{width:100%}.customer-list-head .actions .btn,.customer-list-head .actions button{flex:1;justify-content:center}.customer-list-summary,.customer-coop-grid{grid-template-columns:1fr}.customer-coop-address{grid-column:auto}.customer-coop-head{align-items:flex-start;flex-direction:column}}

.delivery-form{max-width:none}.delivery-form-grid{display:grid;gap:14px}.delivery-form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.delivery-form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.delivery-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}.delivery-summary div{padding:14px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}.delivery-summary span{display:block;color:var(--muted);font-size:12px;margin-bottom:5px}.delivery-summary strong{display:block;font-size:15px;line-height:1.35}@media (max-width:900px){.delivery-form-grid.two,.delivery-form-grid.three,.delivery-summary{grid-template-columns:1fr}.toolbar{align-items:flex-start;flex-direction:column}.toolbar .actions{width:100%;justify-content:flex-start;flex-wrap:wrap}}

/* Red White Kopdes Theme */
:root{--bg:#fff5f5;--panel:#fff;--text:#1f2937;--muted:#64748b;--line:#fee2e2;--primary:#dc2626;--primary2:#b91c1c;--danger:#991b1b;--warn:#b45309;--radius:8px}
body{background:linear-gradient(180deg,#fff7f7 0,#fff 42%,#fff5f5 100%);color:var(--text)}
.sidebar{background:#fff;color:#475569;border-right:1px solid #fecaca;box-shadow:10px 0 30px rgba(153,27,27,.08)}
.brand{color:#991b1b;margin-bottom:24px;align-items:center}
.brand-mark{width:44px;height:44px;border-radius:8px;background:#fff;border:1px solid #fecaca;box-shadow:0 10px 26px rgba(220,38,38,.12);overflow:hidden}
.brand-logo{width:100%;height:100%;object-fit:contain;padding:4px;display:block}
.menu-link,.menu-toggle{color:#475569}
.menu-link:hover,.menu-link.active,.menu-toggle:hover,.menu-group.open>.menu-toggle{background:#fee2e2;color:#991b1b}
.submenu{border-left-color:#fecaca}
.submenu-link,.submenu-toggle{color:#64748b}
.submenu-link:hover,.submenu-link.active,.submenu-toggle:hover,.submenu-group.open>.submenu-toggle{background:#fff1f2;color:#991b1b}
.nested-submenu{border-left-color:#fecaca}
.topbar{background:rgba(255,255,255,.94);border-bottom-color:#fecaca;box-shadow:0 10px 30px rgba(153,27,27,.07);backdrop-filter:blur(10px)}
.content{background:linear-gradient(180deg,rgba(255,245,245,.82),rgba(255,255,255,.62))}
.footer{border-top-color:#fecaca;background:#fff;color:#991b1b}
.card,.table-wrap,.login-card{border-color:#fecaca;box-shadow:0 12px 28px rgba(153,27,27,.06)}
.card{background:#fff}
th{background:#fff1f2;color:#7f1d1d}
td{border-bottom-color:#fee2e2}
input,select,textarea{border-color:#fecaca}
input:focus,select:focus,textarea:focus{outline:2px solid rgba(220,38,38,.16);border-color:#ef4444}
.btn,button{background:var(--primary)}
.btn:hover,button:hover{filter:brightness(.97)}
.btn.secondary{background:#b91c1c}
.btn.ghost,.btn.light,.nav-toggle{background:#fff1f2;color:#991b1b}
.btn.danger,button.danger{background:#991b1b}
.badge{background:#fee2e2;color:#991b1b}
.alert{background:#fff7ed;color:#9a3412;border-color:#fed7aa}
.alert.error{background:#fef2f2;color:#991b1b;border-color:#fecaca}
.alert.warning{background:#fffbeb;color:#92400e;border-color:#fde68a}
.metric b,.master-header h2,.toolbar h2{color:#991b1b}
.form-section,.cooperative-card-head{border-bottom-color:#fee2e2}
.product-detail-photo,.empty-photo,.sale-item-row,.transfer-item-row,.customer-list-summary div,.customer-coop-grid>div,.delivery-summary div,.sale-summary div{background:#fff7f7;border-color:#fecaca}
.cooperative-card,.customer-coop-item{border-left-color:#dc2626;border-color:#fecaca}
.customer-section-label{background:#fee2e2;color:#991b1b}
.select-search-results{border-color:#fecaca;box-shadow:0 16px 36px rgba(153,27,27,.16)}
.select-search-option:hover,.select-search-option:focus{background:#fee2e2;color:#991b1b}
.login-page{background:radial-gradient(circle at top left,rgba(255,255,255,.92),rgba(255,255,255,0) 30%),linear-gradient(145deg,#991b1b,#dc2626 56%,#fff 56%,#fff5f5)}
@media (max-width:960px){.sidebar{box-shadow:18px 0 38px rgba(153,27,27,.16)}.topbar{height:auto;min-height:68px;align-items:center}.topbar>div{min-width:0}.topbar strong,.topbar small{overflow-wrap:anywhere}.nav-toggle{padding:9px 12px}.content{padding:14px}}
@media (max-width:520px){.brand{font-size:16px}.brand-mark{width:40px;height:40px}.topbar{gap:10px;padding:10px 12px}.topbar form .btn{padding:9px 11px}.content{padding:12px}.card{padding:14px}.toolbar .actions,.master-header .actions{width:100%}.toolbar .actions .btn,.toolbar .actions button{flex:1;justify-content:center}}
/* Header Footer Login Polish */
.app-header{height:64px;padding:0 22px}
.page-title{display:flex;align-items:center;min-width:0}
.page-title strong{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;color:#7f1d1d}
.logout-form{margin:0;flex-shrink:0}
.logout-form .btn{min-height:40px}
.footer{display:flex;align-items:center;justify-content:center;min-height:52px;padding:14px 18px;font-weight:700;letter-spacing:0;color:#7f1d1d}
.login-page{padding:22px;background:linear-gradient(135deg,#fff 0,#fff7f7 44%,#fee2e2 44%,#dc2626 100%)}
.login-shell{width:min(440px,100%)}
.login-card{padding:26px;border-radius:8px;border:1px solid #fecaca;background:rgba(255,255,255,.96);box-shadow:0 24px 54px rgba(127,29,29,.16)}
.login-brand{display:flex;align-items:center;gap:14px;margin-bottom:22px}
.login-brand img{width:56px;height:56px;object-fit:contain;border:1px solid #fecaca;border-radius:8px;background:#fff;padding:5px;box-shadow:0 10px 24px rgba(220,38,38,.12)}
.login-brand h1{margin:0 0 4px;font-size:22px;line-height:1.2;color:#7f1d1d}
.login-brand p{margin:0;color:#64748b;font-size:13px}
.login-form{gap:14px}
.login-form label{color:#334155}
.login-form input{height:44px}
.login-form button{height:46px;justify-content:center;font-size:15px}
.captcha-question{display:inline-flex;width:max-content;max-width:100%;padding:7px 10px;border-radius:8px;background:#fff1f2;color:#991b1b;font-weight:700}
@media (max-width:960px){.app-header{height:62px;padding:0 14px}.page-title strong{font-size:15px}.logout-form .btn{padding:9px 11px}.footer{min-height:48px;font-size:13px}.nav-toggle span{display:inline}}
@media (max-width:560px){.app-header{gap:8px}.nav-toggle{min-width:42px;justify-content:center}.nav-toggle span,.logout-form .btn span{display:none}.page-title{flex:1}.page-title strong{font-size:14px}.login-page{padding:14px;background:linear-gradient(180deg,#fff 0,#fff7f7 48%,#fee2e2 100%)}.login-card{padding:20px}.login-brand{align-items:flex-start;gap:12px}.login-brand img{width:48px;height:48px}.login-brand h1{font-size:19px}.login-form input,.login-form button{height:44px}}
.table-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;min-width:220px}.table-actions form{margin:0}.table-actions .btn,.table-actions button{white-space:nowrap}.delivery-hint{display:grid;gap:5px;align-content:center;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fff7f7;color:#64748b}.delivery-hint strong{color:#7f1d1d}.delivery-form-grid .span-3{grid-column:1 / -1}.status-persiapan{background:#ffedd5;color:#9a3412}.status-dikirim{background:#dbeafe;color:#1d4ed8}.status-terkirim{background:#dcfce7;color:#166534}.status-draft{background:#f1f5f9;color:#475569}@media (max-width:720px){.table-actions{min-width:0}.table-actions .btn,.table-actions button{flex:1;justify-content:center}.sales-table-wrap table{min-width:980px}.delivery-form-grid .span-3{grid-column:auto}}
/* Deliveries Table Polish */
.delivery-list-card h2{margin-top:0}.deliveries-table{min-width:1040px}.deliveries-table th,.deliveries-table td{padding:12px;vertical-align:middle}.deliveries-table th:nth-child(1){width:150px}.deliveries-table th:nth-child(2){width:240px}.deliveries-table th:nth-child(3){width:210px}.deliveries-table th:nth-child(4){width:170px}.deliveries-table th:nth-child(5){width:260px}.deliveries-table th:nth-child(6){width:140px}.cell-stack{display:grid;gap:4px;min-width:0}.cell-stack strong{font-size:13px;line-height:1.35;word-break:break-word}.cell-stack span{font-size:12px;color:var(--muted);line-height:1.35;word-break:break-word}.cell-stack .badge{width:max-content;color:inherit}.table-actions.compact{min-width:0;gap:6px;align-items:flex-start}.table-actions.compact .btn,.table-actions.compact button{padding:8px 10px;font-size:12px}
@media (max-width:820px){.deliveries-table-wrap{border:0;background:transparent;overflow:visible}.deliveries-table{min-width:0;border-collapse:separate;border-spacing:0 10px}.deliveries-table thead{display:none}.deliveries-table,.deliveries-table tbody,.deliveries-table tr,.deliveries-table td{display:block;width:100%}.deliveries-table tr{border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 10px 24px rgba(153,27,27,.06);overflow:hidden}.deliveries-table td{display:grid;grid-template-columns:120px minmax(0,1fr);gap:10px;padding:10px 12px;border-bottom:1px solid var(--line)}.deliveries-table td:last-child{border-bottom:0}.deliveries-table td::before{font-size:12px;font-weight:800;color:#7f1d1d}.deliveries-table td:nth-child(1)::before{content:"Delivery"}.deliveries-table td:nth-child(2)::before{content:"Customer / Sale"}.deliveries-table td:nth-child(3)::before{content:"Pengirim"}.deliveries-table td:nth-child(4)::before{content:"Waktu & Status"}.deliveries-table td:nth-child(5)::before{content:"Dokumen"}.deliveries-table td:nth-child(6)::before{content:"Aksi"}.table-actions.compact{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.table-actions.compact .btn,.table-actions.compact button{width:100%;justify-content:center}.table-actions.compact form{width:100%}}
@media (max-width:440px){.deliveries-table td{grid-template-columns:1fr;gap:5px}.deliveries-table td::before{margin-bottom:2px}.table-actions.compact{grid-template-columns:1fr}}
/* Deliveries Requested Columns */
.deliveries-table{min-width:1180px}.deliveries-table th,.deliveries-table td{padding:11px 12px}.deliveries-table th:nth-child(1){width:58px}.deliveries-table th:nth-child(2){width:155px}.deliveries-table th:nth-child(3){width:125px}.deliveries-table th:nth-child(4){width:245px}.deliveries-table th:nth-child(5){width:205px}.deliveries-table th:nth-child(6){width:165px}.deliveries-table th:nth-child(7){width:230px}.deliveries-table th:nth-child(8){width:135px}.deliveries-table td:first-child strong{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:999px;background:#fff1f2;color:#991b1b}
@media (max-width:820px){.deliveries-table td:nth-child(1)::before{content:"No Urut"}.deliveries-table td:nth-child(2)::before{content:"Deliveries / DO No."}.deliveries-table td:nth-child(3)::before{content:"Sale No."}.deliveries-table td:nth-child(4)::before{content:"Customer + Koperasi"}.deliveries-table td:nth-child(5)::before{content:"Nama Pengirim"}.deliveries-table td:nth-child(6)::before{content:"Waktu & Status"}.deliveries-table td:nth-child(7)::before{content:"Document"}.deliveries-table td:nth-child(8)::before{content:"Aksi"}}
/* Broadcast Tree */
.broadcast-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:16px}.broadcast-form{max-width:none}.broadcast-sender{display:grid;gap:4px;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fff7f7}.broadcast-sender span{color:var(--muted);font-size:13px}.broadcast-tree{display:grid;gap:10px;max-height:560px;overflow:auto;padding-right:4px}.broadcast-node{border:1px solid var(--line);border-radius:8px;background:#fff}.broadcast-node summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;cursor:pointer}.broadcast-node summary span{color:var(--muted);font-size:12px}.broadcast-coop{display:grid;gap:10px;margin:0 12px 12px;padding:12px;border:1px solid #fecaca;border-radius:8px;background:#fff7f7}.broadcast-coop>div:first-child{display:grid;gap:3px}.broadcast-coop>div:first-child span{color:var(--muted);font-size:12px}.broadcast-targets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.broadcast-check{display:flex;align-items:flex-start;gap:8px;padding:9px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:12px}.broadcast-check input{width:auto;margin-top:2px}.broadcast-check span{display:grid;gap:2px}.broadcast-check small{color:var(--muted)}@media (max-width:1100px){.broadcast-layout{grid-template-columns:1fr}.broadcast-targets{grid-template-columns:1fr 1fr}}@media (max-width:640px){.broadcast-targets{grid-template-columns:1fr}.broadcast-node summary{align-items:flex-start;flex-direction:column}.broadcast-tree{max-height:none}}
.inline-wa-form{display:grid;grid-template-columns:minmax(150px,1fr) auto;gap:8px;align-items:center}.inline-wa-form input{min-width:150px}.inline-wa-form .btn{padding:9px 10px}@media (max-width:720px){.inline-wa-form{grid-template-columns:1fr}.inline-wa-form .btn{justify-content:center}}

/* Dashboard Operational View */
.dashboard-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,320px);gap:22px;align-items:stretch;background:linear-gradient(135deg,#fff 0,#fff7f7 45%,#fee2e2 100%);overflow:hidden;position:relative}.dashboard-hero:before{content:"";position:absolute;right:-70px;top:-90px;width:220px;height:220px;border:34px solid rgba(220,38,38,.08);border-radius:999px}.dashboard-hero>*{position:relative}.dashboard-kicker{display:inline-flex;padding:6px 10px;border-radius:999px;background:#fee2e2;color:#991b1b;font-size:12px;font-weight:800;margin-bottom:12px}.dashboard-hero h1{margin:0;max-width:760px;font-size:clamp(24px,3vw,42px);line-height:1.08;color:#7f1d1d;letter-spacing:0}.dashboard-hero p{max-width:680px;margin:12px 0 0;color:#64748b;line-height:1.6}.dashboard-hero-panel{display:grid;gap:8px;align-content:center;padding:18px;border:1px solid #fecaca;border-radius:8px;background:rgba(255,255,255,.74);box-shadow:0 16px 34px rgba(153,27,27,.08)}.dashboard-hero-panel span,.dashboard-hero-panel small{color:#64748b}.dashboard-hero-panel strong{font-size:38px;color:#991b1b;line-height:1}.dashboard-hero-panel .btn{justify-content:center;margin-top:8px}.dashboard-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px;margin-top:16px}.dashboard-metric-card{display:flex;gap:12px;align-items:center;min-height:126px;color:inherit;transition:transform .16s ease,box-shadow .16s ease}.dashboard-metric-card:hover{transform:translateY(-2px);box-shadow:0 18px 34px rgba(153,27,27,.1)}.metric-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:8px;background:#fee2e2;color:#991b1b}.metric-icon i{font-size:20px}.dashboard-metric-card div{display:grid;gap:4px;min-width:0}.dashboard-metric-card span:not(.metric-icon){color:#64748b;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:0}.dashboard-metric-card strong{font-size:28px;line-height:1.05;color:#7f1d1d;word-break:break-word}.dashboard-metric-card small{color:#64748b}.dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}.dashboard-grid-wide{grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr)}.dashboard-panel{min-width:0}.dashboard-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}.dashboard-panel-head h2{margin:0 0 4px;font-size:18px;color:#7f1d1d}.dashboard-panel-head p{margin:0;color:#64748b}.dashboard-panel-head a{color:#991b1b;font-weight:800;white-space:nowrap}.dashboard-progress-stack{display:grid;gap:14px}.dashboard-progress-row{display:grid;gap:7px}.dashboard-progress-row>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px}.dashboard-progress-row span{color:#64748b;font-weight:700}.dashboard-progress-row strong{color:#7f1d1d}.dashboard-progress{height:10px;border-radius:999px;background:#fff1f2;overflow:hidden}.dashboard-progress span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#dc2626,#991b1b)}.dashboard-status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.dashboard-status-grid div{display:grid;gap:8px;padding:14px;border:1px solid #fecaca;border-radius:8px;background:#fff7f7}.dashboard-status-grid strong{font-size:30px;color:#7f1d1d;line-height:1}.dashboard-status-grid small{color:#64748b}.dashboard-list{display:grid;gap:10px}.dashboard-list-item{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px;border:1px solid #fee2e2;border-radius:8px;background:#fff;color:inherit}.dashboard-list-item>div{display:grid;gap:4px;min-width:0}.dashboard-list-item strong{color:#172033;line-height:1.3}.dashboard-list-item span,.dashboard-list-item small{color:#64748b;line-height:1.35;word-break:break-word}.dashboard-list.compact .dashboard-list-item{padding:10px}.dashboard-empty{padding:16px;border:1px dashed #fecaca;border-radius:8px;background:#fff7f7;color:#64748b;text-align:center}.dashboard-timeline{display:grid;gap:10px}.dashboard-timeline-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px;border:1px solid #fee2e2;border-radius:8px;background:#fff}.dashboard-timeline-item>span:first-child{width:10px;height:10px;border-radius:999px;background:#dc2626;box-shadow:0 0 0 5px #fee2e2}.dashboard-timeline-item div{display:grid;gap:3px;min-width:0}.dashboard-timeline-item strong{color:#172033}.dashboard-timeline-item p{margin:0;color:#64748b}.dashboard-timeline-item small{color:#64748b}.dashboard-timeline-item>div:last-child{text-align:right}.status-cancelled{background:#fee2e2;color:#991b1b}.dashboard-split-metric{background:linear-gradient(135deg,#fff,#fff7f7)}
@media (max-width:1320px){.dashboard-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-grid-wide{grid-template-columns:1fr}}
@media (max-width:900px){.dashboard-hero,.dashboard-grid{grid-template-columns:1fr}.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-status-grid{grid-template-columns:1fr}.dashboard-panel-head{align-items:flex-start;flex-direction:column}.dashboard-panel-head a{white-space:normal}.dashboard-timeline-item{grid-template-columns:auto minmax(0,1fr)}.dashboard-timeline-item>div:last-child{grid-column:2;text-align:left}}
@media (max-width:560px){.dashboard-hero{padding:16px}.dashboard-hero-panel strong{font-size:32px}.dashboard-metrics{grid-template-columns:1fr;gap:12px}.dashboard-metric-card{min-height:104px}.dashboard-metric-card strong{font-size:24px}.dashboard-list-item{align-items:flex-start;flex-direction:column}.dashboard-list-item>div:last-child{width:100%}.dashboard-timeline-item{grid-template-columns:1fr}.dashboard-timeline-item>span:first-child{display:none}.dashboard-timeline-item>div:last-child{grid-column:auto}.dashboard-panel-head h2{font-size:17px}}

/* Customer Import */
.customer-import-layout .mini-table table{min-width:1380px}.customer-import-table{min-width:940px}.customer-import-table td:nth-child(5){min-width:240px;white-space:normal}.customer-import-table-wrap .cell-stack a{font-weight:700;color:#991b1b}@media (max-width:760px){.customer-import-table-wrap{border:0;background:transparent;overflow:visible}.customer-import-table{min-width:0;border-collapse:separate;border-spacing:0 10px}.customer-import-table thead{display:none}.customer-import-table,.customer-import-table tbody,.customer-import-table tr,.customer-import-table td{display:block;width:100%}.customer-import-table tr{border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden}.customer-import-table td{display:grid;grid-template-columns:120px minmax(0,1fr);gap:10px;padding:10px 12px;border-bottom:1px solid var(--line)}.customer-import-table td:last-child{border-bottom:0}.customer-import-table td::before{font-size:12px;font-weight:800;color:#7f1d1d}.customer-import-table td:nth-child(1)::before{content:"No"}.customer-import-table td:nth-child(2)::before{content:"File"}.customer-import-table td:nth-child(3)::before{content:"Uploaded By"}.customer-import-table td:nth-child(4)::before{content:"Status"}.customer-import-table td:nth-child(5)::before{content:"Notes"}.customer-import-table td:nth-child(6)::before{content:"Waktu Upload"}}

/* Simple Filters and Customer UX */
.filter-bar{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr)) auto;gap:12px;align-items:end;margin:14px 0 16px}.filter-bar label{min-width:0}.filter-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.filter-actions .btn,.filter-actions button{height:42px}.customer-help-card{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px;background:#fff}.customer-help-card div{display:grid;gap:4px;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fff7f7}.customer-help-card strong{color:#7f1d1d}.customer-help-card span{color:var(--muted);font-size:13px}.customer-readable-card{gap:16px}.readable-summary div{background:#fff7f7}.readable-coop-card{border-left-color:#991b1b}.readable-coop-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.optional-contact-box{display:flex;gap:10px;flex-wrap:wrap}.inline-check{display:flex;align-items:center;gap:7px;padding:9px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;font-weight:800}.inline-check input{width:auto}.optional-contact-group{padding:12px;border:1px dashed #fecaca;border-radius:8px;background:#fff7f7}.customer-detail-list{display:grid;gap:14px}.customer-detail-coop{display:grid;gap:12px;padding:14px;border:1px solid #fecaca;border-left:4px solid #991b1b;border-radius:8px;background:#fff}.customer-detail-coop h3{margin:6px 0 2px}.status-imported{background:#dcfce7;color:#166534}.status-failed{background:#fee2e2;color:#991b1b}.status-uploaded{background:#dbeafe;color:#1d4ed8}@media (max-width:1100px){.filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-help-card,.readable-coop-grid{grid-template-columns:1fr 1fr}}@media (max-width:720px){.filter-bar,.customer-help-card,.readable-coop-grid{grid-template-columns:1fr}.filter-actions .btn,.filter-actions button{flex:1;justify-content:center}.optional-contact-box{display:grid}.inline-check{width:100%}}

/* Customer Tree Table */
.customer-tree-card{display:grid;gap:12px}.customer-tree-table{min-width:1180px}.customer-tree-table th:nth-child(1){width:92px}.customer-tree-table th:nth-child(2){width:260px}.customer-tree-table th:nth-child(3){width:230px}.customer-tree-table th:nth-child(4){width:230px}.customer-tree-table th:nth-child(5){width:160px}.tree-parent-row td{background:#fff1f2;border-top:2px solid #fecaca}.tree-parent-row strong{color:#7f1d1d}.tree-child-row td{background:#fff}.tree-child-row td:first-child{position:relative}.tree-child-row td:first-child:before{content:"";position:absolute;left:28px;top:0;bottom:0;border-left:2px solid #fecaca}.tree-node{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;min-width:58px;padding:5px 8px;border-radius:999px;font-size:12px;font-weight:900}.tree-node.parent{background:#991b1b;color:#fff}.tree-node.child{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}.tree-child-row.empty td{background:#fff7f7}.pagination-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px;color:var(--muted)}.pagination-actions{display:flex;gap:8px}.btn.disabled{opacity:.45;pointer-events:none}@media (max-width:820px){.customer-tree-table-wrap{border:0;background:transparent;overflow:visible}.customer-tree-table{min-width:0;border-collapse:separate;border-spacing:0 10px}.customer-tree-table thead{display:none}.customer-tree-table,.customer-tree-table tbody,.customer-tree-table tr,.customer-tree-table td{display:block;width:100%}.customer-tree-table tr{border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden}.customer-tree-table td{display:grid;grid-template-columns:120px minmax(0,1fr);gap:10px;padding:10px 12px;border-bottom:1px solid var(--line)}.customer-tree-table td:last-child{border-bottom:0}.customer-tree-table td::before{font-size:12px;font-weight:800;color:#7f1d1d}.customer-tree-table td:nth-child(1)::before{content:"Tree"}.customer-tree-table td:nth-child(2)::before{content:"Customer"}.customer-tree-table td:nth-child(3)::before{content:"Wilayah"}.customer-tree-table td:nth-child(4)::before{content:"PIC"}.customer-tree-table td:nth-child(5)::before{content:"Batch & Lokasi"}.customer-tree-table td:nth-child(6)::before{content:"Status"}.customer-tree-table td:nth-child(7)::before{content:"Aksi"}.tree-child-row td:first-child:before{display:none}.pagination-bar{align-items:flex-start;flex-direction:column}.pagination-actions{width:100%}.pagination-actions .btn{flex:1;justify-content:center}}

/* Customer Tree Dropdown */
.tree-toggle-btn{display:inline-flex;align-items:center;gap:8px;padding:0;background:transparent;color:inherit}.tree-toggle-btn:hover{filter:none}.tree-toggle-btn .tree-chevron{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:999px;background:#fff;color:#991b1b;border:1px solid #fecaca;font-weight:900;transition:transform .16s ease}.tree-toggle-btn[aria-expanded="true"] .tree-chevron{transform:rotate(90deg);background:#991b1b;color:#fff}.tree-parent-row{cursor:pointer}.tree-parent-row.open td{background:#fee2e2}.tree-child-row[hidden]{display:none}.tree-child-row td{border-bottom-color:#fff1f2}.tree-child-row td:first-child{padding-left:28px}.tree-child-row td:first-child:before{left:42px}.tree-child-row .tree-node.child{margin-left:22px}.customer-tree-table .table-actions.compact{min-width:0}@media (max-width:820px){.tree-toggle-btn{width:100%;justify-content:flex-start}.tree-child-row .tree-node.child{margin-left:0}.tree-child-row td:first-child{padding-left:12px}}

/* User Management */
.users-page{display:grid;gap:16px}.users-title-row h2,.form-card-head h2,.user-list-card h2{margin:0}.users-title-row p,.form-card-head p,.user-list-card p{margin:4px 0 0}.users-layout{display:grid;grid-template-columns:minmax(320px,420px) minmax(0,1fr);gap:16px;align-items:start}.users-layout.list-only{grid-template-columns:1fr}.user-form-card,.user-list-card{max-width:none}.form-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.clean-section{display:grid;gap:12px;padding:14px;border:1px solid var(--line);border-radius:8px;background:#fff7f7}.clean-section h3{margin:0;color:#7f1d1d}.user-form-grid{display:grid;gap:12px}.user-form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.user-submit-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.user-submit-row button{min-width:150px;justify-content:center}.user-check{background:#fff}.users-filter-bar{grid-template-columns:minmax(220px,1.4fr) minmax(150px,.7fr) minmax(150px,.7fr) auto}.users-table{min-width:1180px}.users-table th:nth-child(1){width:230px}.users-table th:nth-child(2){width:150px}.users-table th:nth-child(3){width:260px}.users-table th:nth-child(4){width:300px}.users-table th:nth-child(5){width:110px}.users-table th:nth-child(6){width:160px}.users-table th:nth-child(7){width:180px}.soft-badge{background:#fee2e2;color:#7f1d1d}.user-inline-form{display:grid;grid-template-columns:minmax(140px,1fr) auto;gap:8px;align-items:center}.user-warehouse-form{display:grid;gap:8px;margin-top:8px}.user-warehouse-form select{min-height:112px}.compact-check{width:max-content;padding:7px 9px;font-size:12px}.warehouse-summary strong{font-size:13px}.users-table .table-actions.compact{min-width:0}.users-table .table-actions.compact .muted{font-size:12px;line-height:1.35}@media (max-width:1180px){.users-layout{grid-template-columns:1fr}.user-form-card{order:2}.user-list-card{order:1}.users-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:760px){.user-form-grid.two,.users-filter-bar{grid-template-columns:1fr}.user-submit-row{display:grid}.user-submit-row button{width:100%}.users-table-wrap{border:0;background:transparent;overflow:visible}.users-table{min-width:0;border-collapse:separate;border-spacing:0 10px}.users-table thead{display:none}.users-table,.users-table tbody,.users-table tr,.users-table td{display:block;width:100%}.users-table tr{border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden;box-shadow:0 10px 24px rgba(153,27,27,.06)}.users-table td{display:grid;grid-template-columns:118px minmax(0,1fr);gap:10px;padding:10px 12px;border-bottom:1px solid var(--line)}.users-table td:last-child{border-bottom:0}.users-table td::before{font-size:12px;font-weight:800;color:#7f1d1d}.users-table td:nth-child(1)::before{content:"User"}.users-table td:nth-child(2)::before{content:"Role"}.users-table td:nth-child(3)::before{content:"WhatsApp"}.users-table td:nth-child(4)::before{content:"Gudang"}.users-table td:nth-child(5)::before{content:"Status"}.users-table td:nth-child(6)::before{content:"Login"}.users-table td:nth-child(7)::before{content:"Aksi"}.user-inline-form{grid-template-columns:1fr}.user-inline-form button,.user-warehouse-form button{width:100%;justify-content:center}.compact-check{width:100%}}@media (max-width:440px){.users-table td{grid-template-columns:1fr;gap:5px}.users-table td::before{margin-bottom:2px}.clean-section{padding:12px}.users-title-row{align-items:flex-start;flex-direction:column}}

/* User Management Separate Pages */
.user-form-wide{width:min(980px,100%)}.user-detail-card{max-width:860px}.user-detail-card .detail-list div{grid-template-columns:minmax(130px,210px) minmax(0,1fr)}.users-title-row .actions{justify-content:flex-end}@media (max-width:760px){.user-form-wide{width:100%}.user-detail-card .detail-list div{grid-template-columns:1fr}.users-title-row .actions{width:100%;display:grid;grid-template-columns:1fr}.users-title-row .actions .btn{justify-content:center}}

/* Settings Role and Document Numbers */
.settings-page{display:grid;gap:16px}.settings-title-row h2,.settings-list-card h2{margin:0}.settings-title-row p,.settings-list-card p{margin:4px 0 0}.settings-role-form,.settings-number-form{max-width:1040px}.settings-detail-card{max-width:860px}.settings-table-wrap table{min-width:900px}.settings-role-table th:nth-child(1){width:240px}.settings-role-table th:nth-child(3){width:120px}.settings-role-table th:nth-child(4){width:260px}.settings-number-table{min-width:1040px}.settings-number-table th:nth-child(1){width:170px}.settings-number-table th:nth-child(5){width:210px}.settings-number-table th:nth-child(7){width:170px}.settings-permission-wrap{max-height:calc(100vh - 320px)}.settings-permission-table{min-width:880px}.settings-permission-table th:first-child{width:260px}.permission-check{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:74px;padding:7px 9px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:12px}.permission-check input{width:auto}.settings-detail-card .detail-list div{grid-template-columns:minmax(150px,220px) minmax(0,1fr)}@media (max-width:760px){.settings-table-wrap{border:0;background:transparent;overflow:visible}.settings-role-table,.settings-number-table{min-width:0;border-collapse:separate;border-spacing:0 10px}.settings-role-table thead,.settings-number-table thead{display:none}.settings-role-table,.settings-role-table tbody,.settings-role-table tr,.settings-role-table td,.settings-number-table,.settings-number-table tbody,.settings-number-table tr,.settings-number-table td{display:block;width:100%}.settings-role-table tr,.settings-number-table tr{border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden;box-shadow:0 10px 24px rgba(153,27,27,.06)}.settings-role-table td,.settings-number-table td{display:grid;grid-template-columns:130px minmax(0,1fr);gap:10px;padding:10px 12px;border-bottom:1px solid var(--line)}.settings-role-table td:last-child,.settings-number-table td:last-child{border-bottom:0}.settings-role-table td::before,.settings-number-table td::before{font-size:12px;font-weight:800;color:#7f1d1d}.settings-role-table td:nth-child(1)::before{content:"Role"}.settings-role-table td:nth-child(2)::before{content:"Deskripsi"}.settings-role-table td:nth-child(3)::before{content:"User"}.settings-role-table td:nth-child(4)::before{content:"Aksi"}.settings-number-table td:nth-child(1)::before{content:"Dokumen"}.settings-number-table td:nth-child(2)::before{content:"Prefix"}.settings-number-table td:nth-child(3)::before{content:"Nomor"}.settings-number-table td:nth-child(4)::before{content:"Padding"}.settings-number-table td:nth-child(5)::before{content:"Berikutnya"}.settings-number-table td:nth-child(6)::before{content:"Update"}.settings-number-table td:nth-child(7)::before{content:"Aksi"}.settings-permission-wrap{max-height:none}.settings-detail-card .detail-list div{grid-template-columns:1fr}.settings-title-row .actions{width:100%;display:grid;grid-template-columns:1fr}.settings-title-row .actions .btn{justify-content:center}}@media (max-width:440px){.settings-role-table td,.settings-number-table td{grid-template-columns:1fr;gap:5px}.permission-check{width:100%}}

/* Public Delivery Upload */
.public-upload-page{min-height:100vh;background:linear-gradient(180deg,#fff 0,#fff7f7 52%,#fee2e2 100%);padding:18px}.public-upload-shell{width:min(760px,100%);margin:0 auto}.public-upload-card{background:#fff;border:1px solid #fecaca;border-radius:8px;padding:20px;box-shadow:0 18px 42px rgba(153,27,27,.08);display:grid;gap:16px}.public-upload-card.compact{margin-top:12vh;text-align:center}.public-upload-card h1{margin:0;color:#7f1d1d;font-size:24px}.public-upload-card p{margin:4px 0 0;color:#64748b}.public-upload-brand{display:flex;align-items:center;gap:14px}.public-upload-brand img{width:54px;height:54px;object-fit:contain;border:1px solid #fecaca;border-radius:8px;padding:6px;background:#fff}.public-upload-form{max-width:none}.delivery-detail-grid{align-items:start}.delivery-upload-list{display:grid;gap:10px}.delivery-upload-item{display:grid;gap:5px;padding:10px;border:1px solid var(--line);border-radius:8px;background:#fff7f7}.delivery-upload-item a{color:#991b1b;font-weight:800;word-break:break-word}@media (max-width:720px){.public-upload-page{padding:12px}.public-upload-card{padding:16px}.public-upload-brand{align-items:flex-start}.public-upload-card h1{font-size:20px}.delivery-detail-grid{grid-template-columns:1fr}}
