/* Desko · off-white quente, preto e azul. Cards pastel, pílulas e ícones redondos. */
:root {
  --bg: #F2F1ED;
  --bg-2: #EAE8E3;
  --card: #FFFFFF;
  --ink: #111111;
  --ink-2: #2A2A2A;
  --text: #161616;
  --muted: #8B8A86;
  --line: #E4E2DC;
  --line-2: #EEEDE8;
  --ring: #D9D7D0;

  --blue: #0B5CFF;          /* destaque forte (o "amarelo" do print) */
  --blue-600: #0049D6;
  --blue-700: #0039A8;
  --sky: #D9E5FF;           /* card pastel azul */
  --sky-2: #C4D6FF;
  --lilac: #E2DFF6;         /* card pastel lilás */
  --lilac-2: #D3CEF1;
  --stone: #E7E5DF;         /* card neutro */

  --green: #16A34A; --green-50: #E3F4E8;
  --amber: #D97706; --amber-50: #FBEFD9;
  --red: #E5484D; --red-50: #FBE4E4;

  --radius: 24px;
  --radius-sm: 16px;
  --shadow-lg: 0 30px 70px -30px rgba(17, 17, 17, .35);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; letter-spacing: -.005em;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.025em; font-weight: 600; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.pad { padding: 14px 16px; }
.ic, svg.lucide { width: 17px; height: 17px; stroke-width: 1.8; flex-shrink: 0; }

/* ---------- Estrutura ---------- */
.shell { min-height: 100vh; display: grid; grid-template-columns: 84px minmax(0, 1fr); grid-template-rows: auto 1fr; }

.appbar {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 16px;
  padding: 22px 28px 10px 26px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.brand-tenant { padding-left: 14px; margin-left: 4px; border-left: 1px solid var(--ring); line-height: 1.2; }
.brand-tenant strong { display: block; font-size: 13px; font-weight: 600; }
.brand-tenant small { color: var(--muted); font-size: 11.5px; }
.appbar .spacer { flex: 1; }

.pills { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pills a {
  height: 42px; padding: 0 18px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: background .15s;
}
.pills a:hover { background: var(--bg-2); }
.pills a.on { background: var(--ink); color: #fff; }
.pills a.home { width: 42px; padding: 0; justify-content: center; border: 1px solid var(--ring); }
.pills a.home.on { border-color: var(--ink); }

.rail {
  grid-row: 2; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 18px 0 24px; position: sticky; top: 0; height: calc(100vh - 74px); overflow-y: auto; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail a, .rail-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  border: 1px solid var(--ring); color: var(--ink-2); background: transparent; transition: background .15s, color .15s, border-color .15s;
}
.rail a:hover { background: var(--card); border-color: var(--card); }
.rail a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.rail a .lbl { display: none; }
/* Etiqueta do menu: fica no body (a coluna tem rolagem e cortaria um ::after) */
.rail-tip {
  position: fixed; z-index: 100; pointer-events: none; transform: translateY(-50%);
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; padding: 8px 12px; border-radius: 10px;
  white-space: nowrap; box-shadow: 0 10px 24px -12px rgba(17,17,17,.5); opacity: 0; transition: opacity .12s;
}
.rail-tip.on { opacity: 1; }
.rail-tip::before { content: ''; position: absolute; left: -4px; top: 50%; width: 8px; height: 8px; background: var(--ink); transform: translateY(-50%) rotate(45deg); border-radius: 2px; }
.rail .sep { width: 18px; height: 1px; background: var(--ring); margin: 4px 0; flex-shrink: 0; }
.rail .grow { flex: 1; min-height: 12px; }
.rail .dot-alert::before { content: ''; position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

.main { grid-row: 2; grid-column: 2; min-width: 0; padding: 14px 28px 120px 6px; }
.scrim { display: none; }
.menu-btn { display: none !important; }

/* ---------- Cabeçalho da página ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; flex-wrap: wrap; }
.page-title small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.page-title h2 { font-size: 30px; font-weight: 600; letter-spacing: -.035em; }
.page-title .sub { color: var(--muted); margin-top: 6px; font-size: 13px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; align-items: center; }
.head-stats { display: flex; gap: 40px; align-items: flex-end; }
.head-stat small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.head-stat b { font-size: 30px; font-weight: 300; letter-spacing: -.04em; line-height: 1; white-space: nowrap; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: 999px; border: 1px solid transparent; font-weight: 500; font-size: 13.5px; cursor: pointer;
  background: var(--blue); color: #fff; white-space: nowrap; transition: transform .1s, background .15s;
}
.btn:hover { background: var(--blue-600); }
.btn:active { transform: translateY(1px); }
.btn.dark { background: var(--ink); }
.btn.dark:hover { background: var(--ink-2); }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--card); }
.btn.ghost:hover { border-color: var(--ring); }
.btn.soft { background: var(--sky); color: var(--blue-700); }
.btn.danger { background: var(--red-50); color: #B4232A; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 12.5px; }
.btn.lg { height: 52px; font-size: 15px; }
.btn.block { width: 100%; }
.btn .count, .tab .count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center;
  font-size: 11px; font-weight: 600; background: var(--bg-2); color: var(--ink);
}
.btn.dark .count { background: var(--blue); color: #fff; }

.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: transparent; border: 1px solid var(--ring); cursor: pointer; color: var(--ink);
}
.icon-btn:hover { background: var(--card); border-color: var(--card); }
.icon-btn.solid { background: var(--card); border-color: var(--card); }
.icon-btn.ghost { border-color: transparent; width: 34px; height: 34px; }
.icon-btn.ghost:hover { background: var(--bg-2); }
.icon-btn.sm { width: 32px; height: 32px; }
.icon-btn .dot {
  position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; border-radius: 99px; padding: 0 5px;
  background: var(--red); color: #fff; font-size: 10.5px; font-weight: 600; display: grid; place-items: center; border: 2px solid var(--bg);
}
.avatar-btn { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; }

/* ---------- Popovers ---------- */
.pop { position: relative; }
.pop-panel {
  position: absolute; right: 0; top: 52px; width: 330px; background: var(--card); border-radius: 22px;
  box-shadow: var(--shadow-lg); padding: 8px; z-index: 40; display: none;
}
.pop.open .pop-panel { display: block; }
.pop-title { font-weight: 600; padding: 10px 12px 6px; }
.alert-item { display: flex; gap: 12px; padding: 10px 12px; border-radius: 14px; align-items: center; }
.alert-item:hover { background: var(--bg); }
.alert-item strong { display: block; font-size: 13px; font-weight: 600; }
.alert-item small { color: var(--muted); }
.search-pop input { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; outline: 0; }
.ai { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.ai.red, .tint.red { background: var(--red-50); color: #B4232A; }
.ai.amber, .tint.amber { background: var(--amber-50); color: #9A5B06; }
.ai.blue, .tint.blue { background: var(--sky); color: var(--blue-700); }
.ai.green, .tint.green { background: var(--green-50); color: #13703A; }
.ai.dark, .tint.dark { background: var(--ink); color: #fff; }

/* ---------- Cartões ---------- */
.card { background: var(--card); border-radius: var(--radius); padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-head h3 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.card-head .lnk { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 0; color: var(--ink); }
.card-head .lnk .ic, .card-head .lnk svg { width: 16px; height: 16px; }
.card-head .lnk:hover { background: var(--bg); }
.card.flush { padding: 0; overflow: hidden; }
.card.flush .card-head { padding: 22px 28px 0; }
.card.sky { background: var(--sky); }
.card.lilac { background: var(--lilac); }
.card.stone { background: var(--stone); }
.card.ink { background: var(--ink); color: #fff; }
.card.accent { background: var(--blue); color: #fff; }

.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.mt { margin-top: 14px; }

/* KPI */
.kpi { display: flex; flex-direction: column; gap: 14px; min-height: 150px; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: transparent !important; color: var(--ink) !important; }
.card.sky .kpi-ic, .card.lilac .kpi-ic, .card.stone .kpi-ic { border-color: rgba(17,17,17,.12); }
.card.accent .kpi-ic, .card.ink .kpi-ic { border-color: rgba(255,255,255,.3); color: #fff !important; }
.kpi-label { font-weight: 500; font-size: 13px; }
.kpi-value { font-size: 34px; font-weight: 300; letter-spacing: -.045em; line-height: 1; margin-top: auto; }
.kpi-value small { font-size: 13px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.card.accent .kpi-value small, .card.ink .kpi-value small, .card.accent .kpi-foot, .card.ink .kpi-foot { color: rgba(255,255,255,.75); }
.kpi-foot { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; flex-wrap: wrap; }
.trend { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; padding: 3px 8px; border-radius: 99px; font-size: 11.5px; }
.trend.up { background: var(--green-50); color: #13703A; }
.trend.down { background: var(--red-50); color: #B4232A; }

/* Herói: card de destaque chapado */
.hero { position: relative; border-radius: var(--radius); padding: 26px 28px; color: #fff; background: var(--blue); }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hero-label { font-weight: 500; display: flex; align-items: center; gap: 8px; opacity: .9; }
.hero-value { font-size: 54px; font-weight: 300; letter-spacing: -.05em; margin-top: 12px; line-height: 1; }
.hero-value small { font-size: 18px; opacity: .75; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stat span { display: block; font-size: 12px; opacity: .75; margin-bottom: 6px; }
.hero-stat strong { font-size: 22px; font-weight: 400; letter-spacing: -.03em; }
.hero-bar { display: flex; gap: 4px; margin-top: 24px; }
.hero-bar i { flex: 1; height: 4px; border-radius: 99px; background: rgba(255,255,255,.3); }
.hero-bar i.on { background: #fff; }

/* Gráficos */
.chart-box { position: relative; height: 290px; }
.chart-box.sm { height: 210px; }
.seg { display: inline-flex; background: var(--card); border-radius: 999px; padding: 4px; gap: 2px; }
.seg a, .seg button { border: 0; background: transparent; height: 34px; padding: 0 14px; border-radius: 999px; font-weight: 500; font-size: 13px; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; }
.seg .on { background: var(--ink); color: #fff; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }

/* Listas */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.list-item:first-child { border-top: 0; padding-top: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item strong { display: block; font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item small { color: var(--muted); font-size: 12px; }
.list-item .amount { font-weight: 600; white-space: nowrap; }

/* Avatares */
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--sky); color: var(--blue-700); font-weight: 600; font-size: 12.5px;
}
.avatar.dark { background: var(--ink); color: #fff; }
.avatar.lg { width: 58px; height: 58px; font-size: 18px; }
.tenant-av { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 12px; flex-shrink: 0; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px;
  font-size: 11.5px; font-weight: 500; white-space: nowrap;
}
.badge .ic, .badge svg.lucide { width: 12px; height: 12px; }
.badge.green { background: var(--green-50); color: #13703A; }
.badge.amber { background: var(--amber-50); color: #9A5B06; }
.badge.red { background: var(--red-50); color: #B4232A; }
.badge.blue { background: var(--sky); color: var(--blue-700); }
.badge.gray { background: var(--bg); color: #5C5B57; }
.badge.dark { background: var(--ink); color: #fff; }

/* Tabelas */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; font-size: 11px; color: #9A988F; font-weight: 600; text-transform: uppercase; letter-spacing: .07em;
  padding: 20px 18px 12px; white-space: nowrap; border-bottom: 1px solid var(--line-2);
}
.table td { padding: 16px 18px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
/* Respiro das tabelas: o texto nunca encosta nas bordas do cartão */
.card.flush > .table-wrap { padding: 8px 14px 12px; }
.table th { padding-top: 22px; padding-bottom: 14px; }
.table td { padding-top: 18px; padding-bottom: 18px; }
.table th:first-child, .table td:first-child { padding-left: 24px; }
.table th:last-child, .table td:last-child { padding-right: 24px; }
.table tfoot td { padding-top: 22px; padding-bottom: 20px; }
.table tbody tr:hover td:first-child { border-radius: 14px 0 0 14px; }
.table tbody tr:hover td:last-child { border-radius: 0 14px 14px 0; }
.toolbar { margin-bottom: 20px; }
.page-actions { margin-top: 20px; }
.table tbody tr.row-link { cursor: pointer; }
.table tbody tr.row-link:hover td { background: #F8F7F3; }
.table .go { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--muted); }
.table tr.row-link:hover .go { background: var(--ink); color: #fff; }
.cell-sub { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; font-weight: 400; }
.dia-venc { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; background: var(--bg); line-height: 1; }
.dia-venc b { font-size: 17px; font-weight: 600; }
.dia-venc small { font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }
.logo-ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; overflow: hidden; }
.logo-ic img { width: 100%; height: 100%; object-fit: cover; }
.logo-ic svg { width: 18px; height: 18px; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #FAFAF8; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions .icon-btn { display: inline-grid; }
.cell-main { display: flex; align-items: center; gap: 12px; min-width: 180px; }
.cell-main strong { display: block; font-weight: 500; }
.cell-main small { color: var(--muted); font-size: 12px; }
.table tfoot td { font-weight: 600; border-top: 1px solid var(--line); }

/* Filtros e abas (pílulas do print) */
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .spacer { flex: 1; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px;
  background: var(--card); font-weight: 500; font-size: 13px; color: var(--ink-2);
}
.tab:hover { box-shadow: inset 0 0 0 1px var(--ring); }
.tab.on { background: var(--ink); color: #fff; }
.tab.on .count { background: var(--blue); color: #fff; }
.input, .field input, .field select, .field textarea, select.input {
  width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; background: var(--card); outline: 0;
  transition: border-color .15s, box-shadow .15s;
}
.toolbar .input { border-radius: 999px; border-color: var(--card); padding: 0 18px; height: 42px; }
.field textarea { height: auto; padding: 12px 14px; min-height: 84px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17, 17, 17, .06); }
.input.auto { width: auto; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.field small { color: var(--muted); font-size: 11.5px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid.g3c { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-sec { grid-column: 1 / -1; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 500; font-size: 13px; }
.check input { accent-color: var(--ink); width: 16px; height: 16px; }
.check:has(input:checked) { border-color: var(--ink); background: var(--ink); color: #fff; }

/* ---------- Gaveta lateral (todos os formulários) ---------- */
dialog.modal {
  border: 0; padding: 0; background: transparent; margin: 0 0 0 auto; height: 100vh; max-height: 100vh;
  width: min(520px, 100vw); max-width: 100vw; overflow: visible;
}
dialog.modal.wide { width: min(640px, 100vw); }
dialog.modal.narrow { width: min(440px, 100vw); }
dialog.modal::backdrop { background: rgba(30, 29, 26, .38); }
.modal-box { background: var(--card); height: 100vh; display: flex; flex-direction: column; box-shadow: -30px 0 60px -30px rgba(17,17,17,.35); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line-2); flex-shrink: 0; }
.modal-head h3 { font-size: 18px; font-weight: 600; }
.modal-body { padding: 22px 24px; overflow-y: auto; flex: 1; }
.modal-foot { display: flex; gap: 8px; padding: 16px 24px 22px; border-top: 1px solid var(--line-2); flex-shrink: 0; }
.modal-foot .btn { flex: 1; height: 48px; }
.modal-foot .btn.ghost { flex: 0 0 auto; border-color: var(--line); }
dialog[open] .modal-box { animation: gaveta .22s cubic-bezier(.2,.8,.2,1); }
@keyframes gaveta { from { transform: translateX(40px); opacity: 0; } }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.modal .form-grid.g3c { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.modal .form-grid.g3c > [style*="span 2"] { grid-column: 1 / -1 !important; }
.drawer-ctx { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 18px; background: var(--bg); margin-bottom: 18px; }
.drawer-ctx strong { display: block; font-size: 14px; font-weight: 600; }
.drawer-ctx small { color: var(--muted); font-size: 12px; }
.drawer-ctx .ai { width: 40px; height: 40px; }

/* Escolha de cor da sala */
.cores { display: flex; gap: 8px; flex-wrap: wrap; }
.cores label { cursor: pointer; }
.cores input { display: none; }
.cores i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 600; box-shadow: 0 0 0 2px var(--card), 0 0 0 3px transparent; }
.cores i.auto { background: var(--bg); color: var(--muted); }
.cores input:checked + i { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.check svg { width: 15px; height: 15px; }

.whats { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 99px; background: var(--green-50); color: #13703A; font-weight: 500; font-size: 13px; }
.whats svg { width: 15px; height: 15px; }
.whats:hover { background: #CDEDD8; }
.pessoa-card { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 20px; background: var(--bg); cursor: pointer; transition: box-shadow .15s; }
.pessoa-card:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.pessoa-card .avatar { width: 52px; height: 52px; font-size: 15px; }
.pessoa-card strong { font-weight: 600; display: block; }
.pessoa-card small { color: var(--muted); font-size: 12px; display: block; }

/* Configuração de espaços */
.drag { width: 28px; height: 36px; border: 0; background: transparent; color: #B7B5AE; cursor: grab; display: grid; place-items: center; border-radius: 8px; }
.drag:hover { background: var(--bg); color: var(--ink); }
.drag:active { cursor: grabbing; }
.grupo-row svg { width: 14px; height: 14px; vertical-align: -2px; }
tr.sortable-ghost td { background: var(--sky) !important; }
.ocupante { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 99px; background: var(--sky); }
.ocupante .avatar.xs { width: 28px; height: 28px; font-size: 10px; }
.ocupante b { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.ocupante small { display: block; font-size: 11px; color: var(--blue-700); }
.ocupante:hover { background: var(--sky-2); }
.sala-thumb { width: 64px; height: 46px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: var(--bg); display: grid; place-items: center; color: var(--muted); }
.sala-thumb img { width: 100%; height: 100%; object-fit: cover; }
.foto-up .sala-foto { border-radius: 18px; width: 104px; height: 76px; }
.foto-up .sala-foto img { border-radius: 18px; }
.grupo-row td { background: var(--bg) !important; font-size: 12px; font-weight: 600; color: var(--ink-2); padding-top: 12px !important; padding-bottom: 12px !important; }
.recurso-chip { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--card); cursor: pointer; transition: box-shadow .15s; }
.recurso-chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.recurso-chip .ai { background: var(--bg); }
.recurso-chip strong { font-weight: 500; }
.recurso-chip small { display: block; color: var(--muted); font-size: 12px; }
.icones { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.icones label { cursor: pointer; }
.icones input { display: none; }
.icones i { height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg); }
.icones input:checked + i { background: var(--ink); color: #fff; }
.semana { display: flex; flex-direction: column; }
.semana-row { display: grid; grid-template-columns: 150px 130px 1fr 1fr; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-2); }
.semana-row:first-child { border-top: 0; }
.semana-row b { font-weight: 500; }
.semana-row .input { height: 40px; }
.semana-row.fechado .input { opacity: .35; pointer-events: none; }
.toggle { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; }
.toggle input { display: none; }
.toggle i { width: 40px; height: 24px; border-radius: 99px; background: var(--line); position: relative; transition: background .15s; }
.toggle i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle input:checked + i { background: var(--ink); }
.toggle input:checked + i::after { transform: translateX(16px); }
.regra { display: grid; grid-template-columns: 1fr 160px; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line-2); }
.regra:first-of-type { border-top: 0; }
.regra strong { font-weight: 500; display: block; }
.regra small { color: var(--muted); font-size: 12.5px; }
.andar-card { padding: 20px; border-radius: var(--radius); cursor: pointer; transition: box-shadow .15s; }
.andar-card:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.andar-card h4 { font-size: 16px; font-weight: 600; margin: 12px 0 4px; }

/* Foto de perfil no formulário */
.foto-up { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 20px; background: var(--bg); margin-bottom: 18px; }
.foto-up .avatar { width: 76px; height: 76px; font-size: 22px; }
.foto-up .btn { height: 36px; font-size: 12.5px; }
.foto-up small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 6px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.avatar { overflow: hidden; }

/* Abas sublinhadas (ficha do cliente) */
.utabs { display: flex; gap: 6px; margin: 0 0 18px; flex-wrap: wrap; }
.utabs a { height: 40px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink-2); }
.utabs a:hover { background: var(--bg-2); }
.utabs a.on { background: var(--ink); color: #fff; }
.utabs .count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center; font-size: 11px; background: var(--bg-2); color: var(--ink); }
.utabs a.on .count { background: var(--blue); color: #fff; }

/* Linha do tempo */
.timeline { position: relative; display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding-bottom: 20px; position: relative; }
.tl-item::before { content: ''; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--line-2); }
.tl-item:last-child::before { display: none; }
.tl-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--ink); }
.tl-ic.sky { background: var(--sky); color: var(--blue-700); }
.tl-ic.lilac { background: var(--lilac); color: #4B3BA8; }
.tl-ic.green { background: var(--green-50); color: #13703A; }
.tl-ic.dark { background: var(--ink); color: #fff; }
.tl-ic.amber { background: var(--amber-50); color: #9A5B06; }
.tl-body { padding-top: 2px; min-width: 0; }
.tl-body strong { font-weight: 500; font-size: 13.5px; }
.tl-body p { color: var(--ink-2); margin-top: 4px; line-height: 1.5; white-space: pre-line; }
.tl-body .bubble { background: var(--bg); border-radius: 4px 16px 16px 16px; padding: 10px 14px; margin-top: 6px; }
.tl-meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.comment-box { display: flex; gap: 10px; align-items: flex-end; }
.comment-box textarea { flex: 1; min-height: 46px; height: 46px; border: 1px solid var(--line); border-radius: 22px; padding: 12px 16px; resize: vertical; outline: 0; background: var(--card); }
.comment-box textarea:focus { border-color: var(--ink); }

/* ---------- Toast ---------- */
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; margin-bottom: 16px;
  background: var(--ink); color: #fff; font-weight: 500;
}
.toast.erro { background: var(--red); }
.toast.static { border-radius: 16px; background: var(--red-50); color: #B4232A; }
.toast[data-toast] { position: fixed; left: 50%; bottom: 104px; transform: translateX(-50%); z-index: 99; box-shadow: var(--shadow-lg); animation: pop .2s ease-out; margin: 0; white-space: nowrap; }

/* ---------- Kanban ---------- */
/* Cards estreitos como no print: cada coluna se divide em --n subcolunas de ~210px */
.board { --cw: 236px; --cmax: 272px; display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: flex-start; }
.col { flex: var(--n, 1) 1 auto; min-height: 200px; }
.col-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 14px; position: relative; }
.col-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; border-radius: 99px; background: var(--col, var(--ring)); }
.col-head h4 { font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 8px; color: var(--ink-2); padding-bottom: 6px; }
.col-head .pill { font-size: 12px; color: var(--muted); padding-bottom: 6px; }
.col-dot { display: none; }
.col-list { display: grid; grid-template-columns: repeat(var(--n, 1), minmax(var(--cw), var(--cmax))); gap: 12px; min-height: 140px; padding-top: 16px; align-content: start; }
.col-empty {
  border-radius: 20px; min-height: 112px; grid-column: 1 / -1; display: grid; place-items: center; color: var(--muted); font-size: 12.5px;
  background: repeating-linear-gradient(135deg, transparent 0 9px, rgba(17,17,17,.06) 9px 10px);
  border: 1px solid var(--line);
}
.col-list:has(.k-card) .col-empty { display: none; }

.k-card {
  position: relative; background: var(--card); border-radius: 20px; padding: 16px 16px 16px;
  cursor: grab; transition: transform .15s, box-shadow .15s; min-width: 0;
}
.k-card:hover { box-shadow: 0 16px 34px -22px rgba(17,17,17,.45); }
.k-card.sortable-ghost { opacity: .35; }
.k-card.sortable-chosen { cursor: grabbing; transform: rotate(1.2deg); }
.k-card.sky { background: var(--sky); }
.k-card.lilac { background: var(--lilac); }
.k-card.stone { background: var(--stone); }
.k-card.accent { background: var(--blue); color: #fff; }
.k-card.outline { background: transparent; box-shadow: inset 0 0 0 1px var(--ring); }
.k-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.k-title { font-size: 13.5px; font-weight: 600; line-height: 1.3; min-width: 0; }
.k-title small { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-card.accent .k-title small { color: rgba(255,255,255,.75); }
.k-more {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; cursor: pointer;
  background: rgba(255,255,255,.65); border: 0; color: var(--ink);
}
.k-card:not(.sky):not(.lilac):not(.stone):not(.accent) .k-more { background: var(--bg); }
.k-card.accent .k-more { background: rgba(255,255,255,.2); color: #fff; }
.k-segs { display: flex; gap: 4px; margin: 12px 0 14px; max-width: 108px; }
.k-segs i { flex: 1; height: 3px; border-radius: 99px; background: rgba(17,17,17,.14); }
.k-segs i.on { background: var(--ink); }
.k-card.accent .k-segs i { background: rgba(255,255,255,.35); }
.k-card.accent .k-segs i.on { background: #fff; }
.k-foot { display: flex; align-items: center; gap: 10px; min-width: 0; }
.k-foot .avatar { width: 40px; height: 40px; font-size: 12px; background: #fff; color: var(--ink); box-shadow: 0 0 0 3px rgba(255,255,255,.5); }
.k-card:not(.sky):not(.lilac):not(.stone):not(.accent) .k-foot .avatar { background: var(--sky); color: var(--blue-700); box-shadow: none; }
.k-foot .avatar.vazio { background: transparent; border: 1.5px dashed rgba(17,17,17,.3); color: var(--muted); box-shadow: none; }
.k-person { min-width: 0; }
.k-person b { display: block; font-size: 15.5px; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-person small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-card.accent .k-person small { color: rgba(255,255,255,.75); }
.k-pin {
  position: absolute; right: 14px; top: 50px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: 0 6px 16px -8px rgba(17,17,17,.35);
}
.k-pin .ic, .k-pin svg, .k-more svg { width: 14px; height: 14px; }
.k-pin:hover { background: var(--ink); color: #fff; }
.k-price { margin-left: auto; text-align: right; white-space: nowrap; }
.k-price b { display: block; font-size: 15px; font-weight: 500; letter-spacing: -.02em; }
.k-price small { font-size: 11.5px; color: var(--muted); }
.k-card.accent .k-price small { color: rgba(255,255,255,.75); }
.k-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.k-tag { font-size: 11.5px; padding: 3px 9px; border-radius: 99px; background: rgba(255,255,255,.6); display: inline-flex; align-items: center; gap: 4px; }
.k-tag svg, .k-tag .ic { width: 12px; height: 12px; }
.k-card:not(.sky):not(.lilac):not(.stone):not(.accent) .k-tag { background: var(--bg); }
.k-card.accent .k-tag { background: rgba(255,255,255,.18); }
.k-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.7); flex-shrink: 0; }
.k-card:not(.sky):not(.lilac):not(.stone):not(.accent) .k-ic { background: var(--bg); }

/* ---------- Perfil do usuário ---------- */
.perfil-capa {
  position: relative; height: 220px; border-radius: var(--radius); background: var(--blue) center / cover no-repeat;
  background-image: linear-gradient(120deg, #0B5CFF, #0039A8);
}
.perfil-capa-acoes { position: absolute; right: 18px; bottom: 18px; display: flex; gap: 8px; }
.perfil-topo { display: flex; align-items: flex-end; gap: 20px; padding: 0 28px; margin-top: -56px; position: relative; flex-wrap: wrap; }
.perfil-foto { position: relative; }
.perfil-foto .avatar { width: 128px; height: 128px; font-size: 38px; box-shadow: 0 0 0 6px var(--bg); }
.perfil-foto-btn { position: absolute; right: 4px; bottom: 4px; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 4px var(--bg); }
.perfil-nome { flex: 1; min-width: 220px; padding-bottom: 8px; }
.perfil-nome h2 { font-size: 28px; font-weight: 600; letter-spacing: -.03em; }
.perfil-topo > .gap-s { padding-bottom: 12px; }

/* Projetos do quadro de manutenção */
.proj-sep { width: 1px; height: 28px; background: var(--ring); margin: 0 4px; }
.proj-pill { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; background: var(--card); font-weight: 500; font-size: 13px; color: var(--ink-2); }
.proj-pill:hover { box-shadow: inset 0 0 0 1px var(--ring); }
.proj-pill.on { background: var(--ink); color: #fff; }
.proj-pill.feito { opacity: .6; }
.proj-pill .count { min-width: 20px; height: 20px; padding: 0 7px; border-radius: 99px; display: inline-grid; place-items: center; font-size: 11px; background: var(--bg-2); color: var(--ink); }
.proj-pill.on .count { background: var(--blue); color: #fff; }
.proj-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pc); }
.proj-novo { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 999px; border: 1.5px dashed var(--ring); background: transparent; color: var(--muted); font-weight: 500; font-size: 13px; cursor: pointer; }
.proj-novo:hover { color: var(--ink); border-color: var(--ink); }
.proj-novo svg { width: 15px; height: 15px; }
.proj-head { position: relative; display: flex; align-items: center; gap: 28px; padding: 24px 28px 30px; margin-bottom: 18px; border-radius: var(--radius); background: var(--card); overflow: hidden; flex-wrap: wrap; }
.proj-head-info small::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--pc); margin-right: 6px; }
.proj-head-info { flex: 1; min-width: 240px; }
.proj-head-info small { color: var(--muted); font-size: 12px; }
.proj-head-info h3 { font-size: 22px; font-weight: 600; margin: 2px 0 4px; }
.proj-head-info p { color: var(--ink-2); font-size: 13px; }
.proj-bar { position: absolute; left: 28px; right: 28px; bottom: 14px; height: 4px; border-radius: 99px; background: var(--line-2); }
.proj-bar i { display: block; height: 100%; border-radius: 99px; background: var(--pc); }

/* ---------- Quadro estilo Trello (manutenção) ---------- */
.trello { display: flex; gap: 14px; align-items: flex-start; overflow-x: auto; padding-bottom: 12px; }
.tcol { flex: 0 0 300px; background: var(--bg-2); border-radius: 24px; padding: 10px; display: flex; flex-direction: column; max-height: calc(100vh - 230px); }
.tcol.sortable-ghost { opacity: .4; }
.tcol-head { position: relative; display: flex; align-items: center; gap: 6px; padding: 8px 6px 14px; }
.tcol-head::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: 4px; height: 4px; border-radius: 99px; background: var(--col); }
.tcol-head h4 { flex: 1; font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; min-width: 0; }
.tcol-head h4 svg { width: 14px; height: 14px; color: var(--green); }
.tcol-head .pill { font-size: 12px; color: var(--muted); background: var(--card); border-radius: 99px; padding: 2px 9px; }
.col-drag { cursor: grab; color: #A9A79F; display: grid; place-items: center; width: 22px; }
.col-drag svg { width: 15px; height: 15px; }
.tcol-list { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; min-height: 40px; padding: 4px 2px; scrollbar-width: thin; }
.tcol-add { margin-top: 8px; border: 0; background: transparent; border-radius: 14px; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--muted); font-weight: 500; cursor: pointer; }
.tcol-add:hover { background: var(--card); color: var(--ink); }
.tcol-nova { border: 1.5px dashed var(--ring); background: transparent; height: 64px; justify-content: center; align-items: center; flex-direction: row; gap: 8px; color: var(--muted); font-weight: 500; cursor: pointer; }
.tcol-nova:hover { background: var(--card); color: var(--ink); }
.trello .k-card { cursor: grab; }
.trello .k-tags { margin: 8px 0 0; }

/* ---------- Menu lateral azul (referência "Sectoral", com o azul da Desko no lugar do preto) ---------- */
.shell2 { display: flex; align-items: flex-start; min-height: 100vh; }
.rail, .scrim, .dock, .bnav, .bnav-menu { display: none !important; }
.area { flex: 1; min-width: 0; }
.area .appbar { padding: 22px 32px 8px; }
.area .main { padding: 8px 32px 48px; }
.side-abrir { display: none !important; }

.side {
  --side-bg: #0B4FE6; --side-txt: rgba(255, 255, 255, .72); --side-forte: #fff; --side-linha: rgba(255, 255, 255, .16);
  position: sticky; top: 0; flex: 0 0 248px; width: 248px; height: 100vh; z-index: 30;
  display: flex; flex-direction: column; padding: 24px 0 18px; background: var(--side-bg); color: var(--side-txt);
  font-family: 'Inter', system-ui, sans-serif; letter-spacing: -.005em;
  transition: flex-basis .22s cubic-bezier(.2, .8, .2, 1), width .22s cubic-bezier(.2, .8, .2, 1);
}
/* Topo: logo branca e o botão de recolher em quadrinho com contorno (48px de altura) */
.side-top { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 20px 0 24px; margin-bottom: 20px; }
.side-logo { display: flex; align-items: center; }
.side-logo .full { height: 22px; width: auto; filter: brightness(0) invert(1); }
.side-logo .mini { display: none; width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.side-btn {
  width: 26px; height: 26px; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 7px; background: transparent;
  color: rgba(255, 255, 255, .8); display: grid; place-items: center; cursor: pointer; transition: transform .22s, border-color .15s, color .15s;
}
.side-btn:hover { border-color: #fff; color: #fff; }
.side-btn svg { width: 13px; height: 13px; stroke-width: 2.2; }

.side-nav { flex: 1; min-height: 0; overflow-y: auto; padding: 0 12px; scrollbar-width: thin; scrollbar-color: transparent transparent; }
.side-nav:hover { scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.side-nav::-webkit-scrollbar { width: 6px; }
.side-nav::-webkit-scrollbar-thumb { background: transparent; border-radius: 6px; }
.side-nav:hover::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .25); }
.side-rodape { padding: 0 12px; }
.side-div { border: 0; border-top: 1px solid var(--side-linha); margin: 12px 12px; }

/* Itens: 24px de margem, 12px entre ícone e texto, linhas de 36px */
.side-item {
  position: relative; display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 12px; margin-bottom: 4px; border-radius: 9px;
  color: var(--side-txt); font-size: 13.5px; font-weight: 400; transition: color .14s, background .14s;
}
.side-ic { position: relative; display: grid; place-items: center; flex-shrink: 0; }
.side-ic svg { width: 19px; height: 19px; stroke-width: 1.5; }
.side-lbl { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-item:hover { color: var(--side-forte); background: rgba(255, 255, 255, .07); }
/* Ativo: texto e ícone brancos, ícone preenchido e a barrinha branca na borda direita do menu */
.side-item.on { color: var(--side-forte); font-weight: 600; background: transparent; }
.side-item.on svg { stroke-width: 1.8; fill: rgba(255, 255, 255, .28); color: #fff; }
.side-item.on::after { content: ''; position: absolute; right: -12px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px 0 0 3px; background: #fff; }

.side-selo { min-width: 22px; height: 20px; padding: 0 7px; border-radius: 99px; display: grid; place-items: center; font-size: 11px; font-weight: 600; background: rgba(255, 255, 255, .18); color: #fff; }
.side-selo.r { background: #FF5A5F; color: #fff; }
.side-selo.y { background: rgba(255, 214, 102, .95); color: #4A3400; }
.side-selo.g { background: rgba(255, 255, 255, .18); color: #fff; }
.side-ponto { display: none; position: absolute; top: -3px; right: -4px; width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 2px var(--side-bg); background: #fff; }
.side-ponto.r { background: #FF5A5F; }
.side-ponto.y { background: #FFD666; }

/* Usuário e modo de cor */
.side-user { display: flex; align-items: center; gap: 12px; padding: 6px 12px; border-radius: 10px; }
.side-user:hover { background: rgba(255, 255, 255, .07); }
.side-user .avatar { width: 32px; height: 32px; font-size: 11px; background: #fff; color: var(--side-bg); box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.side-user-txt { min-width: 0; }
.side-user-txt strong { display: block; font-size: 13px; font-weight: 500; color: #fff; }
.side-user-txt small { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.side-tema { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 12px; cursor: pointer; color: var(--side-txt); font-size: 13.5px; user-select: none; }
.side-tema:hover { color: #fff; }
.side-tema input { position: absolute; opacity: 0; pointer-events: none; }
.side-chave { position: relative; flex: 0 0 32px; height: 18px; border-radius: 99px; background: rgba(255, 255, 255, .28); transition: background .18s; }
.side-chave::after { content: ''; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .18s, background .18s; }
.side-tema input:checked + .side-chave { background: #fff; }
.side-tema input:checked + .side-chave::after { transform: translateX(14px); background: var(--side-bg); }
.side-tema input:focus-visible + .side-chave { outline: 2px solid #fff; outline-offset: 2px; }

/* Etiqueta escura dos itens quando o menu está recolhido */
.rail-tip {
  position: fixed; z-index: 100; pointer-events: none; transform: translateY(-50%); padding: 7px 12px; border-radius: 7px;
  background: #4A4E5C; color: #fff; font-size: 12.5px; font-weight: 500; white-space: nowrap; opacity: 0; transition: opacity .12s;
}
.rail-tip.on { opacity: 1; }
.rail-tip::before { content: ''; position: absolute; left: -4px; top: 50%; width: 8px; height: 8px; background: #4A4E5C; transform: translateY(-50%) rotate(45deg); border-radius: 2px; }

/* Recolhido: só ícones (como a segunda coluna do print) */
html.side-mini .side { flex-basis: 76px; width: 76px; }
html.side-mini .side-top { flex-direction: column; justify-content: flex-start; gap: 18px; height: auto; padding: 0; margin-bottom: 14px; }
html.side-mini .side-top::after { content: ''; width: 36px; border-top: 1px solid var(--side-linha); }
html.side-mini .side-logo .full, html.side-mini .side-lbl, html.side-mini .side-selo, html.side-mini .side-user-txt { display: none; }
html.side-mini .side-logo .mini { display: block; }
html.side-mini .side-btn { transform: scaleX(-1); }
html.side-mini .side-item { justify-content: center; padding: 0; }
html.side-mini .side-ponto { display: block; }
html.side-mini .side-div { margin: 12px 14px; }
html.side-mini .side-user { justify-content: center; padding: 6px 0; }
html.side-mini .side-tema { justify-content: center; padding: 0; }

/* Modo escuro: o menu escurece junto, mantendo o azul nos detalhes */
html.escuro .side { --side-bg: #14161F; --side-txt: rgba(255, 255, 255, .62); --side-linha: rgba(255, 255, 255, .09); }
html.escuro .side-item.on { color: #fff; }
html.escuro .side-item.on svg { fill: rgba(11, 92, 255, .45); color: #8FB2FF; }
html.escuro .side-tema input:checked + .side-chave { background: var(--blue); }
html.escuro .side-tema input:checked + .side-chave::after { background: #fff; }
html.escuro .side-user .avatar { background: #fff; color: #14161F; }

/* Celular e tablet: o menu vira gaveta pela esquerda */
.side-scrim { display: none; }
@media (max-width: 900px) {
  .side-abrir { display: grid !important; }
  .side { position: fixed; left: 0; top: 0; z-index: 60; transform: translateX(-105%); transition: transform .22s cubic-bezier(.2, .8, .2, 1); box-shadow: 30px 0 60px -30px rgba(17, 17, 17, .5); }
  .side.aberto { transform: none; }
  html.side-mini .side { flex-basis: 248px; width: 248px; }
  html.side-mini .side-logo .full, html.side-mini .side-lbl, html.side-mini .side-selo, html.side-mini .side-user-txt { display: revert; }
  .side.aberto + .side-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(30, 29, 26, .35); }
  .area .appbar { padding: 14px 16px 6px; }
  .area .main { padding: 6px 16px 40px; }
}

/* Busca do topo */
.top-busca { display: flex; align-items: center; gap: 8px; height: 42px; width: min(340px, 34vw); padding: 0 16px; border-radius: 999px; background: var(--card); color: var(--muted); }
.top-busca svg { width: 16px; height: 16px; flex-shrink: 0; }
.top-busca input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 13px; color: var(--text); }
.top-busca:focus-within { box-shadow: inset 0 0 0 1px var(--ink); }
@media (max-width: 900px) { .top-busca { display: none; } }

/* ---------- Modo escuro ---------- */
html.escuro {
  --bg: #0F1115; --bg-2: #171A21; --card: #181B22; --ink: #F2F3F5; --ink-2: #D5D7DD; --text: #E8E9EC; --muted: #8C919C;
  --line: #272B34; --line-2: #20242C; --ring: #353A46;
  --sky: #1B2A4D; --sky-2: #233663; --lilac: #27233F; --stone: #22252C;
  --green-50: #123020; --amber-50: #33270F; --red-50: #3B1B1C;
  color-scheme: dark;
}
/* Onde o "preto" vira fundo claro, o texto passa a escuro */
html.escuro :is(.btn.dark, .tab.on, .pills a.on, .badge.dark, .avatar.dark, .tenant-av, .ai.dark, .tint.dark, .toast, .seg .on,
  .utabs a.on, .proj-pill.on, .check:has(input:checked), .icones input:checked + i, .cal-h.today b, .ag-h.hoje, .plan-card.on, .card.ink, .tl-ic.dark) { color: #0F1115; }
html.escuro .btn.dark:hover { background: #FFFFFF; }
html.escuro .toast.erro { color: #fff; }
html.escuro .table tbody tr:hover td, html.escuro .table tbody tr.row-link:hover td, html.escuro .dre tr.total td { background: var(--bg-2); }
html.escuro :is(.k-more, .k-tag, .k-ic) { background: rgba(255, 255, 255, .08); }
html.escuro :is(.k-foot .avatar, .k-pin, .ag-pill, .avatar.xs) { background: var(--bg-2); color: var(--ink); }
html.escuro .k-card:not(.sky):not(.lilac):not(.stone):not(.accent) :is(.k-more, .k-tag, .k-ic) { background: var(--bg-2); }
html.escuro :is(.fds, .ag-dia.fechado, .ag-allday.fechado, .ag-off) { background-color: #14171D; }
html.escuro :is(.c0, .c1, .c2, .c3, .c4) { filter: saturate(.9) brightness(.92); }
html.escuro .side-logo .full, html.escuro .brand img, html.escuro .login-logo { filter: brightness(0) invert(1); }
html.escuro .col-empty { background: repeating-linear-gradient(135deg, transparent 0 9px, rgba(255, 255, 255, .05) 9px 10px); }
html.escuro .tcol { background: var(--bg-2); }
html.escuro .k-segs i { background: rgba(255, 255, 255, .16); }
html.escuro .whats:hover { background: #18402A; }
html.escuro dialog.modal::backdrop { background: rgba(0, 0, 0, .55); }

/* ---------- Dock de ações rápidas ---------- */
.dock {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 45;
  display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px); box-shadow: 0 18px 40px -18px rgba(17,17,17,.4);
}
.dock a {
  position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
}
.dock a:hover { border-color: var(--ink); }
.dock a.main-act { width: 48px; height: 48px; background: var(--ink); color: #fff; border-color: var(--ink); }
.dock a::after {
  content: attr(data-tip); position: absolute; bottom: 56px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; font-size: 12px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s;
}
.dock a:hover::after { opacity: 1; }

/* ---------- Agenda de reservas (semana) ---------- */
.agenda {
  display: grid; grid-template-columns: 64px repeat(7, minmax(120px, 1fr));
  background: var(--card); border-radius: var(--radius); overflow: hidden; min-width: 940px;
}
.agenda-wrap { overflow-x: auto; border-radius: var(--radius); }
.ag-h { text-align: center; font-size: 12.5px; font-weight: 500; color: var(--ink-2); padding: 14px 6px 10px; border-bottom: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.ag-h.ag-corner { border-left: 0; }
.ag-h.hoje { background: var(--ink); color: #fff; border-color: var(--ink); }
.fds { background-color: #FAFAF7; }
/* Dias e horas com o coworking fechado (Espaços e salas › Horários) */
.ag-h.fechado { color: var(--muted); }
.ag-dia.fechado, .ag-allday.fechado, .ag-off { background-color: #F6F5F1; background-image: repeating-linear-gradient(135deg, transparent 0 9px, rgba(17,17,17,.045) 9px 10px); }
.ag-off { position: absolute; left: 0; right: 0; pointer-events: none; }
.ag-allday-l { font-size: 11px; color: var(--muted); padding: 10px 8px; text-align: right; border-bottom: 1px solid var(--line); }
.ag-allday { border-left: 1px solid var(--line-2); border-bottom: 1px solid var(--line); padding: 6px; display: flex; flex-direction: column; gap: 4px; min-height: 40px; }
.ag-chip { display: flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 3px 10px 3px 3px; font-size: 11.5px; font-weight: 600; cursor: pointer; text-align: left; min-width: 0; }
.ag-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-horas { position: relative; }
.ag-horas div { height: var(--h); font-size: 11px; color: var(--muted); text-align: right; padding: 0 10px; transform: translateY(-7px); }
.ag-horas div:first-child { transform: none; padding-top: 4px; }
.ag-dia {
  position: relative; border-left: 1px solid var(--line-2); cursor: pointer; height: calc(var(--h) * var(--linhas));
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(var(--h) - 1px), var(--line-2) calc(var(--h) - 1px) var(--h));
}
.ag-dia:hover { background-color: #FCFCFA; }
.ag-agora { position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); z-index: 3; pointer-events: none; }
.ag-agora::before { content: ''; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.ag-agora-pill { position: absolute; right: 4px; transform: translateY(-50%); background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 99px; z-index: 4; }
.ag-ev {
  position: absolute; border-radius: 12px; padding: 7px 9px; overflow: hidden; z-index: 2; cursor: pointer;
  display: flex; flex-direction: column; gap: 2px; transition: box-shadow .15s, transform .15s;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}
.ag-ev:hover { box-shadow: 0 10px 22px -12px rgba(17,17,17,.45); transform: translateY(-1px); z-index: 5; }
.ag-ev-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; }
.ag-ev b { font-size: 12px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-ev small { font-size: 11px; opacity: .72; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-dots svg { width: 14px; height: 14px; opacity: .6; }
.ag-ev-foot { margin-top: auto; display: flex; align-items: center; gap: 6px; min-width: 0; }
.ag-pill { display: inline-flex; align-items: center; gap: 4px; background: #fff; border-radius: 99px; padding: 2px 8px 2px 5px; font-size: 10.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.ag-pill svg { width: 12px; height: 12px; color: var(--green); }
.ag-ev.curto { flex-direction: row; align-items: center; gap: 6px; padding: 4px 8px; }
.ag-ev.curto .ag-ev-top { flex: 0 1 auto; min-width: 0; }
.ag-ev.curto .ag-dots { display: none; }
.avatar.xs { width: 22px; height: 22px; font-size: 9px; flex-shrink: 0; background: #fff; color: var(--ink); }
.c0 { background: #DCE7FF; color: #173A8F; }
.c1 { background: #E6E1FA; color: #43349A; }
.c2 { background: #D6F2E3; color: #18663E; }
.c3 { background: #FCE3D8; color: #9A3B12; }
.c4 { background: #FBF1CC; color: #7A5A00; }
.dot-sala { width: 10px; height: 10px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 1px rgba(17,17,17,.15); }
.tab.on .dot-sala { box-shadow: 0 0 0 2px rgba(255,255,255,.6); }

/* ---------- Calendário ---------- */
.cal { display: grid; grid-template-columns: 64px repeat(7, minmax(110px, 1fr)); border-radius: var(--radius); overflow: hidden; background: var(--card); min-width: 860px; }
.cal-h { padding: 16px 8px 12px; text-align: center; font-weight: 500; font-size: 12.5px; border-bottom: 1px solid var(--line-2); }
.cal-h small { display: block; color: var(--muted); font-weight: 400; text-transform: capitalize; margin-bottom: 4px; }
.cal-h b { font-size: 20px; font-weight: 300; }
.cal-h.today b { background: var(--ink); color: #fff; border-radius: 99px; padding: 2px 10px; }
.cal-t { font-size: 11px; color: var(--muted); text-align: right; padding: 4px 8px; border-top: 1px solid var(--line-2); height: 52px; }
.cal-d { position: relative; border-left: 1px solid var(--line-2); }
.cal-slot { height: 52px; border-top: 1px solid var(--line-2); cursor: pointer; }
.cal-slot:hover { background: var(--bg); }
.cal-ev {
  position: absolute; left: 4px; right: 4px; border-radius: 14px; padding: 7px 9px; font-size: 11.5px; overflow: hidden;
  background: var(--sky); color: var(--ink); cursor: pointer; z-index: 2;
}
.cal-ev b { display: block; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev.alt { background: var(--blue); color: #fff; }

/* ---------- Outros ---------- */
.empty { text-align: center; padding: 44px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty .ic, .empty svg { width: 32px; height: 32px; color: #BDBBB4; }
.empty strong { color: var(--ink); font-size: 14.5px; font-weight: 500; }
.progress { display: flex; height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.progress.red i { background: var(--red); }
.progress.amber i { background: var(--amber); }
.progress.green i { background: var(--green); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.kv div small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.kv div b { font-size: 14px; font-weight: 500; }
.stat-row { display: flex; gap: 10px; flex-wrap: wrap; }
.stat-mini { flex: 1; min-width: 84px; background: var(--bg); border-radius: 16px; padding: 12px 14px; }
.stat-mini small { color: var(--muted); font-size: 12px; }
.stat-mini b { display: block; font-size: 20px; font-weight: 300; letter-spacing: -.03em; margin-top: 2px; }
.dre td:first-child { font-weight: 500; }
.dre tr.total td { font-weight: 600; background: #FAFAF8; }
.dre tr.sub td { color: var(--muted); }
.dre tr.sub td:first-child { padding-left: 34px; font-weight: 400; }
.pos { color: #13703A; }
.neg { color: #C2272D; }
.strip { display: flex; gap: 4px; height: 34px; align-items: flex-end; }
.strip i { flex: 1; background: var(--ink); border-radius: 99px; min-height: 4px; }
.strip i.off { background: var(--line); }
.plan-card { border-radius: var(--radius); padding: 22px; background: var(--card); }
.plan-card.on { background: var(--ink); color: #fff; }
.plan-card.on .muted { color: rgba(255,255,255,.7); }
.plan-card.on .stat-mini { background: rgba(255,255,255,.08); }
.plan-card .price { font-size: 36px; font-weight: 300; letter-spacing: -.05em; margin: 10px 0; }
.inline-form { display: inline; }
.desc-cell { max-width: 360px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.link { color: var(--blue); font-weight: 500; }
.gap-s { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- Login ---------- */
.login-page { background: var(--bg); }
.login-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; padding: 18px; gap: 18px; }
.login-art { border-radius: 32px; background: var(--blue); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art-inner { position: relative; }
.login-mark { width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.45); }
.login-art h1 { font-size: 52px; font-weight: 300; letter-spacing: -.05em; line-height: 1.02; margin-top: 64px; }
.login-art p { margin-top: 18px; font-size: 16px; opacity: .85; line-height: 1.55; max-width: 460px; }
.login-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 40px; }
.login-cards div { border-radius: 22px; padding: 16px; color: var(--ink); }
.login-cards div:nth-child(1) { background: var(--sky); }
.login-cards div:nth-child(2) { background: var(--lilac); }
.login-cards div:nth-child(3) { background: #fff; }
.login-cards b { display: block; font-size: 13px; font-weight: 600; }
.login-cards span { font-size: 12px; color: var(--muted); }
.login-cards .k-segs { margin: 12px 0 0; }
.login-form { display: grid; place-items: center; padding: 32px 20px; }
.login-card { width: min(400px, 100%); display: flex; flex-direction: column; gap: 14px; }
.login-logo { height: 36px; width: auto; align-self: flex-start; margin-bottom: 26px; }
.login-card h2 { font-size: 34px; font-weight: 600; letter-spacing: -.04em; }
.demo-box { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.demo-box strong { font-size: 12px; color: var(--muted); font-weight: 500; margin-bottom: 2px; }
.demo-box button { display: flex; align-items: center; gap: 12px; text-align: left; background: var(--card); border: 0; border-radius: 999px; padding: 6px 16px 6px 6px; font-weight: 500; cursor: pointer; }
.demo-box button:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.demo-box button span.avatar { width: 34px; height: 34px; font-size: 11px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1200px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main { grid-template-columns: 1fr; }
  .brand-tenant { display: none; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .appbar { padding: 14px 16px 6px; gap: 10px; flex-wrap: wrap; }
  .appbar .pills { order: 5; width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .menu-btn { display: grid !important; }
  .rail {
    position: fixed; left: 0; top: 0; bottom: 0; height: 100vh; width: 260px; z-index: 60; background: var(--bg);
    align-items: stretch; padding: 20px 16px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg);
  }
  .rail.open { transform: none; }
  .rail a { width: auto; height: 44px; border-radius: 999px; display: flex; justify-content: flex-start; gap: 12px; padding: 0 14px; }
  .rail a .lbl { display: inline; }
  .rail-tip { display: none; }
  .rail .sep { width: 100%; }
  .rail.open + .scrim { display: block; position: fixed; inset: 0; background: rgba(30,29,26,.35); z-index: 55; }
  .main { grid-column: 1; padding: 10px 16px 120px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .head-stats { gap: 24px; }
  .head-stat b { font-size: 24px; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .hero-value { font-size: 40px; }
}
@media (max-width: 600px) {
  .g4 { grid-template-columns: 1fr; }
  .form-grid, .form-grid.g3c { grid-template-columns: 1fr; }
  .board { --cw: 76vw; --cmax: 76vw; }
  .col { --n: 1 !important; }
  .page-title h2 { font-size: 26px; }
}

/* ---------- Agenda no estilo do print de referência ---------- */
.agenda-card { background: var(--card); border-radius: var(--radius); padding: 6px 6px 10px; }
.ag-topo { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px 18px; }
.ag-titulo { font-size: 22px; font-weight: 500; letter-spacing: -.02em; margin-right: 6px; }
.ag-filtros { display: flex; gap: 6px; flex-wrap: wrap; }
.ag-filtro { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--bg); color: var(--muted); font-size: 12.5px; font-weight: 500; }
.ag-filtro:hover { color: var(--ink); }
.ag-filtro.on { background: var(--ink); color: #fff; }
.ag-filtro svg { width: 14px; height: 14px; }
html.escuro .ag-filtro.on { color: #0F1115; }
.ag-semana { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.ag-semana a { height: 28px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.ag-semana a.on { color: var(--ink); background: var(--bg); }
.ag-semana a:hover { color: var(--ink); }
.ag-semana svg { width: 15px; height: 15px; }
.agenda-card .agenda-wrap { border-radius: 0; }
.agenda-card .agenda { border-radius: 0; border-top: 1px solid var(--line-2); }
.agenda-card .ag-h { font-size: 12px; font-weight: 500; color: var(--muted); padding: 10px 6px; border-left-color: var(--line-2); }
.agenda-card .ag-h.hoje { background: var(--ink); color: #fff; }
html.escuro .agenda-card .ag-h.hoje { color: #0F1115; }
.agenda-card .ag-horas div { font-size: 11.5px; text-align: left; padding: 0 0 0 14px; }
.agenda-card .ag-ev { border-radius: 8px; padding: 7px 9px; box-shadow: none; }
.agenda-card .ag-ev b { font-size: 12px; font-weight: 600; }
.agenda-card .ag-ev small { font-size: 11.5px; opacity: .65; }
.agenda-card .ag-pill { gap: 4px; padding: 3px 9px 3px 6px; font-weight: 500; color: var(--ink); }
.agenda-card .ag-pill svg { color: var(--muted); }
.agenda-card .ag-pill.pago svg { color: var(--green); }
.agenda-card .ag-agora-pill { left: 10px; right: auto; }

/* Alternar quadro e lista (Espaços) */
.vista { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--card); margin-left: 4px; }
.vista a { height: 36px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.vista a svg { width: 16px; height: 16px; }
.vista a.on { background: var(--ink); color: #fff; }
html.escuro .vista a.on { color: #0F1115; }

/* ---------- Contrato e documentos do cliente ---------- */
.doc-lista { display: flex; flex-direction: column; gap: 8px; }
.doc-item { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); transition: border-color .15s, background .15s; }
.doc-item:hover { border-color: var(--line-2, var(--line)); background: var(--bg-2); }
.doc-item.on { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 12%, transparent); }
.doc-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; color: inherit; }
.doc-link .grow { flex: 1; min-width: 0; }
.doc-link strong, .doc-view-head strong { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-link small, .doc-view-head small { color: var(--muted); font-size: 12px; }
.doc-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; }
.doc-ic.pdf { background: #FDE8E7; color: #D93025; }
.doc-ic.img { background: #E7F0FF; color: var(--blue); }
.doc-ic .ic { width: 20px; height: 20px; }
.doc-view { overflow: hidden; }
.doc-view-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.doc-view-head .grow { flex: 1; min-width: 0; }
.doc-frame { display: block; width: 100%; height: 82vh; min-height: 560px; border: 0; background: #525659; }
.doc-img { padding: 20px; background: var(--bg-2); text-align: center; }
.doc-img img { max-width: 100%; border-radius: 8px; box-shadow: 0 4px 18px rgba(0,0,0,.12); }
.doc-clip { color: var(--blue); vertical-align: middle; }
.doc-clip .ic { width: 15px; height: 15px; }
html.escuro .doc-ic.pdf { background: rgba(217,48,37,.16); color: #FF8A80; }
html.escuro .doc-ic.img { background: rgba(11,79,230,.2); }
@media (max-width: 720px) { .doc-link .badge { display: none; } .doc-frame { height: 70vh; min-height: 420px; } }
