/* Modelo Iron no IronClub CRM (tema shadcn em HSL). Cores e efeitos vêm de iron-base.css. */
:root {
  --background: 45 30% 95%;
  --foreground: 220 15% 8%;
  --card: 0 0% 100%;
  --card-foreground: 220 15% 8%;
  --popover: 0 0% 100%;
  --popover-foreground: 220 15% 8%;
  --primary: 227 83% 50%;
  --primary-foreground: 0 0% 100%;
  --secondary: 43 30% 94%;
  --secondary-foreground: 220 15% 8%;
  --muted: 43 30% 94%;
  --muted-foreground: 40 6% 40%;
  --accent: 227 83% 96%;
  --accent-foreground: 227 83% 40%;
  --border: 40 24% 88%;
  --input: 40 24% 88%;
  --ring: 227 83% 50%;
  --radius: 1rem;
  --sidebar-background: 220 15% 8%;
  --sidebar-foreground: 40 10% 76%;
  --sidebar-primary: 227 83% 50%;
  --sidebar-primary-foreground: 0 0% 100%;
  --sidebar-accent: 227 50% 16%;
  --sidebar-accent-foreground: 0 0% 100%;
  --sidebar-border: 222 13% 14%;
  --sidebar-ring: 227 83% 50%;
}
.dark { --primary: 227 83% 58%; --ring: 227 83% 58%; --sidebar-primary: 227 83% 58%; }

/* Fundo da área de trabalho e entrada do conteúdo */
main.flex-1.overflow-auto { background: var(--iron-fundo); }
main.flex-1.overflow-auto > * { animation: iron-entra .5s cubic-bezier(.2, .8, .2, 1) both; }

/* Menu lateral */
aside.w-64 { width: var(--iron-lateral-largura); background: var(--iron-lateral-fundo) !important; border-color: var(--iron-lateral-borda) !important; box-shadow: inset -1px 0 0 rgba(255, 255, 255, .03), 8px 0 30px -20px rgba(0, 0, 0, .5); }
aside.w-64 > div { border-color: var(--iron-lateral-borda) !important; }

/* Topo do menu: logo oficial e, abaixo, o nome do sistema */
aside.w-64 > div:first-child .gap-2\.5 > img { display: none; }
aside.w-64 > div:first-child h1 { width: var(--iron-logo-largura); height: var(--iron-logo-altura); font-size: 0 !important; background: url(/iron/logo-escuro.png) left center / contain no-repeat; }
aside.w-64 > div:first-child h1 * { display: none; }
aside.w-64 > div:first-child { position: relative; padding-top: 0 !important; padding-bottom: 0 !important; height: 76px; }
aside.w-64 > div:first-child > .flex.items-center.justify-between { height: 100%; align-items: center; }
aside.w-64 > div:first-child > .flex.items-center.justify-between > button { transform: translateY(-7px); }
aside.w-64 > div:first-child h1 + p { position: absolute; right: 16px; bottom: 15px; width: 40px; margin: 0 !important; padding: 0 !important; text-align: center; text-indent: .3em; font-size: 9px !important; font-weight: 600; letter-spacing: .3em !important; line-height: 1 !important; color: var(--iron-lateral-sistema) !important; opacity: .9 !important; }
aside.w-64 nav a { font-size: 13px; color: var(--iron-lateral-texto); border-radius: 8px; transition: background-color .15s, color .15s; }
aside.w-64 nav a:hover { background: var(--iron-lateral-hover) !important; color: #fff !important; }
aside.w-64 nav a.bg-sidebar-accent\/80 { background: var(--iron-lateral-ativo) !important; color: #fff !important; font-weight: 600; box-shadow: inset 2px 0 0 var(--iron-azul-vivo); }
aside.w-64 nav a.bg-sidebar-accent\/80 svg { color: #9db2ff; }
aside.w-64 button[role="combobox"] { background: rgba(255, 255, 255, .04) !important; border-color: var(--iron-lateral-borda) !important; border-radius: 10px; }

/* Cartões com profundidade */
.bg-card.border {
  border-radius: var(--iron-raio) !important; border-color: rgba(17, 19, 23, .07) !important;
  background: linear-gradient(180deg, #fff 0%, #fdfcfa 100%) !important; box-shadow: var(--iron-sombra) !important;
  transition: box-shadow .35s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
}
.bg-card.border:hover { box-shadow: var(--iron-sombra-alta) !important; }

/* Botões e tabelas: padrão único em iron-base.css */

/* Campos */
main input:focus-visible, main textarea:focus-visible, main button[role="combobox"]:focus-visible { box-shadow: 0 0 0 4px rgba(21, 66, 232, .14) !important; border-color: var(--iron-azul) !important; }

/* Títulos */

.text-\[\#2563EB\] { color: var(--iron-azul) !important; }
.bg-\[\#2563EB\] { background-color: var(--iron-azul) !important; }

/* Cartões de número do topo (ícone + valor + rótulo): ícone ao lado do número, rótulo numa linha só embaixo */
main .grid > .bg-card.border > .p-4:has(> .flex.items-center.gap-2:only-child) { padding: 14px !important; }
main .grid > .bg-card.border > .p-4 > .flex.items-center.gap-2:only-child { display: grid !important; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 8px; row-gap: 6px; min-width: 0; }
main .grid > .bg-card.border > .p-4 > .flex.items-center.gap-2:only-child > :first-child:not(:last-child) { grid-column: 1; grid-row: 1; width: 18px !important; height: 18px !important; }
main .grid > .bg-card.border > .p-4 > .flex.items-center.gap-2:only-child > div:last-child { display: contents; }
main .grid > .bg-card.border > .p-4 > .flex.items-center.gap-2:only-child > div:last-child > :first-child { grid-column: 2; grid-row: 1; line-height: 1.1; min-width: 0; }
main .grid > .bg-card.border > .p-4 > .flex.items-center.gap-2:only-child p.text-xs { grid-column: 1 / -1; grid-row: 2; font-size: 11.5px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
