/* StarBy Stellar KPI — estilos exclusivos da Visão Geral. */
#tab-overview .starby-overview-shell{background:#100b20;border:1px solid #36234d;border-radius:24px;padding:24px;color:#eee9ff}#tab-overview .starby-overview-topbar{background:transparent;border:0;padding:0 0 20px}#tab-overview .starby-overview-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}#tab-overview select,#tab-overview input,#tab-overview button{font:inherit}#tab-overview select,#tab-overview input{background:#1d1430;color:#eee9ff;border:1px solid #51366f;border-radius:10px;padding:10px;min-width:0}#overviewPeriodFilter{cursor:pointer}#tab-overview .overview-order-history-btn{background:#27193d;color:#eee9ff;border:1px solid #51366f}.sk-dashboard{--muted:#b4a5c9;--line:#38264d;font-family:Inter,system-ui,sans-serif;display:grid;gap:22px}.sk-dashboard *{box-sizing:border-box}.sk-dashboard h2,.sk-dashboard h3,.sk-dashboard p{margin:0}.sk-hero{display:flex;justify-content:space-between;gap:26px;align-items:center;background:radial-gradient(ellipse at 80% 10%,#7540ad55,transparent 65%),radial-gradient(circle at 12% 20%,#fff5 1px,transparent 2px),radial-gradient(circle at 60% 75%,#fff4 1px,transparent 2px),linear-gradient(125deg,#28143f,#171026);border:1px solid #69448e;border-radius:20px;padding:34px}.sk-eyebrow{font-size:10px;letter-spacing:2px;color:#ceacff;font-weight:700}.sk-hero h2{font-size:clamp(24px,2.5vw,38px);font-weight:650;letter-spacing:-1.4px;margin:14px 0 10px}.sk-hero p{font-size:14px;color:#c5b6d9}.sk-hero-side{display:grid;gap:12px;justify-items:end;min-width:220px}.sk-period{font-size:14px;font-weight:600}.sk-hero-side small{color:#c5b6d9;font-size:11px}.sk-dashboard button{border:1px solid #8055b5;border-radius:9px;background:#7445a5;color:white;padding:10px 15px;cursor:pointer;font-weight:600;font-size:12px}.sk-dashboard button:hover{background:#8b55c3}.sk-dashboard button:focus-visible,#tab-overview input:focus-visible,#tab-overview select:focus-visible{outline:2px solid #d6afff;outline-offset:3px}.sk-context{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:11px}.sk-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.sk-metric{background:linear-gradient(145deg,#251535,#191124);border:1px solid var(--line);border-radius:16px;padding:22px;position:relative;overflow:hidden;display:flex;flex-direction:column;gap:12px}.sk-metric>span{font-size:12px;color:#c9bbdc}.sk-metric>strong{font-size:clamp(22px,2vw,30px);letter-spacing:-.8px}.sk-metric small{font-size:11px;line-height:1.6;min-height:35px}.sk-metric>div{font-size:10px;color:var(--muted)}.sk-metric .ov-premium-spark{display:block;width:100%;height:44px;margin:0;opacity:.8}.sk-metric .ov-premium-spark polyline{fill:none;stroke:#bd83fc;stroke-width:2;vector-effect:non-scaling-stroke}.sk-dashboard .positive{color:#91e2bb}.sk-dashboard .negative{color:#ff9fb6}.sk-dashboard .neutral{color:#b8a4d1}.sk-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.sk-main{grid-template-columns:minmax(0,2fr) minmax(270px,1fr)}.sk-thirds{grid-template-columns:repeat(3,minmax(0,1fr))}.sk-panel{min-width:0;background:#191124;border:1px solid var(--line);border-radius:18px;padding:24px}.sk-panel>header{margin-bottom:24px}.sk-panel h3{font-size:16px;font-weight:600;letter-spacing:-.3px}.sk-panel header p{font-size:11px;color:var(--muted);line-height:1.6;margin-top:7px}.sk-panel>svg{width:100%;height:auto;display:block;overflow:visible}.sk-panel svg text{fill:#b4a5c9;font:10px system-ui}.sk-grid line.sk-grid{stroke:#3a2a4c;stroke-width:1;stroke-dasharray:3 5}.sk-zero{stroke:#664883}.sk-line{stroke:#c68cff;fill:none;stroke-width:3;stroke-linejoin:round;stroke-linecap:round}.sk-before{stroke:#7f7597;fill:none;stroke-width:2;stroke-dasharray:6 6}.sk-dot{fill:#d4a4ff;stroke:#241531;stroke-width:2}.sk-legend{display:flex;justify-content:center;gap:22px;font-size:10px;color:var(--muted);margin-top:16px}.sk-legend span{display:flex;gap:7px;align-items:center}.sk-legend i{width:18px;height:3px;background:#c68cff}.sk-legend i.previous{background:repeating-linear-gradient(90deg,#7f7597 0 4px,transparent 4px 6px)}.sk-insight{background:linear-gradient(90deg,#302047,#20152f);border:1px solid #5c3e7f;border-radius:14px;display:flex;gap:16px;padding:22px}.sk-insight>span{color:#d7aaff;font-size:24px}.sk-insight strong{font-size:13px}.sk-insight p{font-size:12px;color:#d3c5e3;line-height:1.7;margin-top:6px}.sk-goal-input{display:flex;gap:8px;margin-top:8px}.sk-goal-input input{width:100%}.sk-panel label{font-size:11px;color:var(--muted)}.sk-goal-ring{margin:22px auto 14px;width:144px;height:144px;border-radius:50%;background:conic-gradient(#bb7cff var(--progress),#352342 0);padding:10px}.sk-goal-ring>div{background:#191124;border-radius:50%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}.sk-goal-ring strong{font-size:30px}.sk-goal-ring small{color:var(--muted);font-size:11px}.sk-goal-caption{text-align:center;font-size:12px;color:#cbbbdf;line-height:1.6}.sk-ranking{display:grid;gap:19px}.sk-ranking header{display:flex;justify-content:space-between;gap:15px;font-size:12px;margin-bottom:9px}.sk-ranking header span{color:#ccbddb;overflow-wrap:anywhere}.sk-ranking header strong{white-space:nowrap;font-size:12px}.sk-track{height:7px;background:#352442;border-radius:10px;overflow:hidden}.sk-track i{display:block;height:100%;background:linear-gradient(90deg,#7545ad,#cc95ff);border-radius:10px}.sk-track i.loss{background:#fb91ac}.sk-ranking small{display:block;color:var(--muted);font-size:10px;margin-top:6px}.sk-stat{display:flex;justify-content:space-between;padding:18px 0 0;margin-top:18px;border-top:1px solid var(--line);font-size:12px;color:#ccbddb}.sk-stat strong{color:#dab4ff}.sk-note,.sk-footer{font-size:10px;color:var(--muted);line-height:1.8}.sk-panel .sk-note{margin-top:16px}.sk-mini-stats{display:flex;justify-content:space-between;border-top:1px solid var(--line);margin-top:22px;padding-top:18px;gap:8px}.sk-mini-stats div{display:grid;gap:6px}.sk-mini-stats strong{font-size:21px}.sk-mini-stats span{font-size:10px;color:var(--muted)}.sk-dashboard .ov-donut-layout{display:flex;flex-direction:column;gap:22px;align-items:center;margin:0}.sk-dashboard .ov-donut{width:138px;height:138px;flex:0 0 138px}.sk-dashboard .ov-donut>div{background:#191124}.sk-dashboard .ov-donut strong{font-size:18px;color:#eee9ff}.sk-dashboard .ov-donut-legend{width:100%}.sk-dashboard .ov-donut-legend div{font-size:11px}.sk-dashboard .ov-donut-legend b{max-width:100px;overflow-wrap:anywhere}.sk-dashboard .ov-efficiency-list{display:grid;gap:19px}.sk-dashboard .ov-efficiency-list header{font-size:11px}.sk-dashboard .ov-efficiency-list>div>i{background:#352442}.sk-dashboard .ov-hour-bars{height:180px;gap:4px;margin-top:30px}.sk-dashboard .ov-hour-bars small{font-size:8px;color:#b4a5c9}.sk-dashboard .ov-hour-bars i{background:linear-gradient(#c68cff,#7443ac);min-height:0}.sk-review-score{font-size:38px;font-weight:600;margin-bottom:24px}.sk-review-score span{font-size:18px;color:#b4a5c9}.sk-review-score small{display:block;font-size:11px;font-weight:400;color:var(--muted);margin-top:8px}.sk-dashboard .ov-comparison-insights{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.sk-dashboard .ov-comparison-insight{background:#251833;padding:13px;border-color:#422d57;min-width:0}.sk-dashboard .ov-comparison-insight strong{font-size:11px}.sk-dashboard .ov-comparison-insight p{font-size:10px;line-height:1.6}.sk-dashboard .ov-comparison-insight small{font-size:9px;line-height:1.5}.sk-empty{padding:35px;text-align:center;color:#b4a5c9;font-size:13px}.sk-footer{border-top:1px solid var(--line);padding-top:18px}@media(max-width:1100px){.sk-thirds{grid-template-columns:1fr 1fr}.sk-thirds .sk-panel:last-child{grid-column:1/-1}.sk-metrics{grid-template-columns:1fr 1fr}.sk-main{grid-template-columns:1fr 1fr}.sk-hero{padding:25px}.sk-dashboard .ov-hour-bars{overflow-x:auto}}@media(max-width:720px){#tab-overview .starby-overview-shell{padding:14px}.sk-hero{flex-direction:column;align-items:flex-start;padding:22px}.sk-hero-side{justify-items:start;min-width:0}.sk-grid,.sk-thirds,.sk-main{grid-template-columns:1fr}.sk-thirds .sk-panel:last-child{grid-column:auto}.sk-context{flex-direction:column}.sk-metric{padding:15px}.sk-metric>strong{font-size:21px}.sk-panel{padding:19px}.sk-dashboard .ov-comparison-insights{grid-template-columns:1fr}.sk-legend{gap:12px}.sk-dashboard .ov-hour-bars{min-width:0}.sk-dashboard .ov-hour-bars-24{grid-template-columns:repeat(24,minmax(10px,1fr))}.sk-dashboard .ov-hour-bars small{font-size:7px}.starby-overview-date-label{width:100%}}

