/* ControlPDV — padrão visual global: herda tipografia, botões, cards, inputs e tokens Aurora do shell. */
/* ControlPDV — Lotes e Validades */
.expiry-kpis{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:10px;margin-bottom:10px}
.expiry-kpi{padding:14px;border:1px solid var(--aurora-line,var(--line));border-radius:var(--radius-sm,13px);background:var(--panel2,#f6fafc);display:flex;flex-direction:column;gap:3px}
.expiry-kpi span{font-size:9px;font-weight:950;letter-spacing:.08em;color:var(--muted,#66788a)}
.expiry-kpi strong{font-size:27px;color:var(--aurora-steel,#163047)}.expiry-kpi small{color:var(--muted,#66788a);font-size:10px}
.expiry-kpi.danger{background:#fbe7e7;border-color:#e6b8b8}.expiry-kpi.danger strong{color:#9f2e2e}
.expiry-kpi.danger-soft{background:#fff0e5;border-color:#e9c8ad}.expiry-kpi.danger-soft strong{color:#a24f15}
.expiry-kpi.warn{background:#fff6de;border-color:#e4d09a}.expiry-kpi.warn strong{color:#876000}
.expiry-kpi.attention{background:#e6f3f7;border-color:#b5d6e1}
.expiry-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:10px;padding:10px 12px!important;background:var(--panel2,#f6fafc);border-color:var(--aurora-line,var(--line))}
.expiry-toolbar>div:first-child{display:flex;flex-direction:column;gap:2px}.expiry-toolbar strong{color:var(--aurora-steel,#163047)}.expiry-toolbar span{font-size:11px;color:var(--muted,#66788a)}
.expiry-horizon{display:flex;gap:5px;flex-wrap:wrap}.expiry-horizon button{border:1px solid var(--aurora-line,var(--line));background:var(--panel,#fff);color:var(--aurora-steel,#163047);border-radius:999px;padding:6px 10px;font:inherit;font-size:10px;font-weight:900;cursor:pointer}
.expiry-horizon button.active{background:linear-gradient(115deg,#0b7892 0%,#159bb4 48%,#2bb9a9 100%);color:#fff;border-color:#1698ad}
.expiry-table-wrap{background:var(--panel,#fff);border-color:var(--aurora-line,var(--line));overflow:auto}
.expiry-table thead th{background:#dcebf3;color:var(--aurora-steel,#163047);font-size:9px;letter-spacing:.07em}
.expiry-table tbody tr:nth-child(odd){background:var(--panel,#fff)}.expiry-table tbody tr:nth-child(even){background:var(--panel2,#f6fafc)}
.expiry-table tbody tr:hover{background:#eff9fb}.expiry-table td{vertical-align:middle;border-color:var(--aurora-line,var(--line))}
.expiry-table td:first-child{min-width:220px}.expiry-table td:first-child small,.expiry-table td:nth-child(2) small{display:block;color:var(--muted,#66788a);font-size:9px;margin-top:2px}
.expiry-risk{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 8px;font-size:9px;font-weight:950;white-space:nowrap}
.expiry-risk i{width:7px;height:7px;border-radius:50%;background:currentColor}
.expiry-risk.danger{background:#ffe3e3;color:#a62d2d}.expiry-risk.warn{background:#fff2d2;color:#8b6200}.expiry-risk.attention{background:#e4f2f7;color:#1a6579}.expiry-risk.ok{background:#e1f7ed;color:#08794c}.expiry-risk.muted{background:#e5ebef;color:#617584}
.expiry-overdue{font-weight:900;color:#a42f2f}.expiry-actions{flex-wrap:nowrap}.expiry-actions .btn{white-space:nowrap}
.expiry-empty{padding:28px;display:flex;flex-direction:column;align-items:center;gap:4px}.expiry-empty strong{color:var(--aurora-steel,#163047)}.expiry-empty span{font-size:11px;color:var(--muted,#66788a)}
.expiry-promo-product{display:flex;flex-direction:column;gap:3px;padding:11px;border-radius:12px;background:var(--panel2,#f6fafc);margin-bottom:10px}.expiry-promo-product span{font-size:11px;color:var(--muted,#66788a)}
.expiry-promo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:10px}.expiry-promo-grid span{display:flex;flex-direction:column;gap:3px;padding:10px;border-radius:11px;background:var(--panel2,#f6fafc)}.expiry-promo-grid small{font-size:9px;font-weight:900;color:var(--muted,#66788a);text-transform:uppercase}.expiry-promo-grid strong{font-size:18px;color:var(--aurora-steel,#163047)}
.expiry-promo-note{display:flex;flex-direction:column;gap:3px;padding:10px;border:1px solid #e4c67e;border-radius:10px;background:#fff7df;color:#6e5500;font-size:11px;margin-top:10px}

html[data-cp-theme="dark"] .expiry-kpi,
html[data-cp-theme="dark"] .expiry-toolbar,
html[data-cp-theme="dark"] .expiry-table-wrap,
html[data-theme="dark"] .expiry-kpi,
html[data-theme="dark"] .expiry-toolbar,
html[data-theme="dark"] .expiry-table-wrap{background:#102a3d;border-color:#315269}
html[data-cp-theme="dark"] .expiry-kpi strong,
html[data-cp-theme="dark"] .expiry-toolbar strong,
html[data-theme="dark"] .expiry-kpi strong,
html[data-theme="dark"] .expiry-toolbar strong{color:#f4fbff}
html[data-cp-theme="dark"] .expiry-kpi span,
html[data-cp-theme="dark"] .expiry-kpi small,
html[data-cp-theme="dark"] .expiry-toolbar span,
html[data-theme="dark"] .expiry-kpi span,
html[data-theme="dark"] .expiry-kpi small,
html[data-theme="dark"] .expiry-toolbar span{color:#b9cbd7}
html[data-cp-theme="dark"] .expiry-table thead th,
html[data-theme="dark"] .expiry-table thead th{background:#061b2b;color:#f4fbff;border-color:#315269}
html[data-cp-theme="dark"] .expiry-table tbody tr:nth-child(odd),
html[data-theme="dark"] .expiry-table tbody tr:nth-child(odd){background:#102a3d}
html[data-cp-theme="dark"] .expiry-table tbody tr:nth-child(even),
html[data-theme="dark"] .expiry-table tbody tr:nth-child(even){background:#0d2537}
html[data-cp-theme="dark"] .expiry-table td,
html[data-theme="dark"] .expiry-table td{color:#f4fbff;border-color:#315269}
html[data-cp-theme="dark"] .expiry-horizon button,
html[data-theme="dark"] .expiry-horizon button{background:#123149;color:#eaf6fb;border-color:#41657a}
html[data-cp-theme="dark"] .expiry-promo-product,
html[data-cp-theme="dark"] .expiry-promo-grid span,
html[data-theme="dark"] .expiry-promo-product,
html[data-theme="dark"] .expiry-promo-grid span{background:#102a3d;color:#f4fbff}
html[data-cp-theme="dark"] .expiry-promo-grid strong,
html[data-theme="dark"] .expiry-promo-grid strong{color:#f4fbff}

@media(max-width:1050px){.expiry-kpis{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.expiry-kpis{grid-template-columns:1fr}.expiry-toolbar{align-items:flex-start;flex-direction:column}.expiry-promo-grid{grid-template-columns:1fr}}

.expiry-product-filter035{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;padding:10px 12px!important;background:var(--panel2,#f6fafc);border-color:var(--aurora-line,var(--line))}
.expiry-product-filter035>div{display:flex;flex-direction:column;gap:2px}.expiry-product-filter035 strong{color:var(--aurora-steel,#163047)}.expiry-product-filter035 span{color:var(--muted,#66788a);font-size:11px}
html[data-cp-theme="dark"] .expiry-product-filter035,html[data-theme="dark"] .expiry-product-filter035{background:#102a3d;border-color:#315269}
html[data-cp-theme="dark"] .expiry-product-filter035 strong,html[data-theme="dark"] .expiry-product-filter035 strong{color:#f4fbff}
