/* Identidade Quick para a distribuição ERP, sem carregar regras financeiras. */
:root { --accent:#b9a47b; --accent-hover:#a98f5c; --border-focus:#b9a47b; --gradient-primary:linear-gradient(135deg,#b9a47b,#9e8455); }
html[data-theme="light"] body { background:#f5f6f8; }
html body .btn-primary,html body .btn.btn-primary { background:#b9a47b!important; border-color:#b9a47b!important; color:#fff!important; }
html body .btn-primary:hover,html body .btn.btn-primary:hover { background:#a98f5c!important; border-color:#a98f5c!important; color:#fff!important; }
html body :is(input,select,textarea,button,a):focus-visible { outline-color:#92774b; }
html body .menu-item.active,html body .menu-item:hover { color:#8b7044; }
html body .menu-item.active { background:color-mix(in srgb,#b9a47b 16%,transparent); }
html body .menu-item.active i,html body .menu-item:hover i { color:#8b7044; }
html body .toolbar-search input:not([type="checkbox"]):not([type="radio"]):not([type="range"]) { padding-left:40px!important; }
html body .st-tabbar a.st-tab-pdv > :is(i.fas,.st-ph) { background:linear-gradient(135deg,#b9a47b,#9e8455)!important;box-shadow:0 10px 20px -8px rgba(113,89,48,.45)!important;color:#fff!important; }
html body .stat-card::before,html body .stat-card:hover::before { content:none!important;display:none!important; }
html body .stat-card:hover { transform:none!important; }
html body.dpd .period-buttons-wrap .period-btn.active { background:#b9a47b!important;border-color:#b9a47b!important;color:#fff!important;box-shadow:0 4px 12px -6px rgba(113,89,48,.4)!important; }
@media (min-width:1025px) { html body .st-page-head .st-crumb { display:none!important; } }
/* O menu e o conteúdo se movem juntos ao recolher/expandir. */
@media (min-width:1025px) {
  html body .sidebar { transition:width .32s cubic-bezier(.2,.8,.2,1),box-shadow .2s!important; }
  html body .main-content { transition:margin-left .32s cubic-bezier(.2,.8,.2,1)!important; }
  html body .sidebar.collapsed.quick-sidebar-toggle-hold:hover { width:var(--sidebar-collapsed)!important;box-shadow:none!important; }
  html body .sidebar:not(.collapsed) .sidebar-toggle button,
  html body .sidebar.collapsed:hover:not(.quick-sidebar-toggle-hold) .sidebar-toggle button { width:100%!important;gap:8px; }
  html body .sidebar.collapsed:not(:hover) .quick-sidebar-toggle-label,
  html body .sidebar.collapsed.quick-sidebar-toggle-hold .quick-sidebar-toggle-label { display:none!important; }
}
.sidebar-toggle .quick-sidebar-toggle-label { font-size:12px;font-weight:500;white-space:nowrap; }
@media (prefers-reduced-motion:reduce) { html body .sidebar,html body .main-content { transition:none!important; } }
/* Cabeçalhos legíveis; células e setas continuam na mesma linha. */
html body table[class] thead th,html body table[class] thead th button { color:var(--text-secondary,#5b6170)!important;font-size:11px!important;font-weight:700!important;font-family:var(--font-body,"Plus Jakarta Sans",sans-serif)!important;letter-spacing:.01em!important;text-transform:uppercase;white-space:nowrap!important; }
html body table thead th i { flex:none; }
/* A tabela acompanha toda a largura do quadro, com respiro dentro das células. */
html body .card > :is(.table-container,.table-scroll-wrap):has(table) { width:calc(100% + 48px)!important;max-width:none!important;margin-inline:-24px!important;border-radius:0!important; }
html body :is(.table-container,.table-scroll-wrap):has(table),html body table.data-table,html body table.data-table thead th { border-radius:0!important; }
html body table thead th:first-child,html body table tbody td:first-child { padding-left:max(16px,2vw)!important; }
html body table thead th:last-child,html body table tbody td:last-child { padding-right:max(16px,2vw)!important; }
@media(max-width:700px) { html body .card > :is(.table-container,.table-scroll-wrap):has(table) { width:calc(100% + 24px)!important;margin-inline:-12px!important; } }
html body .card:is([style*="padding:0"],[style*="padding: 0"]) > :is(.table-container,.table-scroll-wrap):has(table) { width:100%!important;margin-inline:0!important; }
