/* HubEx v3 — cores da Unnamed Cosmetics sobre o Tabler (as mesmas dos posts: Grafica.php do V1). */
:root {
  --unc-creme: #F5F0EB;
  --unc-tinta: #2D2D2D;
  --unc-amarelo: #F2C400;
  --unc-azul: #4F95C8;
  --unc-verde: #6E9A2E;
  --unc-magenta: #870E4E;
  --unc-laranja: #E0661A;
  --tblr-primary: #2D2D2D;
  --tblr-primary-rgb: 45, 45, 45;
  --tblr-primary-fg: #FFFFFF;
  --tblr-body-bg: #F5F0EB;
  --tblr-font-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body { background: var(--unc-creme); }

.faixa-unc { display: flex; height: 6px; }
.faixa-unc span { flex: 1; }
.faixa-unc span:nth-child(1) { background: var(--unc-azul); }
.faixa-unc span:nth-child(2) { background: var(--unc-verde); }
.faixa-unc span:nth-child(3) { background: var(--unc-magenta); }
.faixa-unc span:nth-child(4) { background: var(--unc-laranja); }
.faixa-unc span:nth-child(5) { background: var(--unc-amarelo); }
.faixa-unc span:nth-child(6) { background: var(--unc-tinta); }

.navbar-unc { background: #FFFFFF; border-bottom: 1px solid #E6E1DB; }
.navbar-unc .nav-item.active > .nav-link { box-shadow: inset 0 -3px 0 var(--unc-amarelo); font-weight: 600; }
.marca-unc { display: flex; align-items: center; gap: .5rem; font-weight: 800; letter-spacing: .02em; }
.marca-unc img { border-radius: 50%; background: var(--unc-creme); }
.marca-unc span { color: var(--unc-tinta); }

.btn-primary { --tblr-btn-bg: var(--unc-tinta); --tblr-btn-border-color: var(--unc-tinta); --tblr-btn-hover-bg: #000; --tblr-btn-hover-border-color: #000; }
.btn-amarelo { background: var(--unc-amarelo); color: var(--unc-tinta); border-color: var(--unc-amarelo); font-weight: 600; }
.btn-amarelo:hover { background: #d9b000; color: var(--unc-tinta); }

.card { border-color: #E6E1DB; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; color: #6B6B6B; }
.menu-cor-loja { border-top: 4px solid var(--unc-azul); }
.menu-cor-clientes { border-top: 4px solid var(--unc-verde); }
.menu-cor-redes { border-top: 4px solid var(--unc-magenta); }
.menu-cor-publicidade { border-top: 4px solid var(--unc-laranja); }
.menu-cor-mailing { border-top: 4px solid var(--unc-amarelo); }
.menu-cor-reporting, .menu-cor-sistema { border-top: 4px solid var(--unc-tinta); }

.estado-ok { color: var(--unc-verde); }
.estado-erro { color: #B42318; font-weight: 600; }
.estado-correr { color: var(--unc-azul); font-weight: 600; }
.resultado { max-width: 38rem; white-space: pre-wrap; font-size: .8rem; color: #4A4A4A; }
.acoes form { display: inline; }
.table td { vertical-align: middle; }
.entrar-caixa { max-width: 24rem; margin: 8vh auto; }
.navbar-unc .marca-unc { margin-right: 1.5rem; flex-shrink: 0; }
.badge.bg-red { color: #FFFFFF; }
.item-cal img, .item-cal .sem-img { width: 56px; height: 70px; object-fit: cover; flex-shrink: 0; background: #E6E1DB; }
.min-w-0 { min-width: 0; }
.slide-prev { width: 150px; height: 188px; object-fit: cover; background: #E6E1DB; }
.capa-reel { width: 48px; height: 85px; object-fit: cover; flex-shrink: 0; background: #E6E1DB; }

/* ---- Ecrãs vindos do V2 (Produtos, Loja, SEO…): as classes antigas com o aspecto do Tabler e as cores UNC ---- */
.page-body h1 { font-size: 1.5rem; font-weight: 700; margin: 0 0 .25rem; }
.page-body h2 { font-size: 1.05rem; font-weight: 700; margin: 1.75rem 0 .75rem; }
.nota { color: #6B6B6B; font-size: .875rem; max-width: 60rem; }
.nota a { color: var(--unc-tinta); font-weight: 600; }
.aviso { background: #FFF8DB; border: 1px solid #F3E2A0; border-left: 4px solid var(--unc-amarelo); border-radius: 6px; padding: .6rem .9rem; margin-bottom: .5rem !important; font-size: .9rem; }
.aviso.erro { background: #FDECEA; border-color: #F4C7C1; border-left-color: #B42318; }
.cartoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-top: 1rem !important; }
.cartao { background: #FFFFFF; border: 1px solid #E6E1DB; border-top: 4px solid var(--unc-amarelo); border-radius: 8px; padding: 1rem 1.1rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.cartao.bom { border-top-color: var(--unc-verde); }
.cartao.mau { border-top-color: #B42318; }
.cartao .rotulo, .rotulo { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #6B6B6B; font-weight: 700; }
.cartao strong { display: block; font-size: 1.75rem; font-weight: 800; margin: .2rem 0; color: var(--unc-tinta); }
.cartao small { color: #6B6B6B; }
.tabela-caixa { background: #FFFFFF; border: 1px solid #E6E1DB; border-radius: 8px; overflow-x: auto; margin-bottom: 1rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.tabela { width: 100%; border-collapse: collapse; font-size: .875rem; }
.tabela th, .tabela td { padding: .6rem .8rem; border-bottom: 1px solid #EEE9E3; text-align: left; vertical-align: top; }
.tabela th { font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: #6B6B6B; background: #FAF8F5; white-space: nowrap; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela small { color: #6B6B6B; }
.etiqueta { display: inline-block; padding: .1rem .5rem; font-size: .75rem; font-weight: 600; border-radius: 4px; background: #EEE9E3; color: var(--unc-tinta); white-space: nowrap; }
.etiqueta.bom { background: #E6F2DA; color: #4B6E1C; }
.etiqueta.mau { background: #FDECEA; color: #B42318; }
.etiqueta.aviso { background: #FFF3BF; color: #7A5B00; border: 0; padding: .1rem .5rem; margin: 0 !important; display: inline-block; }
.sobe { color: #4B6E1C; } .desce { color: #B42318; }
.accoes { display: flex; flex-wrap: wrap; gap: .35rem; } .accoes form { display: inline; }
.accoes button, .page-body form button:not(.btn) { border: 1px solid #CFC8C0; background: #FFFFFF; border-radius: 6px; padding: .3rem .7rem; font-size: .8rem; font-weight: 600; cursor: pointer; }
.accoes button:hover, .page-body form button:not(.btn):hover { background: var(--unc-amarelo); border-color: var(--unc-amarelo); }
.grelha { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.peca { background: #FFFFFF; border: 1px solid #E6E1DB; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.peca img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; background: #EEE9E3; }
.peca-corpo { padding: .7rem .8rem; font-size: .85rem; display: flex; flex-direction: column; gap: .4rem; }
.peca-titulo { font-weight: 700; }
.peca textarea, .page-body textarea:not(.form-control) { width: 100%; font: inherit; font-size: .85rem; padding: .4rem; border: 1px solid #CFC8C0; border-radius: 6px; }
.tabela td:not(:first-child) { white-space: nowrap; }
.grafico-vendas { width: 100%; height: auto; display: block; }
.legenda-grafico { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .8rem; margin-top: .4rem; }
.legenda-grafico i { display: inline-block; width: .8rem; height: .8rem; border-radius: 2px; margin-right: .3rem; vertical-align: -1px; }
.leg-0 { background: #2D2D2D; } .leg-1 { background: #870E4E; } .leg-2 { background: #6E9A2E; } .leg-3 { background: #4F95C8; } .leg-4 { background: #E0661A; }
.portes, .tabela .portes { color: #2F6E9E; font-weight: 600; }
.custo-portes, .tabela .custo-portes { color: #B5520F; font-weight: 600; }
.cartao.portes-c { border-top-color: #4F95C8; } .cartao.custo-portes-c { border-top-color: #E0661A; }
.filtros { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.g-vendas { fill: #2D2D2D; } .g-custo { fill: #A9A5A0; } .g-portes { fill: #2F6E9E; } .g-custo-portes { fill: #A8CBE6; }
.legenda-grafico i.g-vendas { background: #2D2D2D; } .legenda-grafico i.g-custo { background: #A9A5A0; }
.legenda-grafico i.g-portes { background: #2F6E9E; } .legenda-grafico i.g-custo-portes { background: #A8CBE6; }
.g-prejuizo { stroke: #B42318; stroke-width: 2; }
.cartoes.indicadores { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.cartoes.indicadores .cartao strong { font-size: 1.35rem; }
.cartao.sem-dados { border-top-color: #CFC8C0; background: #FAF8F5; }
.cartao.sem-dados strong { color: #8A8580; font-size: 1rem !important; }
.horas { display: flex; align-items: flex-end; gap: 2px; height: 120px; }
.horas span { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.horas i { display: block; width: 100%; background: #2D2D2D; border-radius: 2px 2px 0 0; min-height: 1px; }
.horas b { font-size: .6rem; font-weight: 400; color: #8A8580; }
.horas .h0 { height: 1px; background: #E6E1DB; } .horas .h1 { height: 10%; } .horas .h2 { height: 20%; } .horas .h3 { height: 30%; } .horas .h4 { height: 40%; }
.horas .h5 { height: 50%; } .horas .h6 { height: 60%; } .horas .h7 { height: 70%; } .horas .h8 { height: 80%; } .horas .h9 { height: 90%; } .horas .h10 { height: 100%; }
