/* =========================
   OCEAN BLUE - REFINED PRO
========================= */

:root {
  /* Cores Profissionais */
  --bg-dark: #0f172a; /* Slate 900 */
  --bg-deep: #020617;
  --accent-blue: #38bdf8;
  --accent-soft: #7dd3fc;
  --tenant-sidebar-expanded: 20.75rem;
  --tenant-sidebar-collapsed: 7rem;
  --tenant-sidebar-width: var(--tenant-sidebar-expanded);
  
  /* Glassmorphism Refinado */
  --glass-bg: rgba(30, 41, 59, 0.5);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-hover: rgba(56, 189, 248, 0.1);

  /* Texto */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;

  /* Efeitos */
  --shadow-soft: 0 20px 25px -5px rgb(0 0 0 / 0.3);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  background: radial-gradient(circle at top right, #1e293b, var(--bg-deep));
  color: var(--text-main);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  margin: 0;
  overflow-x: hidden;
}

body.ui-booting .tenant-sidebar,
body.ui-booting .tenant-topbar,
body.ui-booting .page-shell,
body.ui-booting .page-shell-home,
body.ui-booting .tenant-sidebar__brand-copy,
body.ui-booting .tenant-sidebar__group-label,
body.ui-booting .tenant-sidebar__link-label {
  transition: none !important;
}

.page-shell {
  width: min(100%, 1700px);
  margin-inline: auto;
  padding: 2rem clamp(1rem, 1.8vw, 2.25rem) 2.5rem;
}

.page-shell-home {
  width: min(100%, 1620px);
  margin-inline: auto;
  padding: 2rem clamp(1rem, 1.8vw, 2.5rem) 2.75rem;
}

@media (min-width: 1536px) {
  .page-shell {
    width: min(100%, 1780px);
  }

  .page-shell-home {
    width: min(100%, 1700px);
  }
}

/* =========================
   TENANT SIDEBAR
========================= */

body.has-tenant-sidebar {
  --tenant-sidebar-width: var(--tenant-sidebar-expanded);
}

body.has-tenant-sidebar[data-sidebar-state="collapsed"] {
  --tenant-sidebar-width: var(--tenant-sidebar-collapsed);
}

.tenant-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--tenant-sidebar-width);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0.85rem;
  border-right: 1px solid rgba(148, 163, 184, 0.14);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 24px 0 60px rgba(2, 6, 23, 0.28);
  transition: width 0.28s ease, padding 0.28s ease, box-shadow 0.28s ease;
}

.tenant-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 0.55rem 0.8rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.tenant-sidebar__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.95), rgba(14, 165, 233, 0.75));
  color: #eff6ff;
  box-shadow: 0 18px 30px rgba(14, 165, 233, 0.2);
  flex-shrink: 0;
}

.tenant-sidebar__brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tenant-sidebar__brand-copy strong {
  color: #f8fafc;
  font-size: 1rem;
  line-height: 1.2;
}

.tenant-sidebar__brand-copy span {
  color: #94a3b8;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.tenant-sidebar__nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.15rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior: contain;
}

.tenant-sidebar__nav::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.tenant-sidebar__group {
  margin-bottom: 1.1rem;
}

.tenant-sidebar__group-label {
  margin: 0 0 0.55rem;
  padding: 0 0.7rem;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: opacity 0.2s ease, transform 0.2s ease, height 0.2s ease, margin 0.2s ease;
}

.tenant-sidebar__links {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.tenant-sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3rem;
  padding: 0.8rem 1rem;
  border: 1px solid transparent;
  border-radius: 1rem;
  color: #cbd5e1;
  text-decoration: none;
  overflow: hidden;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tenant-sidebar__link:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.18);
  color: #f8fafc;
  transform: translateX(2px);
}

.tenant-sidebar__link--active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(56, 189, 248, 0.08));
  border-color: rgba(125, 211, 252, 0.22);
  color: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tenant-sidebar__link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.8rem;
  background: rgba(15, 23, 42, 0.6);
  color: #7dd3fc;
  flex-shrink: 0;
}

.tenant-sidebar__link-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.92rem;
  font-weight: 600;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tenant-topbar {
  transition: margin-left 0.28s ease, width 0.28s ease;
}

body[data-sidebar-state="collapsed"] .sidebar-toggle-expanded {
  display: none !important;
}

body[data-sidebar-state="collapsed"] .sidebar-toggle-collapsed {
  display: block !important;
}

