:root{font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;color:#e8eef9;background:#050a14}*{box-sizing:border-box}body{margin:0;min-height:100vh;color:#e8eef9;background:radial-gradient(1200px 600px at 20% -10%,#12203b,#050a14 60%),#050a14}.auth-screen{min-height:100vh;display:grid;place-items:center;padding:24px}.auth-card{width:100%;max-width:420px;background:#0a101eeb;border:1px solid #1d2a43;border-radius:16px;padding:22px;box-shadow:0 14px 40px #01040a73;display:grid;gap:12px}.auth-card h2{margin:0}.auth-card p{margin:0;color:#8da4c4;font-size:14px}.auth-field{display:grid;gap:6px}.auth-field span{color:#c9d7ee;font-size:13px}.auth-field input{height:42px;border-radius:10px;border:1px solid #263750;background:#0b1424;color:#e8eef9;padding:0 12px}.auth-error{border:1px solid #5a2430;color:#fecdd3;background:#7f1d1d4d;border-radius:10px;padding:10px 12px;font-size:13px}.auth-submit{height:42px;border-radius:10px;border:1px solid #2563eb;background:linear-gradient(135deg,#0284c7,#2563eb);color:#f1f7ff;font-weight:700;cursor:pointer}.auth-submit:disabled{opacity:.7;cursor:wait}html,body,.modal,.metric-table-wrap{scrollbar-width:thin;scrollbar-color:rgba(145,167,196,.4) rgba(10,18,33,.35)}html::-webkit-scrollbar,body::-webkit-scrollbar,.modal::-webkit-scrollbar,.metric-table-wrap::-webkit-scrollbar{width:7px;height:7px}html::-webkit-scrollbar-track,body::-webkit-scrollbar-track,.modal::-webkit-scrollbar-track,.metric-table-wrap::-webkit-scrollbar-track{background:#0a122159;border-radius:999px}html::-webkit-scrollbar-thumb,body::-webkit-scrollbar-thumb,.modal::-webkit-scrollbar-thumb,.metric-table-wrap::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#a3b8d16b,#7b92af6b);border-radius:999px;border:1px solid rgba(10,18,33,.42)}html::-webkit-scrollbar-thumb:hover,body::-webkit-scrollbar-thumb:hover,.modal::-webkit-scrollbar-thumb:hover,.metric-table-wrap::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#bacee699,#8aa3c499)}button,select,input{font:inherit}.app{min-height:100vh;padding:14px 18px 28px}.top-header{display:grid;grid-template-columns:1.2fr 1fr auto;align-items:center;gap:14px;background:#0a101ed9;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid #1d2a43;border-radius:16px;padding:12px 16px;position:sticky;top:10px;z-index:30;box-shadow:0 12px 40px #01040a66}.brand-wrap{display:flex;align-items:center;gap:10px}.brand-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;overflow:hidden}.brand-icon img{width:100%;height:100%;object-fit:contain;display:block}.brand-wrap h1{margin:0;font-size:22px;letter-spacing:.2px}.brand-wrap p{margin:2px 0 0;color:#8da4c4;font-size:12px}.refresh-subtle{margin:4px 0 0;color:#67e8f9;font-size:11px}.main-nav{display:flex;justify-content:center;gap:6px}.nav-item{border:1px solid transparent;background:transparent;color:#9cb0cb;border-radius:9px;padding:8px 10px;cursor:pointer;display:inline-flex;align-items:center}.nav-item.active{color:#dff4ff;border-color:#1f3c5f;background:#0a2239b3;box-shadow:inset 0 0 0 1px #38bdf833}.header-right{display:flex;align-items:center;gap:10px;justify-content:flex-end}.session-user{color:#9cb0cb;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.notification-btn{position:relative;border:1px solid #1e304b;background:#091423cc;color:#dce8fc;border-radius:10px;width:38px;height:38px;cursor:pointer}.notification-btn:disabled{cursor:not-allowed;opacity:.75}.notification-btn span{position:absolute;top:-6px;right:-6px;min-width:19px;height:19px;border-radius:999px;display:grid;place-items:center;background:#ef4444;color:#fff;font-size:11px;font-weight:700}.avatar{width:34px;height:34px;border-radius:999px;display:grid;place-items:center;background:linear-gradient(135deg,#1d4ed8,#22d3ee);font-size:12px;font-weight:700}.user-info{display:flex;flex-direction:column;line-height:1.15}.user-info strong{font-size:13px}.user-info small{color:#86a0bf;font-size:11px}.caret{color:#8ba3c0}.kpi-row{margin-top:14px;display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}.kpi-card{background:linear-gradient(180deg,#10192be6,#090f1ce6);border:1px solid #1e2c45;border-radius:14px;padding:11px 12px;box-shadow:0 8px 20px #01060e59}.kpi-head{display:flex;align-items:center;gap:8px;color:#9cb2cc}.kpi-head small{font-size:12px}.kpi-card strong{display:block;margin-top:8px;font-size:22px;letter-spacing:.2px}.rolling-value-shell{display:inline-grid;overflow:hidden;min-height:1.1em;line-height:1.1}.rolling-value{display:inline-block}.sparkline{margin-top:8px;width:100%;height:28px;opacity:.92}.filter-bar{margin-top:14px;display:grid;grid-template-columns:auto 1.35fr repeat(6,minmax(120px,1fr));gap:8px}.filter-control{border:1px solid #263752;background:#081221eb;color:#d9e8ff;border-radius:10px;height:40px;padding:0 11px;outline:none}.filter-control.search::placeholder{color:#6f87a8}.filter-control:focus{border-color:#2f68a3;box-shadow:0 0 0 2px #3b82f638}.refresh-btn{background:linear-gradient(135deg,#0f6cc4,#0ea5e9);color:#e9f7ff;font-weight:600;cursor:pointer}.dashboard-main{margin-top:16px;display:grid;gap:20px}.group-section h2{margin:0 0 10px;font-size:19px;letter-spacing:.2px}.store-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.store-card{background:linear-gradient(180deg,#0e1726f2,#080e19f2);border:1px solid #1b2a41;border-radius:14px;padding:12px;box-shadow:0 8px 24px #00000059;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease;cursor:pointer}.store-card:hover{transform:translateY(-2px);border-color:#2c4f79;box-shadow:0 14px 30px #0000006b}.ranking-grid .store-card{will-change:transform}.ranking-card.rank-up{border-color:#22c55ec7;box-shadow:0 0 0 1px #22c55e73,0 14px 30px #0000006b;animation:rankPulseUp 1s ease}.ranking-card.rank-down{border-color:#f87171bf;box-shadow:0 0 0 1px #f871716b,0 14px 30px #0000006b;animation:rankPulseDown 1s ease}.rank-badge{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:22px;margin-right:8px;border-radius:999px;border:1px solid #2f5d8f;background:#103761bf;color:#bfe5ff;font-size:12px;font-weight:700}.rank-arrow{margin-right:6px;font-size:12px;font-weight:700}.rank-arrow.up{color:#4ade80}.rank-arrow.down{color:#f87171}@keyframes rankPulseUp{0%{transform:scale(.985)}40%{transform:scale(1.01)}to{transform:scale(1)}}@keyframes rankPulseDown{0%{transform:scale(.985)}40%{transform:scale(1.01)}to{transform:scale(1)}}.store-top{display:flex;justify-content:space-between;gap:10px}.store-ident{display:flex;gap:9px;min-width:0}.store-avatar{width:34px;height:34px;border-radius:999px;display:grid;place-items:center;font-size:12px;font-weight:700;background:linear-gradient(135deg,#1f4f8a,#1a6985);color:#deefff;flex-shrink:0}.store-ident h3{margin:0;font-size:15px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.store-ident small{color:#8ea5c3}.store-actions{display:flex;align-items:center;gap:6px}.emoji-status{font-size:19px}.dots,.list-action-btn{width:28px;height:28px;border-radius:8px;border:1px solid #29415f;background:#080f1ccc;color:#adc0d9;cursor:pointer}.list-action-btn{font-size:16px;line-height:1;font-weight:700}.list-action-btn:hover{border-color:#3d6694;background:#0d192df2}.metrics-primary{margin-top:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.metrics-primary div,.metrics-secondary div{background:#0a1221e6;border:1px solid #1b2e4a;border-radius:10px;padding:8px}.metrics-primary small,.metrics-secondary small{display:block;color:#88a2c4;font-size:11px}.metrics-primary strong,.metrics-secondary strong{margin-top:4px;display:block;font-size:16px;letter-spacing:.2px}.progress-wrap{margin-top:10px}.progress-label{color:#8da7c7;font-size:11px}.progress-track{margin-top:6px;width:100%;height:8px;border-radius:999px;background:#1a2436;overflow:hidden}.progress-fill{display:block;height:100%;border-radius:999px}.metrics-secondary{margin-top:10px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.alert-chips{margin-top:10px;display:flex;gap:6px;flex-wrap:wrap;min-height:28px}.alert-chip{border-radius:999px;font-size:14px;padding:3px 10px;border:1px solid transparent;line-height:1;display:inline-flex;align-items:center;justify-content:center}.alert-chip.indicator-alerta{background:#7f1d1d47;border-color:#f87171bf;box-shadow:0 0 0 1px #f871714d;animation:alertaPulse 1.8s ease-in-out infinite}.alert-chip.indicator-demanda{background:#78350f38;border-color:#facc15cc;box-shadow:0 0 0 1px #facc1540}@keyframes alertaPulse{0%{opacity:.88;box-shadow:0 0 0 1px #f8717140}50%{opacity:1;box-shadow:0 0 0 2px #f8717161}to{opacity:.88;box-shadow:0 0 0 1px #f8717140}}.state-box{border:1px solid #274162;background:#081221e6;border-radius:12px;padding:12px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;background:#020813c7;display:flex;justify-content:center;align-items:center;padding:16px}.modal{width:min(96vw,1700px);max-height:96vh;overflow-y:auto;overflow-x:hidden;border:1px solid #2a405f;border-radius:14px;padding:14px;background:#091325;scroll-behavior:smooth}.modal-sticky-header{position:sticky;top:0;z-index:8;margin:-6px -6px 14px;padding:8px 8px 10px;border-bottom:1px solid rgba(35,55,84,.7);background:linear-gradient(180deg,#091325fa,#091325ed);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.modal-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px}.modal-store-head{min-width:0}.modal-store-title{margin:0;font-size:17px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.modal-sticky-header.compact .modal-store-title{font-size:12px;color:#9fb8da}.modal-top-actions{display:flex;align-items:center;gap:8px}.modal-content{display:grid;gap:18px;min-width:0}.modal-nav{display:flex;flex-wrap:wrap;gap:8px;padding:8px;border:1px solid #233754;border-radius:10px;background:#0c1626f5}.modal-nav-btn{border:1px solid #2c4767;background:#10243e;color:#dbeafe;border-radius:10px;padding:8px 12px;cursor:pointer}.modal-nav-btn:hover{background:#183151}.modal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}.placeholder-panel-body{min-height:280px;border:1px dashed #2a4264;border-radius:10px;background:#07102099;display:grid;place-items:center;padding:14px}.placeholder-panel-text{color:#9fb8da;font-size:13px}.tasks-panel-body{height:280px;border:1px dashed #2a4264;border-radius:10px;background:#07102099;padding:10px;overflow-y:auto;overflow-x:hidden}.tasks-list{display:grid;gap:8px}.task-item{border:1px solid #284364;border-radius:10px;background:#0b182be0;padding:10px;display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.task-main{min-width:0;display:grid;gap:4px}.task-main strong{font-size:13px;color:#e6efff}.task-main small{color:#9fb6d5;font-size:12px;line-height:1.3}.task-actions{display:flex;gap:6px}.task-action-btn{width:34px;height:34px;border-radius:10px;border:1px solid #2b4668;background:linear-gradient(180deg,#0d1a2ff5,#081120f5);color:#e2ecff;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,filter .16s ease}.task-action-btn:hover{transform:translateY(-1px);filter:brightness(1.05)}.task-action-btn.ok{border-color:#22c55ebf;box-shadow:inset 0 0 0 1px #22c55e40}.task-action-btn.cancel{border-color:#f87171bf;box-shadow:inset 0 0 0 1px #f871713d}.task-cancel-backdrop{z-index:85}.task-cancel-modal{width:min(90vw,520px);border-radius:14px;border:1px solid #2a405f;background:#0a1630;padding:14px;box-shadow:0 24px 52px #0000006b}.task-cancel-modal h3{margin:0}.task-cancel-modal p{margin:6px 0 10px;color:#9fb8da;font-size:13px}.task-cancel-actions{margin-top:10px;display:flex;justify-content:flex-end;gap:8px}.panel{background:#101a2f;border:1px solid #1e2f4a;border-radius:12px;padding:8px;min-width:0}.panel h3{margin:0 0 8px;font-size:18px;line-height:1.25}.modal-section{scroll-margin-top:130px}.modal-section>.panel+.panel{margin-top:14px}.panel-note{margin-bottom:10px;font-size:12px;color:#9fb8da}.modal-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:12px;min-width:0}.mini-kpi{border:1px solid #274162;border-radius:8px;background:#071020e6;padding:12px 12px 10px;min-height:82px;min-width:0}.mini-kpi small{color:#9fb3cf;font-size:13px}.mini-kpi strong{display:block;margin-top:6px;font-size:18px;font-weight:700;line-height:1.2}.table{width:100%;border-collapse:collapse;font-size:12px}.table th,.table td{text-align:left;padding:6px;border-bottom:1px solid #22324d;white-space:normal}.table-link{color:#f8fafc;text-decoration:none;font-weight:500}.table-link:hover{text-decoration:underline}.metric-table-wrap{width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.metric-table-wrap .table{min-width:940px}.metric-table-wrap .table th,.metric-table-wrap .table td{white-space:nowrap}.checklist-backdrop{z-index:90}.checklist-modal{width:min(94vw,760px);max-height:92vh;overflow-y:auto;padding:16px;border-radius:16px;border:1px solid #2a405f;background:radial-gradient(900px 380px at 80% -20%,rgba(34,197,94,.18),transparent 60%),#091325;box-shadow:0 26px 55px #00000073}.checklist-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}.checklist-head h3{margin:0;font-size:24px;color:#dff4ff}.checklist-head p{margin:4px 0 0;color:#9fb8da;font-size:13px}.checklist-close-btn{min-width:110px}.checklist-actions-floating{position:sticky;bottom:0;z-index:3;display:flex;justify-content:flex-end;gap:8px;margin-top:14px;padding-top:10px;padding-bottom:2px;background:linear-gradient(180deg,#09132526,#091325fa 55%)}.checklist-send-btn{min-width:120px;border-color:#16a34ab3;background:linear-gradient(135deg,#16a34a,#22c55e);color:#ecfdf5;font-weight:700}.checklist-send-btn:hover{filter:brightness(1.05)}.checklist-progress{padding:12px;border:1px solid #1f3a59;border-radius:12px;background:#081323d1;margin-bottom:14px}.checklist-progress-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.checklist-progress-top strong{font-size:14px}.checklist-progress-top span{font-size:13px;color:#67e8f9;font-weight:700}.checklist-progress small{display:block;margin-top:8px;color:#8bb0d4;font-size:12px}.checklist-list{display:grid;gap:9px;margin-bottom:16px}.checklist-item{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border:1px solid #214062;border-radius:11px;background:#091424db;transition:border-color .2s ease,transform .2s ease,background .2s ease;cursor:pointer}.checklist-item:hover{border-color:#2f5c86;transform:translateY(-1px)}.checklist-item input{margin-top:2px;width:18px;height:18px;accent-color:#22c55e;flex-shrink:0}.checklist-item span{font-size:14px;color:#dcecff;line-height:1.35}.checklist-item.done{border-color:#22c55e80;background:#14532d40}.checklist-item.done span{color:#baf7d0}.checklist-report{display:grid;gap:10px}.checklist-field{display:grid;gap:6px}.checklist-field span{font-size:13px;font-weight:700;color:#d7ebff}.checklist-field textarea{width:100%;min-height:84px;resize:vertical;border:1px solid #284467;border-radius:10px;background:#081221eb;color:#d9e8ff;padding:10px 11px;outline:none;font:inherit}.checklist-field textarea:focus{border-color:#2f68a3;box-shadow:0 0 0 2px #3b82f638}@media (max-width: 1360px){.store-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.top-header{grid-template-columns:1fr;gap:12px}.main-nav{justify-content:flex-start;flex-wrap:wrap}}@media (max-width: 1080px){.filter-bar,.store-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.modal-grid{grid-template-columns:1fr}.modal-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width: 720px){.app{padding:10px}.user-info{display:none}.store-grid,.filter-bar{grid-template-columns:1fr}.modal{width:100%;max-height:98vh;padding:12px}.modal-sticky-header{margin:-4px -4px 12px;padding:8px 6px}.modal-top{align-items:flex-start;flex-direction:column}.modal-top-actions{width:100%}.modal-top-actions .filter-control{flex:1 1 0}.modal-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.checklist-modal{width:100%;max-height:96vh;padding:12px}.checklist-head{flex-direction:column;align-items:stretch}.checklist-close-btn{width:100%}.checklist-actions-floating{justify-content:stretch}.checklist-actions-floating .filter-control{flex:1 1 0}}
