/* ==========================================================================
   Yacht Market — painel de gestão
   Cores de gráfico validadas (skill dataviz) contra a superfície branca dos cartões:
   categórico  #1f6b9a · #b7800d · #2c8c6b   (ΔE CVD mín. 8,9 · normal 17,6 · contraste ≥ 3:1)
   ordinal     #8dbbd8 → #0a3b5b             (monotônico, passo ΔL ≥ 0,06, extremo claro 2,05:1)
   ========================================================================== */
:root {
  --series-1: #1f6b9a;
  --series-2: #b7800d;
  --series-3: #2c8c6b;
  --viz-grid: #e9e4d8;
  --viz-axis: #cbc4b3;
  --sb-w: 264px;
  --tb-h: 64px;
}
body.layout-admin { background: #f4f1ea; }
body.layout-admin .btn { text-transform: none; letter-spacing: .01em; font-size: .88rem; font-weight: 500; padding: 10px 18px; border-radius: var(--r-md); }
body.layout-admin .btn-sm { padding: 7px 13px; font-size: .82rem; }
body.layout-admin .btn-lg { padding: 14px 26px; font-size: .95rem; }
body.layout-admin .btn-gold { background: var(--gold-500); color: var(--navy-900); }
body.layout-admin .btn-text { border-bottom: 0; text-decoration: underline; text-underline-offset: 3px; padding: 7px 8px; }
body.layout-admin input:where(:not([type=checkbox], [type=radio], [type=range], [type=file], [type=hidden], [type=submit], [type=button], [type=color])), body.layout-admin select, body.layout-admin textarea { padding: 10px 12px; font-size: .92rem; border-radius: var(--r-md); }
body.layout-admin .field > label, body.layout-admin .label { font-size: .76rem; letter-spacing: .02em; text-transform: none; font-weight: 500; }
body.layout-admin select { padding-right: 34px; }
body.layout-admin .modal-head h2 { font-size: 1.7rem; }
.btn-link { color: var(--gold-800); font-size: .84rem; text-decoration: underline; text-underline-offset: 3px; }
.bad { color: var(--bad); } .ink { color: var(--ink); } .grow { flex: 1; } .sub { display: block; color: var(--ink-3); font-size: .76rem; }

/* ---------- layout ---------- */
.adm { display: flex; min-height: 100vh; }
.sb { position: fixed; z-index: 120; inset: 0 auto 0 0; width: var(--sb-w); background: var(--navy-900); color: var(--ivory); display: flex; flex-direction: column; padding: 22px 14px 16px; overflow-y: auto; transition: transform .3s var(--ease); border-right: 1px solid rgba(228, 167, 48, .18); }
.sb-logo { display: flex; padding: 4px 10px 22px; border-bottom: 1px solid rgba(247, 243, 234, .1); } .sb-logo .logo-mark { height: 42px; } .sb-logo .logo-name { height: 29px; }
.sb-nav { display: flex; flex-direction: column; gap: 18px; padding: 22px 0; flex: 1; }
.sb-group { display: flex; flex-direction: column; gap: 2px; }
.sb-group small { padding: 0 12px 6px; font: 500 .62rem var(--font-ui); letter-spacing: .24em; text-transform: uppercase; color: rgba(247, 243, 234, .4); }
.sb-group a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; font-size: .92rem; color: rgba(247, 243, 234, .78); position: relative; transition: background .2s, color .2s; }
.sb-group a:hover { background: rgba(247, 243, 234, .07); color: #fff; }
.sb-group a.is-on { background: rgba(228, 167, 48, .14); color: var(--gold-400); font-weight: 500; }
.sb-group a.is-on::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold-500); }
.sb-group a .i { width: 19px; height: 19px; } .sb-group a em { margin-left: auto; font-style: normal; font-size: .72rem; min-width: 22px; text-align: center; padding: 2px 7px; border-radius: 99px; background: rgba(247, 243, 234, .12); color: var(--ivory); }
.sb-group a.is-on em { background: var(--gold-500); color: var(--navy-900); }
.sb-foot { border-top: 1px solid rgba(247, 243, 234, .1); padding-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.sb-site { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: .84rem; color: rgba(247, 243, 234, .65); border-radius: 8px; } .sb-site:hover { color: var(--gold-400); background: rgba(247, 243, 234, .06); }
.sb-user { display: flex; align-items: center; gap: 11px; padding: 8px 8px 8px 10px; background: rgba(247, 243, 234, .06); border-radius: 10px; } .sb-user > div { flex: 1; min-width: 0; line-height: 1.25; } .sb-user strong { display: block; font-size: .86rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sb-user small { font-size: .72rem; color: rgba(247, 243, 234, .55); }
.sb-user button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: rgba(247, 243, 234, .7); } .sb-user button:hover { background: rgba(247, 243, 234, .12); color: var(--gold-400); }
.sb-scrim { display: none; }
.adm-main { flex: 1; min-width: 0; margin-left: var(--sb-w); display: flex; flex-direction: column; }
.tb { position: sticky; top: 0; z-index: 60; height: var(--tb-h); display: flex; align-items: center; gap: 16px; padding: 0 28px; background: rgba(244, 241, 234, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.tb-burger { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 8px; flex: none; } .tb-burger:hover { background: rgba(1, 35, 52, .07); }
.tb-search { flex: 1; max-width: 480px; display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink-3); font-size: .88rem; text-align: left; transition: border-color .2s; } .tb-search:hover { border-color: var(--navy-700); }
.tb-search span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } kbd { font: 500 .68rem var(--font-ui); padding: 2px 7px; border: 1px solid var(--line-strong); border-radius: 5px; background: #faf8f3; color: var(--ink-3); }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.tb-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; color: var(--ink-2); } .tb-btn:hover { background: rgba(1, 35, 52, .07); }
.tb-dot { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--bad); color: #fff; font: 600 .66rem/17px var(--font-ui); text-align: center; }
.dd { position: relative; }
.dd-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; min-width: 230px; background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; animation: rise-in .2s var(--ease); }
.bell-panel { width: min(380px, calc(100vw - 24px)); padding: 0; max-height: 70vh; overflow-y: auto; }
.dd-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.dd-row { display: flex; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); align-items: flex-start; } .dd-row:hover { background: #fbf8ef; } .dd-row small { display: block; color: var(--ink-3); font-size: .78rem; } .dd-row strong { font-weight: 500; font-size: .88rem; line-height: 1.3; display: block; }
.dd-ic { width: 32px; height: 32px; flex: none; border-radius: 8px; background: rgba(1, 35, 52, .07); display: grid; place-items: center; color: var(--ink-2); } .dd-ic.late { background: var(--bad-bg); color: var(--bad); } .dd-ic.new { background: rgba(228, 167, 48, .22); color: var(--gold-800); }
.dd-empty { padding: 24px; text-align: center; color: var(--ink-3); }
.new-panel a, .new-panel button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 7px; font-size: .9rem; text-align: left; } .new-panel a:hover, .new-panel button:hover { background: #f4efe2; }
.adm-view { padding: 28px clamp(16px, 2.6vw, 36px) 72px; max-width: 1840px; width: 100%; }
@media (max-width: 1020px) {
  .sb { transform: translateX(-100%); } body.sb-open .sb { transform: none; box-shadow: var(--shadow-lg); } body.sb-open .sb-scrim { display: block; position: fixed; inset: 0; z-index: 110; background: rgba(1, 26, 40, .5); }
  .adm-main { margin-left: 0; } .tb-burger { display: grid; } .tb { padding: 0 14px; } .tb-search kbd { display: none; }
}
@media (max-width: 640px) { .tb-search span { display: none; } .tb-search { flex: none; } .tb-right { gap: 6px; } }

/* ---------- cabeçalho de página, abas, filtros ---------- */
.pghead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.pghead h1 { font: 500 clamp(1.8rem, 2.3vw, 2.2rem)/1.05 var(--font-display); letter-spacing: -.01em; } .pghead p { color: var(--ink-3); font-size: .92rem; margin-top: 6px; }
.pghead-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.seg-filter { display: inline-flex; background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg-filter button { padding: 6px 13px; border-radius: 6px; font-size: .82rem; color: var(--ink-2); display: inline-flex; gap: 7px; align-items: center; font-weight: 500; } .seg-filter button:hover { background: rgba(1, 35, 52, .05); } .seg-filter button.is-on, .seg-filter button[aria-pressed=true] { background: var(--navy-900); color: var(--gold-400); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line-strong); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; } .tabs::-webkit-scrollbar { display: none; }
.tabs button { padding: 11px 16px; font: 500 .9rem var(--font-ui); color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; transition: color .2s; } .tabs button:hover { color: var(--navy-900); }
.tabs button em { font-style: normal; font-size: .72rem; background: rgba(1, 35, 52, .08); padding: 1px 8px; border-radius: 99px; color: var(--ink-2); }
.tabs button.is-on { color: var(--navy-900); border-bottom-color: var(--gold-600); } .tabs button.is-on em { background: var(--gold-500); color: var(--navy-900); }
.tabs.sm button { padding: 9px 12px; font-size: .84rem; }
.filters { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; } .filters select { width: auto; min-width: 170px; }
.f-search { position: relative; flex: 1; min-width: 220px; max-width: 420px; } .f-search .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; } .f-search input { padding-left: 38px !important; }
.check.inline { padding: 0 6px; }
.note { display: flex; gap: 10px; align-items: flex-start; background: var(--info-bg); color: #164c6e; padding: 11px 14px; border-radius: 8px; font-size: .86rem; margin-bottom: 14px; } .note.bad { background: var(--bad-bg); color: var(--bad); }
.adm-empty { text-align: center; padding: 56px 24px; color: var(--ink-3); display: flex; flex-direction: column; align-items: center; gap: 8px; } .adm-empty .i { width: 34px; height: 34px; color: var(--gold-600); } .adm-empty h3 { font: 500 1.6rem var(--font-display); color: var(--ink); } .adm-empty .btn { margin-top: 10px; }

/* ---------- cartões ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); min-width: 0; }
.card.flush { overflow: hidden; } .card.bare { background: none; border: 0; box-shadow: none; overflow: visible; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 18px 22px 0; }
.card-head h3 { font: 600 1rem/1.3 var(--font-ui); color: var(--navy-900); } .card-head p { color: var(--ink-3); font-size: .8rem; margin-top: 2px; }
.card-head.pad-h { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.card-actions { display: flex; gap: 12px; align-items: center; }
.pad { padding: 18px 22px 22px; } .form-grid.pad { padding: 18px 22px 22px; }
.foot-note { padding: 12px 22px 16px; font-size: .78rem; color: var(--ink-3); border-top: 1px solid var(--line); }
.dash-a { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; margin-bottom: 20px; }
.dash-b, .dash-c { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.dash-d { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.span-7 { grid-column: span 7; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; }
@media (max-width: 1180px) { .dash-a { grid-template-columns: 1fr; } .span-7, .span-5, .span-6 { grid-column: 1 / -1; } .dash-d { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .dash-d { grid-template-columns: 1fr; } }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } .tiles.four { grid-template-columns: repeat(4, 1fr); margin-bottom: 20px; }
@media (max-width: 1100px) { .tiles.four { grid-template-columns: 1fr 1fr; } } @media (max-width: 520px) { .tiles, .tiles.four { grid-template-columns: 1fr; } }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 3px; box-shadow: var(--shadow-sm); min-width: 0; }
.tile-label { font: 500 .8rem var(--font-ui); color: var(--ink-2); }
.tile-value { font: 600 1.65rem/1.15 var(--font-ui); color: var(--navy-900); letter-spacing: -.01em; }
.tile-sub { font-size: .82rem; color: var(--ink-3); }
.tile-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; min-height: 34px; } .tile-foot .meter { flex: 1; }
.tile-link { font-size: .82rem; color: var(--gold-800); display: inline-flex; gap: 6px; align-items: center; font-weight: 500; } .tile-link:hover { text-decoration: underline; }
.hero-card { padding: 24px 26px; display: flex; flex-direction: column; gap: 6px; }
.hero-fig { font: 600 clamp(3rem, 3vw, 3.25rem)/1 var(--font-ui); letter-spacing: -.02em; color: var(--navy-900); margin: 6px 0 2px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); } .hero-facts span { display: block; font-size: .74rem; color: var(--ink-3); line-height: 1.3; } .hero-facts strong { font: 600 1.15rem/1.2 var(--font-ui); color: var(--navy-900); } .hero-facts small { font-size: .8rem; font-weight: 400; color: var(--ink-3); }
.hero-seg { margin-top: auto; padding-top: 22px; }
.delta { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 500; } .delta .i { width: 14px; height: 14px; }
.delta.up { color: #006300; } .delta.down { color: var(--bad); } .delta.flat { color: var(--ink-3); }
.spark { flex: none; }
.viz-chart { padding: 14px 22px 22px; } .viz-table { padding: 8px 8px 12px; }
.card .legend { padding: 0; }

/* ---------- gráficos (HTML/CSS) ---------- */
.vc { position: relative; height: var(--h, 220px); margin: 22px 14px 34px 58px; }
.vc-grid { position: absolute; inset: 0; pointer-events: none; }
.vc-line { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--viz-grid); }
.vc-line.base { border-top-color: var(--viz-axis); }
.vc-line span { position: absolute; right: calc(100% + 10px); top: -9px; font-size: .72rem; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.vc-cols { position: absolute; inset: 0; display: flex; }
.vc-col { flex: 1; min-width: 0; position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; border-radius: 4px; outline-offset: -2px; }
.vc-col:hover, .vc-col:focus-visible { background: rgba(1, 35, 52, .045); }
.vc-bar { width: min(58%, 24px); border-radius: 4px 4px 0 0; min-height: 0; transition: filter .15s; } .vc-col:hover .vc-bar, .vc-col:focus-visible .vc-bar { filter: brightness(1.14); }
.vc-stack { width: min(58%, 24px); display: flex; flex-direction: column; gap: 2px; border-radius: 4px 4px 0 0; overflow: hidden; } .vc-seg { min-height: 2px; }
.vc-x { position: absolute; top: calc(100% + 9px); left: 0; right: 0; text-align: center; font-size: .72rem; color: var(--ink-3); }
.vc-val { position: absolute; left: 50%; transform: translateX(-50%); font-size: .74rem; font-weight: 600; color: var(--ink); white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; }
.hb { display: flex; flex-direction: column; gap: 4px; }
.hb-row { display: grid; grid-template-columns: minmax(96px, 32%) 1fr; gap: 12px; align-items: center; padding: 6px 6px; border-radius: 6px; outline-offset: -2px; } .hb-row:hover, .hb-row:focus-visible { background: rgba(1, 35, 52, .045); }
.hb-label { font-size: .86rem; color: var(--ink); line-height: 1.25; } .hb-label small { display: block; color: var(--ink-3); font-size: .74rem; }
.hb-track { position: relative; height: 22px; }
.hb-bar { position: absolute; left: 0; top: 4px; height: 14px; border-radius: 0 4px 4px 0; min-width: 2px; transition: filter .15s; } .hb-row:hover .hb-bar { filter: brightness(1.12); }
.hb-val { position: absolute; top: 50%; transform: translateY(-50%); font-size: .8rem; font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.seg { display: flex; flex-direction: column; gap: 10px; }
.seg-bar { display: flex; gap: 2px; height: 28px; }
.seg-part { border-radius: 4px; display: flex; align-items: center; padding-left: 9px; font-size: .76rem; font-weight: 600; min-width: 3px; white-space: nowrap; transition: filter .15s; } .seg-part:hover, .seg-part:focus-visible { filter: brightness(1.1); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .8rem; color: var(--ink-2); margin: 0 0 8px; } .legend li { display: inline-flex; align-items: center; gap: 7px; } .legend i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.seg .legend { margin: 0; }
.meter { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--c, var(--series-1)) 18%, #fff); overflow: hidden; } .meter i { display: block; height: 100%; border-radius: 99px; background: var(--c, var(--series-1)); transition: width .5s var(--ease); }
.spark { display: block; }
.cost .legend, .cost .meter { color: inherit; } .cost .meter { background: rgba(247, 243, 234, .18); }

/* ---------- tabelas ---------- */
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 720px; } .tbl.compact { min-width: 0; font-size: .84rem; }
.tbl th { font: 500 .66rem var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); background: #fbf9f4; white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl.compact th, .tbl.compact td { padding: 9px 12px; }
.tbl .right { text-align: right; } .tbl td.tnum, .tbl th.right, .tbl tfoot td { white-space: nowrap; } .tbl td .ink { display: block; } .tbl .chk { width: 44px; padding-right: 0; } .tbl .acts { text-align: right; width: 1%; }
.tbl tr.row { cursor: pointer; } .tbl tr.row:hover td { background: #fbf8ef; } .tbl tr.row:focus-visible { outline: 2px solid var(--gold-600); outline-offset: -2px; } .tbl tr.is-sel td { background: #fdf3d9; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tfoot td { font-weight: 600; background: #fbf9f4; border-top: 1px solid var(--line-strong); border-bottom: 0; }
.who { display: flex; gap: 12px; align-items: center; min-width: 0; } .who strong { display: block; font-weight: 500; color: var(--ink); } .who small { display: block; color: var(--ink-3); font-size: .78rem; }
.thumb { width: 60px; height: 44px; border-radius: 6px; overflow: hidden; background: var(--navy-900); flex: none; display: block; } .thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.nophoto { display: grid; place-items: center; } .thumb.nophoto img { width: 22px; height: auto; object-fit: contain; opacity: .6; } .thumb.xs { width: 34px; height: 26px; border-radius: 4px; }
.av { width: 32px; height: 32px; border-radius: 50%; background: var(--sand-200); color: var(--navy-900); display: inline-grid; place-items: center; font: 600 .72rem var(--font-ui); flex: none; }
.av.gold { background: var(--gold-500); } .av.lg { width: 56px; height: 56px; font-size: 1.1rem; background: var(--navy-900); color: var(--gold-400); }
.av-row { display: flex; } .av-row .av { margin-left: -8px; border: 2px solid #fff; } .av-row .av:first-child { margin-left: 0; }
.stack { display: flex; flex-wrap: wrap; gap: 5px; } .nowrap { white-space: nowrap; }
.mand { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; } .mand b { font-weight: 500; }
.ic-btn { width: 32px; height: 32px; border-radius: 7px; display: inline-grid; place-items: center; color: var(--ink-3); transition: background .15s, color .15s; } .ic-btn:hover { background: rgba(1, 35, 52, .08); color: var(--navy-900); } .ic-btn.danger:hover { background: var(--bad-bg); color: var(--bad); }
.danger-t { color: var(--bad) !important; border-color: rgba(169, 47, 42, .35) !important; } .danger-t:hover { background: var(--bad-bg) !important; }
.chip-btn { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 1px solid var(--line-strong); border-radius: 99px; font-size: .8rem; background: #fff; transition: border-color .15s, background .15s; } .chip-btn:hover { border-color: var(--navy-900); background: #faf7ee; } .chip-btn .i { margin-left: 6px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.linkish { display: inline-flex; align-items: center; gap: 10px; text-align: left; color: var(--ink); font-weight: 500; } .linkish:hover { color: var(--gold-800); } .linkish small { display: block; font-weight: 400; color: var(--ink-3); font-size: .78rem; }
.who-s { display: inline-flex; align-items: center; gap: 8px; }
.next { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--ink-2); white-space: nowrap; } .next.late { color: var(--bad); font-weight: 500; } .next.today { color: var(--warn); font-weight: 500; } .next .i { width: 14px; height: 14px; }
.chip.info { background: var(--info-bg); color: var(--info); }

/* ações em lote */
.batch { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; background: #faf1d8; border-bottom: 1px solid rgba(177, 119, 7, .3); position: sticky; top: var(--tb-h); z-index: 20; }
.batch-r { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .batch .lbl { font-size: .78rem; color: var(--ink-3); } .batch .sep { width: 1px; height: 22px; background: var(--line-strong); }

/* ---------- visão geral: listas ---------- */
.att { padding: 8px 22px 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; } .att-g h4 { font: 500 .66rem var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 10px 0 6px; }
.att-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin: 0 -10px; border-radius: 8px; font-size: .86rem; } .att-row:hover { background: #fbf8ef; } .att-row span { flex: 1; min-width: 0; } .att-row em { font-style: normal; font-size: .76rem; color: var(--ink-3); white-space: nowrap; } .att-row.late em { color: var(--bad); font-weight: 500; } .att-row .i { color: var(--ink-3); width: 16px; height: 16px; }
.evl { padding: 6px 22px 18px; } .evl li { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); } .evl li:last-child { border-bottom: 0; } .evl li > div { flex: 1; min-width: 0; } .evl strong { display: block; font-weight: 500; font-size: .88rem; line-height: 1.3; } .evl small { color: var(--ink-3); font-size: .78rem; }
.when { width: 46px; flex: none; text-align: center; background: #f1ecdf; border-radius: 8px; padding: 6px 0; font: 500 .62rem var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); } .when b { display: block; font: 600 1.25rem/1.1 var(--font-ui); color: var(--navy-900); letter-spacing: 0; } .when.today { background: var(--navy-900); color: var(--gold-400); } .when.today b { color: #fff; }
.kpis3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 18px 22px 22px; }
.dash-d .kpis3 { grid-template-columns: 1fr; gap: 0; padding: 6px 22px 14px; } .dash-d .kpis3 > div { flex-direction: row; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); gap: 16px; } .dash-d .kpis3 > div:last-child { border-bottom: 0; } .dash-d .kpis3 span { font-size: .86rem; color: var(--ink-2); } .kpis3 > div { display: flex; flex-direction: column; gap: 4px; } .kpis3 span { font-size: .76rem; color: var(--ink-3); line-height: 1.3; } .kpis3 strong { font: 600 1.3rem/1.1 var(--font-ui); color: var(--navy-900); } .kpis3 small { font-size: .8rem; font-weight: 400; color: var(--ink-3); }
.lead-list { padding: 4px 22px 14px; } .lead-list a { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); } .lead-list li:last-child a { border-bottom: 0; } .lead-list a:hover strong { color: var(--gold-800); } .lead-list strong { font-weight: 500; font-size: .88rem; } .lead-list small { display: block; color: var(--ink-3); font-size: .76rem; }
.proj { font: 600 1.2rem var(--font-ui); color: var(--navy-900); }

/* ---------- drawer: embarcação / contato / negociação ---------- */
.drawer .modal-body { padding: 20px 26px 28px; } .drawer .modal-head { padding: 22px 26px 16px; } .drawer .modal-foot { padding: 14px 26px; align-items: center; flex-wrap: nowrap; }
.bd-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; margin-bottom: 18px; } .bd-top img { width: 100%; height: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; }
.bd-ph { display: grid; place-items: center; min-height: 160px; background: var(--navy-900); border-radius: 10px; } .bd-ph img { width: 60px !important; height: auto !important; opacity: .6; object-fit: contain !important; }
.bd-top-r { display: flex; flex-direction: column; gap: 12px; justify-content: center; } .bd-price { font: 600 1.55rem/1.1 var(--font-ui); color: var(--navy-900); } .bd-price s { display: block; font-size: .85rem; font-weight: 400; color: var(--ink-3); }
@media (max-width: 640px) { .bd-top { grid-template-columns: 1fr; } }
.bd-body { padding-top: 6px; display: flex; flex-direction: column; gap: 4px; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 18px; } .spec-grid > div { background: #fff; padding: 12px 14px; } .spec-grid small { display: block; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; } .spec-grid strong { font-weight: 500; font-size: .9rem; word-break: break-word; }
.blk { margin-bottom: 20px; } .blk-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 12px; } .blk-h h4 { font: 600 .9rem var(--font-ui); color: var(--navy-900); } .blk-p { font-size: .9rem; color: var(--ink-2); margin-bottom: 12px; } .blk-p.pre { white-space: pre-line; }
.mand-line { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; font-size: .78rem; color: var(--ink-3); margin-bottom: 10px; }
.ppl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .ppl small { display: block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.docs-l li { border-bottom: 1px solid var(--line); } .docs-l li:last-child { border-bottom: 0; }
.sw-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; cursor: pointer; font-size: .9rem; } .sw-row > span:first-child { display: flex; gap: 10px; align-items: flex-start; flex-direction: row; } .sw-row small { display: block; font-weight: 400; color: var(--ink-3); font-size: .78rem; }
.sw-row b { font-weight: 500; display: block; }
.rows li { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; } .rows li:last-child { border-bottom: 0; }
.ct-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; } .ct-sel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; } @media (max-width: 560px) { .ct-sel { grid-template-columns: 1fr; } }
.log-form { background: #faf8f2; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.tl { display: flex; flex-direction: column; gap: 0; margin-top: 4px; } .tl li { display: flex; gap: 14px; padding-bottom: 16px; position: relative; } .tl li::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 1px; background: var(--line-strong); } .tl li:last-child { padding-bottom: 0; } .tl li:last-child::before { display: none; }
.tl-ic { width: 31px; height: 31px; flex: none; border-radius: 50%; background: #efe9da; display: grid; place-items: center; color: var(--ink-2); z-index: 1; } .tl-ic .i { width: 15px; height: 15px; } .tl-ic.site { background: rgba(228, 167, 48, .28); color: var(--gold-800); } .tl-ic.whatsapp { background: var(--ok-bg); color: var(--ok); } .tl-ic.sistema { background: #eaeef1; }
.tl li b { font-weight: 500; font-size: .86rem; } .tl-d { margin-left: 8px; font-size: .76rem; color: var(--ink-3); } .tl p { font-size: .88rem; color: var(--ink-2); margin-top: 2px; }
.pick-list { max-height: 170px; overflow-y: auto; border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; } @media (max-width: 560px) { .pick-list { grid-template-columns: 1fr; } }
.stepper { display: flex; gap: 2px; margin: 0 0 18px; overflow-x: auto; padding-bottom: 4px; } .stepper li { flex: 1; min-width: 78px; } .stepper button { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 2px; text-align: center; } .stepper button:disabled { cursor: default; }
.stepper span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .76rem; font-weight: 600; background: #efe9da; color: var(--ink-3); border: 2px solid transparent; transition: all .2s; } .stepper span .i { width: 14px; height: 14px; stroke-width: 2.4; } .stepper em { font-style: normal; font-size: .68rem; line-height: 1.2; color: var(--ink-3); }
.stepper li.done span { background: var(--navy-900); color: var(--gold-400); } .stepper li.now span { background: var(--gold-500); color: var(--navy-900); box-shadow: 0 0 0 4px rgba(228, 167, 48, .28); } .stepper li.now em { color: var(--navy-900); font-weight: 600; }
.stepper button:not(:disabled):hover span { border-color: var(--gold-600); }
.deal-vals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 20px; } .deal-vals > div { background: #fff; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; } .deal-vals small { font-size: .72rem; color: var(--ink-3); letter-spacing: .04em; } .deal-vals strong { font: 600 1.15rem/1.15 var(--font-ui); color: var(--navy-900); } @media (max-width: 560px) { .deal-vals { grid-template-columns: 1fr; } }
.mini-in { width: 58px !important; padding: 3px 6px !important; display: inline-block; text-align: center; }
.props { display: flex; flex-direction: column; margin-bottom: 12px; } .props li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line-strong); flex-wrap: wrap; } .props li b { font-size: .95rem; } .props small { color: var(--ink-3); } .props li.ok b { color: var(--ok); }
.inline-form { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; } .inline-form > input, .inline-form > select { flex: 1; min-width: 160px; width: auto; } .inline-form .input-affix { flex: 1; min-width: 150px; }
.docs-form, .eq-grid { display: grid; gap: 10px 20px; } .eq-grid { grid-template-columns: 1fr 1fr; } @media (max-width: 700px) { .eq-grid { grid-template-columns: 1fr; } }
.equip-f { border: 0; padding: 14px 0 0; margin: 0; min-width: 0; } .equip-f legend { padding: 0; margin-bottom: 10px; }
.spaced li { padding: 0; }