body.has-tenant-sidebar:not([data-sidebar-state="collapsed"]) .sidebar-toggle-expanded {
  display: block !important;
}

body.has-tenant-sidebar:not([data-sidebar-state="collapsed"]) .sidebar-toggle-collapsed {
  display: none !important;
}

.tenant-topbar__toggle,
.tenant-topbar__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 0.95rem;
  background: rgba(15, 23, 42, 0.65);
  color: #cbd5e1;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tenant-topbar__toggle:hover,
.tenant-topbar__back:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(56, 189, 248, 0.28);
  color: #f8fafc;
  transform: translateY(-1px);
}

.tenant-topbar__eyebrow {
  margin: 0 0 0.1rem;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tenant-topbar__title {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(1.1rem, 1vw + 0.75rem, 1.55rem);
  font-weight: 700;
  line-height: 1.15;
}

body.has-tenant-sidebar .tenant-topbar {
  margin-left: calc(var(--tenant-sidebar-width) + 0.2rem);
}

body.has-tenant-sidebar .page-shell,
body.has-tenant-sidebar .page-shell-home {
  width: min(calc(100% - var(--tenant-sidebar-width) - 2rem), 1780px);
  margin-left: calc(var(--tenant-sidebar-width) + 1rem);
  margin-right: 1rem;
  transition: width 0.28s ease, margin-left 0.28s ease;
}

body.has-tenant-sidebar[data-sidebar-state="collapsed"] .tenant-sidebar__brand {
  justify-content: center;
}

body.has-tenant-sidebar[data-sidebar-state="collapsed"] .tenant-sidebar__brand-copy,
body.has-tenant-sidebar[data-sidebar-state="collapsed"] .tenant-sidebar__group-label,
body.has-tenant-sidebar[data-sidebar-state="collapsed"] .tenant-sidebar__link-label {
  opacity: 0;
  transform: translateX(-6px);
  pointer-events: none;
}

body.has-tenant-sidebar[data-sidebar-state="collapsed"] .tenant-sidebar__group-label {
  height: 0;
  margin: 0;
  overflow: hidden;
}

body.has-tenant-sidebar[data-sidebar-state="collapsed"] .tenant-sidebar__link {
  justify-content: center;
  padding-inline: 0.55rem;
}

body.has-tenant-sidebar[data-sidebar-state="collapsed"] .tenant-sidebar__nav {
  padding-right: 0;
}

/* Glass Card */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

/* Redesenho dos Cards */
.module-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Alinhamento à esquerda é mais sério */
  padding: 2rem;
  text-decoration: none;
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
}

.module-card:hover {
  border-color: var(--accent-blue);
  background: var(--glass-hover);
  transform: translateY(-4px);
}

.module-card .icon-wrapper {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-blue);
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.module-card:hover .icon-wrapper {
  background: var(--accent-blue);
  color: var(--bg-deep);
}

/* Removemos a animação 'float' infantil */
.float { animation: none; }


/* Animação para o Dropdown */
@keyframes slideInTop {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-slide-in-top {
    animation: slideInTop 0.2s ease-out forwards;
}

/* Garante que o dropdown se destaque do fundo */
#userDropdown {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
}

/* =========================
   ESTILO DE INPUT PREMIUM
========================= */

.input-field {
    width: 100%;
    background: rgba(15, 23, 42, 0.6); /* Slate 900 com transparência */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Borda quase invisível */
    border-radius: 12px;
    padding: 0.75rem 1rem; /* Padding mais equilibrado */
    color: #f8fafc;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estado de Hover (Passar o mouse) */
.input-field:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(56, 189, 248, 0.3); /* Um leve brilho azul */
}

/* Estado de Foco (Clicar para digitar) */
.input-field:focus {
    background: #0f172a; /* Fundo sólido para foco total */
    border-color: #38bdf8; /* Azul OceanBlue */
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15); /* Glow externo suave */
}

/* Placeholder (O texto de exemplo dentro) */
.input-field::placeholder {
    color: #475569; /* Cinza médio para não confundir com o texto digitado */
    font-size: 0.9rem;
}

/* Ajuste para Textarea (Descrição) */
textarea.input-field {
    min-height: 100px;
    resize: none;
}

/* =========================
   OCEAN BLUE - STOCK MODULE
========================= */

:root {
  --search-bg: rgba(15, 23, 42, 0.4);
  --accent-stock: #38bdf8;
}

