/* ============================================================
   VEN Capacity — Design System
   ============================================================ */
:root {
  --bg: #f4f5fb;
  --surface: #ffffff;
  --surface-2: #f8f9fd;
  --border: #e7e9f2;
  --border-strong: #d6d9e8;
  --text: #1a1c2b;
  --text-2: #5b607a;
  --text-3: #9297b0;

  --brand: #5b4bff;
  --brand-2: #7d5cff;
  --brand-soft: #efeaff;
  --brand-ink: #2a1d9e;

  --green: #12b76a;
  --green-soft: #e4f8ee;
  --amber: #f79009;
  --amber-soft: #fef3e0;
  --red: #f04438;
  --red-soft: #fde7e5;
  --blue: #2e90fa;
  --blue-soft: #e5f1ff;

  --shadow-sm: 0 1px 2px rgba(20, 22, 45, .06);
  --shadow: 0 4px 16px rgba(20, 22, 45, .08);
  --shadow-lg: 0 18px 48px rgba(20, 22, 45, .18);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;

  --sidebar-w: 244px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }
svg.ico { width: 18px; height: 18px; flex: 0 0 auto; vertical-align: middle; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #d3d6e6; border-radius: 20px; border: 2px solid var(--bg); }

/* ---------- Layout ---------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: linear-gradient(185deg, #1c1740 0%, #241a55 55%, #17123a 100%);
  color: #cfd0e8;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 14px;
  gap: 6px;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 18px; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: 0 6px 18px rgba(91,75,255,.5);
}
.brand-name { font-weight: 800; color: #fff; font-size: 15.5px; letter-spacing: -.02em; line-height: 1.1; }
.brand-sub { font-size: 11px; color: #8f8fc4; font-weight: 500; }

.nav-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: #7d7cb5; padding: 14px 10px 6px; font-weight: 700; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: 10px; color: #c3c4e2;
  font-weight: 500; font-size: 13.5px; border: none; background: none; width: 100%; text-align: left;
  transition: background .14s, color .14s;
}
.nav-item .ico { width: 18px; height: 18px; flex: 0 0 18px; opacity: .85; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: linear-gradient(100deg, rgba(91,75,255,.9), rgba(125,92,255,.75)); color: #fff; box-shadow: var(--shadow-sm); }
.nav-item.active .ico { opacity: 1; }
.nav-badge { margin-left: auto; background: var(--red); color:#fff; font-size: 11px; font-weight: 700; border-radius: 20px; padding: 1px 7px; }
.sidebar-foot { margin-top: auto; padding: 10px; font-size: 11px; color: #6f6fa6; }
.side-data { display: flex; gap: 6px; margin-bottom: 8px; }
.side-data-btn { flex: 1; padding: 7px 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: #c3c4e2; font-weight: 600; font-size: 12px; transition: background .14s; }
.side-data-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.side-user { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.05); margin-bottom: 8px; }
.side-user .su-name { color: #fff; font-weight: 700; font-size: 12.5px; line-height: 1.1; }
.side-user .su-role { font-size: 10.5px; color: #8f8fc4; }
.side-user .su-out { margin-left: auto; background: none; border: none; color: #b9bade; padding: 5px; border-radius: 7px; }
.side-user .su-out:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Auth screen ---------- */
.auth-screen { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px;
  background: linear-gradient(185deg, #1c1740 0%, #241a55 55%, #17123a 100%); overflow: auto; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 32px 30px; animation: pop .2s cubic-bezier(.2,.9,.3,1); }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.auth-brand .brand-logo { width: 44px; height: 44px; border-radius: 13px; font-size: 21px; }
.auth-brand h2 { font-size: 18px; }
.auth-brand p { margin: 2px 0 0; font-size: 12px; color: var(--text-2); }
.auth-card h1 { font-size: 20px; margin-bottom: 4px; }
.auth-card .auth-sub { color: var(--text-2); font-size: 13px; margin-bottom: 22px; }
.auth-card .btn-primary { width: 100%; padding: 12px; font-size: 14.5px; margin-top: 4px; }
.auth-link { background: none; border: none; color: var(--brand); font-weight: 600; font-size: 13px; padding: 0; cursor: pointer; }
.auth-foot { margin-top: 18px; text-align: center; font-size: 12.5px; color: var(--text-2); }
.auth-msg { padding: 10px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 600; margin-bottom: 16px; }
.auth-msg.err { background: var(--red-soft); color: #c0261c; }
.auth-msg.ok { background: var(--green-soft); color: #0a7a48; }
.auth-loading { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: linear-gradient(185deg,#1c1740,#17123a); color: #cfd0e8; }
.spinner { width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.2); border-top-color: #7d5cff; border-radius: 50%; animation: spin .8s linear infinite; }
.role-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 700; }
.role-badge.admin { background: var(--brand-soft); color: var(--brand-ink); }
.role-badge.colab { background: #eef0f6; color: var(--text-2); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244,245,251,.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 15px 30px; display: flex; align-items: center; gap: 16px;
}
.topbar h1 { font-size: 20px; }
.topbar .sub { color: var(--text-2); font-size: 12.5px; margin-top: 2px; }
.topbar-spacer { flex: 1; }
.last-run { font-size: 12px; color: var(--text-2); text-align: right; }
.last-run b { color: var(--text); }

.content { padding: 26px 30px 60px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 9px 15px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-weight: 600; font-size: 13.5px;
  transition: transform .06s, box-shadow .14s, background .14s, border-color .14s;
  box-shadow: var(--shadow-sm);
}
.btn:hover { border-color: #c2c6dc; }
.btn:active { transform: translateY(1px); }
.btn .ico { width: 16px; height: 16px; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(91,75,255,.32); }
.btn-primary:hover { box-shadow: 0 8px 22px rgba(91,75,255,.42); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); }
.btn-ghost:hover { background: rgba(0,0,0,.05); }
.btn-danger { color: var(--red); border-color: var(--red-soft); background: var(--red-soft); box-shadow: none; }
.btn-danger:hover { background: #fbd8d5; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.btn-icon { padding: 7px; width: 34px; height: 34px; }
.refresh-btn { background: linear-gradient(135deg, #12b76a, #0e9f5c); color:#fff; border-color: transparent; box-shadow: 0 6px 16px rgba(18,183,106,.34); }
.refresh-btn:hover { box-shadow: 0 8px 22px rgba(18,183,106,.46); }
.refresh-btn.spin .ico { animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 17px 20px; border-bottom: 1px solid var(--border); }
.card-head h3 { font-size: 15px; }
.card-head .sub { font-size: 12px; color: var(--text-2); }

.grid { display: grid; gap: 18px; }
.stat-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* ---------- Stat cards ---------- */
.stat { position: relative; overflow: hidden; }
.stat .stat-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px; }
.stat .stat-ico svg { width: 21px; height: 21px; }
.stat .val { font-size: 27px; font-weight: 800; letter-spacing: -.02em; }
.stat .val small { font-size: 15px; font-weight: 700; color: var(--text-3); }
.stat .lbl { color: var(--text-2); font-size: 12.5px; font-weight: 600; margin-top: 2px; }
.stat .foot { margin-top: 11px; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 30px; font-size: 12px; font-weight: 700; }
.pill.green { background: var(--green-soft); color: #0a7a48; }
.pill.amber { background: var(--amber-soft); color: #b45a09; }
.pill.red { background: var(--red-soft); color: #c0261c; }
.pill.blue { background: var(--blue-soft); color: #1667c2; }
.pill.gray { background: #eef0f6; color: var(--text-2); }
.pill.violet { background: var(--brand-soft); color: var(--brand-ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ---------- Progress / gauge ---------- */
.bar { height: 9px; border-radius: 20px; background: #eceef6; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 20px; transition: width .5s cubic-bezier(.3,.9,.3,1); }
.bar.thin { height: 6px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 700; padding: 11px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl .muted { color: var(--text-3); }
.strong { font-weight: 700; }
.mini { font-size: 12px; color: var(--text-2); }

.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 7px; font-size: 12px; font-weight: 600; background: #eef0f6; color: var(--text-2); }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px; flex: 0 0 30px; }
.avatar.lg { width: 40px; height: 40px; font-size: 15px; }
.person { display: flex; align-items: center; gap: 10px; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 46px 20px; color: var(--text-2); }
.empty .em-ico { width: 54px; height: 54px; border-radius: 15px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin: 0 auto 14px; }
.empty h3 { color: var(--text); margin-bottom: 5px; }

/* ---------- Forms / Modal ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(20,18,50,.42); backdrop-filter: blur(3px); z-index: 100; display: grid; place-items: center; padding: 24px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; animation: pop .16s cubic-bezier(.2,.9,.3,1); }
.modal.wide { max-width: 760px; }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.modal-head { padding: 20px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.modal-head h2 { font-size: 17px; }
.modal-body { padding: 22px; }
.modal-foot { padding: 16px 22px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); position: sticky; bottom: 0; }

.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field > label { display: block; font-weight: 600; font-size: 12.5px; margin-bottom: 7px; color: var(--text); }
.field .hint { font-weight: 400; color: var(--text-3); font-size: 11.5px; }
.input, .select, textarea.input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 10px;
  background: var(--surface); color: var(--text); outline: none; transition: border-color .14s, box-shadow .14s;
}
.input:focus, .select:focus, textarea.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea.input { resize: vertical; min-height: 62px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 30px;
  border: 1.5px solid var(--border-strong); font-weight: 600; font-size: 13px; color: var(--text-2); user-select: none; transition: .12s;
}
.chip-check input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }

.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 28px; height: 28px; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.swatch.sel { border-color: var(--text); box-shadow: 0 0 0 2px #fff inset; }

.day-toggle { display: flex; gap: 8px; flex-wrap: wrap; }
.day-toggle .chip-check span { width: 46px; justify-content: center; padding: 8px 0; }

/* ---------- Section header ---------- */
.section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { font-size: 17px; }
.section-head .sub { color: var(--text-2); font-size: 13px; }
.section-head .sp { flex: 1; }
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; padding: 0 12px; }
.search input { border: none; outline: none; padding: 9px 0; background: none; width: 190px; }
.search svg { width: 16px; height: 16px; color: var(--text-3); }

/* ---------- Alerts / banners ---------- */
.banner { display: flex; gap: 13px; padding: 15px 17px; border-radius: var(--r); align-items: flex-start; border: 1px solid; }
.banner .b-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 34px; }
.banner .b-ico svg { width: 18px; height: 18px; }
.banner h4 { font-size: 13.5px; margin-bottom: 2px; }
.banner p { margin: 0; font-size: 12.5px; color: var(--text-2); }
.banner.green { background: var(--green-soft); border-color: #bdecd4; }
.banner.green .b-ico { background: var(--green); color: #fff; }
.banner.amber { background: var(--amber-soft); border-color: #fbdca6; }
.banner.amber .b-ico { background: var(--amber); color: #fff; }
.banner.red { background: var(--red-soft); border-color: #f8c3bf; }
.banner.red .b-ico { background: var(--red); color: #fff; }
.banner.blue { background: var(--blue-soft); border-color: #bcdcff; }
.banner.blue .b-ico { background: var(--blue); color: #fff; }
.banner .b-val { margin-left: auto; font-weight: 800; font-size: 18px; text-align: right; white-space: nowrap; }

/* ---------- Schedule board ---------- */
.board-wrap { overflow-x: auto; padding-bottom: 6px; }
.board { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 760px; }
.board th, .board td { border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); }
.board th { padding: 9px 10px; font-size: 12px; background: var(--surface-2); position: sticky; top: 0; z-index: 2; }
.board th.today, .board td.today { background: #f0edff; }
.board .colhead { text-align: center; font-weight: 700; min-width: 116px; }
.board .colhead small { display: block; font-weight: 500; color: var(--text-3); font-size: 11px; }
.board .rowhead { text-align: left; position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 170px; }
.board td { padding: 6px; vertical-align: top; height: 74px; }
.board td.weekend { background: repeating-linear-gradient(45deg, #fafbfe, #fafbfe 6px, #f2f3f9 6px, #f2f3f9 12px); }
.cell-cap { font-size: 10.5px; color: var(--text-3); font-weight: 700; margin-bottom: 4px; display: flex; justify-content: space-between; }
.cell-cap.over { color: var(--red); }
.blk { border-radius: 7px; padding: 4px 7px; margin-bottom: 4px; font-size: 11.5px; font-weight: 600; color: #fff; line-height: 1.25; box-shadow: var(--shadow-sm); }
.blk small { opacity: .85; font-weight: 600; }
.blk.ot { outline: 2px dashed rgba(255,255,255,.7); outline-offset: -3px; }

.legend { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Utilities ---------- */
.flex { display: flex; align-items: center; }
.gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap10 { gap: 10px; } .gap12 { gap: 12px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.mt6 { margin-top: 6px; } .mt10 { margin-top: 10px; } .mt14 { margin-top: 14px; } .mt18 { margin-top: 18px; } .mt24 { margin-top: 24px; }
.mb0 { margin-bottom: 0; } .mb6 { margin-bottom: 6px; } .mb14 { margin-bottom: 14px; }
.right { text-align: right; } .center { text-align: center; }
.nowrap { white-space: nowrap; }
.txt-2 { color: var(--text-2); } .txt-3 { color: var(--text-3); }
.hidden { display: none !important; }
.grow { flex: 1; }

.legend-cap { display:flex; gap: 10px; margin-top: 6px; font-size: 11.5px; color: var(--text-2); }

/* Toast */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { background: #1a1c2b; color: #fff; padding: 12px 16px; border-radius: 11px; box-shadow: var(--shadow-lg); font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 10px; animation: pop .18s; max-width: 340px; }
.toast .t-ico { width: 20px; height: 20px; flex: 0 0 20px; }
.toast.ok .t-ico { color: #4be08a; }
.toast.warn .t-ico { color: #ffce6b; }

@media (max-width: 900px) {
  .sidebar { position: fixed; transform: translateX(-100%); transition: transform .2s; z-index: 60; }
  .sidebar.open { transform: none; }
  :root { --sidebar-w: 0px; }
  .content { padding: 20px 16px 50px; }
  .topbar { padding: 13px 16px; }
  .row2, .row3 { grid-template-columns: 1fr; }
}

/* ============================================================
   v2 — Clientes, Projetos, Timer, Comercial, Financeiro
   ============================================================ */

/* Timer */
.timer { display: inline-flex; align-items: center; gap: 7px; }
.timer-live { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 13px; letter-spacing: .01em; min-width: 66px; }
.timer-live.run { color: var(--green); }
.tbtn { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--border-strong); background: var(--surface); box-shadow: var(--shadow-sm); }
.tbtn svg { width: 15px; height: 15px; }
.tbtn.play { color: var(--green); border-color: var(--green-soft); background: var(--green-soft); }
.tbtn.pause { color: var(--amber); border-color: var(--amber-soft); background: var(--amber-soft); }
.tbtn.run { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(18,183,106,.4); } 50% { box-shadow: 0 0 0 5px rgba(18,183,106,0); } }
.topbar-timer { display: inline-flex; align-items: center; gap: 8px; background: var(--green-soft); color: #0a7a48; padding: 6px 11px; border-radius: 30px; font-weight: 700; font-size: 12.5px; }
.topbar-timer .rec { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 1.4s infinite; }

/* Sub-nav / tabs */
.subnav { display: inline-flex; gap: 4px; background: #eceef6; padding: 4px; border-radius: 11px; }
.subnav button { border: none; background: none; padding: 7px 14px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--text-2); }
.subnav button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* KPI big money */
.kpi-money { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.money { font-variant-numeric: tabular-nums; }
.pos { color: var(--green); } .neg { color: var(--red); }

/* Ranking rows */
.rank { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.rank:last-child { border-bottom: none; }
.rank .pos-n { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--surface-2); color: var(--text-2); flex: 0 0 26px; }
.rank .pos-n.top { background: linear-gradient(135deg,#ffd66b,#f7a908); color: #7a4a00; }

/* Project tree */
.tree-item { display: flex; align-items: center; gap: 10px; padding: 9px 0 9px 22px; position: relative; border-bottom: 1px dashed var(--border); }
.tree-item:before { content: ''; position: absolute; left: 6px; top: 0; bottom: 50%; width: 12px; border-left: 1.5px solid var(--border-strong); border-bottom: 1.5px solid var(--border-strong); border-bottom-left-radius: 6px; }

/* Mini calendar (folgas / commercial) */
.mini-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.mini-cal .h { text-align: center; font-size: 10px; font-weight: 700; color: var(--text-3); }
.mini-cal .d { aspect-ratio: 1; border: 1.5px solid var(--border); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; font-size: 12px; font-weight: 500; background: #fff; user-select: none; }
.mini-cal .d.off { background: #fef3e0; border-color: #fbdca6; color: #b45a09; font-weight: 700; }
.mini-cal .d.nowork { background: #f1f2f8; color: var(--text-3); cursor: default; }
.mini-cal .d.today { border-color: var(--brand); }
.mini-cal .d.empty { border: none; background: none; cursor: default; }

/* Result box */
.result { border: 1.5px dashed var(--border-strong); border-radius: var(--r); padding: 16px 18px; }
.result.ok { border-color: #bdecd4; background: var(--green-soft); }
.result.warn { border-color: #fbdca6; background: var(--amber-soft); }
.result.bad { border-color: #f8c3bf; background: var(--red-soft); }

/* Segmented capacity bar (financeiro/projeto) */
.seg { height: 10px; border-radius: 20px; overflow: hidden; display: flex; background: #eceef6; }
.seg > i { display: block; height: 100%; }

/* small definition list */
.dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.dl dt { color: var(--text-2); font-size: 12.5px; }
.dl dd { margin: 0; text-align: right; font-weight: 700; font-size: 12.5px; }
