/* Pinheiro · Mídia Kit — identidade do Brand Book Pinheiro 2026
   Verde #006646 (institucional) · Laranja #ED8B00 (CTA, preço) · Azul #002395 (títulos, apoio)
   Bege #F5E9DA · Cinza claro #F2F2F2 · Títulos Montserrat · Texto Poppins · Legendas Inter */
@font-face { font-family: 'Montserrat'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/montserrat-600.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/montserrat-700.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 800; font-style: normal; font-display: swap; src: url('../fonts/montserrat-800.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 700; font-style: italic; font-display: swap; src: url('../fonts/montserrat-700i.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/poppins-600.woff2') format('woff2'); }
:root {
  --verde: #006646; --verde-esc: #004d35; --verde-claro: #E1EFE8;
  --laranja: #ED8B00; --laranja-esc: #C77400; --laranja-claro: #FCE7CC;
  --azul: #002395; --azul-esc: #00165F;
  --bege: #F5E9DA; --cinza: #F2F2F2; --linha: #E3E3E3;
  --texto: #2B2B2B; --suave: #7A7A7A; --branco: #fff; --erro: #C62828;
  --raio: 12px;
  --sombra: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,35,149,.05);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Poppins', system-ui, sans-serif; font-size: 14px; color: var(--texto); background: var(--cinza); line-height: 1.5; }
a { color: var(--azul); }
h1, h2, h3 { font-family: 'Montserrat', sans-serif; color: var(--azul); margin: 0 0 .5em; line-height: 1.15; }
h1 { font-weight: 800; font-size: 30px; letter-spacing: -.5px; }
h1 .ponto, .ponto { color: var(--laranja); }
h2 { font-weight: 700; font-size: 18px; }
h3 { font-weight: 700; font-size: 15px; }
.eyebrow { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--laranja); margin: 0 0 4px; }
.muted { color: var(--suave); } .small { font-size: 12px; }
code { background: var(--cinza); padding: 1px 6px; border-radius: 4px; }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 20; height: 68px; display: flex; align-items: center; gap: 16px; padding: 0 24px; background: var(--branco); border-bottom: 4px solid var(--verde); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand span { font-family: 'Montserrat'; font-weight: 800; color: var(--verde); font-size: 15px; padding-left: 14px; border-left: 2px solid var(--linha); }
.top-user { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.top-user div { text-align: right; line-height: 1.2; }
.top-user strong { display: block; font-weight: 600; }
.top-user small { color: var(--laranja); font-family: 'Inter'; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.top-user a { color: var(--suave); text-decoration: none; font-size: 13px; }
.top-user a:hover { color: var(--azul); }
.menu-toggle { display: none; background: none; border: 0; font-size: 22px; color: var(--verde); cursor: pointer; }

/* Shell */
.shell { display: flex; min-height: calc(100vh - 68px); }
.sidebar { width: 220px; flex-shrink: 0; background: var(--verde); padding: 20px 12px; display: flex; flex-direction: column; gap: 4px; }
.sidebar a { color: rgba(255,255,255,.85); text-decoration: none; padding: 10px 14px; border-radius: 10px; font-weight: 500; }
.sidebar a:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar a.on { background: var(--branco); color: var(--verde); font-weight: 600; box-shadow: inset 4px 0 0 var(--laranja); }
.side-foot { margin-top: auto; color: rgba(255,255,255,.55); font-family: 'Montserrat'; font-style: italic; font-weight: 700; font-size: 12px; padding: 14px; }
.content { flex: 1; min-width: 0; padding: 32px 36px 60px; max-width: 1400px; }

/* Cabeçalho de página */
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { margin: 0; }
.page-head .acoes { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* Cards */
.card { background: var(--branco); border-radius: var(--raio); padding: 22px 24px; box-shadow: var(--sombra); margin-bottom: 18px; }
.card > h2 { display: flex; align-items: center; gap: 10px; }
.card > h2 .num { width: 26px; height: 26px; border-radius: 50%; background: var(--laranja); color: #fff; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 18px; }
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.stack > * + * { margin-top: 14px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { border-radius: var(--raio); padding: 20px 22px; color: #fff; min-height: 116px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; }
.stat b { font-family: 'Montserrat'; font-weight: 800; font-size: 40px; line-height: 1; }
.stat span { font-weight: 600; font-size: 13px; }
.stat.verde { background: var(--verde); } .stat.laranja { background: var(--laranja); } .stat.azul { background: var(--azul); }
.stat.bege { background: var(--bege); color: var(--azul); }

/* Formulários */
label { display: block; font-family: 'Inter'; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--suave); }
label > input, label > select, label > textarea, label > .money { margin-top: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=url], select, textarea {
  width: 100%; font: inherit; font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--texto);
  background: var(--branco); border: 1.5px solid var(--linha); border-radius: 10px; padding: 10px 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--verde); box-shadow: 0 0 0 3px rgba(0,102,70,.12); }
input:disabled, select:disabled { background: var(--cinza); }
textarea { min-height: 80px; resize: vertical; }
input:not([type]) { width: 100%; font: inherit; border: 1.5px solid var(--linha); border-radius: 10px; padding: 10px 12px; margin-top: 6px; }
.check { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-family: 'Poppins'; font-size: 14px; font-weight: 400; color: var(--texto); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--verde); }
.money { position: relative; }
.money::before { content: 'R$'; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--suave); font-size: 13px; }
.money input { padding-left: 36px; margin: 0; }
.hint { font-size: 12px; color: var(--suave); margin-top: 4px; text-transform: none; letter-spacing: 0; font-weight: 400; font-family: 'Poppins'; }
.tag { display: inline-block; font-family: 'Inter'; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--cinza); color: var(--suave); vertical-align: middle; }
.tag.verde { background: var(--verde-claro); color: var(--verde); }
.tag.laranja { background: var(--laranja-claro); color: var(--laranja-esc); }
.tag.azul { background: #E3E8F7; color: var(--azul); }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: 10px; border: 1.5px solid var(--linha); background: var(--branco); color: var(--texto); cursor: pointer; text-decoration: none; white-space: nowrap; transition: .15s; }
.btn:hover { border-color: var(--verde); color: var(--verde); }
.btn-primary { background: var(--laranja); border-color: var(--laranja); color: #fff; }
.btn-primary:hover { background: var(--laranja-esc); border-color: var(--laranja-esc); color: #fff; }
.btn-verde { background: var(--verde); border-color: var(--verde); color: #fff; }
.btn-verde:hover { background: var(--verde-esc); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-link { background: none; border: 0; padding: 4px 6px; color: var(--azul); font-weight: 500; }
.btn-link:hover { color: var(--verde); text-decoration: underline; }
.btn-danger { color: var(--erro); }
.btn-danger:hover { border-color: var(--erro); color: var(--erro); }
.btn-block { width: 100%; }
form.inline { display: inline; }

/* Alertas */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; font-weight: 500; }
.alert.ok { background: var(--verde-claro); color: var(--verde); }
.alert.err { background: #FDECEA; color: var(--erro); }
.alert.info { background: var(--bege); color: var(--azul); }

/* Tabelas */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-family: 'Inter'; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--suave); padding: 10px 12px; border-bottom: 2px solid var(--linha); white-space: nowrap; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--linha); vertical-align: middle; }
.tbl tr:hover td { background: #FAFAFA; }
.tbl .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl .acoes { text-align: right; white-space: nowrap; }
.thumb { width: 64px; height: 40px; object-fit: cover; border-radius: 6px; background: var(--cinza); display: block; }
.nome-cell strong { display: block; color: var(--azul); font-weight: 600; }
.nome-cell small { color: var(--suave); }
.filtros { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filtros input, .filtros select { width: auto; min-width: 180px; }

/* Ativo — foto */
.foto-box { aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--cinza) center/cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--suave); font-size: 13px; margin-bottom: 12px; border: 1.5px dashed var(--linha); }
.foto-box img { width: 100%; height: 100%; object-fit: cover; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; padding-top: 6px; }
details.hist summary { cursor: pointer; color: var(--suave); font-size: 13px; }

/* Montador de mídia kit */
.picker-group { margin-top: 14px; }
.picker-group > p { font-family: 'Inter'; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--verde); margin: 0 0 8px; }
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.pick { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1.5px solid var(--linha); border-radius: 10px; background: var(--branco); cursor: pointer; text-align: left; font: inherit; transition: .15s; }
.pick:hover { border-color: var(--verde); }
.pick img { width: 56px; height: 36px; object-fit: cover; border-radius: 6px; background: var(--cinza); flex-shrink: 0; }
.pick b { display: block; font-weight: 600; font-size: 13px; color: var(--azul); line-height: 1.2; }
.pick small { color: var(--suave); font-size: 11px; }
.pick .mais { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--laranja); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.pick.usado { opacity: .45; cursor: default; }
.pick.usado .mais { background: var(--verde); }
.itens { display: flex; flex-direction: column; gap: 10px; }
.item { border: 1.5px solid var(--linha); border-radius: 12px; padding: 12px 14px; display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; background: var(--branco); }
.item img { width: 72px; height: 46px; object-fit: cover; border-radius: 6px; background: var(--cinza); }
.item .t { font-weight: 600; color: var(--azul); }
.item .t .n { color: var(--laranja); font-family: 'Montserrat'; font-weight: 800; margin-right: 6px; }
.item .linha2 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.item .linha2 select { width: 150px; padding: 6px 8px; }
.item .linha2 input { width: 100px; padding: 6px 8px; }
.item .precos { font-size: 12px; color: var(--suave); }
.item .precos s { color: #B5B5B5; }
.item .precos b { color: var(--laranja-esc); }
.item .ctrl { display: flex; gap: 4px; }
.item .ctrl button { width: 32px; height: 32px; border-radius: 8px; border: 1.5px solid var(--linha); background: var(--branco); cursor: pointer; font-size: 14px; }
.item .ctrl button:hover { border-color: var(--verde); }
.item .ctrl .x:hover { border-color: var(--erro); color: var(--erro); }
.vazio { padding: 28px; text-align: center; color: var(--suave); border: 1.5px dashed var(--linha); border-radius: 12px; }
.resumo-tot { border-top: 2px solid var(--linha); margin-top: 10px; }
.resumo-tot div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--linha); }
.resumo-tot b { color: var(--laranja-esc); font-family: 'Montserrat'; font-weight: 800; }
.resumo-tot small { color: var(--suave); display: block; font-size: 11px; }
.resumo-tot s { color: #B5B5B5; font-size: 12px; margin-right: 6px; }
.periodos { display: flex; gap: 14px; flex-wrap: wrap; margin: 6px 0 10px; }
.status-emitido { background: var(--verde-claro); color: var(--verde); }
.capa-preview { aspect-ratio: 16/9; border-radius: 10px; background: var(--azul); position: relative; overflow: hidden; color: #fff; padding: 6% 7%; font-family: 'Montserrat'; }
.capa-preview::after { content: ''; position: absolute; right: -18%; top: -30%; width: 62%; aspect-ratio: 1; border-radius: 50%; background: var(--azul-esc); }
.capa-preview .ey { color: var(--laranja); font-weight: 700; font-size: 9px; position: relative; z-index: 1; }
.capa-preview .t1 { font-weight: 800; font-size: 24px; line-height: .95; position: relative; z-index: 1; margin-top: 8px; }
.capa-preview .t2 { color: var(--laranja); }
.capa-preview .cli { position: absolute; left: 0; bottom: 0; width: 46%; background: var(--laranja); padding: 6px 7%; font-size: 8px; line-height: 1.25; font-weight: 700; z-index: 1; }
.capa-preview img { position: absolute; right: 6%; top: 9%; width: 30%; z-index: 2; }

/* Login */
body.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--azul); padding: 24px; position: relative; overflow: hidden; }
body.auth::before { content: ''; position: absolute; right: -15vw; top: -20vh; width: 70vw; aspect-ratio: 1; border-radius: 50%; background: var(--azul-esc); }
body.auth::after { content: ''; position: absolute; left: 0; bottom: 0; width: 34vw; height: 18vh; background: var(--laranja); }
.auth-card { position: relative; z-index: 1; width: 100%; max-width: 420px; background: var(--branco); border-radius: 18px; padding: 36px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.auth-card h1 { font-size: 26px; }
.auth-logo { width: 210px; display: block; margin-bottom: 22px; }
.auth-card form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }

@media (max-width: 1100px) {
  .layout-side { grid-template-columns: 1fr; }
  .layout-side > aside { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .sidebar { position: fixed; top: 68px; left: 0; bottom: 0; z-index: 30; transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .sidebar { transform: none; }
  .content { padding: 20px 16px 48px; }
  .top-user div, .brand span { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .item { grid-template-columns: 1fr auto; }
  .item img { display: none; }
  h1 { font-size: 24px; }
}

.item .linha2 select.sel-cota { width: 190px; font-weight: 600; color: var(--azul); }
.tbl-cotas td { padding: 6px; } .tbl-cotas input, .tbl-cotas select { padding: 7px 9px; }
.tbl-cotas .money input { padding-left: 32px; }
.tbl-cotas td:nth-child(1) { min-width: 130px; }
.tbl-cotas td:nth-child(2) { min-width: 140px; }
.tbl-cotas td:nth-child(3) { width: 120px; }
.tbl-cotas td:nth-child(4), .tbl-cotas td:nth-child(5) { width: 160px; }