/* Barra de Busca Estilizada */
.search-container {
  background: var(--search-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.search-container:focus-within {
  border-color: var(--accent-stock);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
  background: rgba(15, 23, 42, 0.6);
}

.search-input {
  background: transparent;
  border: none;
  color: white;
  outline: none;
  width: 100%;
  padding: 1rem;
}

/* Cards de Ação */
.action-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-card:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--accent-stock);
  transform: translateX(8px);
}

.action-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-stock);
  border-radius: 12px;
}

/* =========================
   OCEAN BLUE - FLASH MENSAGE
========================= */

@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translateX(100%) scale(0.9); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0) scale(1); 
    }
}

.animate-slide-in {
    animation: slideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Bordas de status sutis para reforçar a categoria */
.flash-success { border-left: 4px solid #10b981; }
.flash-error { border-left: 4px solid #f43f5e; }
.flash-info { border-left: 4px solid #38bdf8; }

/* =========================
   PAGINACAO
========================= */

.pagination-shell {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(30, 41, 59, 0.9);
  border-radius: 1rem;
  background: rgba(2, 6, 23, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  overflow: visible;
}

.pagination-summary {
  font-size: 0.82rem;
  color: #94a3b8;
}

.pagination-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.pagination-btn {
  border: 1px solid rgba(71, 85, 105, 0.8);
  background: rgba(15, 23, 42, 0.95);
  color: #cbd5e1;
  border-radius: 0.85rem;
  padding: 0.55rem 0.9rem;
  min-width: 2.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
  border-color: #38bdf8;
  color: #f8fafc;
  transform: translateY(-1px);
}

.pagination-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pagination-btn-active {
  background: #38bdf8;
  border-color: #38bdf8;
  color: #020617;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.2);
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  color: #64748b;
  font-weight: 700;
}

.pagination-shell-single {
  justify-content: flex-start;
}

[id$="-pagination"] {
  padding: 0 1rem 1rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(2, 6, 23, 0.12) 100%);
}

[id$="-pagination"]:empty {
  display: none;
}

@media (min-width: 768px) {
  .pagination-shell {
    flex-direction: row;
    align-items: center;
  }
}

/* =========================
   MODAIS RESPONSIVOS
========================= */

.modal-overlay {
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: clamp(0.75rem, 2vw, 1.25rem);
}

.modal-overlay > div {
  max-height: calc(100vh - 1.5rem);
  overflow-y: auto;
  margin-block: auto;
  scrollbar-width: thin;
}

@media (min-width: 768px) {
  .modal-overlay {
    align-items: center;
  }

  .modal-overlay > div {
    max-height: calc(100vh - 2rem);
  }
}

/* =========================
   TEMA LEGADO
========================= */

body[data-theme-mode="classic"] {
  background: #dfe6ea;
  color: #111111;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 14px;
}

body[data-theme-mode="classic"] .glass,
body[data-theme-mode="classic"] .module-card,
body[data-theme-mode="classic"] .action-card,
body[data-theme-mode="classic"] .platform-panel,
body[data-theme-mode="classic"] .platform-tenant-card,
body[data-theme-mode="classic"] .platform-empty-state,
body[data-theme-mode="classic"] .platform-stat-card,
body[data-theme-mode="classic"] .pdv-panel,
body[data-theme-mode="classic"] .pdv-kpi-card,
body[data-theme-mode="classic"] .financeiro-panel,
body[data-theme-mode="classic"] .financeiro-kpi-card,
body[data-theme-mode="classic"] .adiantamento-panel,
body[data-theme-mode="classic"] .adiantamento-kpi-card,
body[data-theme-mode="classic"] .estoque-kpi-card,
body[data-theme-mode="classic"] [class*="bg-slate-900"],
body[data-theme-mode="classic"] [class*="bg-slate-950"] {
  background: #f5f5f0 !important;
  border-color: #96a7b3 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  color: #111111 !important;
}

body[data-theme-mode="classic"] header,
body[data-theme-mode="classic"] #userDropdown,
body[data-theme-mode="classic"] .platform-hero,
body[data-theme-mode="classic"] .platform-list-item,
body[data-theme-mode="classic"] .pdv-empty-state,
body[data-theme-mode="classic"] .pdv-cart-item,
body[data-theme-mode="classic"] .pdv-summary-box,
body[data-theme-mode="classic"] .financeiro-caixa-box,
body[data-theme-mode="classic"] .financeiro-stack-item,
body[data-theme-mode="classic"] .adiantamento-summary-card,
body[data-theme-mode="classic"] .adiantamento-preview-box,
body[data-theme-mode="classic"] .movimento-hint-box {
  background: #e7edf0 !important;
  border-color: #93a4af !important;
  box-shadow: none !important;
  color: #111111 !important;
}

body[data-theme-mode="classic"] .icon-wrapper,
body[data-theme-mode="classic"] .action-icon,
body[data-theme-mode="classic"] .platform-badge,
body[data-theme-mode="classic"] .platform-chip,
body[data-theme-mode="classic"] .pdv-tag,
body[data-theme-mode="classic"] [class*="bg-sky-500/10"],
body[data-theme-mode="classic"] [class*="bg-emerald-500/10"],
body[data-theme-mode="classic"] [class*="bg-amber-500/10"],
body[data-theme-mode="classic"] [class*="bg-rose-500/10"] {
  background: #d8e4ea !important;
  border-color: #7e97a8 !important;
  color: #1b4f72 !important;
}

body[data-theme-mode="classic"] .platform-primary-btn,
body[data-theme-mode="classic"] .platform-secondary-btn,
body[data-theme-mode="classic"] .platform-ghost-btn,
body[data-theme-mode="classic"] .platform-inline-btn,
body[data-theme-mode="classic"] .platform-close-btn,
body[data-theme-mode="classic"] .pagination-btn,
body[data-theme-mode="classic"] button,
body[data-theme-mode="classic"] .pdv-product-action {
  background: #d7e3ea !important;
  border: 1px solid #7b95a8 !important;
  color: #111111 !important;
  box-shadow: none !important;
  border-radius: 0.3rem !important;
  text-shadow: none !important;
}

body[data-theme-mode="classic"] .pagination-btn-active {
  background: #bdd0dc !important;
  border-color: #5f8198 !important;
  color: #0f0f0f !important;
}

body[data-theme-mode="classic"] input:not([type="checkbox"]):not([type="radio"]),
body[data-theme-mode="classic"] select,
body[data-theme-mode="classic"] textarea {
  background: #fffef8 !important;
  border: 1px solid #98aab5 !important;
  color: #111111 !important;
  border-radius: 0.2rem !important;
  box-shadow: none !important;
}

body[data-theme-mode="classic"] input::placeholder,
body[data-theme-mode="classic"] textarea::placeholder {
  color: #666666 !important;
}

body[data-theme-mode="classic"] table,
body[data-theme-mode="classic"] thead,
body[data-theme-mode="classic"] tbody,
body[data-theme-mode="classic"] tr,
body[data-theme-mode="classic"] td,
body[data-theme-mode="classic"] th {
  border-color: #b9c5cd !important;
}

body[data-theme-mode="classic"] thead,
body[data-theme-mode="classic"] [class*="bg-slate-950/70"] {
  background: #d4dde2 !important;
}

body[data-theme-mode="classic"] a {
  color: #0f5f96 !important;
}

body[data-theme-mode="classic"] [class*="text-white"],
body[data-theme-mode="classic"] [class*="text-slate-100"],
body[data-theme-mode="classic"] [class*="text-slate-200"],
body[data-theme-mode="classic"] [class*="text-slate-300"] {
  color: #111111 !important;
}

body[data-theme-mode="classic"] [class*="text-slate-400"],
body[data-theme-mode="classic"] [class*="text-slate-500"],
body[data-theme-mode="classic"] [class*="text-slate-600"] {
  color: #2f2f2f !important;
}

body[data-theme-mode="classic"] [class*="text-sky-"],
body[data-theme-mode="classic"] [class*="text-emerald-"],
body[data-theme-mode="classic"] [class*="text-amber-"],
body[data-theme-mode="classic"] [class*="text-rose-"] {
  color: #0f5f96 !important;
}

body[data-theme-mode="classic"] .platform-kicker,
body[data-theme-mode="classic"] .platform-panel-kicker,
body[data-theme-mode="classic"] .platform-chip,
body[data-theme-mode="classic"] .pdv-panel-badge,
body[data-theme-mode="classic"] .pdv-kpi-label,
body[data-theme-mode="classic"] .financeiro-kpi-label,
body[data-theme-mode="classic"] .estoque-kpi-label,
body[data-theme-mode="classic"] .adiantamento-kpi-label,
body[data-theme-mode="classic"] .pagination-summary {
  color: #0f5f96 !important;
}

body[data-theme-mode="classic"] .pdv-kpi-value,
body[data-theme-mode="classic"] .financeiro-kpi-value,
body[data-theme-mode="classic"] .estoque-kpi-value,
body[data-theme-mode="classic"] .adiantamento-kpi-value,
body[data-theme-mode="classic"] .import-export-kpi-value {
  color: #111111 !important;
}

body[data-theme-mode="classic"] .pdv-kpi-help,
body[data-theme-mode="classic"] .financeiro-kpi-help,
body[data-theme-mode="classic"] .estoque-kpi-help,
body[data-theme-mode="classic"] .adiantamento-kpi-help,
body[data-theme-mode="classic"] .import-export-kpi-help,
body[data-theme-mode="classic"] .pdv-inline-feedback,
body[data-theme-mode="classic"] .pdv-product-description,
body[data-theme-mode="classic"] .pdv-product-code,
body[data-theme-mode="classic"] .platform-copy,
body[data-theme-mode="classic"] .platform-tenant-meta,
body[data-theme-mode="classic"] .platform-inline-meta {
  color: #303030 !important;
}

body[data-theme-mode="classic"] .module-card:hover,
body[data-theme-mode="classic"] .action-card:hover,
body[data-theme-mode="classic"] .platform-inline-btn:hover,
body[data-theme-mode="classic"] .platform-secondary-btn:hover,
body[data-theme-mode="classic"] .platform-primary-btn:hover,
body[data-theme-mode="classic"] .pagination-btn:hover:not(:disabled),
body[data-theme-mode="classic"] button:hover:not(:disabled) {
  background: #cddbe4 !important;
  border-color: #5f8198 !important;
  color: #0d0d0d !important;
  transform: none !important;
}

body[data-theme-mode="classic"] button:disabled,
body[data-theme-mode="classic"] .pagination-btn:disabled,
body[data-theme-mode="classic"] .pdv-product-action:disabled {
  background: #d9dde0 !important;
  border-color: #a8b2b9 !important;
  color: #6d6d6d !important;
  opacity: 1 !important;
}

body[data-theme-mode="classic"] header {
  border-bottom: 1px solid #8fa2ad !important;
}

body[data-theme-mode="classic"] .tenant-sidebar,
body[data-theme-mode="classic"] .tenant-topbar {
  background: #dfe6ea !important;
  border-color: #93a4af !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body[data-theme-mode="classic"] .tenant-sidebar__brand-mark,
body[data-theme-mode="classic"] .tenant-sidebar__link-icon,
body[data-theme-mode="classic"] .tenant-topbar__toggle,
body[data-theme-mode="classic"] .tenant-topbar__back {
  background: #d7e3ea !important;
  border-color: #7b95a8 !important;
  color: #0f5f96 !important;
  box-shadow: none !important;
}

body[data-theme-mode="classic"] .tenant-sidebar__brand-copy strong,
body[data-theme-mode="classic"] .tenant-sidebar__link,
body[data-theme-mode="classic"] .tenant-topbar__title {
  color: #111111 !important;
}

body[data-theme-mode="classic"] .tenant-sidebar__brand-copy span,
body[data-theme-mode="classic"] .tenant-sidebar__group-label,
body[data-theme-mode="classic"] .tenant-topbar__eyebrow {
  color: #36586b !important;
}

body[data-theme-mode="classic"] .tenant-sidebar__link--active,
body[data-theme-mode="classic"] .tenant-sidebar__link:hover,
body[data-theme-mode="classic"] .tenant-topbar__toggle:hover,
body[data-theme-mode="classic"] .tenant-topbar__back:hover {
  background: #cddbe4 !important;
  border-color: #5f8198 !important;
  color: #0d0d0d !important;
  transform: none !important;
}

body[data-theme-mode="classic"] .page-shell,
body[data-theme-mode="classic"] .page-shell-home {
  padding-top: 1.25rem;
}

body[data-theme-mode="classic"] .screen-size-lock,
body[data-theme-mode="classic"] #screen-size-lock {
  background: rgba(223, 230, 234, 0.98) !important;
}

body[data-theme-mode="classic"] .module-card,
body[data-theme-mode="classic"] .action-card,
body[data-theme-mode="classic"] .platform-tenant-card {
  padding: 1.25rem !important;
}

body[data-theme-mode="classic"] *:focus-visible {
  outline: 2px solid #326b91 !important;
  outline-offset: 1px !important;
}

body[data-theme-mode="classic"] .text-4xl {
  font-size: 1.9rem !important;
}

body[data-theme-mode="classic"] .text-3xl {
  font-size: 1.55rem !important;
}

body[data-theme-mode="classic"] .text-2xl {
  font-size: 1.35rem !important;
}

body[data-theme-mode="classic"] .text-xl {
  font-size: 1.15rem !important;
}

body[data-theme-mode="classic"] .text-lg {
  font-size: 1rem !important;
}

body[data-theme-mode="classic"] .rounded-2xl,
body[data-theme-mode="classic"] .rounded-xl,
body[data-theme-mode="classic"] .rounded-lg,
body[data-theme-mode="classic"] .module-card,
body[data-theme-mode="classic"] .action-card,
body[data-theme-mode="classic"] .platform-tenant-card {
  border-radius: 0.45rem !important;
}

/* Ajuste final do tema classico para o visual legado solicitado */
body[data-theme-mode="classic"] {
  background: #ffffff !important;
  color: #000000 !important;
}

body[data-theme-mode="classic"] .glass,
body[data-theme-mode="classic"] .module-card,
body[data-theme-mode="classic"] .action-card,
body[data-theme-mode="classic"] .platform-panel,
body[data-theme-mode="classic"] .platform-tenant-card,
body[data-theme-mode="classic"] .platform-empty-state,
body[data-theme-mode="classic"] .platform-stat-card,
body[data-theme-mode="classic"] .pdv-panel,
body[data-theme-mode="classic"] .pdv-kpi-card,
body[data-theme-mode="classic"] .financeiro-panel,
body[data-theme-mode="classic"] .financeiro-kpi-card,
body[data-theme-mode="classic"] .adiantamento-panel,
body[data-theme-mode="classic"] .adiantamento-kpi-card,
body[data-theme-mode="classic"] .estoque-kpi-card,
body[data-theme-mode="classic"] .pdv-empty-state,
body[data-theme-mode="classic"] .pdv-cart-item,
body[data-theme-mode="classic"] .pdv-summary-box,
body[data-theme-mode="classic"] .financeiro-caixa-box,
body[data-theme-mode="classic"] .financeiro-stack-item,
body[data-theme-mode="classic"] .adiantamento-summary-card,
body[data-theme-mode="classic"] .adiantamento-preview-box,
body[data-theme-mode="classic"] .movimento-hint-box,
body[data-theme-mode="classic"] .platform-hero,
body[data-theme-mode="classic"] .platform-list-item,
body[data-theme-mode="classic"] #userDropdown,
body[data-theme-mode="classic"] .modal-overlay > div,
body[data-theme-mode="classic"] [class*="bg-slate-900"],
body[data-theme-mode="classic"] [class*="bg-slate-950"] {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #1f2937 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body[data-theme-mode="classic"] .tenant-sidebar,
body[data-theme-mode="classic"] .tenant-topbar,
body[data-theme-mode="classic"] header,
body[data-theme-mode="classic"] #screen-size-lock,
body[data-theme-mode="classic"] .screen-size-lock {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #1f2937 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body[data-theme-mode="classic"] button,
body[data-theme-mode="classic"] .platform-primary-btn,
body[data-theme-mode="classic"] .platform-secondary-btn,
body[data-theme-mode="classic"] .platform-ghost-btn,
body[data-theme-mode="classic"] .platform-inline-btn,
body[data-theme-mode="classic"] .platform-close-btn,
body[data-theme-mode="classic"] .pagination-btn,
body[data-theme-mode="classic"] .pdv-product-action,
body[data-theme-mode="classic"] [type="submit"],
body[data-theme-mode="classic"] [type="button"] {
  background: #1565c0 !important;
  border: 1px solid #0d47a1 !important;
  color: #ffffff !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

body[data-theme-mode="classic"] button:hover:not(:disabled),
body[data-theme-mode="classic"] .platform-primary-btn:hover,
body[data-theme-mode="classic"] .platform-secondary-btn:hover,
body[data-theme-mode="classic"] .platform-ghost-btn:hover,
body[data-theme-mode="classic"] .platform-inline-btn:hover,
body[data-theme-mode="classic"] .platform-close-btn:hover,
body[data-theme-mode="classic"] .pagination-btn:hover:not(:disabled),
body[data-theme-mode="classic"] .pdv-product-action:hover:not(:disabled) {
  background: #0d47a1 !important;
  border-color: #0b3d91 !important;
  color: #ffffff !important;
  transform: none !important;
}

body[data-theme-mode="classic"] button:disabled,
body[data-theme-mode="classic"] .pagination-btn:disabled,
body[data-theme-mode="classic"] .pdv-product-action:disabled {
  background: #90a4ae !important;
  border-color: #607d8b !important;
  color: #ffffff !important;
  opacity: 1 !important;
}

body[data-theme-mode="classic"] input:not([type="checkbox"]):not([type="radio"]),
body[data-theme-mode="classic"] select,
body[data-theme-mode="classic"] textarea {
  background: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #111827 !important;
  box-shadow: none !important;
}

body[data-theme-mode="classic"] input::placeholder,
body[data-theme-mode="classic"] textarea::placeholder,
body[data-theme-mode="classic"] .text-slate-400,
body[data-theme-mode="classic"] .text-slate-500,
body[data-theme-mode="classic"] .text-slate-600,
body[data-theme-mode="classic"] [class*="text-slate-"],
body[data-theme-mode="classic"] [class*="text-white"],
body[data-theme-mode="classic"] [class*="text-sky-"],
body[data-theme-mode="classic"] [class*="text-emerald-"],
body[data-theme-mode="classic"] [class*="text-amber-"],
body[data-theme-mode="classic"] [class*="text-rose-"] {
  color: #000000 !important;
}

body[data-theme-mode="classic"] .tenant-sidebar__brand-mark,
body[data-theme-mode="classic"] .tenant-sidebar__link-icon,
body[data-theme-mode="classic"] .tenant-topbar__toggle,
body[data-theme-mode="classic"] .tenant-topbar__back,
body[data-theme-mode="classic"] .icon-wrapper,
body[data-theme-mode="classic"] .action-icon {
  background: #1565c0 !important;
  border: 1px solid #0d47a1 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

body[data-theme-mode="classic"] .tenant-sidebar__link,
body[data-theme-mode="classic"] .tenant-topbar__title,
body[data-theme-mode="classic"] .tenant-sidebar__brand-copy strong,
body[data-theme-mode="classic"] .tenant-sidebar__group-label,
body[data-theme-mode="classic"] .tenant-topbar__eyebrow,
body[data-theme-mode="classic"] th,
body[data-theme-mode="classic"] td {
  color: #000000 !important;
}

body[data-theme-mode="classic"] .tenant-sidebar__link--active,
body[data-theme-mode="classic"] .tenant-sidebar__link:hover,
body[data-theme-mode="classic"] .tenant-topbar__toggle:hover,
body[data-theme-mode="classic"] .tenant-topbar__back:hover {
  background: #dbeafe !important;
  border-color: #1565c0 !important;
  color: #000000 !important;
}

body[data-theme-mode="classic"] .modal-overlay {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: none !important;
}

body[data-theme-mode="classic"] table,
body[data-theme-mode="classic"] thead,
body[data-theme-mode="classic"] tbody,
body[data-theme-mode="classic"] tr,
body[data-theme-mode="classic"] td,
body[data-theme-mode="classic"] th {
  background: #ffffff !important;
  border-color: #1f2937 !important;
}

body[data-theme-mode="classic"] a {
  color: #0d47a1 !important;
}

body[data-theme-mode="classic"] .rounded-2xl,
body[data-theme-mode="classic"] .rounded-xl,
body[data-theme-mode="classic"] .rounded-lg,
body[data-theme-mode="classic"] .rounded-md,
body[data-theme-mode="classic"] .rounded-sm,
body[data-theme-mode="classic"] [class*="rounded-"],
body[data-theme-mode="classic"] .module-card,
body[data-theme-mode="classic"] .action-card,
body[data-theme-mode="classic"] .platform-tenant-card,
body[data-theme-mode="classic"] .tenant-sidebar__brand-mark,
body[data-theme-mode="classic"] .tenant-sidebar__link-icon,
body[data-theme-mode="classic"] .tenant-topbar__toggle,
body[data-theme-mode="classic"] .tenant-topbar__back,
body[data-theme-mode="classic"] input,
body[data-theme-mode="classic"] select,
body[data-theme-mode="classic"] textarea,
body[data-theme-mode="classic"] button {
  border-radius: 0 !important;
}