/* Filtros abaixo da apresentação, com a mesma paleta do painel. */
#overviewHeroArea:not(:empty){margin-bottom:16px}
body[data-app="admin"] #tab-overview .starby-overview-topbar{background:linear-gradient(120deg,#251735,#1a1227)!important;border:1px solid #51366f!important;border-radius:16px!important;padding:12px 14px!important;margin:0 0 22px!important;justify-content:flex-start!important;box-shadow:none!important}
body[data-app="admin"] #tab-overview .starby-overview-actions{margin:0!important;width:100%;gap:10px!important;justify-content:flex-start!important;flex-wrap:wrap!important}
body[data-app="admin"] #tab-overview .overview-order-history-btn{background:#704397!important;border:1px solid #9a6cbf!important;color:#f7efff!important;border-radius:10px!important;box-shadow:none!important;font-weight:600!important}
body[data-app="admin"] #tab-overview .overview-order-history-btn:hover{background:#8653af!important}
body[data-app="admin"] #tab-overview #overviewPeriodFilter,body[data-app="admin"] #tab-overview .overview-custom-dates input{background:#20152e!important;border:1px solid #51366f!important;color:#eadff6!important;box-shadow:none!important}
body[data-app="admin"] #tab-overview .starby-overview-date-label{background:#30203f!important;border:1px solid #51366f!important;color:#cdb5e1!important;border-radius:10px!important;box-shadow:none!important}
@media(max-width:600px){body[data-app="admin"] #tab-overview .starby-overview-actions>*{max-width:100%;box-sizing:border-box}body[data-app="admin"] #tab-overview #overviewPeriodFilter{flex:1;min-width:140px}body[data-app="admin"] #tab-overview .overview-custom-dates{flex-wrap:wrap}}

/* Apresentação e filtros no mesmo card, sem recriar os campos ao atualizar. */
#tab-overview .sk-hero-card{background:radial-gradient(ellipse at 80% 10%,#7540ad55,transparent 65%),radial-gradient(circle at 12% 20%,#fff5 1px,transparent 2px),radial-gradient(circle at 60% 75%,#fff4 1px,transparent 2px),linear-gradient(125deg,#28143f,#171026);border:1px solid #69448e;border-radius:20px;padding:28px 32px 18px;margin-bottom:22px;min-width:0}
#tab-overview .sk-hero-card #overviewHeroArea{margin:0}
#tab-overview .sk-hero-card .sk-hero{background:none!important;border:0!important;border-radius:0!important;padding:0 0 24px!important;box-shadow:none!important}
body[data-app="admin"] #tab-overview .sk-hero-card .starby-overview-topbar{background:transparent!important;border:0!important;border-top:1px solid #b78adb30!important;border-radius:0!important;padding:18px 0 0!important;margin:0!important}
@media(max-width:720px){#tab-overview .sk-hero-card{padding:22px 18px 18px}#tab-overview .sk-hero-card .sk-hero{padding-bottom:20px!important}}

/* Ações na mesma linha, alinhadas à direita do card. */
body[data-app="admin"] #tab-overview .sk-hero-card .starby-overview-actions{justify-content:flex-end!important;align-items:center!important}
body[data-app="admin"] #tab-overview .sk-hero-card .starby-overview-actions>button,body[data-app="admin"] #tab-overview .sk-hero-card #overviewPeriodFilter{height:42px!important;min-height:42px!important;margin:0!important;border-radius:10px!important;font-size:12px!important;box-sizing:border-box!important}
body[data-app="admin"] #tab-overview .sk-hero-card #overviewPeriodFilter{width:180px!important;min-width:140px!important}
body[data-app="admin"] #tab-overview .sk-export-button{background:#352147!important;color:#eee1fa!important;border:1px solid #8055a5!important;padding:0 15px!important;font-weight:600!important;box-shadow:none!important;cursor:pointer}
body[data-app="admin"] #tab-overview .sk-export-button:hover{background:#49305e!important}
body[data-app="admin"] #tab-overview .sk-hero-card .overview-custom-dates{flex-basis:100%;justify-content:flex-end;gap:12px}
@media(max-width:600px){body[data-app="admin"] #tab-overview .sk-hero-card .starby-overview-actions>button{flex:1 1 auto}body[data-app="admin"] #tab-overview .sk-hero-card #overviewPeriodFilter{flex:1 1 140px}}

/* Cabeçalho compacto: apresentação à esquerda, período e ações à direita. */
body[data-app="admin"] #tab-overview .sk-hero-card{display:grid;grid-template-columns:minmax(230px,1fr) auto;gap:14px 24px;padding:26px 28px;margin-bottom:22px;align-items:center}
body[data-app="admin"] #tab-overview .sk-hero-card #overviewHeroArea,body[data-app="admin"] #tab-overview .sk-hero-card .sk-hero{display:contents!important}
body[data-app="admin"] #tab-overview .sk-hero-card .sk-hero>div:first-child{grid-column:1;grid-row:1 / 3;min-width:0}
body[data-app="admin"] #tab-overview .sk-hero-card .sk-eyebrow{display:block;font-size:9px;letter-spacing:1.5px;line-height:1.5}
body[data-app="admin"] #tab-overview .sk-hero-card h2{font-size:23px!important;line-height:1.2!important;letter-spacing:-.7px!important;margin:8px 0 10px!important;font-weight:650!important}
body[data-app="admin"] #tab-overview .sk-hero-card .sk-hero p{font-size:12px!important;line-height:1.6!important;max-width:350px;color:#baa8cd!important}
body[data-app="admin"] #tab-overview .sk-hero-card .sk-hero-side{grid-column:2;grid-row:1;min-width:0;gap:5px;justify-items:end;align-self:end}
body[data-app="admin"] #tab-overview .sk-hero-card .sk-period{font-size:12px;color:#e1cfef}
body[data-app="admin"] #tab-overview .sk-hero-card .sk-hero-side small{font-size:10px;color:#ad96bf}
body[data-app="admin"] #tab-overview .sk-hero-card .starby-overview-topbar{grid-column:2;grid-row:2;display:block!important;align-self:start;border:0!important;padding:0!important;min-width:0!important}
body[data-app="admin"] #tab-overview .sk-hero-card .starby-overview-actions{display:grid!important;grid-template-columns:158px 136px 158px!important;gap:8px!important;width:auto!important;margin:0!important}
body[data-app="admin"] #tab-overview .sk-hero-card .starby-overview-actions>button,body[data-app="admin"] #tab-overview .sk-hero-card #overviewPeriodFilter{width:100%!important;min-width:0!important;max-width:none!important;height:38px!important;min-height:38px!important;padding:0 10px!important;font-size:11px!important;line-height:1.2!important;border-radius:8px!important;white-space:nowrap!important;margin:0!important;letter-spacing:0!important}
body[data-app="admin"] #tab-overview .sk-hero-card .overview-order-history-btn{background:#32203f!important;border-color:#705085!important;color:#e7d8f4!important}
body[data-app="admin"] #tab-overview .sk-hero-card .overview-order-history-btn:hover{background:#443054!important}
body[data-app="admin"] #tab-overview .sk-hero-card .sk-export-button{background:#633b83!important;border-color:#9264b4!important;color:#fff!important}
body[data-app="admin"] #tab-overview .sk-hero-card .sk-export-button:hover{background:#774a99!important}
body[data-app="admin"] #tab-overview .sk-hero-card .overview-custom-dates{grid-column:1 / -1;justify-content:flex-end!important;flex-wrap:wrap;max-width:100%;margin:4px 0 0!important}
@media(max-width:1200px){
 body[data-app="admin"] #tab-overview .sk-hero-card{grid-template-columns:1fr;gap:16px;padding:24px}
 body[data-app="admin"] #tab-overview .sk-hero-card .sk-hero>div:first-child{grid-column:1;grid-row:1}
 body[data-app="admin"] #tab-overview .sk-hero-card .sk-hero-side{grid-column:1;grid-row:2;justify-items:start}
 body[data-app="admin"] #tab-overview .sk-hero-card .starby-overview-topbar{grid-column:1;grid-row:3}
 body[data-app="admin"] #tab-overview .sk-hero-card .starby-overview-actions{grid-template-columns:1fr 1fr 1fr!important;width:100%!important}
 body[data-app="admin"] #tab-overview .sk-hero-card .sk-hero p{max-width:none}
}
@media(max-width:540px){
 body[data-app="admin"] #tab-overview .sk-hero-card{padding:20px 16px}
 body[data-app="admin"] #tab-overview .sk-hero-card h2{font-size:22px!important}
 body[data-app="admin"] #tab-overview .sk-hero-card .starby-overview-actions{grid-template-columns:1fr 1fr!important}
 body[data-app="admin"] #tab-overview .sk-hero-card .sk-export-button{grid-column:1 / -1}
 body[data-app="admin"] #tab-overview .sk-hero-card .overview-custom-dates{justify-content:flex-start!important}
}

/* Histórico de pedidos: mesma paleta Stellar da Visão Geral. */
body[data-app="admin"] #overviewOrderHistoryModal{--history-text:#eee9ff;--history-muted:#b4a5c9;--history-line:#51366f;background:rgba(8,4,17,.76)!important;backdrop-filter:blur(5px)}
body[data-app="admin"] #overviewOrderHistoryModal .overview-order-history-modal{background:radial-gradient(ellipse at 85% 0,#7540ad30,transparent 48%),linear-gradient(145deg,#21132f,#171026 76%)!important;border-color:#69448e!important;color:var(--history-text)!important;box-shadow:0 28px 80px #07030eb3!important}
body[data-app="admin"] #overviewOrderHistoryModal .overview-history-head{background:transparent!important;border-color:#69448e55!important}
body[data-app="admin"] #overviewOrderHistoryModal .overview-history-head h2{color:#f3eafa!important}
body[data-app="admin"] #overviewOrderHistoryModal .overview-history-icon{background:#382347!important;border:1px solid #8055a566!important;color:#d6b3f5!important;box-shadow:none!important}
body[data-app="admin"] #overviewOrderHistoryModal .overview-history-icon svg{stroke:currentColor!important}
body[data-app="admin"] #overviewOrderHistoryModal .overview-history-close{background:#352147!important;border-color:#8055a5!important;color:#e8d7f6!important;box-shadow:none!important}
body[data-app="admin"] #overviewOrderHistoryModal .overview-history-close:hover{background:#4a2f60!important;border-color:#b98be0!important;color:#fff!important}
body[data-app="admin"] #overviewOrderHistoryModal .overview-history-filters{background:#251735!important;border-color:var(--history-line)!important}
body[data-app="admin"] #overviewOrderHistoryModal .overview-history-filters label>span{color:#c9bbdc!important;font-weight:600!important}
body[data-app="admin"] #overviewOrderHistoryModal .overview-history-search-box{background:transparent!important;border-color:var(--history-line)!important}
body[data-app="admin"] #overviewOrderHistoryModal .overview-history-search-box svg{color:#bda0d5!important;stroke:currentColor!important}
body[data-app="admin"] #overviewOrderHistoryModal .overview-history-filters input,body[data-app="admin"] #overviewOrderHistoryModal .overview-history-filters select{background:#1d1430!important;color:var(--history-text)!important;border-color:var(--history-line)!important;color-scheme:dark}
body[data-app="admin"] #overviewOrderHistoryModal input::placeholder{color:#a18cae!important;opacity:1}
body[data-app="admin"] #overviewOrderHistoryModal .overview-history-filters input:focus,body[data-app="admin"] #overviewOrderHistoryModal .overview-history-filters select:focus{border-color:#bd83fc!important;box-shadow:0 0 0 3px #bd83fc20!important}
body[data-app="admin"] #overviewOrderHistoryModal .overview-history-clear{background:#633b83!important;border-color:#9264b4!important;color:#fff!important;box-shadow:none!important;font-weight:600!important}
body[data-app="admin"] #overviewOrderHistoryModal .overview-history-clear:hover{background:#774a99!important}
body[data-app="admin"] #overviewOrderHistoryModal button:focus-visible{outline:2px solid #d6afff!important;outline-offset:3px}
body[data-app="admin"] #overviewOrderHistoryModal .overview-history-summary{color:var(--history-muted)!important}
body[data-app="admin"] #overviewOrderHistoryModal .overview-history-summary article{background:linear-gradient(145deg,#2a1a39,#1e152b)!important;border-color:#51366f!important;box-shadow:none!important}
body[data-app="admin"] #overviewOrderHistoryModal .overview-history-summary span{color:#c9bbdc!important}
body[data-app="admin"] #overviewOrderHistoryModal .overview-history-summary small{color:var(--history-muted)!important}
body[data-app="admin"] #overviewOrderHistoryModal .overview-history-summary strong,body[data-app="admin"] #overviewOrderHistoryModal .overview-history-summary b{color:#eee9ff!important}
body[data-app="admin"] #overviewOrderHistoryModal .overview-history-table-wrap{background:#191124!important;border-color:#51366f!important;scrollbar-color:#705085 #191124}
body[data-app="admin"] #overviewOrderHistoryModal table{background:transparent!important}
body[data-app="admin"] #overviewOrderHistoryModal th{background:#30203f!important;color:#d3bfE4!important;border-color:#51366f!important}
body[data-app="admin"] #overviewOrderHistoryModal td{background:transparent!important;color:#c9bbdc!important;border-color:#38264d!important}
body[data-app="admin"] #overviewOrderHistoryModal tbody tr:nth-child(even){background:#21162d!important}
body[data-app="admin"] #overviewOrderHistoryModal tbody tr:hover td{background:#352147!important}
body[data-app="admin"] #overviewOrderHistoryModal td strong,body[data-app="admin"] #overviewOrderHistoryModal td b{color:#f1e7fc!important}
body[data-app="admin"] #overviewOrderHistoryModal .overview-history-customer small{color:#b4a5c9!important}
body[data-app="admin"] #overviewOrderHistoryModal .overview-history-empty{color:#b4a5c9!important;background:transparent!important}
body[data-app="admin"] #overviewOrderHistoryModal .overview-history-empty strong{color:#dec5ef!important}
