/* Reorganização visual exclusiva das duas análises por SKU. */
.sku-dashboard { --sku-ink:#122946; --sku-muted:#61748c; --sku-line:#dce5f1; display:grid; gap:22px; padding:8px 2px 26px; color:var(--sku-ink); }
.sku-dashboard .sku-hero { position:relative; display:flex; justify-content:space-between; align-items:center; gap:28px; padding:30px 34px; overflow:hidden; border:0; border-radius:22px; background:linear-gradient(115deg,#102641 0%,#203e66 67%,#355885 100%); color:#fff; box-shadow:0 16px 35px #132c4c26; }
.sku-dashboard.no-sales-dashboard .sku-hero { background:linear-gradient(115deg,#382842,#654264 67%,#a86461); }
.sku-dashboard .sku-hero h2 { margin:5px 0 8px; color:#fff; font-size:clamp(26px,2.5vw,34px); letter-spacing:-.035em; }
.sku-dashboard .sku-hero .eyebrow { color:#ffa77b; letter-spacing:.12em; font-weight:800; }
.sku-dashboard .sku-hero>div:first-child>span { display:block; max-width:670px; color:#d6e3f3; font-size:14px; line-height:1.6; }
.sku-dashboard .sku-period-card { flex:0 1 310px; min-width:230px; display:grid; gap:7px; padding:17px 20px; border:1px solid #ffffff40; border-radius:15px; background:#ffffff14; color:#fff; }
.sku-dashboard .sku-period-card strong { color:#fff; font-size:17px; }
.sku-dashboard .sku-period-card small,.sku-dashboard .sku-period-card span { color:#dceafa; }
.sku-dashboard .sku-decision-grid,.sku-dashboard .sku-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.sku-dashboard .sku-decision-grid>button,.sku-dashboard .sku-kpis>article { min-height:112px; padding:18px; border:1px solid var(--sku-line); border-radius:16px; background:#fff; box-shadow:0 4px 14px #1b355308; }
.sku-dashboard .sku-decision-grid>button { text-align:left; transition:transform .16s,box-shadow .16s; }
.sku-dashboard .sku-decision-grid>button:hover { transform:translateY(-2px); box-shadow:0 9px 22px #1b35531c; }
.sku-dashboard .sku-decision-grid>button.active { outline:2px solid #4b6ee1; outline-offset:2px; }
.sku-dashboard .sku-decision-grid strong,.sku-dashboard .sku-kpis strong { display:block; margin:6px 0; font-size:23px; letter-spacing:-.03em; }
.sku-dashboard .sku-controls { display:grid; gap:20px; padding:24px; border:1px solid var(--sku-line); border-radius:19px; background:#fff; box-shadow:0 6px 22px #1b355309; }
.sku-dashboard .sku-search { margin:0; }
.sku-dashboard .sku-search input,.sku-dashboard .sku-filter-grid select,.sku-dashboard .sku-custom-period input { min-height:44px; border:1px solid #cbd8e8; border-radius:10px; background:#f9fbfe; }
.sku-dashboard .sku-filter-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:14px; }
.sku-dashboard .sku-filter-grid label { display:grid; gap:7px; color:var(--sku-muted); font-size:12px; font-weight:700; }
.sku-dashboard .sku-kind-filter,.sku-dashboard .sku-period-filter { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding-top:16px; border-top:1px solid #edf1f6; }
.sku-dashboard .sku-kind-filter>span,.sku-dashboard .sku-period-filter>span { min-width:125px; color:var(--sku-muted); font-size:12px; font-weight:800; }
.sku-dashboard .sku-kind-filter>div,.sku-dashboard .sku-period-filter>div { display:flex; flex-wrap:wrap; gap:7px; }
.sku-dashboard .sku-kind-filter button,.sku-dashboard .sku-period-filter button { min-height:38px; padding:8px 14px; border:1px solid #dce5f1; border-radius:10px; background:#f4f7fb; color:#435a76; font-weight:700; cursor:pointer; }
.sku-dashboard .sku-kind-filter button.active,.sku-dashboard .sku-period-filter button.active { border-color:#385ad0; background:#385ad0; color:white; }
.sku-dashboard .sku-table-note { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; padding:14px 18px; border:1px solid #dce7f5; border-radius:13px; background:#f2f7fd; color:#4d6581; font-size:12px; line-height:1.5; }
.sku-dashboard .sku-table-shell { border:1px solid var(--sku-line); border-radius:17px; background:#fff; box-shadow:0 8px 24px #1b35530a; }
.sku-dashboard .sku-table th { padding:15px 16px; background:#edf3fb; color:#425c7a; font-size:11px; letter-spacing:.04em; text-transform:uppercase; white-space:nowrap; }
.sku-dashboard .sku-table td { padding:17px 16px; border-bottom:1px solid #eaf0f7; vertical-align:middle; }
.sku-dashboard .sku-table td small { display:block; margin-top:5px; color:#667b94; line-height:1.4; }
.sku-dashboard .sku-table tbody tr:hover td { background:#f1f7ff; }
.sku-dashboard .sku-product-cell { min-width:250px; gap:12px; }
.sku-dashboard .sku-product-cell strong { line-height:1.4; }
.sku-dashboard .sku-source-note { display:flex; flex-wrap:wrap; gap:8px; padding:16px 18px; border-radius:14px; background:#f2f6fa; color:#5e7188; font-size:12px; }
.sku-dashboard .sku-source-note strong { color:#294866; }
html[data-theme="black"] .sku-dashboard { --sku-ink:#e5effb; --sku-muted:#adbed3; --sku-line:#34495f; }
html[data-theme="black"] .sku-dashboard .sku-controls,html[data-theme="black"] .sku-dashboard .sku-decision-grid>button,html[data-theme="black"] .sku-dashboard .sku-kpis>article,html[data-theme="black"] .sku-dashboard .sku-table-shell { background:#172a3e; color:#e5effb; }
html[data-theme="black"] .sku-dashboard .sku-table th,html[data-theme="black"] .sku-dashboard .sku-table-note,html[data-theme="black"] .sku-dashboard .sku-source-note { background:#213951; color:#d3e1f1; border-color:#34495f; }
html[data-theme="black"] .sku-dashboard .sku-search input,html[data-theme="black"] .sku-dashboard .sku-filter-grid select,html[data-theme="black"] .sku-dashboard .sku-custom-period input,html[data-theme="black"] .sku-dashboard .sku-kind-filter button:not(.active),html[data-theme="black"] .sku-dashboard .sku-period-filter button:not(.active) { background:#102338; color:#e5effb; border-color:#405a75; }
html[data-theme="black"] .sku-dashboard .sku-table td { border-color:#34495f; }
html[data-theme="black"] .sku-dashboard .sku-table td small { color:#b7cbe0; }
@media(max-width:900px) { .sku-dashboard .sku-decision-grid,.sku-dashboard .sku-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } .sku-dashboard .sku-hero { align-items:stretch; flex-direction:column; padding:24px; } .sku-dashboard .sku-period-card { flex:auto; } }
@media(max-width:540px) { .sku-dashboard { gap:15px; } .sku-dashboard .sku-hero,.sku-dashboard .sku-controls { padding:18px; border-radius:16px; } .sku-dashboard .sku-decision-grid,.sku-dashboard .sku-kpis { gap:8px; } .sku-dashboard .sku-decision-grid>button,.sku-dashboard .sku-kpis>article { padding:13px; } .sku-dashboard .sku-filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.sku-dashboard .sku-clean-shell { max-height:none; overflow-x:auto; overflow-y:visible; }
.sku-dashboard .sku-clean-table { width:100%; min-width:860px; table-layout:fixed; }
.sku-dashboard .sku-clean-table th:first-child,.sku-dashboard .sku-clean-table td:first-child { position:static; min-width:0; width:31%; }
.sku-dashboard .sku-clean-table th:nth-child(2),.sku-dashboard .sku-clean-table th:nth-child(3),.sku-dashboard .sku-clean-table th:nth-child(4),.sku-dashboard .sku-clean-table th:nth-child(5) { width:13%; }
.sku-dashboard .sku-clean-table th:last-child { width:17%; }
.sku-dashboard .sku-clean-table th { position:static; }
.sku-dashboard .sku-clean-table td { font-size:14px; line-height:1.45; }
.sku-dashboard .sku-clean-table td strong { font-size:15px; }
.sku-dashboard .sku-clean-table .sku-product-cell { min-width:0; }
.sku-dashboard .sku-clean-table .sku-product-cell img,.sku-dashboard .sku-clean-table .sku-product-placeholder { width:62px; height:62px; object-fit:contain; flex:none; border:1px solid #e2e9f3; border-radius:12px; background:#fff; }
.sku-row-details { position:relative; }
.sku-row-details summary { display:inline-flex; padding:10px 13px; border:1px solid #cbd9eb; border-radius:10px; color:#244e87; background:#f3f7fd; cursor:pointer; font-weight:750; list-style:none; white-space:nowrap; }
.sku-row-details summary::-webkit-details-marker { display:none; }
.sku-row-details summary::after { content:' ▾'; }
.sku-row-details[open] summary::after { content:' ▴'; }
.sku-detail-content { min-width:210px; margin-top:10px; padding:14px; border:1px solid #dbe6f3; border-radius:12px; background:#f8fbff; color:#243c58; font-size:13px; }
.sku-detail-content p { margin:9px 0; line-height:1.45; }
.sku-detail-content small,.sku-detail-links small { display:block; margin-top:6px; }
.sku-detail-links { padding:10px 0; border-top:1px solid #dfe9f5; }
.sku-detail-links a { color:#2455b5; font-weight:700; }
html[data-theme="black"] .sku-row-details summary { background:#203c59; border-color:#49637e; color:#e5effb; }
html[data-theme="black"] .sku-detail-content { background:#102338; border-color:#405a75; color:#e5effb; }
html[data-theme="black"] .sku-detail-links a { color:#a7c9ff; }
.rifle-tabs,.rifle-controls>div { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.rifle-tabs button,.rifle-controls button { border:1px solid #cddbef; border-radius:10px; padding:10px 15px; background:#fff; color:#294866; font-weight:700; cursor:pointer; }
.rifle-tabs button.active,.rifle-controls button.active { background:#315ac7; color:#fff; border-color:#315ac7; }
.rifle-controls { display:grid; gap:14px; padding:18px; background:#fff; border:1px solid var(--sku-line); border-radius:16px; }
.rifle-controls strong { margin-right:8px; }
.rifle-explanation { padding:16px 20px; border-radius:12px; background:#fff6df; border:1px solid #f2d99c; color:#684800; line-height:1.55; }
.rifle-group { border:1px solid var(--sku-line); border-radius:16px; overflow:hidden; background:#fff; }
.rifle-group>header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 20px; background:#f2f6fc; border-left:5px solid #6686d9; }
.rifle-comprar>header { border-color:#e95a49; background:#fff3ef; }.rifle-nao_priorizar>header { border-color:#879aaf; }.rifle-conferir>header { border-color:#e1a52c; background:#fff9e9; }
.rifle-group h3 { margin:0 0 3px; font-size:17px; }.rifle-group header small,.rifle-row small { color:#5b718d; }
.rifle-group header b { border-radius:20px; padding:5px 10px; background:#fff; }
.rifle-row { display:grid; grid-template-columns:minmax(240px,2fr) repeat(4,minmax(120px,1fr)); gap:16px; align-items:center; padding:18px 20px; border-top:1px solid #e8eef5; }
.rifle-row>div:not(.rifle-product) { display:grid; gap:4px; }.rifle-row strong { font-size:15px; }.rifle-row small { display:block; font-size:12px; line-height:1.4; }
.rifle-product { display:flex; align-items:center; gap:12px; }.rifle-product img,.rifle-product .sku-product-placeholder { width:60px; height:60px; object-fit:contain; border:1px solid #e0e9f2; border-radius:10px; background:white; flex:none; }
.rifle-empty { margin:0; padding:20px; color:#63768a; }
html[data-theme="black"] .rifle-controls,html[data-theme="black"] .rifle-group { background:#172a3e; color:#e5effb; }
html[data-theme="black"] .rifle-group>header { background:#243b52; }.rifle-controls button:focus-visible,.rifle-tabs button:focus-visible { outline:3px solid #e89834; outline-offset:2px; }
html[data-theme="black"] .rifle-row { border-color:#34495f; } html[data-theme="black"] .rifle-row small { color:#c1d2e4; }
@media(max-width:1050px) { .rifle-row { grid-template-columns:repeat(2,minmax(0,1fr)); }.rifle-product { grid-column:1/-1; } }
@media(max-width:540px) { .rifle-row { padding:16px; gap:14px; }.rifle-controls>div { align-items:flex-start; }.rifle-controls strong { width:100%; } }
.dashboard-cancelled-sales { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:18px; margin:14px 0; padding:17px 22px; border:1px solid #dde6f1; border-left:5px solid #97a8bb; border-radius:15px; background:#f7f9fc; color:#1d3550; }
.dashboard-cancelled-sales.has-cancellations { background:#fff5ee; border-color:#f3cdb7; border-left-color:#ec7044; }
.dashboard-cancelled-sales>div { display:grid; gap:5px; }.dashboard-cancelled-sales>div:last-child { justify-items:end; }
.dashboard-cancelled-sales>.dashboard-cancelled-list { flex:1 0 100%; display:grid; justify-items:stretch; gap:8px; padding-top:12px; border-top:1px solid #edcebd; }
.dashboard-cancelled-order { display:flex; justify-content:space-between; gap:16px; align-items:start; padding:10px 12px; background:#fff; border:1px solid #f0ded2; border-radius:10px; }
.dashboard-cancelled-order>div { display:grid; gap:5px; }.dashboard-cancelled-order strong { font-size:14px; }
html[data-theme="black"] .dashboard-cancelled-order { background:#273548; border-color:#665249; }
.dashboard-cancelled-sales span,.dashboard-cancelled-sales small { color:#66788d; font-size:12px; }.dashboard-cancelled-sales strong { font-size:19px; }
html[data-theme="black"] .dashboard-cancelled-sales { background:#1b2d40; border-color:#40546b; color:#f0f5fa; }
html[data-theme="black"] .dashboard-cancelled-sales.has-cancellations { background:#402b27; border-left-color:#ff956b; }
html[data-theme="black"] .dashboard-cancelled-sales span,html[data-theme="black"] .dashboard-cancelled-sales small { color:#c0cddc; }
/* Faixa compacta; os detalhes ficam fechados até serem solicitados. */
.dashboard-cancelled-sales { display:flex; align-items:center; gap:10px 18px; margin:9px 0; padding:11px 15px; border-radius:12px; }
.dashboard-cancelled-sales>.cancelled-compact-heading { display:flex; align-items:center; flex:1 1 350px; gap:11px; }
.dashboard-cancelled-sales .cancelled-compact-heading>div { display:grid; gap:3px; }
.dashboard-cancelled-sales .cancelled-marker { display:grid; place-items:center; width:34px; height:34px; border-radius:10px; background:#fce5de; color:#bd4c32; font-size:23px; font-weight:800; flex:none; }
.dashboard-cancelled-sales .cancelled-compact-heading strong { font-size:15px; line-height:1.25; }
.dashboard-cancelled-sales .cancelled-compact-value { margin-left:auto; text-align:right; }
.dashboard-cancelled-sales .cancelled-expand { flex:0 0 auto; }
.dashboard-cancelled-sales .cancelled-expand[open] { flex:1 0 100%; }
.cancelled-expand summary { list-style:none; cursor:pointer; color:#a2462d; font-size:13px; font-weight:750; padding:7px 11px; border:1px solid #edc5b6; border-radius:9px; background:#fff; }
.cancelled-expand summary::-webkit-details-marker { display:none; }.cancelled-expand summary:focus-visible { outline:3px solid #426fd4; outline-offset:2px; }
.dashboard-cancelled-sales .dashboard-cancelled-list { display:grid; gap:6px; max-height:300px; overflow-y:auto; margin-top:8px; padding-top:8px; border-top:1px solid #edcebd; }
.dashboard-cancelled-sales .dashboard-cancelled-order { padding:8px 10px; }
.dashboard-cancelled-sales .cancelled-sync { flex:1 0 100%; font-size:11px; }
html[data-theme="black"] .dashboard-cancelled-sales .cancelled-expand summary { background:#263c50; border-color:#855b4d; color:#ffcab6; }
@media(max-width:600px) { .dashboard-cancelled-sales { padding:10px 12px; gap:8px; }.dashboard-cancelled-sales>.cancelled-compact-heading { flex-basis:100%; }.dashboard-cancelled-sales .cancelled-expand { margin-left:45px; }.dashboard-cancelled-order { flex-wrap:wrap; } }
