:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#20242c;background:#f3f5f8}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}.login-page{min-height:100vh;display:grid;place-items:center;background:linear-gradient(120deg,#0a2b52eb,#b21827db),#0a2b52;padding:24px}.login-panel{width:min(440px,100%);background:#fff;border-radius:8px;padding:28px;box-shadow:0 24px 70px #00000038}.brand-row{display:flex;align-items:center;gap:14px}.brand-row h1{margin:0;font-size:24px}.brand-row p{margin:4px 0 0;color:#697386}.brand-row.small h1{color:#fff;font-size:18px}.brand-row.small p{color:#ffffffb8;font-size:13px}.brand-mark{width:52px;height:52px;display:grid;place-items:center;border-radius:8px;color:#fff;background:linear-gradient(135deg,#b21827,#0a2b52);font-weight:800}.login-form{margin-top:28px;display:grid;gap:16px}.login-form label{display:grid;gap:7px;color:#3b4350;font-size:14px;font-weight:650}.login-form input{height:44px;border:1px solid #d5dbe5;border-radius:6px;padding:0 12px}.login-form button{height:46px;border:0;border-radius:6px;color:#fff;background:#b21827;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:800}.error{color:#b21827;background:#fff0f1;border:1px solid #f4c7cd;border-radius:6px;padding:10px;font-size:14px}.app-shell{min-height:100vh;display:block}aside{position:fixed;inset:0 auto 0 0;z-index:20;width:270px;background:#0a2b52;padding:22px;transform:translate(-100%);transition:transform .18s ease;box-shadow:18px 0 48px #0a2b5238}aside.open{transform:translate(0)}.menu-toggle{position:fixed;top:18px;left:18px;z-index:18;width:46px;height:46px;display:grid;place-items:center;border:1px solid #dce2ea;border-radius:8px;color:#0a2b52;background:#fff;box-shadow:0 12px 32px #0a2b5224}.sidebar-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:19;border:0;background:#0a2b525c}nav{display:grid;gap:14px;margin-top:32px}.nav-group{display:grid;gap:7px}.nav-group>span{padding:0 12px;color:#ffffff7a;font-size:11px;font-weight:850;letter-spacing:.04em;text-transform:uppercase}nav button{min-height:42px;display:flex;align-items:center;gap:10px;color:#ffffffc2;padding:0 12px;border:0;border-radius:6px;background:transparent;text-align:left}nav button.active,nav button:hover{color:#fff;background:#ffffff1f}.content{min-width:0;padding:28px 28px 28px 84px}header{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}header h2{margin:0;font-size:28px}header p{margin:6px 0 0;color:#697386}.header-actions{display:flex;gap:10px;align-items:stretch}.user-pill{background:#fff;border:1px solid #dce2ea;border-radius:8px;padding:10px 14px;font-weight:800;text-align:right;min-width:138px}.user-pill span{display:block;color:#697386;font-size:12px;margin-top:2px}.icon-button{width:44px;border:1px solid #dce2ea;border-radius:8px;background:#fff;color:#0a2b52}.operation-band{margin:24px 0;display:flex;flex-wrap:wrap;gap:10px;align-items:center}.operation-band button,.operation-band em{background:#fff;border:1px solid #dce2ea;border-radius:999px;padding:8px 12px;font-style:normal}.operation-band button.selected{color:#fff;border-color:#0a2b52;background:#0a2b52}.toolbar{display:flex;gap:12px;margin-bottom:16px}.report-filters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:16px;padding:14px;background:#fff;border:1px solid #dce2ea;border-radius:8px}.report-filters label{display:grid;gap:6px;color:#697386;font-size:.85rem;font-weight:700}.report-filters input,.report-filters select{height:42px;border:1px solid #dce2ea;border-radius:8px;padding:0 10px;color:#20242c;background:#fff}.report-filters button{align-self:end;height:42px;border:0;border-radius:8px;background:#20242c;color:#fff;font-weight:800;cursor:pointer}.search-box,.select-box{height:44px;display:flex;align-items:center;gap:8px;border:1px solid #dce2ea;border-radius:8px;background:#fff;padding:0 12px}.search-box{flex:1}.seller-filter{min-width:220px}.search-box input,.select-box select{width:100%;border:0;outline:0;background:transparent;color:#20242c}.stats-grid,.reports-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.stat-card,.panel{background:#fff;border:1px solid #dce2ea;border-radius:8px}.stat-card{min-height:116px;padding:18px;display:flex;align-items:center;gap:14px}.stat-card span{color:#697386;font-size:14px}.stat-card strong{display:block;margin-top:6px;font-size:25px}.stat-card small{display:block;margin-top:4px;color:#697386}.stat-icon{width:46px;height:46px;flex:0 0 46px;display:grid;place-items:center;border-radius:8px;color:#0a2b52;background:#e8eef7}.panel{margin-top:18px;padding:20px}.delivery-workspace{padding-top:0;overflow:hidden}.delivery-hero{margin:0 -20px 18px;padding:22px;display:flex;justify-content:space-between;gap:18px;align-items:center;color:#fff;background:linear-gradient(135deg,#0a2b52,#246a9b)}.delivery-hero h3{margin:4px 0;font-size:26px}.delivery-hero p{margin:0;color:#ffffffc7}.delivery-hero>div>span{font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.delivery-kpis{display:grid;grid-template-columns:repeat(3,minmax(110px,1fr));gap:10px}.delivery-kpis div{min-height:74px;padding:12px;border-radius:8px;background:#ffffff24}.delivery-kpis strong,.delivery-kpis span{display:block}.delivery-kpis strong{font-size:20px}.delivery-kpis span{margin-top:4px;color:#ffffffc2;font-size:12px;font-weight:700}.delivery-title{padding-top:2px}.status-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0 0 18px}.status-tabs button{min-height:58px;display:flex;justify-content:space-between;align-items:center;gap:8px;border:2px solid transparent;border-radius:8px;padding:10px 12px;color:#20242c;background:#fff;font-weight:800}.status-tabs button strong{min-width:32px;min-height:28px;display:grid;place-items:center;border-radius:999px;color:#fff;background:#0a2b52;font-size:13px}.status-tabs button.status-coletando{border-color:#3498db;background:#eaf5fd}.status-tabs button.status-transito{border-color:#f39c12;background:#fff4dc}.status-tabs button.status-parado{border-color:#e74c3c;background:#fdecea}.status-tabs button.status-entregue{border-color:#2ecc71;background:#eafaf1}.status-tabs button.status-coletando strong{background:#3498db}.status-tabs button.status-transito strong{background:#f39c12;color:#20242c}.status-tabs button.status-parado strong{background:#e74c3c}.status-tabs button.status-entregue strong{background:#2ecc71}.status-tabs button.active{box-shadow:0 8px 22px #0a2b5229;transform:translateY(-1px)}.delivery-workspace.status-coletando .table-wrap{background:#f4faff;border-color:#b8dcf5}.delivery-workspace.status-transito .table-wrap{background:#fff9ed;border-color:#f5d08f}.delivery-workspace.status-parado .table-wrap{background:#fff5f4;border-color:#f1b6ae}.delivery-workspace.status-entregue .table-wrap{background:#f3fcf7;border-color:#a9e5c0}.delivery-workspace tr.status-coletando td{background:#f4faff}.delivery-workspace tr.status-transito td{background:#fff9ed}.delivery-workspace tr.status-parado td{background:#fff5f4}.delivery-workspace tr.status-entregue td{background:#f3fcf7}.status-pill{display:inline-flex;min-height:26px;align-items:center;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:800}.status-pill.status-coletando{color:#176996;background:#d8effc}.status-pill.status-transito{color:#7a4d00;background:#ffe7b3}.status-pill.status-parado{color:#9b2b20;background:#ffd9d5}.status-pill.status-entregue{color:#176b36;background:#cef3dc}.workflow-workspace{min-height:540px}.flow-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.flow-card{min-height:132px;display:flex;justify-content:space-between;gap:12px;border:1px solid #dce2ea;border-radius:8px;padding:16px;background:#fff}.flow-card span{display:block;color:#20242c;font-weight:850}.flow-card p{margin:8px 0 0;color:#3b4350;font-size:13px;line-height:1.42}.flow-card strong{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;border-radius:999px;color:#fff;background:#0a2b52;font-size:13px}.flow-card.status-coletando{border-color:#9ed2f3;background:#f4faff}.flow-card.status-coletando strong{background:#3498db}.flow-card.status-transito{border-color:#f5d08f;background:#fff9ed}.flow-card.status-transito strong{color:#20242c;background:#f39c12}.flow-card.status-parado{border-color:#f1b6ae;background:#fff5f4}.flow-card.status-parado strong{background:#e74c3c}.flow-card.status-entregue{border-color:#a9e5c0;background:#f3fcf7}.flow-card.status-entregue strong{background:#2ecc71}.workflow-columns{display:grid;grid-template-columns:1.35fr 1fr;gap:14px;margin-bottom:14px}.workflow-panel{padding:16px;background:#fff}.legacy-section{margin-top:14px}.legacy-form{margin-bottom:0;background:#fbfcfe}.timeline-list{display:grid;gap:10px}.timeline-list div{display:grid;gap:4px;border-left:5px solid #dce2ea;border-radius:8px;padding:12px;background:#f6f8fb}.timeline-list div.status-coletando{border-color:#3498db;background:#f4faff}.timeline-list div.status-transito{border-color:#f39c12;background:#fff9ed}.timeline-list div.status-parado{border-color:#e74c3c;background:#fff5f4}.timeline-list div.status-entregue{border-color:#2ecc71;background:#f3fcf7}.timeline-list span{color:#3b4350;font-size:13px}.panel-title{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:16px}.panel-title h3{margin:0;font-size:18px}.panel-title span{color:#697386;font-size:13px}.panel-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-end}.panel-actions button,.table-action,.status-actions button{min-height:32px;border:1px solid #dce2ea;border-radius:6px;background:#fff;color:#0a2b52;padding:0 10px;font-weight:700}.panel-actions button:hover,.table-action:hover,.status-actions button:hover{color:#fff;border-color:#0a2b52;background:#0a2b52}.entry-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px;padding:14px;border:1px solid #dce2ea;border-radius:8px;background:#fbfcfe}.edit-form{margin-top:14px;margin-bottom:0}.entry-form label{display:grid;gap:6px;color:#3b4350;font-size:13px;font-weight:700}.entry-form input,.entry-form select,.entry-form textarea{min-height:38px;border:1px solid #d5dbe5;border-radius:6px;background:#fff;padding:0 10px}.entry-form textarea{min-height:96px;padding:10px;resize:vertical}.checkbox-field{display:flex!important;align-items:center;grid-template-columns:none;min-height:38px;align-self:end}.checkbox-field input{min-height:auto;width:18px;height:18px}.wide-field{grid-column:span 3}.form-actions{display:flex;align-items:flex-end;justify-content:flex-end}.form-actions button{min-height:38px;border:0;border-radius:6px;color:#fff;background:#b21827;padding:0 14px;font-weight:800}.dashboard-grid,.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.status-list,.money-grid,.proposals-tab-bar{display:flex;gap:0;background:#e8eaef;border-radius:8px 8px 0 0;overflow:hidden}.proposals-tab-bar button{flex:1;padding:12px 20px;border:none;background:transparent;font-size:14px;font-weight:500;color:#5a5f6b;cursor:pointer;transition:all .15s;border-bottom:2px solid transparent}.proposals-tab-bar button.active{background:#fff;color:#b21827;border-bottom-color:#b21827;font-weight:600}.proposals-tab-bar button:hover:not(.active){background:#daddf0;color:#20242c}.proposal-form-tab .delivery-hero{margin-bottom:0}.info-list{display:grid;gap:10px}.status-list div,.money-grid div,.info-list div{min-height:44px;display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 12px;background:#f6f8fb;border-radius:6px}.money-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.money-grid div{align-items:flex-start;flex-direction:column}.money-grid span{color:#697386;font-size:13px}.table-wrap{overflow-x:hidden;overflow-y:visible;border:1px solid #e4e9f0;border-radius:8px}table{width:100%;table-layout:fixed;border-collapse:collapse;background:#fff}th,td{padding:10px 8px;border-bottom:1px solid #edf1f5;text-align:left;font-size:13px;white-space:normal;overflow-wrap:anywhere;word-break:normal;vertical-align:top}th{color:#3b4350;background:#f6f8fb;font-size:11px;text-transform:uppercase}td .table-action{width:100%;min-width:0;padding:0 6px}tr:hover td{background:#fbfcfe}.tag,.operation-tags span{display:inline-flex;align-items:center;min-height:24px;padding:3px 8px;border-radius:999px;color:#0a2b52;background:#e8eef7;font-size:12px;font-weight:800}.empty-state,.notice{margin-top:14px;padding:14px;border-radius:8px;background:#f6f8fb;color:#697386}.detail-panel{margin-top:16px;border:1px solid #dce2ea;border-radius:8px;background:#fbfcfe;padding:16px}.embedded-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;display:grid;place-items:start center;padding:48px 24px 24px}.embedded-modal-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;border:0;border-radius:0;background:#0a2b526b}.delivery-detail-panel{position:relative;z-index:1;width:min(1180px,100%);max-height:calc(100vh - 72px);overflow-y:auto;margin:0;background:#fff;box-shadow:0 28px 90px #0a2b5247}.delivery-detail-panel .panel-title{position:sticky;top:0;z-index:2;padding-bottom:12px;background:#fff}.detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.detail-grid div{display:grid;gap:4px;padding:12px;border-radius:6px;background:#fff}.detail-grid span,.status-actions span{color:#697386;font-size:13px}.status-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:12px}.report-panel{grid-column:span 4}.compact-report{margin-top:0}.report-columns{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.report-list{display:grid;align-content:start;gap:8px}.report-list h4{margin:0 0 2px;color:#3b4350;font-size:13px;text-transform:uppercase}.report-list div{min-height:38px;display:flex;justify-content:space-between;gap:8px;align-items:center;padding:8px 10px;border-radius:6px;background:#f6f8fb}.report-list span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#3b4350}.check-list{margin:0;padding-left:18px;color:#3b4350}.check-list li{margin:8px 0}.user-row{display:grid;grid-template-columns:auto 1fr auto auto;gap:14px;align-items:center;padding:14px;border:1px solid #e4e9f0;border-radius:8px}.user-list{display:grid;gap:10px}.user-row strong,.user-row span{display:block}.user-row span{color:#697386;margin-top:2px}.user-avatar{width:46px;height:46px;display:grid;place-items:center;border-radius:8px;background:#fff0f1;color:#b21827}.operation-tags{display:flex;flex-wrap:wrap;gap:8px}.info-list div{justify-content:flex-start;color:#3b4350}@media(max-width:1120px){.stats-grid,.reports-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-panel{grid-column:span 2}.report-columns{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:820px){nav{margin-top:18px}header,.toolbar,.report-filters,.delivery-hero,.dashboard-grid,.settings-grid{flex-direction:column;display:flex}.content{padding:82px 18px 18px}.menu-toggle{top:18px;left:18px}.embedded-modal{padding:18px}.delivery-detail-panel{max-height:calc(100vh - 36px)}.stats-grid,.reports-grid,.money-grid,.detail-grid,.delivery-kpis,.status-tabs,.flow-grid,.workflow-columns,.entry-form{grid-template-columns:1fr}.wide-field,.report-panel{grid-column:auto}.report-columns{grid-template-columns:1fr}}
