/* Controle de Demandas · identidade V4 Company (vermelho, preto e branco · Montserrat) */
:root {
  --brand: #e50914;
  --brand-hover: #c40711;
  --brand-soft: #fdecec;
  --ink: #0f0f10;
  --ink-2: #1c1c1f;
  --ink-3: #2a2a2e;
  --bg: #f4f4f6;
  --surface: #ffffff;
  --surface-2: #fafafb;
  --border: #e6e6ea;
  --border-strong: #d2d2d8;
  --text: #161618;
  --muted: #6b6b75;
  --faint: #9d9da6;
  --danger: #d92d20;
  --danger-soft: #fef1f0;
  --warn: #b54708;
  --warn-soft: #fffaeb;
  --ok: #067647;
  --ok-soft: #ecfdf3;
  --focus: #f97316;
  --focus-soft: #fff4ec;
  --shadow: 0 1px 2px rgba(16, 16, 20, .05), 0 1px 3px rgba(16, 16, 20, .07);
  --shadow-md: 0 4px 14px rgba(16, 16, 20, .08);
  --shadow-lg: 0 18px 48px rgba(16, 16, 20, .22);
  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --sidebar: 248px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 13.5px; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; letter-spacing: -.005em; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { letter-spacing: -.02em; }
.boot { padding: 40px; color: var(--muted); }
.ico { display: inline-flex; width: 16px; height: 16px; flex: none; }
.ico svg { width: 100%; height: 100%; }
.muted { color: var(--muted); }
.error-text { color: var(--danger); font-size: 13px; margin: 8px 0 0; min-height: 1px; }
.grow { flex: 1; }

/* ---------- botões e campos ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 15px;
  border: 1px solid var(--border-strong); background: var(--surface); border-radius: 8px;
  cursor: pointer; font-weight: 600; white-space: nowrap; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--surface-2); border-color: #bdbdc5; text-decoration: none; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.dark:hover { background: var(--ink-3); }
.btn.danger { color: var(--danger); border-color: #fbcfcb; }
.btn.danger:hover { background: var(--danger-soft); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: #ececf0; }
.btn.small { height: 30px; padding: 0 11px; font-size: 12.5px; }
.btn.icon-only { width: 38px; padding: 0; flex: none; }
a.btn { color: var(--text); }
a.btn.primary { color: #fff; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border: 0; background: transparent; border-radius: 8px; cursor: pointer; color: var(--muted); position: relative; flex: none;
}
.icon-btn:hover { background: #ececf0; color: var(--text); }
.icon-btn:disabled { opacity: .3; cursor: default; background: transparent; }

.input, select.input, textarea.input {
  width: 100%; height: 38px; padding: 0 11px; border: 1px solid var(--border-strong);
  border-radius: 8px; background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; min-height: 84px; padding: 9px 11px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15, 15, 16, .08); }
.input:disabled { background: var(--surface-2); color: var(--muted); }
.input-group { display: flex; gap: 6px; }
.input-group > :first-child { flex: 1; min-width: 0; }
.label { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 6px; }
.label .req { color: var(--brand); }
.form-row { margin-bottom: 14px; min-width: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .form-row.full, .form-grid .form-row:has(textarea), .form-grid .form-row:has(input[type=url]) { grid-column: 1 / -1; }
.check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 13px; }
.check input { accent-color: var(--brand); width: 16px; height: 16px; }

/* ---------- login ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); }
.auth-side { background: var(--ink); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(229, 9, 20, .55), transparent 70%); }
.auth-side h2 { font-size: 40px; line-height: 1.1; margin: 0 0 16px; font-weight: 800; position: relative; z-index: 1; }
.auth-side h2 span { color: var(--brand); }
.auth-side p { color: #b9b9c2; max-width: 420px; line-height: 1.6; position: relative; z-index: 1; }
.auth-main { display: grid; place-items: center; padding: 24px; }
.auth-box { width: 100%; max-width: 380px; }
.auth-box h1 { margin: 0 0 6px; font-size: 26px; font-weight: 800; }
.auth-box > p { margin: 0 0 28px; color: var(--muted); line-height: 1.5; }
.auth-box .btn { width: 100%; height: 44px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; letter-spacing: -.03em; flex: none; }
.brand-text { line-height: 1.15; font-size: 13px; }
.brand-text b { display: block; font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.brand-text small { color: var(--faint); font-weight: 500; font-size: 11px; }

/* ---------- estrutura (sidebar + conteúdo) ---------- */
.app-shell { display: flex; height: 100vh; }
.sidebar { width: var(--sidebar); flex: none; background: var(--ink); color: #e4e4e8; display: flex; flex-direction: column; overflow: hidden; }
.sidebar .brand { padding: 18px 18px 16px; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.side-nav { flex: 1; overflow-y: auto; padding: 12px 10px; }
.nav-label { font-size: 10.5px; font-weight: 700; color: #7c7c86; text-transform: uppercase; letter-spacing: .08em; padding: 16px 10px 6px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: #d6d6dc; font-weight: 600; font-size: 13px; cursor: pointer; border: 0; background: transparent; width: 100%; text-align: left; }
.nav-item:hover { background: var(--ink-2); color: #fff; text-decoration: none; }
.nav-item.active { background: var(--ink-3); color: #fff; box-shadow: inset 3px 0 0 var(--brand); }
.nav-item .ico { color: #8f8f99; }
.nav-item.active .ico, .nav-item:hover .ico { color: #fff; }
.nav-item .emoji { width: 18px; text-align: center; font-size: 14px; flex: none; }
.nav-item .label-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-badge { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 9px; background: var(--ink-3); color: #cfcfd6; }
.nav-badge.red { background: var(--brand); color: #fff; }
.nav-badge.orange { background: var(--focus); color: #fff; }
.sidebar-foot { padding: 12px; border-top: 1px solid rgba(255, 255, 255, .06); }
.user-chip { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; text-align: left; }
.user-chip:hover { background: var(--ink-2); }
.user-chip .who { flex: 1; min-width: 0; line-height: 1.25; }
.user-chip .who b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .who small { color: #8f8f99; font-size: 11px; }
.sidebar-backdrop { display: none; }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.page-header { display: flex; align-items: center; gap: 14px; padding: 12px 24px; background: var(--surface); border-bottom: 1px solid var(--border); min-height: 66px; flex: none; }
.page-title { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.page-title .title-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; background: var(--brand-soft); color: var(--brand); flex: none; }
.page-title .title-icon .ico { width: 19px; height: 19px; }
.page-title h1 { font-size: 18px; margin: 0; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-title p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none !important; }
.bell-count { position: absolute; top: 0; right: -2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }

.tabsbar { display: flex; align-items: center; gap: 12px; padding: 0 24px; background: var(--surface); border-bottom: 1px solid var(--border); flex: none; min-height: 52px; flex-wrap: wrap; }
.tabs { display: flex; gap: 2px; overflow-x: auto; }
.tab { display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; height: 50px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none !important; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--brand); }
.tools { display: flex; align-items: center; gap: 8px; margin-left: auto; padding: 8px 0; flex-wrap: wrap; }
.search { position: relative; }
.search .ico { position: absolute; left: 11px; top: 11px; color: var(--faint); }
.search input { padding-left: 34px; width: 230px; border-radius: 20px; background: var(--surface-2); }
.filter-dot { width: 7px; height: 7px; background: var(--brand); border-radius: 50%; }

.main { flex: 1; overflow: auto; }
.page { max-width: 1180px; margin: 0 auto; padding: 26px 24px 60px; }
.page.wide { max-width: 1440px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 17px; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.panel { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 20px; margin-bottom: 18px; }
.panel h2 { font-size: 15px; margin: 0 0 4px; font-weight: 700; }
.panel > p.muted { margin: 0 0 16px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head p { margin: 4px 0 0; }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty .ico { width: 34px; height: 34px; color: var(--faint); margin-bottom: 8px; }

/* ---------- menus, modais, toasts ---------- */
.menu { position: fixed; z-index: 60; min-width: 230px; max-height: 72vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: transparent; border-radius: 7px; cursor: pointer; text-align: left; font-weight: 500; }
.menu-item:hover { background: var(--bg); }
.menu-item.active { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.menu-sep { height: 1px; background: var(--border); margin: 6px 0; }
.menu-head { padding: 6px 10px; font-size: 11.5px; color: var(--muted); }

.overlay { position: fixed; inset: 0; background: rgba(15, 15, 16, .55); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 36px 16px; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); width: 100%; max-width: 540px; position: relative; }
.modal.wide { max-width: 1080px; }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-head h2 { margin: 0; font-size: 17px; flex: 1; font-weight: 800; }
.modal-body { padding: 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--border); }

#toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 600; max-width: 90vw; }
.toast.error { background: var(--danger); }

.avatar { width: 32px; height: 32px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 12px; display: inline-grid; place-items: center; flex: none; }
.avatar.sm { width: 24px; height: 24px; font-size: 10px; }

/* ---------- notificações ---------- */
.notif-panel { width: 380px; max-width: calc(100vw - 24px); }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 10px; }
.notif-head b { font-size: 14px; }
.notif-item { display: flex; gap: 10px; padding: 10px 8px; border-radius: 8px; cursor: pointer; align-items: flex-start; border: 0; background: transparent; width: 100%; text-align: left; }
.notif-item:hover { background: var(--bg); }
.notif-item.unread { background: #fff6f6; }
.notif-item .txt { flex: 1; font-size: 13px; line-height: 1.4; }
.notif-item .when { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-top: 6px; flex: none; }

/* ---------- início ---------- */
.hero { background: var(--ink); color: #fff; border-radius: 16px; padding: 26px 28px; margin-bottom: 22px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(229, 9, 20, .5), transparent 70%); }
.hero h1 { margin: 0 0 6px; font-size: 24px; font-weight: 800; position: relative; z-index: 1; }
.hero p { margin: 0; color: #b9b9c2; position: relative; z-index: 1; }
.hero-stats { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-stat { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 12px 16px; min-width: 150px; cursor: pointer; color: #fff; text-align: left; }
.hero-stat:hover { background: rgba(255, 255, 255, .12); }
.hero-stat b { display: block; font-size: 24px; font-weight: 800; }
.hero-stat span { font-size: 12px; color: #c9c9d1; }
.pipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.pipe-tile { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; text-align: left; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.pipe-tile:hover { border-color: var(--ink); transform: translateY(-1px); }
.pipe-tile .pipe-icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; font-size: 22px; background: var(--bg); }
.pipe-tile h3 { margin: 0; font-size: 15px; font-weight: 700; }
.pipe-tile .stats { display: flex; gap: 12px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.pipe-tile.new { align-items: center; justify-content: center; border-style: dashed; color: var(--muted); box-shadow: none; min-height: 150px; font-weight: 600; }

/* ---------- kanban ---------- */
.board { display: flex; gap: 14px; height: 100%; padding: 18px 24px; overflow-x: auto; align-items: flex-start; }
.column { flex: 0 0 296px; display: flex; flex-direction: column; max-height: 100%; background: #ebebef; border-radius: 12px; }
.column-head { display: flex; align-items: center; gap: 8px; padding: 11px 12px; background: var(--surface); border-radius: 12px 12px 0 0; border-top: 4px solid var(--phase, #64748b); margin-bottom: 8px; box-shadow: 0 1px 0 var(--border); }
.column-head h3 { margin: 0; font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.count { font-size: 11.5px; background: #ebebef; color: var(--muted); border-radius: 5px; padding: 1px 7px; font-weight: 700; }
.col-alert { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 700; }
.col-alert .ico { width: 13px; height: 13px; }
.col-alert.red { color: var(--danger); }
.col-alert.amber { color: #d97706; }
.column-body { flex: 1; overflow-y: auto; padding: 0 8px 10px; min-height: 80px; display: flex; flex-direction: column; gap: 8px; }
.add-card { display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px dashed #c5c5cd; background: transparent; color: var(--muted); border-radius: 9px; padding: 9px; cursor: pointer; font-weight: 600; flex: none; }
.add-card:hover { background: var(--surface); color: var(--text); border-color: var(--ink); }
.drop-ph { height: 64px; border-radius: 10px; border: 2px dashed var(--brand); background: var(--brand-soft); flex: none; }
.new-phase { flex: 0 0 230px; height: 48px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px dashed var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--muted); cursor: pointer; font-weight: 600; }
.new-phase:hover { color: var(--text); border-color: var(--ink); }

.card { background: var(--surface); border-radius: 10px; padding: 12px 13px; box-shadow: var(--shadow); cursor: pointer; border: 1px solid transparent; flex: none; position: relative; transition: border-color .12s, box-shadow .12s; }
.card:hover { border-color: #c9c9d1; box-shadow: var(--shadow-md); }
.card.dragging { opacity: .4; }
.card.is-final { opacity: .62; }
.card.is-final:hover { opacity: 1; }
.card.is-focus { border: 2px solid var(--focus); box-shadow: 0 0 0 3px rgba(249, 115, 22, .14), var(--shadow); }
.card-top { margin-bottom: 4px; }
.card-title { font-weight: 700; font-size: 14px; margin: 2px 0 6px; word-break: break-word; padding-right: 22px; }
.card-client { font-size: 12px; color: var(--muted); font-weight: 600; margin: -3px 0 7px; display: flex; align-items: center; gap: 5px; }
.card-client .ico { width: 13px; height: 13px; }
.pill { display: inline-block; font-size: 10.5px; font-weight: 700; border-radius: 5px; padding: 2px 7px; line-height: 1.35; letter-spacing: .01em; white-space: nowrap; }
.prio-sem_pressa { background: #12b76a; color: #fff; }
.prio-normal { background: #ebebef; color: #3f3f46; }
.prio-o_quanto_antes { background: #fdc22d; color: #3d2600; }
.prio-urgente { background: #e50914; color: #fff; }
.prio-prioridade_maxima { background: #0f0f10; color: #fff; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 5px; white-space: nowrap; }
.badge .ico { width: 12px; height: 12px; }
.badge.expired { color: var(--danger); background: var(--danger-soft); }
.badge.late { color: var(--warn); background: var(--warn-soft); }
.badge.done { color: var(--ok); background: var(--ok-soft); }
.badge.canceled { color: #475467; background: #f2f4f7; }
.badge.neutral { color: var(--muted); background: #f2f2f5; }
.card-field { margin-bottom: 7px; }
.card-field .k { font-size: 10px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; }
.card-field .v { font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-field .v.chip { display: inline-block; max-width: 100%; background: #f2f2f5; border-radius: 5px; padding: 1px 7px; margin-top: 2px; }
.due { display: flex; align-items: center; gap: 6px; font-size: 12px; margin: 8px 0 6px; color: var(--muted); }
.due-chip { padding: 2px 7px; border-radius: 5px; background: #ebebef; color: var(--text); font-weight: 600; white-space: nowrap; }
.due-chip.expired { background: var(--danger); color: #fff; }
.due-chip.soon { background: #f59e0b; color: #fff; }
.card-foot { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; border-top: 1px solid #f0f0f3; padding-top: 8px; margin-top: 4px; }
.card-foot span { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; }
.card-foot .ico { width: 13px; height: 13px; }
.card-foot .late-time { color: #d97706; }
.card-foot .avatars { margin-left: auto; display: flex; }
.card-foot .avatars .avatar { border: 2px solid var(--surface); margin-left: -6px; }
.focus-btn { position: absolute; top: 9px; right: 9px; border: 0; background: transparent; color: var(--faint); cursor: pointer; padding: 3px; border-radius: 6px; opacity: 0; display: inline-flex; }
.card:hover .focus-btn, .focus-btn.on { opacity: 1; }
.focus-btn:hover { background: var(--focus-soft); color: var(--focus); }
.focus-btn.on { color: var(--focus); }
.card:has(.focus-banner) .focus-btn { top: 36px; }
.focus-banner { margin: -12px -13px 10px; padding: 5px 13px; background: var(--focus); color: #fff; font-weight: 800; font-size: 11px; letter-spacing: .06em; border-radius: 8px 8px 0 0; }
.card.is-focus .focus-banner { margin: -11px -12px 10px; }
.focus-banner.missed { background: #fef0c7; color: #93370d; letter-spacing: 0; font-weight: 700; }
.btn.focus-filter.on { background: var(--focus-soft); border-color: var(--focus); color: #c2410c; }
.btn.focus-toggle.on { background: var(--focus); border-color: var(--focus); color: #fff; }
.focus-check { margin: 4px 0 6px; padding: 11px 12px; background: var(--focus-soft); border: 1px solid #fed7aa; border-radius: 9px; width: 100%; font-weight: 600; }

/* ---------- tabelas ---------- */
.table-wrap { padding: 18px 24px; }
.table-scroll { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--surface); }
table.grid th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 11px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; cursor: pointer; user-select: none; background: var(--surface); }
table.grid th.nosort { cursor: default; }
table.grid td { padding: 11px 12px; border-bottom: 1px solid #f0f0f3; vertical-align: middle; }
table.grid tbody tr.clickable { cursor: pointer; }
table.grid tbody tr.clickable:hover { background: var(--surface-2); }
table.grid tr.selected { background: var(--brand-soft); }
table.grid tfoot td { font-weight: 700; border-top: 2px solid var(--border-strong); border-bottom: 0; }
.table-scroll table.grid td { white-space: nowrap; }
.table-card { border: 1px solid var(--border); border-radius: 12px; overflow: auto; background: var(--surface); }
.phase-tag { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 600; }
.phase-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--phase, #64748b); flex: none; }
.late-num { color: var(--danger); font-weight: 700; }

/* ---------- calendário ---------- */
.cal { padding: 18px 24px; }
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.cal-head h2 { margin: 0 8px; font-size: 18px; text-transform: capitalize; min-width: 170px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--border); gap: 1px; }
.cal-dow { background: var(--surface-2); padding: 8px 10px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.cal-day { background: var(--surface); min-height: 118px; padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-day.other { background: var(--surface-2); }
.cal-day.other .cal-num { color: var(--faint); }
.cal-num { font-size: 12px; font-weight: 700; padding: 2px 6px; align-self: flex-start; border-radius: 6px; }
.cal-day.today .cal-num { background: var(--brand); color: #fff; }
.cal-item { display: block; width: 100%; text-align: left; border: 0; border-left: 3px solid var(--prio, #9d9da6); background: #f4f4f6; border-radius: 5px; padding: 3px 6px; font-size: 11.5px; font-weight: 600; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-item:hover { background: #e9e9ee; }
.cal-item.done { text-decoration: line-through; color: var(--muted); }
.cal-item.expired { background: var(--danger-soft); }
.cal-more { border: 0; background: none; color: var(--muted); font-size: 11.5px; font-weight: 700; cursor: pointer; text-align: left; padding: 2px 6px; }

/* ---------- relatórios ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: var(--surface); }
.kpi .k { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.kpi .v { font-size: 26px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi .sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.kpi.red .v { color: var(--danger); }
.kpi.amber .v { color: #d97706; }
.kpi.green .v { color: var(--ok); }
.report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 18px; }
.report-filters { padding-bottom: 6px; }
.rf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 14px; }
.rf-note { margin: 0 0 10px; font-size: 12.5px; }
.report-section { font-size: 17px; margin: 32px 0 14px; }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 40px; align-items: center; gap: 10px; font-size: 12.5px; }
.bar-row .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.bar-track { height: 10px; background: #f0f0f3; }
.bar-fill { height: 100%; border-radius: 0 4px 4px 0; background: var(--ink); min-width: 2px; }
.bar-row .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.overdue-row { display: flex; justify-content: space-between; gap: 8px; cursor: pointer; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.seg-ok { background: #1c1c1f; }
.seg-none { background: #a3a3ad; }
.seg-late { background: #e50914; }
.plot { position: relative; height: 220px; border-bottom: 1px solid var(--border-strong); border-top: 1px dashed var(--border); padding-left: 34px; }
.y-max { position: absolute; left: 0; top: -8px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cols { display: flex; align-items: flex-end; gap: 3px; height: 100%; }
.col { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; min-width: 0; }
.col:hover { background: rgba(15, 15, 16, .04); }
.stack { width: 100%; max-width: 36px; display: flex; flex-direction: column-reverse; gap: 2px; border-radius: 4px 4px 0 0; overflow: hidden; min-height: 3px; }
.stack .seg { min-height: 2px; flex-basis: 0; }
.xlabels { display: flex; gap: 3px; padding-left: 34px; margin-top: 6px; }
.xlabels span { flex: 1; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: visible; min-width: 0; }
.chart-tip { display: none; position: absolute; top: 8px; width: 180px; background: var(--ink); color: #fff; border-radius: 8px; padding: 8px 10px; font-size: 12px; pointer-events: none; z-index: 2; box-shadow: var(--shadow-lg); }
.chart-tip .muted { color: #c9c9d1; }
.hstack { display: flex; gap: 2px; height: 100%; border-radius: 0 4px 4px 0; overflow: hidden; min-width: 3px; }
.hstack .seg { flex-basis: 0; }

/* ---------- configurações ---------- */
.edit-list { display: flex; flex-direction: column; gap: 8px; }
.edit-row { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 10px; flex-wrap: wrap; background: var(--surface); }
.edit-row .input { height: 34px; }
.edit-row .name-input { flex: 1 1 200px; }
.swatch { width: 26px; height: 26px; border-radius: 7px; border: 1px solid rgba(0, 0, 0, .1); cursor: pointer; padding: 0; flex: none; }
.swatches { display: grid; grid-template-columns: repeat(6, 26px); gap: 6px; padding: 4px; }
.type-tag { font-size: 11.5px; color: var(--muted); background: #f2f2f5; padding: 3px 8px; border-radius: 5px; white-space: nowrap; font-weight: 600; }
.copy-row { display: flex; gap: 8px; }
.copy-row .input { flex: 1; min-width: 0; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 14px; }
.rule { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; display: flex; gap: 14px; align-items: flex-start; background: var(--surface); }
.rule + .rule { margin-top: 10px; }
.rule.off { opacity: .55; }
.rule .rule-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.rule h3 { margin: 0 0 4px; font-size: 14px; }
.rule ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; }
.action-row { border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-bottom: 10px; background: var(--surface-2); }
.action-row .row-top { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }

/* ---------- card (modal) ---------- */
.card-modal { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); min-height: 520px; }
.card-modal .left { padding: 20px 24px; border-right: 1px solid var(--border); }
.card-modal .right { padding: 20px 24px; background: var(--surface-2); border-radius: 0 0 14px 0; }
.card-modal-head { padding: 18px 24px 14px; border-bottom: 1px solid var(--border); border-top: 5px solid var(--phase, #64748b); border-radius: 14px 14px 0 0; }
.card-modal-head .top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.title-input { width: 100%; font-size: 21px; font-weight: 800; border: 1px solid transparent; border-radius: 8px; padding: 4px 7px; margin-left: -8px; outline: none; background: transparent; letter-spacing: -.02em; }
.title-input:hover:not(:disabled) { border-color: var(--border); }
.title-input:focus { border-color: var(--ink); background: var(--surface); }
.readonly-note { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #f2f2f5; border-radius: 9px; font-size: 12.5px; color: var(--muted); margin-bottom: 16px; font-weight: 600; }
.move-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; padding: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; }
.move-bar select { width: auto; flex: 1; min-width: 160px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 15px; background: var(--surface); cursor: pointer; font-size: 12.5px; font-weight: 600; }
.chip:hover { background: var(--bg); border-color: var(--ink); }
.chip .ico { width: 14px; height: 14px; }
.card-section { scroll-margin-top: 20px; }
.section-title { font-size: 13.5px; font-weight: 800; margin: 24px 0 10px; display: flex; align-items: center; gap: 7px; }
.section-sub { margin: -4px 0 12px; font-size: 12px; }
.saved { font-size: 12px; color: var(--ok); opacity: 0; transition: opacity .3s; font-weight: 600; }
.saved.show { opacity: 1; }
.check-item { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.check-item input[type=checkbox] { width: 16px; height: 16px; flex: none; accent-color: var(--brand); }
.check-item .txt { flex: 1; }
.check-item.done .txt { text-decoration: line-through; color: var(--muted); }
.progress { height: 6px; background: #ebebef; border-radius: 3px; margin-bottom: 8px; }
.progress div { height: 100%; background: var(--ok); border-radius: 3px; }
.meta { font-size: 12px; color: var(--muted); margin-top: 26px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.status-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.status-box > div { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.status-box .k { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.status-box .v { font-weight: 700; margin-top: 3px; font-size: 13px; }
.status-box .v.red { color: var(--danger); }
.status-box .v.green { color: var(--ok); }
.moves-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
.moves-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.moves-table th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface-2); }
.moves-table td { padding: 9px 10px; border-bottom: 1px solid #f0f0f3; vertical-align: top; }
.moves-table tr:last-child td { border-bottom: 0; }
.moves-table .when { white-space: nowrap; font-weight: 600; }
.moves-table .flow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.moves-table .flow .ico { width: 13px; height: 13px; color: var(--faint); }
.phase-times { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.timeline { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.tl-item { display: flex; gap: 10px; }
.tl-item .bubble { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px; flex: 1; white-space: pre-wrap; word-break: break-word; }
.tl-item .who { font-size: 12px; color: var(--muted); margin-bottom: 4px; display: flex; justify-content: space-between; gap: 8px; }
.tl-item .who b { color: var(--text); }
.mention { color: var(--brand); font-weight: 700; }
.tl-event { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; padding-left: 4px; line-height: 1.45; }
.tl-event .ico { width: 14px; height: 14px; margin-top: 1px; }
.tl-event b { color: var(--text); }
.change s { color: var(--faint); }
.link-del { border: 0; background: none; color: var(--faint); cursor: pointer; font-size: 12px; padding: 0; }
.link-del:hover { color: var(--danger); }
.mention-box { position: relative; }
.mention-list { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; z-index: 5; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 4px; }
.mention-list button { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: transparent; padding: 7px 8px; border-radius: 6px; cursor: pointer; text-align: left; font-weight: 600; }
.mention-list button:hover, .mention-list button.active { background: var(--bg); }
.att-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.att-item { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border: 1px solid var(--border); border-radius: 10px; }
.att-thumb { width: 40px; height: 40px; border-radius: 7px; background: #f2f2f5; display: grid; place-items: center; overflow: hidden; flex: none; color: var(--muted); }
.att-thumb img { width: 100%; height: 100%; object-fit: cover; }
.att-info { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 12px; }
.att-name { border: 0; background: none; padding: 0; text-align: left; font-size: 13.5px; font-weight: 600; color: var(--text); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-name:hover { color: var(--brand); }
.dropzone { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px; border: 2px dashed var(--border-strong); border-radius: 10px; color: var(--muted); cursor: pointer; font-size: 12.5px; text-align: center; margin-bottom: 6px; font-weight: 600; }
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }

/* ---------- minhas tarefas ---------- */
.task-group { margin-bottom: 24px; }
.task-group h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.task-group.hot h3 { color: var(--focus); }
.task-group.red h3 { color: var(--danger); }
.task { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; margin-bottom: 8px; box-shadow: var(--shadow); }
.task:hover { border-color: var(--ink); }
.task.is-focus { border: 2px solid var(--focus); }
.task .main-info { flex: 1; min-width: 0; }
.task .main-info b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task .main-info span { font-size: 12px; color: var(--muted); }
.task .side { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- clientes ---------- */
.client-head { display: flex; gap: 18px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.client-logo { width: 60px; height: 60px; border-radius: 16px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 21px; font-weight: 800; flex: none; }
.client-logo.sm { width: 34px; height: 34px; border-radius: 9px; font-size: 12px; }
.client-head h1 { margin: 0; font-size: 22px; font-weight: 800; }
.client-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.client-links span, .client-links a { display: inline-flex; align-items: center; gap: 5px; }
.client-links .ico { width: 14px; height: 14px; }
.client-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.info-list { display: grid; grid-template-columns: 1fr; gap: 12px; }
.info-list .k { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.info-list .v { margin-top: 2px; font-weight: 500; word-break: break-word; white-space: pre-wrap; }

/* ---------- acessos ---------- */
.role-card { border: 1px solid var(--border); border-radius: 12px; padding: 16px; background: var(--surface); }
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.role-card h3 { margin: 0; font-size: 15px; }
.role-card .perm-list { display: flex; flex-direction: column; gap: 9px; margin: 14px 0; }
.role-card .perm-list .check { align-items: flex-start; line-height: 1.35; }
.role-card .perm-list .check input { margin-top: 1px; flex: none; }
.matrix td select { height: 32px; min-width: 150px; }
.matrix td select.override { border-color: var(--ink); font-weight: 700; }
.level-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.level-legend b { color: var(--text); }

/* ---------- formulário público ---------- */
.public { min-height: 100vh; background: var(--bg); padding: 40px 16px; }
.public-box { max-width: 660px; margin: 0 auto; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-md); overflow: hidden; }
.public-head { padding: 28px 30px; color: #fff; background: var(--ink); position: relative; overflow: hidden; }
.public-head::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(229, 9, 20, .55), transparent 70%); }
.public-head h1 { margin: 14px 0 4px; font-size: 22px; font-weight: 800; position: relative; z-index: 1; }
.public-head p { margin: 0; color: #c9c9d1; white-space: pre-wrap; position: relative; z-index: 1; }
.public-head .brand { position: relative; z-index: 1; }
.public-body { padding: 26px 30px; }

/* ---------- responsivo ---------- */
@media (max-width: 960px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 70; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .sidebar.open + .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(15, 15, 16, .4); }
  .menu-toggle { display: inline-flex !important; }
  .client-layout { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}
@media (max-width: 760px) {
  .card-modal { grid-template-columns: minmax(0, 1fr); }
  .card-modal .left { border-right: 0; border-bottom: 1px solid var(--border); }
  .card-modal .right { border-radius: 0 0 14px 14px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .search input { width: 150px; }
  .card-modal .left, .card-modal .right { padding: 16px; }
  .move-bar select { min-width: 0; flex: 1 1 100%; }
  .move-bar .btn { flex: 1 1 auto; justify-content: center; }
  .title-input { font-size: 17px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi { padding: 12px; }
  .kpi .v { font-size: 22px; }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hero-stat { min-width: 0; padding: 10px 12px; }
  .hero-stat b { font-size: 20px; }
  .hero-stat span { font-size: 11px; }
  .page-header, .tabsbar { padding-left: 16px; padding-right: 16px; }
  .page, .board, .table-wrap, .cal { padding-left: 16px; padding-right: 16px; }
  .bar-row { grid-template-columns: 100px 1fr 34px; }
  .overlay { padding: 0; overflow-x: hidden; }
  .modal { border-radius: 0; min-height: 100vh; overflow-x: hidden; }
  .cal-day { min-height: 80px; }
  .page-title p { display: none; }
}

/* ---------- impressão / PDF do card ---------- */
@media print {
  body { background: #fff; }
  #app, #toasts, .no-print { display: none !important; }
  .overlay { position: static; background: none; padding: 0; overflow: visible; display: block; }
  .overlay:not(:last-child) { display: none; }
  .modal { box-shadow: none; max-width: none; border-radius: 0; }
  .card-modal { display: block; }
  .card-modal .left { border: 0; }
  .card-modal .right { background: none; }
  .input { border-color: #e6e6ea; }
}
.pipe-tile .badge { align-self: flex-start; }
.table-card table.grid td { white-space: nowrap; }

/* ---------- urgência ---------- */
.urgency { display: flex; flex-wrap: wrap; gap: 6px; }
.urgency-opt { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border: 1px solid var(--border-strong); border-radius: 18px; background: var(--surface); cursor: pointer; font-weight: 600; font-size: 12.5px; color: var(--muted); transition: border-color .15s, background .15s, color .15s; }
.urgency-opt .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--prio); flex: none; }
.urgency-opt:hover:not(:disabled) { border-color: var(--prio); color: var(--text); }
.urgency-opt.on { border-color: var(--prio); box-shadow: inset 0 0 0 1px var(--prio); background: color-mix(in srgb, var(--prio) 9%, #fff); color: var(--text); }
.urgency-opt:disabled { cursor: default; opacity: .6; }
.pill-btn { border: 0; cursor: pointer; font-family: inherit; }
.pill-btn:hover { filter: brightness(.92); }
.menu .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }

/* ---------- campanhas ---------- */
.multi { display: flex; flex-wrap: wrap; gap: 6px; }
.multi-opt { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid var(--border-strong); border-radius: 8px; cursor: pointer; font-size: 12.5px; font-weight: 600; background: var(--surface); }
.multi-opt input { accent-color: var(--brand); }
.multi-opt.on { border-color: var(--ink); background: var(--surface-2); }
.chips-inline { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.chips-inline .chip { margin-top: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.ad-panel { border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; background: var(--surface); }
.ad-title { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 13.5px; }
.ad-title .ico { color: var(--brand); }
.ad-panel p { margin: 4px 0 10px; font-size: 12.5px; }
.ad-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.ad-buttons .btn .ico { width: 13px; height: 13px; }
.btn.dark .dot { box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.connections { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.conn-item { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 12px; border: 1px dashed var(--border-strong); border-radius: 10px; background: var(--surface-2); cursor: pointer; text-align: left; font-size: 12.5px; }
.conn-item:hover { border-color: var(--ink); }
.conn-item .ico { margin-left: auto; width: 14px; height: 14px; color: var(--faint); }
.map-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 12px; align-items: center; font-size: 12.5px; font-weight: 600; }
.map-grid .input { height: 34px; }

/* ---------- busca global (Ctrl+K) ---------- */
.search-overlay { align-items: flex-start; padding-top: 12vh; }
.search-box { display: flex; flex-direction: column; max-height: 70vh; }
.search-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.search-bar .ico { width: 18px; height: 18px; color: var(--muted); }
.search-input { flex: 1; border: 0; outline: none; background: transparent; font-size: 16px; font-weight: 500; }
kbd { font-family: inherit; font-size: 11px; font-weight: 700; padding: 2px 6px; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; color: var(--muted); background: var(--surface-2); white-space: nowrap; }
.search-results { overflow-y: auto; padding: 6px; }
.search-head { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 10px 10px 4px; }
.search-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; text-align: left; }
.search-item.active { background: var(--bg); }
.search-item b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-item small { color: var(--muted); font-size: 11.5px; }
.search-item .grow { min-width: 0; }
.search-emoji { width: 16px; text-align: center; }
.client-logo.xs { width: 22px; height: 22px; border-radius: 6px; font-size: 9px; }
.shortcuts { display: flex; flex-direction: column; gap: 10px; }
.shortcuts div { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* ---------- cronômetro ---------- */
.timer-pill { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--border-strong); border-radius: 20px; padding: 2px 2px 2px 4px; background: var(--surface); }
.timer-open { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; cursor: pointer; padding: 4px 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.timer-title { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--muted); }
.timer-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); display: inline-block; animation: pulse 1.4s ease-in-out infinite; flex: none; }
@keyframes pulse { 50% { opacity: .3; } }
.btn.timer-running { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-variant-numeric: tabular-nums; }
.time-summary { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.time-summary > div { border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; min-width: 120px; }
.time-summary .k { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.time-summary .v { font-weight: 800; margin-top: 2px; }
.time-form { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.time-form .input { height: 34px; flex: 1 1 140px; }
.time-list { display: flex; flex-direction: column; gap: 4px; }
.time-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; font-size: 12.5px; }
.time-row:hover { background: var(--surface-2); }
.time-row b { min-width: 74px; font-variant-numeric: tabular-nums; }

/* ---------- aprovação do cliente ---------- */
.approval-box { border: 1px dashed var(--border-strong); border-radius: 10px; padding: 12px; background: var(--surface-2); }
.approval-history { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.approval-item { border-left: 3px solid var(--border-strong); padding: 6px 10px; font-size: 12.5px; }
.approval-item.approved { border-color: #12b76a; }
.approval-item.changes { border-color: #f79009; }
.approval-comment { margin-top: 4px; padding: 8px 10px; background: var(--surface-2); border-radius: 8px; white-space: pre-wrap; font-size: 13px; }
.public-box.wide { max-width: 880px; }
.proof-desc { white-space: pre-wrap; margin-bottom: 20px; line-height: 1.55; }
.proof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 20px; }
.proof-item { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding-bottom: 10px; background: var(--surface); }
.proof-item > .btn { margin: 0 10px; }
.proof-img { aspect-ratio: 1; background: var(--bg); display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.proof-img img { width: 100%; height: 100%; object-fit: contain; }
.proof-file { aspect-ratio: 2; background: var(--bg); display: grid; place-items: center; color: var(--muted); }
.proof-file .ico { width: 28px; height: 28px; }
.proof-name { font-size: 12.5px; font-weight: 600; padding: 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proof-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 20px; }
.proof-links .label { width: 100%; }
.proof-form { border-top: 1px solid var(--border); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.proof-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.proof-actions .btn { height: 44px; flex: 1 1 180px; font-size: 14px; }
.btn.approve { background: #12b76a; border-color: #12b76a; color: #fff; }
.btn.approve:hover { background: #039855; }
.proof-result { border-radius: 12px; padding: 18px; margin-top: 10px; }
.proof-result.approved { background: var(--ok-soft); }
.proof-result.changes { background: var(--warn-soft); }
.proof-result h2 { margin: 0 0 6px; }

/* ---------- lista: ações em massa ---------- */
.check-col { width: 36px; }
.check-col input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
.bulk-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 12px; background: var(--ink); color: #fff; border-radius: 12px; position: sticky; top: 0; z-index: 3; }
.bulk-bar .input { width: auto; height: 32px; background: var(--ink-2); color: #fff; border-color: var(--ink-3); }
.bulk-bar .btn { background: var(--ink-2); border-color: var(--ink-3); color: #fff; }
.bulk-bar .btn.ghost { background: transparent; border-color: transparent; }
.bulk-group { display: inline-flex; gap: 6px; }

/* ---------- carga da equipe ---------- */
.workload { display: flex; flex-direction: column; height: 100%; }
.workload-bar { display: flex; align-items: center; gap: 14px; padding: 14px 24px 0; flex-wrap: wrap; font-size: 12.5px; }
.workload-bar .input { height: 32px; }
.lane .column-head { align-items: flex-start; }
.lane-head h3 { font-size: 13.5px; }
.lane-stats { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11.5px; color: var(--muted); margin-top: 2px; font-weight: 600; }
.load-bar { height: 4px; background: var(--bg); border-radius: 2px; margin-top: 7px; }
.load-bar div { height: 100%; background: var(--phase); border-radius: 2px; min-width: 2px; }
.lane.empty-lane { flex-basis: 220px; opacity: .8; }
.lane.drop-on { outline: 2px dashed var(--brand); outline-offset: -2px; }

/* ---------- integrações ---------- */
.api-list { margin: 0 0 14px; padding-left: 18px; line-height: 1.9; font-size: 13px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; }
.code-block { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: var(--ink); color: #e4e4e8; padding: 14px 16px; border-radius: 10px; overflow-x: auto; margin: 0; }

/* ---------- modo escuro ---------- */
:root { --column: #ebebef; --chip: #f2f2f5; --line: #f0f0f3; --hover: #ececf0; }
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0b0d;
  --surface: #151518;
  --surface-2: #1b1b1f;
  --border: #2a2a30;
  --border-strong: #3a3a42;
  --text: #ececf1;
  --muted: #a0a0ab;
  --faint: #70707b;
  --brand-soft: rgba(229, 9, 20, .16);
  --danger: #f97066;
  --danger-soft: rgba(240, 68, 56, .16);
  --warn: #fdb022;
  --warn-soft: rgba(247, 144, 9, .16);
  --ok: #47cd89;
  --ok-soft: rgba(18, 183, 106, .16);
  --focus-soft: rgba(249, 115, 22, .16);
  --shadow: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, .45);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, .6);
  --column: #101013;
  --chip: #232328;
  --line: #222227;
  --hover: #24242a;
}
.column, .count { background: var(--column); }
.card-field .v.chip, .badge.neutral, .type-tag, .prio-normal, .due-chip, .att-thumb, .readonly-note { background: var(--chip); }
.badge.canceled { background: var(--chip); }
.card-foot, table.grid td, .moves-table td { border-color: var(--line); }
.bar-track, .progress, .cal-item { background: var(--line); }
.icon-btn:hover, .btn.ghost:hover, .cal-item:hover { background: var(--hover); }
[data-theme="dark"] .prio-normal, [data-theme="dark"] .due-chip, [data-theme="dark"] .badge.canceled { color: var(--text); }
[data-theme="dark"] .notif-item.unread { background: rgba(229, 9, 20, .08); }
[data-theme="dark"] .bar-fill, [data-theme="dark"] .seg-ok { background: #d4d4dc; }
[data-theme="dark"] .prio-prioridade_maxima { background: #f4f4f6; color: #0f0f10; }
[data-theme="dark"] .hero, [data-theme="dark"] .public-head, [data-theme="dark"] .sidebar { background: #050506; }
[data-theme="dark"] .btn.dark { background: #f4f4f6; border-color: #f4f4f6; color: #0f0f10; }
[data-theme="dark"] .client-logo { background: #2a2a30; }
[data-theme="dark"] .card:hover { border-color: #3a3a42; }
[data-theme="dark"] .multi-opt.on { border-color: var(--text); }
[data-theme="dark"] .input:focus { border-color: var(--text); box-shadow: 0 0 0 3px rgba(255, 255, 255, .08); }
[data-theme="dark"] .urgency-opt.on { background: color-mix(in srgb, var(--prio) 18%, var(--surface)); }
[data-theme="dark"] a.btn { color: var(--text); }
[data-theme="dark"] a.btn.primary { color: #fff; }

/* ---------- organizar pipes ---------- */
.nav-label-row { display: flex; align-items: center; justify-content: space-between; padding-right: 4px; }
.nav-edit { border: 0; background: transparent; color: #7c7c86; cursor: pointer; padding: 3px; border-radius: 6px; display: inline-flex; }
.nav-edit .ico { width: 13px; height: 13px; }
.nav-edit:hover { color: #fff; background: var(--ink-2); }
.organize-row { cursor: grab; }
.organize-row.dragging { opacity: .4; }
.organize-row .grip { color: var(--faint); display: inline-flex; }

/* ---------- lixeira, lista paginada, arquivo ---------- */
.toast-action { display: flex; align-items: center; gap: 14px; }
.toast-action button { border: 0; background: transparent; color: #ff6b6b; font-weight: 800; cursor: pointer; padding: 0; }
.list-more { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px; }
.col-note { font-size: 11px; color: var(--faint); margin: 2px 4px 0; line-height: 1.4; }

/* ---------------------------------------------------------------- importar planilhas */
.modal-foot-inner { display: contents; }
.hidden-file { display: none; }
.import-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 20px; border: 2px dashed var(--border); border-radius: 14px; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.import-drop:hover, .import-drop.over { border-color: var(--brand); background: var(--brand-soft, rgba(229, 9, 20, .05)); }
.import-drop svg { width: 28px; height: 28px; color: var(--brand); }
.import-drop.loading { opacity: .6; pointer-events: none; }
.import-map { max-height: 46vh; overflow: auto; }
.import-map td { vertical-align: middle; }
.import-sample { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.import-map .small-select { height: 32px; min-width: 210px; }
.import-options { display: grid; gap: 10px; margin-top: 16px; }
.import-done { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--ok-soft, #ecfdf3); font-weight: 600; line-height: 1.6; margin-bottom: 14px; }
.import-done svg { width: 22px; height: 22px; color: var(--ok, #12b76a); flex: none; margin-top: 2px; }
.import-warnings { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: 13px; }
.import-warnings ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.6; }
.notice { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 10px; font-size: 13px; margin: 0 0 12px; }
.notice svg { width: 16px; height: 16px; flex: none; }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.info { background: var(--surface-2, #f4f4f5); }

/* ---------------------------------------------------------------- segurança */
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
hr.sep { border: 0; border-top: 1px solid var(--border); margin: 20px 0 16px; }
.code-input { font-size: 22px; letter-spacing: 6px; text-align: center; font-variant-numeric: tabular-nums; }
.totp-setup ol { margin: 0 0 16px; padding-left: 20px; line-height: 1.7; }
.totp-qr { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.totp-qr canvas { border-radius: 10px; border: 1px solid var(--border); width: 190px; height: 190px; image-rendering: pixelated; }
.totp-secret { display: block; font-size: 15px; font-weight: 700; letter-spacing: 1px; padding: 8px 10px; background: var(--surface-2); border-radius: 8px; word-break: break-all; }
.recovery-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0 0 12px; }
.recovery-codes code { padding: 8px; text-align: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; font-size: 15px; font-weight: 700; letter-spacing: 1px; }
.reminder { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 18px; border-radius: 14px; border: 1px solid var(--brand); background: var(--brand-soft); flex-wrap: wrap; }
.reminder > svg { width: 22px; height: 22px; color: var(--brand); flex: none; }
.reminder > div { flex: 1 1 260px; }
.reminder p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
tr.audit-fail td:nth-child(3) { color: var(--danger); }

/* ---------------------------------------------------------------- avisos, painel do gestor, prazos, visões */
.notif-enable { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 0 6px; padding: 9px 10px; border: 1px dashed var(--brand); border-radius: 10px; background: var(--brand-soft); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; text-align: left; }
.notif-enable svg { width: 16px; height: 16px; color: var(--brand); flex: none; }
.install-steps h3 { margin: 14px 0 4px; font-size: 14px; }
.install-steps h3:first-child { margin-top: 0; }
.install-steps ol { margin: 0; padding-left: 20px; line-height: 1.7; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.dash-grid .panel { margin-bottom: 0; }
.week-bars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; align-items: end; height: 190px; margin-top: 10px; }
.week-bar { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; font-size: 11px; color: var(--muted); }
.week-bar b { color: var(--text); font-size: 12px; min-height: 15px; }
.week-bar .wk-track { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.week-bar .wk-fill { width: 100%; background: var(--text); border-radius: 6px 6px 2px 2px; display: flex; align-items: flex-end; overflow: hidden; min-height: 2px; }
.week-bar .wk-late { width: 100%; background: var(--brand); }
.load-list { display: grid; gap: 8px; max-height: 240px; overflow: auto; }
.load-row { display: grid; grid-template-columns: auto 120px 1fr auto auto; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-size: 13px; }
.load-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.load-track { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.load-fill { height: 100%; background: var(--text); border-radius: 99px; display: flex; justify-content: flex-end; overflow: hidden; }
.load-late { height: 100%; background: var(--brand); }
td.num { font-variant-numeric: tabular-nums; }
td.num.bad { color: var(--danger); font-weight: 700; }
td.num.warn { color: #d97706; font-weight: 700; }
.due-rules { display: grid; gap: 8px; }
.due-rule { display: grid; grid-template-columns: 170px 110px auto; align-items: center; gap: 10px; }
.saved-views { border-top: 1px solid var(--border); margin-top: 10px; padding-top: 6px; }
.saved-view { display: flex; align-items: center; }
.saved-view .menu-item { flex: 1; }
.saved-view .icon-btn.small { width: 26px; height: 26px; }
@media (max-width: 640px) {
  .load-row { grid-template-columns: auto 1fr auto auto; }
  .load-track { display: none; }
  .due-rule { grid-template-columns: 1fr 90px; }
  .due-rule .muted { display: none; }
}

/* ---------------------------------------------------------------- limite por fase, senha, feriados */
.column-head .count.full { background: #fef0c7; color: #b54708; }
.column-head .count.over { background: var(--danger); color: #fff; }
.column.over-wip .column-head { box-shadow: inset 0 -2px 0 var(--danger); }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.forgot-link { display: block; margin: -4px 0 14px; font-size: 13px; }
.holiday-list { display: grid; gap: 6px; margin-bottom: 8px; }
.holiday { display: grid; grid-template-columns: 96px 130px 1fr; gap: 10px; font-size: 13.5px; }
@media (max-width: 640px) { .holiday { grid-template-columns: 90px 1fr; } .holiday .muted { display: none; } }

/* ---------------------------------------------------------------- modelos, seguir, acessos, segurança */
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.active:hover { background: var(--ink); opacity: .9; }
.template-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 14px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--border-strong); }
.template-pick > svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.template-pick select { width: auto; min-width: 220px; flex: 1 1 220px; }
.template-pick .muted { font-size: 12.5px; }
.session-list { display: grid; gap: 8px; margin: 4px 0 14px; }
.session-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; }
.session-row.current { border-color: var(--ok); }
.session-row > svg { width: 20px; height: 20px; flex: none; color: var(--muted); }
.session-info { flex: 1; min-width: 0; }
.session-info .muted { font-size: 12px; margin-top: 2px; overflow-wrap: anywhere; }
.admin-2fa { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.plain-list { margin: 0; padding-left: 18px; line-height: 1.8; font-size: 13.5px; }

/* ---------------------------------------------------------------- Make */
.make-hero { display: flex; gap: 16px; align-items: flex-start; }
.make-hero p { margin: 4px 0 0; color: var(--muted); line-height: 1.55; }
.make-logo { width: 48px; height: 48px; border-radius: 12px; background: #6d00cc; color: #fff; display: grid; place-items: center; flex: none; }
.make-logo svg { width: 24px; height: 24px; }
.make-steps { margin: 0 0 14px; padding-left: 20px; line-height: 1.8; font-size: 13.5px; }
.make-block { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; background: var(--surface); }
.make-block summary { cursor: pointer; padding: 10px 12px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 13px; }
.make-block summary .muted { font-size: 12.5px; }
.make-code { position: relative; border-top: 1px solid var(--border); }
.make-code .btn { position: absolute; top: 8px; right: 8px; }
.make-code pre { margin: 0; padding: 12px; max-height: 320px; overflow: auto; font-size: 12px; line-height: 1.45; background: var(--surface-2); border-radius: 0 0 10px 10px; }
.make-module { border-top: 1px solid var(--border); padding: 14px 0 6px; }
.make-module:first-of-type { border-top: 0; padding-top: 0; }
.make-module-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.make-module-head code { font-size: 12px; color: var(--muted); }
.make-module p { margin: 6px 0 10px; font-size: 13px; }
@media (max-width: 640px) { .make-hero { flex-direction: column; } }

/* ---------------------------------------------------------------- Meu dia (início) */
.day-board { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1.15fr); gap: 16px; margin: 0 0 28px; }
.day-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.day-col { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.day-col.hot { border-top: 3px solid var(--focus, #f79009); }
.day-col.red { border-top: 3px solid var(--danger); }
.day-col.amber { border-top: 3px solid #fdb022; }
.day-col.feed { border-top: 3px solid var(--ink); }
.day-col-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 2px 6px; font-size: 13px; }
.day-col-head .count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--border); font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.day-empty { font-size: 12.5px; margin: 6px 2px; }
.day-more { font-size: 12px; font-weight: 600; color: var(--brand); text-decoration: none; padding: 4px 2px 0; }
.mini-task { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 1px solid transparent; border-radius: 10px; background: var(--surface-2); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.mini-task:hover { border-color: var(--border-strong); background: var(--surface); }
.mini-icon { font-size: 16px; flex: none; }
.mini-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mini-main b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-main small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prio-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.feed-item { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; line-height: 1.4; }
.feed-item:hover { background: var(--surface-2); }
.feed-item.unread { background: var(--brand-soft); }
.feed-item small { color: var(--muted); font-size: 11px; }

/* ---------------------------------------------------------------- Minhas tarefas */
.task-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.summary-chip { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.summary-chip b { font-size: 22px; font-weight: 800; }
.summary-chip span { font-size: 12px; color: var(--muted); font-weight: 600; }
.summary-chip.hot b { color: var(--focus, #f79009); }
.summary-chip.red b { color: var(--danger); }
.task-filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-chip { height: 32px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 16px; background: var(--surface); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--muted); }
.filter-chip:hover { color: var(--text); border-color: var(--ink); }
.filter-chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.task:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.task-actions { display: inline-flex; gap: 6px; align-items: center; opacity: .55; transition: opacity .15s; }
.task:hover .task-actions { opacity: 1; }
.task-actions .icon-btn.on { background: var(--focus-soft, #fffaeb); }
.task-actions .btn .ico { width: 13px; height: 13px; }

/* ---------------------------------------------------------------- Minha carteira */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.client-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; transition: box-shadow .15s, border-color .15s; }
.client-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.client-card.has-late { border-left: 3px solid var(--danger); }
.client-card-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.client-card-head .grow { display: flex; flex-direction: column; min-width: 0; }
.client-card-head b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-card-head small { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.client-stats > div { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 10px; background: var(--surface-2); text-align: center; }
.client-stats b { font-size: 18px; font-weight: 800; }
.client-stats span { font-size: 10.5px; color: var(--muted); line-height: 1.2; }
.client-stats .bad b { color: var(--danger); }
.client-stats .warn b { color: #d97706; }
.client-stats .ok b { color: var(--ok); }
.client-next { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; padding: 8px 10px; border: 1px dashed var(--border-strong); border-radius: 10px; background: transparent; font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; color: inherit; margin: 0; }
.client-next .muted { grid-column: 1 / -1; font-size: 11px; }
.client-next b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-next.empty { display: block; cursor: default; }
.client-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.waiting-panel .mini-task { margin-bottom: 6px; }
.stuck-age { font-size: 11.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.stuck-age.bad { color: var(--danger); }

/* ---------------------------------------------------------------- Painel: gargalos */
.neck-list { display: grid; gap: 10px; margin-top: 8px; }
.neck-row { display: grid; grid-template-columns: minmax(0, 170px) 1fr auto; gap: 10px; align-items: center; }
.neck-name { display: flex; flex-direction: column; min-width: 0; }
.neck-name b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.neck-name small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.neck-track { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.neck-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #fdb022, var(--brand)); }
.neck-value { font-size: 12.5px; white-space: nowrap; }
.stuck-list { display: grid; gap: 6px; margin-top: 8px; }

/* ---------------------------------------------------------------- acabamento geral */
.nav-label:first-child { padding-top: 6px; }
.panel { transition: box-shadow .15s; }
.kpi { box-shadow: var(--shadow); }
.kpi .v { line-height: 1.1; }

@media (max-width: 1100px) {
  .day-board { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .day-cols { grid-template-columns: minmax(0, 1fr); }
  .task-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-actions { opacity: 1; }
  .neck-row { grid-template-columns: minmax(0, 1fr) auto; }
  .neck-track { grid-column: 1 / -1; grid-row: 2; }
}
.task { flex-wrap: wrap; }
.task .main-info { flex: 1 1 240px; min-width: 0; }
.task .side { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) {
  .header-actions select { min-width: 0 !important; max-width: 150px; }
  .page-header { overflow: hidden; }
}