/* ---------- formulário de embarcação ---------- */
.bform { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; padding-bottom: 84px; } .bform-main, .bform-side { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
@media (max-width: 1180px) { .bform { grid-template-columns: 1fr; } .bform-side .sticky { position: static !important; } }
.card.sticky { position: sticky; top: calc(var(--tb-h) + 16px); z-index: 5; } .prev { pointer-events: none; padding: 14px 18px 18px; } .prev .bc { box-shadow: none; } .prev .bc:hover { transform: none; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-bottom: 14px; } .ph-none { grid-column: 1 / -1; }
.ph-item { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--navy-900); } .ph-item img { width: 100%; height: 100%; object-fit: cover; } .ph-item .chip { position: absolute; left: 6px; top: 6px; font-size: .64rem; padding: 3px 8px; }
.ph-act { position: absolute; right: 5px; bottom: 5px; display: flex; gap: 4px; } .ph-act button { width: 28px; height: 28px; border-radius: 6px; background: rgba(1, 35, 52, .82); color: #fff; display: grid; place-items: center; } .ph-act button:hover { background: var(--gold-600); }
.ph-item.cover { box-shadow: 0 0 0 2px var(--gold-500); }
.upload { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1.5px dashed var(--line-strong); border-radius: 10px; cursor: pointer; transition: border-color .2s, background .2s; } .upload:hover, .upload:focus-within { border-color: var(--gold-600); background: #fbf6e8; } .upload .i { width: 26px; height: 26px; color: var(--gold-700); } .upload small { display: block; color: var(--ink-3); }
.bform-bar { position: fixed; z-index: 70; left: var(--sb-w); right: 0; bottom: 0; padding: 12px clamp(16px, 2.6vw, 36px); background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 1px solid var(--line-strong); display: flex; justify-content: flex-end; align-items: center; gap: 10px; } .bform-bar .muted { margin-right: auto; color: var(--bad); }
@media (max-width: 1020px) { .bform-bar { left: 0; } }

/* ---------- quadros (kanban) ---------- */
.board { display: flex; gap: 14px; overflow-x: auto; padding: 2px 2px 14px; align-items: flex-start; }
.kcol { flex: 0 0 236px; background: #ebe6d9; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 150px; transition: background .15s, box-shadow .15s; } .kcol.lost { background: #efe3e1; }
.kcol.drop-over { background: #f4e7c3; box-shadow: inset 0 0 0 2px var(--gold-500); }
.kcol header { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 0; } .kcol h4 { font: 600 .82rem var(--font-ui); color: var(--navy-900); } .cnt { background: #fff; border-radius: 99px; padding: 1px 9px; font-size: .74rem; font-weight: 600; color: var(--ink-2); }
.kcol-sum { padding: 0 4px; color: var(--ink-3); font-size: .74rem; } .kcol-body { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 40px; }
.kempty { font-size: .78rem; color: var(--ink-3); text-align: center; padding: 16px 6px; border: 1.5px dashed rgba(1, 35, 52, .18); border-radius: 8px; }
.kcard { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 12px; cursor: grab; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .15s; text-align: left; } .kcard:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); } .kcard:focus-visible { outline: 2px solid var(--gold-600); }
.kcard.is-dragging { opacity: .45; cursor: grabbing; } .kcard.late { border-left: 3px solid var(--bad); }
.k-top { display: flex; gap: 10px; align-items: center; } .k-top strong { font-weight: 500; font-size: .9rem; line-height: 1.25; flex: 1; min-width: 0; } .k-tt { min-width: 0; flex: 1; } .k-tt strong { display: block; } .k-tt small { color: var(--ink-3); font-size: .78rem; }
.k-top .av { width: 28px; height: 28px; font-size: .66rem; } .k-hot { color: var(--bad); }
.k-int { font-size: .8rem; color: var(--ink-3); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.k-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; } .k-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .k-boats { display: flex; gap: 4px; flex-wrap: wrap; }
.d-val { display: flex; align-items: center; justify-content: space-between; } .d-val strong { font: 600 1.05rem var(--font-ui); color: var(--navy-900); } .d-prog small { display: block; font-size: .72rem; color: var(--ink-3); margin-top: 4px; }

/* ---------- agenda ---------- */
.ag { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); gap: 20px; align-items: start; } @media (max-width: 1100px) { .ag { grid-template-columns: 1fr; } }
.cal { overflow: hidden; } .cal-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); gap: 10px; flex-wrap: wrap; } .cal-nav { display: flex; align-items: center; gap: 6px; } .cal-nav h3 { font: 600 1.1rem var(--font-ui); min-width: 168px; text-align: center; } .cal-nav h3::first-letter { text-transform: uppercase; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow { padding: 9px 6px; text-align: center; font: 500 .66rem var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); background: #fbf9f4; border-bottom: 1px solid var(--line); }
.cal-day { min-height: 108px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px; text-align: left; display: flex; flex-direction: column; gap: 3px; background: #fff; transition: background .15s; position: relative; min-width: 0; } .cal-day:nth-child(7n) { border-right: 0; } .cal-day:hover { background: #fbf8ef; }
.cal-day.out { background: #faf8f3; } .cal-day.out .n { color: #aab4ba; } .cal-day.sel { box-shadow: inset 0 0 0 2px var(--gold-600); z-index: 1; } .cal-day.past:not(.today) .ev { opacity: .75; }
.cal-day .n { font: 500 .8rem var(--font-ui); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); } .cal-day.today .n { background: var(--navy-900); color: var(--gold-400); font-weight: 600; }
.ev { display: flex; align-items: center; gap: 4px; font-size: .68rem; padding: 2px 5px; border-radius: 4px; background: rgba(31, 107, 154, .12); color: var(--ink); border-left: 3px solid var(--series-1); overflow: hidden; line-height: 1.35; } .ev .i { width: 11px; height: 11px; flex: none; } .ev i { font-style: normal; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.ev.prova { border-left-color: var(--series-3); background: rgba(44, 140, 107, .13); } .ev.vistoria { border-left-color: var(--series-2); background: rgba(183, 128, 13, .15); } .ev.reuniao { border-left-color: #6f7f8a; background: rgba(111, 127, 138, .14); } .ev.assinatura { border-left-color: var(--navy-900); background: rgba(1, 35, 52, .1); }
.ev.solicitado { border-left-style: dashed; background: var(--warn-bg); } .ev.realizado { opacity: .6; }
.more { font-size: .68rem; color: var(--ink-3); padding-left: 4px; }
.lg-row { padding: 12px 20px; border-top: 1px solid var(--line); margin: 0; gap: 8px 16px; } .lg-row li { gap: 6px; } .lg-row .i { width: 14px; height: 14px; }
@media (max-width: 720px) { .cal-day { min-height: 64px; padding: 3px; } .ev i { display: none; } .ev { padding: 2px 3px; justify-content: center; border-left-width: 2px; } .cal-nav h3 { min-width: 0; font-size: .95rem; } }
.ag-side { display: flex; flex-direction: column; gap: 20px; }
.card.pend { border-color: rgba(177, 119, 7, .45); background: #fffaf0; }
.evc { border: 1px solid var(--line); border-left: 4px solid var(--series-1); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; background: #fff; display: flex; flex-direction: column; gap: 6px; } .evc:last-child { margin-bottom: 0; }
.evc.prova { border-left-color: var(--series-3); } .evc.vistoria { border-left-color: var(--series-2); } .evc.reuniao { border-left-color: #6f7f8a; } .evc.assinatura { border-left-color: var(--navy-900); } .evc.cancelado { opacity: .55; } .evc.cancelado h4 { text-decoration: line-through; }
.evc-t { display: flex; justify-content: space-between; align-items: center; } .evc-t b { font: 600 1rem var(--font-ui); } .evc h4 { font: 500 .94rem/1.3 var(--font-ui); } .evc-m { font-size: .78rem; color: var(--ink-3); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .evc-n { font-size: .84rem; color: var(--ink-2); font-style: italic; }
.evc-a { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin-top: 2px; flex-wrap: wrap; }

/* ---------- equipe, configurações ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.team-card { padding: 22px; display: flex; flex-direction: column; gap: 16px; } .tc-head { display: flex; gap: 16px; align-items: center; } .tc-head h3 { font: 500 1.7rem/1.05 var(--font-display); } .tc-head p { color: var(--ink-3); font-size: .86rem; }
.tc-contact { font-size: .84rem; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; } .tc-contact li { display: flex; gap: 10px; align-items: center; } .tc-contact .i { color: var(--ink-3); }
.tc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; } .tc-stats > div { background: #fff; padding: 12px; text-align: center; } .tc-stats strong { display: block; font: 600 1.3rem/1.1 var(--font-ui); color: var(--navy-900); } .tc-stats span { font-size: .72rem; color: var(--ink-3); }
.tc-goal-h { display: flex; justify-content: space-between; font-size: .82rem; margin-bottom: 8px; color: var(--ink-2); } .tc-goal-h b { color: var(--navy-900); font-weight: 600; } .tc-goal-h small { font-weight: 400; color: var(--ink-3); }
.tc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .82rem; color: var(--ink-3); flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); } .tc-foot b { color: var(--navy-900); font-weight: 600; }
.settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 20px; align-items: start; } @media (max-width: 520px) { .settings { grid-template-columns: 1fr; } }
.split-sum { grid-column: 1 / -1; font-size: .86rem; color: var(--ink-2); margin-top: -4px; } .split-sum.bad { color: var(--bad); }
.stackv { display: flex; flex-direction: column; gap: 16px; } .btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- login ---------- */
.login-wrap { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; background: var(--ivory); }
.login-art { position: relative; display: flex; align-items: flex-end; padding: clamp(32px, 5vw, 72px); color: var(--ivory); overflow: hidden; } .login-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.login-art::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(1, 26, 40, .95) 8%, rgba(1, 35, 52, .3) 70%); } .login-art-in { position: relative; z-index: 2; max-width: 520px; display: flex; flex-direction: column; gap: 18px; }
.login-form { display: grid; place-items: center; padding: 32px; } .login-form form { width: min(420px, 100%); display: flex; flex-direction: column; gap: 18px; }
.login-logo { width: 150px; margin-bottom: 8px; } .login-form h1 { font: 500 2.4rem/1.05 var(--font-display); } .login-form .back { display: inline-flex; gap: 8px; align-items: center; color: var(--ink-3); font-size: .86rem; margin-top: 4px; } .login-form .back:hover { color: var(--navy-900); }
@media (max-width: 860px) { .login-wrap { grid-template-columns: 1fr; } .login-art { min-height: 220px; padding: 28px; } .login-art .lead { display: none; } }

/* ---------- busca global ---------- */
.overlay:has(.gs-modal) { align-items: flex-start; padding-top: 12vh; }
.gs-modal { max-width: 580px !important; } .gs-modal .modal-body { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.gs-in { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); } .gs-in .i { color: var(--ink-3); width: 20px; height: 20px; } .gs-in input { border: 0 !important; box-shadow: none !important; padding: 4px 0 !important; font-size: 1rem !important; background: none !important; }
.gs-res { max-height: min(56vh, 420px); overflow-y: auto; padding: 6px; } .gs-g { font: 500 .64rem var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); padding: 12px 12px 4px; }
.gs-r { width: 100%; display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 8px; text-align: left; font-size: .92rem; } .gs-r small { display: block; color: var(--ink-3); font-size: .78rem; } .gs-r .i { color: var(--ink-3); } .gs-r.is-on, .gs-r:hover { background: #f4eddb; } .gs-r.is-on .i { color: var(--gold-800); }
.gs-none { padding: 24px; text-align: center; color: var(--ink-3); }

@media print { .sb, .tb, .bform-bar, .demobar, .wa-fab { display: none !important; } .adm-main { margin: 0; } }

/* ---------- tabelas viram cartões no celular ---------- */
@media (max-width: 760px) {
  .tbl.cards { min-width: 0; } .tbl.cards thead, .tbl.cards tfoot { display: none; }
  .tbl.cards, .tbl.cards tbody, .tbl.cards tr, .tbl.cards td { display: block; width: 100%; }
  .tbl.cards tr { position: relative; padding: 14px 16px 12px; border-bottom: 1px solid var(--line); }
  .tbl.cards tbody tr:last-child { border-bottom: 0; }
  .tbl.cards td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; text-align: right; }
  .tbl.cards td::before { content: attr(data-l); color: var(--ink-3); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; text-align: left; flex: none; }
  .tbl.cards td.main { display: block; text-align: left; padding: 0 0 8px; } .tbl.cards td.main::before { display: none; }
  .tbl.cards td.chk { position: absolute; right: 12px; top: 12px; width: auto; padding: 0; } .tbl.cards td.chk::before { display: none; }
  .tbl.cards td.acts { justify-content: flex-end; padding-top: 6px; } .tbl.cards td.acts::before { display: none; }
  .tbl.cards .stack { justify-content: flex-end; } .tbl.cards td .ink, .tbl.cards td .sub { display: inline; }
  .tbl.cards td .sub { margin-left: 6px; }
  .tbl.cards tr.row:hover td { background: none; }
}
.pct-edit { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--ink-3); margin-top: 2px; }
@media (max-width: 760px) { .tbl.cards td.nowrap { white-space: normal; flex-wrap: wrap; justify-content: flex-end; } }

/* ---------- menu lateral recolhível (computador): faixa só de ícones ---------- */
@media (min-width: 1021px) {
  .sb { transition: width .25s var(--ease), padding .25s var(--ease); width: var(--sb-w); }
  .adm-main { transition: margin-left .25s var(--ease); }
  body.sb-collapsed { --sb-w: 76px; }
  body.sb-collapsed .sb { padding-inline: 10px; }
  body.sb-collapsed .sb-logo { justify-content: center; padding-inline: 0; } body.sb-collapsed .sb-logo .logo-name { display: none; }
  body.sb-collapsed .sb-group small { display: none; } body.sb-collapsed .sb-nav { gap: 10px; }
  body.sb-collapsed .sb-group + .sb-group { border-top: 1px solid rgba(247, 243, 234, .1); padding-top: 10px; }
  body.sb-collapsed .sb-group a { justify-content: center; padding: 12px 0; } body.sb-collapsed .sb-group a span { display: none; }
  body.sb-collapsed .sb-group a em { position: absolute; top: 3px; right: 6px; min-width: 17px; padding: 1px 5px; font-size: .62rem; }
  body.sb-collapsed .sb-group a.is-on::before { left: -10px; }
  body.sb-collapsed .sb-site { justify-content: center; padding: 10px 0; } body.sb-collapsed .sb-site span { display: none; }
  body.sb-collapsed .sb-user { flex-direction: column; padding: 8px 0; gap: 6px; } body.sb-collapsed .sb-user > div { display: none; }
}
@media (min-width: 1021px) { .bform-bar { transition: left .25s var(--ease); } }
