@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #eef1f4;
  --panel: #ffffff;
  --panel-soft: #f7f8fa;
  --line: #d9dbe1;
  --line-strong: #c5c8cf;
  --text: #111111;
  --text-soft: #2b2b2d;
  --muted: #6b6f76;
  --ink: #111111;
  --graphite: #2b2b2d;
  --sidebar: #111111;
  --sidebar-dark: #0c0c0d;
  --sidebar-hover: #232427;
  --orange: #e31b23;
  --orange-deep: #b9141b;
  --green: #23a365;
  --yellow: #f2b84b;
  --cyan: #e31b23;
  --blue: #6b6f76;
  --danger: #c83f3f;
  --link-accent: #d11920;
  --brand-soft: #fdecec;
  --success-soft: #e6f4ec;
  --warning-soft: #fff2dd;
  --info-soft: #eef0f3;
  --neutral-soft: #f0f1f3;
  --shadow: 0 14px 34px rgba(17, 17, 17, 0.07);
  --shadow-soft: 0 6px 18px rgba(17, 17, 17, 0.055);
  --radius: 8px;
  --radius-lg: 14px;
  --font: "Plus Jakarta Sans", "Inter", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Plus Jakarta Sans", "Inter", "Segoe UI Variable", system-ui, sans-serif;
  --font-body: var(--font);
  --font-num: "Space Grotesk", "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --text-xs: 11px;
  --text-sm: 12px;
  --text-md: 14px;
  --text-lg: 16px;
  --text-xl: 20px;
  --text-2xl: 30px;
  --lh-tight: 1.15;
  --lh-copy: 1.6;
  --tracking-label: 0.14em;
  color-scheme: light;
}

/* ── TEMA ESCURO ──────────────────────────────────────
   Sobrescreve apenas as variáveis de superfície/texto.
   As cores de marca (vermelho, verde, amarelo) e o texto
   branco sobre botões coloridos continuam iguais nos 2 temas. */
html[data-theme="dark"] {
  --bg: #0e1014;
  --panel: #181b21;
  --panel-soft: #20242b;
  --line: #2b3039;
  --line-strong: #3a414c;
  --text: #e8eaed;
  --text-soft: #c9ccd2;
  --muted: #969ba4;
  --ink: #e8eaed;
  --graphite: #c9ccd2;
  --sidebar: #121419;
  --sidebar-dark: #0a0c0f;
  --sidebar-hover: #20242b;
  --blue: #8b9099;
  --link-accent: #ffb7ba;
  --brand-soft: #2a1416;
  --success-soft: #16291f;
  --warning-soft: #2c2512;
  --info-soft: #1b212a;
  --neutral-soft: #20242b;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.42);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-size: var(--text-md);
  line-height: var(--lh-copy);
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

/* ════════════════════════════════════════════════════════════
   SISTEMA TIPOGRÁFICO (refino sênior)
   - Títulos: Space Grotesk, tracking negativo + text-wrap balance
   - Números (tabelas, valores, datas): dígitos tabulares alinhados
   ════════════════════════════════════════════════════════════ */
h1, h2, h3, h4,
.page-title,
.page-header__title,
.section-card__head,
.chart-card__title {
  font-family: var(--font-display);
  text-wrap: balance;
}
h1, h2, .page-title, .page-header__title { letter-spacing: -0.028em; line-height: 1.08; }
h3, h4 { letter-spacing: -0.018em; }
p, .ed-hint, .section-card__empty, .page-help, .muted, .login-panel__brand p { text-wrap: pretty; }

/* Dígitos tabulares: alinham colunas de números/datas/valores como num design profissional */
td, th,
.kpi-value, .metric .val, .perf-pct,
.summary-card strong, .summary-card__value, .stat-value, .big-number,
.meta-row strong, .dchart-foot strong, .ddonut-c1,
.inv-value, .inv-stock, .tab-count, .nav-count, .badge,
.cal-event-date strong, .cal-cell {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
/* Valores grandes ganham a face display para presença */
.kpi-value, .metric .val, .summary-card strong, .perf-pct, .big-number {
  font-family: var(--font-num);
  letter-spacing: -0.02em;
}

body.locked {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(227, 27, 35, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(107, 111, 118, 0.12), transparent 26%),
    linear-gradient(135deg, rgba(15, 15, 16, 0.97), rgba(29, 30, 33, 0.97));
}

.login-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.login-panel {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 34px 64px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.login-panel__brand,
.login-panel__form {
  padding: 36px;
}

.login-panel__brand {
  color: #f7fbff;
  background: linear-gradient(180deg, #111111, #232427);
}

.login-badge {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.login-badge img {
  width: 42px;
  height: 42px;
  display: block;
}

.login-kicker {
  margin-top: 18px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  font-size: var(--text-xs);
  font-weight: 700;
  color: #b8bdc4;
}

.login-panel__brand h1 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.login-panel__brand p {
  line-height: 1.72;
  color: rgba(247, 251, 255, 0.76);
}

.login-points {
  margin: 24px 0 0;
  padding-left: 18px;
  line-height: 1.9;
  color: rgba(247, 251, 255, 0.78);
}

.login-panel__form {
  background: var(--panel);
}

.login-panel__form h2 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.login-demo {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--panel-soft);
  border: 1px solid rgba(17, 17, 17, 0.08);
}
.login-server-note {
  min-height: 22px;
  margin: 12px 0 0;
  color: #b46a00;
  font-size: 13px;
  line-height: 1.5;
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.login-form label,
.form-grid label {
  display: grid;
  gap: 6px;
}

.login-form span,
.form-grid span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-soft);
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  font-size: var(--text-md);
  font-weight: 500;
  line-height: 1.5;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(227, 27, 35, 0.5);
  box-shadow: 0 0 0 4px rgba(227, 27, 35, 0.12);
}

textarea {
  min-height: 118px;
  resize: vertical;
}

.login-feedback {
  min-height: 20px;
  margin-top: 12px;
  color: var(--danger);
  font-size: 14px;
}

.btn {
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: white;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.btn--primary {
  background: linear-gradient(180deg, var(--orange), var(--orange-deep));
  box-shadow: 0 12px 24px rgba(227, 27, 35, 0.18);
}

.btn--success {
  background: var(--green);
}

.btn--warning {
  background: var(--yellow);
  color: #593f0a;
}

.btn--info {
  background: var(--graphite);
}

.btn--dark {
  background: var(--sidebar);
}

.btn--teal {
  background: var(--cyan);
  color: white;
}
.btn--teal:hover { background: #3f8793; }

.btn--ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}
.btn--ghost:hover { background: var(--panel-soft); color: var(--text); }

.btn--outline {
  background: var(--panel);
  color: var(--text-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 10px 18px;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
}
.btn--outline:hover { background: var(--panel-soft); }

.btn--danger {
  background: var(--danger);
  color: white;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 10px 18px;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.btn--block {
  width: 100%;
}

.platform-shell {
  min-height: 100vh;
}

.platform-header {
  height: 62px;
  display: grid;
  grid-template-columns: 300px 1fr;
  background: rgba(17, 17, 17, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.brand-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  color: white;
  background: linear-gradient(180deg, #111111, #1d1d20);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.brand-strip strong {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
}

.brand-strip img {
  height: 22px;
  width: auto;
  display: block;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: white;
  padding: 0;
  border-radius: 999px;
  transition: background-color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.menu-toggle img {
  width: 16px;
  height: 16px;
  display: block;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255,255,255,0.2);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
}

.country-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  color: #d8dce1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  color: #d8dce1;
  font-size: 16px;
  line-height: 1;
  transition: background 0.2s, transform 0.2s;
}
.theme-toggle:hover {
  background: rgba(255,255,255,0.10);
  transform: translateY(-1px);
}

.header-user {
  font-size: var(--text-md);
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.01em;
}

.platform-body {
  display: grid;
  grid-template-columns: 300px 1fr;
}

.platform-shell.is-collapsed .platform-header,
.platform-shell.is-collapsed .platform-body {
  grid-template-columns: 86px 1fr;
}

.sidebar {
  min-height: calc(100vh - 54px);
  background: linear-gradient(180deg, var(--sidebar), #1d1d20);
  color: white;
  transition: width 0.2s ease;
}

.profile-card {
  padding: 18px 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    linear-gradient(180deg, rgba(17,17,17,0.18), rgba(17,17,17,0));
}

.profile-avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(227,27,35,0.12), rgba(227,27,35,0.05));
  border: 1px solid rgba(227, 27, 35, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  font-size: 20px;
  font-weight: 800;
}

.profile-avatar img {
  width: 30px;
  height: 30px;
  display: block;
  filter: brightness(0) invert(1);
}

.profile-meta h2 {
  margin: 14px 0 4px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #f7f8fa;
}

.profile-meta p {
  margin: 0;
  color: #b4bac2;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.mini-action {
  min-width: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border-radius: 4px;
  padding: 7px 8px;
  font-size: 11px;
}

.sidebar-nav {
  display: grid;
}

.nav-button {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  text-align: left;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.nav-button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: transparent;
  transition: background-color 0.18s ease;
}

.nav-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: none;
  overflow: hidden;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  border: 1px solid rgba(255,255,255,0.04);
}

.nav-icon img {
  width: 16px;
  height: 16px;
  display: block;
  filter: brightness(0) invert(1);
}

.nav-button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.nav-button:hover .nav-icon,
.nav-button.is-open .nav-icon {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.08);
}

.nav-button.is-active {
  background: rgba(227, 27, 35, 0.12);
  color: white;
  box-shadow: none;
}

.nav-button.is-active::before {
  background: var(--orange);
}

.nav-button.is-active .nav-icon {
  background: rgba(227,27,35,0.14);
  border-color: rgba(227,27,35,0.16);
}

.nav-button.has-active-child {
  background: rgba(255, 255, 255, 0.04);
  color: white;
  box-shadow: none;
}

.nav-button.has-active-child::before {
  background: rgba(255, 255, 255, 0.18);
}

.nav-button.is-open {
  background: rgba(255, 255, 255, 0.03);
}

.nav-button.has-active-child.is-open {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  color: white;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-count--green {
  background: var(--green);
}

.nav-count--orange {
  background: var(--orange);
}

.nav-count--gray {
  background: rgba(255, 255, 255, 0.16);
  color: white;
}

.nav-count--cyan {
  background: var(--cyan);
}

.nav-chevron {
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  font-weight: 700;
  transition: color 0.18s ease;
}

.platform-shell.is-collapsed .profile-meta,
.platform-shell.is-collapsed .nav-button strong,
.platform-shell.is-collapsed .nav-chevron,
.platform-shell.is-collapsed .nav-count,
.platform-shell.is-collapsed .brand-strip strong,
.platform-shell.is-collapsed .mini-action {
  display: none;
}

.platform-shell.is-collapsed .profile-card {
  padding: 16px 8px;
}

.platform-shell.is-collapsed .profile-avatar {
  width: 52px;
  height: 52px;
  margin: 0 auto;
  font-size: 18px;
}

.platform-shell.is-collapsed .nav-button {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 14px 6px;
}

.platform-shell.is-collapsed .nav-icon {
  font-size: 16px;
}

.platform-shell.is-collapsed .nav-button.has-active-child,
.platform-shell.is-collapsed .nav-button.is-open {
  background: var(--sidebar-dark);
}

.workspace {
  padding: 20px 22px 28px;
  background: linear-gradient(180deg, #17191d 0%, #111316 100%);
}

.workspace-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.page-kicker {
  margin: 0;
  color: #949aa3;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 10px;
  font-weight: 600;
}

.page-title {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: #f7f8fa;
}

.shortcut-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.shortcut-row .btn {
  padding: 14px 22px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: #f3f6f9;
  box-shadow: none;
}

.shortcut-row .btn--success {
  background: linear-gradient(180deg, #f03a41, #E31B23);
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(227,27,35,0.18);
}

.shortcut-row .btn--warning,
.shortcut-row .btn--dark,
.shortcut-row .btn--info {
  color: #f3f6f9;
}

.shortcut-panel {
  display: none;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}

.shortcut-panel.is-open {
  display: flex;
}

.shortcut-link {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  padding: 10px 12px;
  color: #eef2f6;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.view-shell {
  display: grid;
  gap: 16px;
  color: var(--text);
}

.view-shell .card,
.view-shell .table-card,
.view-shell .panel-card,
.view-shell .summary-card,
.view-shell .form-card,
.view-shell .hero-card,
.view-shell .chart-card,
.view-shell .perf-mini,
.view-shell .section-card,
.view-shell .alert-collapse,
.view-shell .filter-bar,
.view-shell .info-row,
.view-shell .agenda-sidebar,
.view-shell .calendar-grid-wrap,
.view-shell .list-item,
.view-shell .timeline-row,
.view-shell .team-link-box,
.view-shell .permission-field,
.view-shell .permission-option,
.view-shell .kpi-card {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: none;
}

.view-shell .table-card__head,
.view-shell .form-card__head,
.view-shell .panel-card__head,
.view-shell .section-card__head,
.view-shell .agenda-sidebar__head {
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.view-shell .table-card__head,
.view-shell .form-card__head,
.view-shell .panel-card__head,
.view-shell .section-card__head,
.view-shell .agenda-sidebar__head,
.view-shell .calendar-week-header {
  background: rgba(17, 17, 17, 0.22);
}

.view-shell .table-card__head h3,
.view-shell .form-card__head h3,
.view-shell .panel-card__head h3,
.view-shell .summary-card strong,
.view-shell .page-header__title,
.view-shell .cal-event-title,
.view-shell .agenda-sidebar__head h3,
.view-shell .hero-card h3,
.view-shell .task-item__link,
.view-shell .meta-row strong,
.view-shell .list-item strong,
.view-shell .timeline-date,
.view-shell .metric-bar__head,
.view-shell .cell-name-link {
  color: #ffffff;
}

.view-shell .summary-card__label,
.view-shell .summary-card p,
.view-shell .table-card__head p,
.view-shell .form-card__head p,
.view-shell .panel-card__head p,
.view-shell .page-header__eyebrow,
.view-shell .section-card__empty,
.view-shell .task-item__date,
.view-shell .task-item__name,
.view-shell .task-link,
.view-shell .meta-row span:first-child,
.view-shell .list-item p,
.view-shell .field-note,
.view-shell .cell-subtle,
.view-shell .timeline-row,
.view-shell .cal-event-meta,
.view-shell .cal-empty-msg,
.view-shell .cal-legend,
.view-shell .agenda-sidebar__list,
.view-shell .hero-card p,
.view-shell .hero-card ul,
.view-shell .metric-bar__head span,
.view-shell .filter-bar label {
  color: var(--muted);
}

.view-shell .calendar-month-title {
  color: #f5f7f9;
}

.view-shell th {
  background: transparent;
  color: #9299a3;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.view-shell td {
  color: #f3f6f9;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.view-shell tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.view-shell input,
.view-shell select,
.view-shell textarea {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f3f6f9;
}

.view-shell input::placeholder,
.view-shell textarea::placeholder {
  color: #8f98a3;
}

.view-shell .btn--ghost,
.view-shell .btn--outline,
.view-shell .btn--icon,
.view-shell .tab-btn,
.view-shell .cal-btn,
.view-shell .filter-chip,
.view-shell .task-btn,
.view-shell .attachment-link,
.view-shell .action-btn--info {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f3f6f9;
  box-shadow: none;
}

.view-shell .btn--ghost:hover,
.view-shell .btn--outline:hover,
.view-shell .btn--icon:hover,
.view-shell .tab-btn:hover,
.view-shell .cal-btn:hover,
.view-shell .filter-chip:hover,
.view-shell .task-btn:hover,
.view-shell .action-btn--info:hover {
  border-color: rgba(227, 27, 35, 0.16);
}

.view-shell .tab-btn.is-active,
.view-shell .perf-month-btn.is-active,
.view-shell .nav-sub-item.is-active,
.view-shell .cal-btn--today {
  background: rgba(227, 27, 35, 0.12);
  border-color: rgba(227, 27, 35, 0.16);
  color: #ffffff;
}

.view-shell .page-header {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.07);
}

.view-shell .page-header__icon,
.view-shell .page-help {
  background: rgba(227, 27, 35, 0.10);
  border: 1px solid rgba(227, 27, 35, 0.14);
  color: #f3f6f9;
}

.view-shell .page-header__eyebrow {
  color: #9299a3;
}

.view-shell .page-header__title {
  color: #ffffff;
}

.card,
.table-card,
.panel-card,
.summary-card,
.form-card,
.hero-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.hero-card,
.table-card,
.panel-card,
.form-card,
.summary-card {
  border-radius: var(--radius-lg);
}

/* Hibrido: elevacao no hover. Painel grande (table/panel) so aprofunda
   sombra e realca borda (sem mover); cards/metricas sobem levemente. */
.card:hover,
.table-card:hover,
.panel-card:hover,
.summary-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}
.card:hover,
.summary-card:hover {
  transform: translateY(-2px);
}

.form-card--flash {
  animation: formCardFlash 0.65s ease;
}

@keyframes formCardFlash {
  0%   { box-shadow: 0 0 0 3px rgba(77, 124, 254, 0.5); }
  60%  { box-shadow: 0 0 0 4px rgba(77, 124, 254, 0.25); }
  100% { box-shadow: none; }
}

.hero-card {
  padding: 22px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  box-shadow: var(--shadow);
}

.hero-card h3 {
  margin: 10px 0 8px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-card p {
  line-height: 1.68;
  color: var(--muted);
}

.hero-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
  line-height: 1.8;
}

.hero-side {
  display: grid;
  gap: 12px;
}

.hero-spotlight {
  padding: 16px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f8fbff, #eef4fa);
  border: 1px solid var(--line);
}

.hero-spotlight strong {
  display: block;
  margin-top: 10px;
  font-size: 28px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.summary-card {
  padding: 16px;
}

.summary-card__label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 10px;
  font-weight: 700;
}

.summary-card strong {
  display: block;
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.04em;
  color: var(--text);
}

.summary-card p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.58;
  font-size: 12px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.content-grid--two {
  grid-template-columns: 1fr 1fr;
}

.table-card__head,
.form-card__head,
.panel-card__head {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.table-card__head h3,
.form-card__head h3,
.panel-card__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.table-card__head p,
.form-card__head p,
.panel-card__head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
  line-height: 1.45;
}

th {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--panel-soft);
  vertical-align: middle;
}

tbody tr {
  transition: background-color 0.14s ease;
}
tbody tr:hover {
  background: var(--panel-soft);
}


.cell-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-sm {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #8a99a8, #526171);
  color: white;
  font-size: 10px;
  font-weight: 700;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.status--success {
  background: var(--success-soft);
  color: #25834d;
}

.status--warning {
  background: rgba(227, 27, 35, 0.12);
  color: var(--orange);
}

.status--info {
  background: var(--info-soft);
  color: #127383;
}

.status--neutral {
  background: var(--panel-soft);
  color: var(--muted);
}

.status--danger {
  background: #fde2df;
  color: #be463d;
}

.status--muted {
  background: var(--panel-soft);
  color: #8a9bb0;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.action-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 6px 11px;
  color: white;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.2;
}

.action-btn--edit {
  background: var(--yellow);
  color: #5b3e00;
}

.action-btn--dark {
  background: #3f4f5e;
}

.action-btn--info {
  background: var(--graphite);
}

.action-btn--warning {
  background: var(--yellow);
  color: #5b3e00;
}

.action-btn--success {
  background: linear-gradient(180deg, #f03a41, #E31B23);
}

.view-shell .action-btn--info:hover,
.view-shell--dashboard .task-btn--wip:hover,
.view-shell--dashboard .task-btn:hover {
  border-color: rgba(227, 27, 35, 0.16);
}

.action-btn--danger {
  background: var(--danger);
}

.legend-box,
.note-box {
  margin: 16px 18px 0;
  padding: 14px 16px;
  border-radius: 4px;
  background: var(--info-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.table-card__body,
.panel-card__body,
.form-card__body {
  padding: 16px 18px 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.permission-field {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel-soft);
}

.permission-field legend {
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.permission-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  font-size: 12px;
}

.btn--info {
  background: var(--cyan);
  color: white;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 10px 18px;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.btn--warning {
  background: var(--yellow);
  color: #5b3e00;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 10px 18px;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.permission-option input {
  width: auto;
  margin: 0;
}

.field-note,
.cell-subtle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.attachment-list {
  display: grid;
  gap: 6px;
}

.attachment-link {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.attachment-link:hover {
  text-decoration: underline;
}

.stack-list {
  display: grid;
  gap: 10px;
}

.list-item {
  padding: 10px 12px;
  border-radius: 4px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.list-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
}

.list-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 11px;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 8px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.timeline-date {
  font-weight: 700;
  color: var(--blue);
}

.metric-row {
  display: grid;
  gap: 10px;
}

.metric-bar {
  display: grid;
  gap: 5px;
}

.metric-bar__head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-soft);
}

.metric-bar__track {
  height: 8px;
  border-radius: 999px;
  background: var(--panel-soft);
  overflow: hidden;
}

.metric-bar__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), #ffb154);
}

.module-empty {
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

.team-link-box {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--panel-soft);
}

.team-link-box strong {
  display: block;
  color: var(--text);
  margin-bottom: 6px;
}

.team-link-box p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(24, 38, 53, 0.96);
  color: white;
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── PAGE HEADER ── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 17, 17, 0.06);
}
.page-header__group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-header__icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow: hidden;
}

.page-header__icon img {
  width: 18px;
  height: 18px;
  display: block;
}
.page-header__eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 10px;
  font-weight: 700;
}
.page-header__title {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-soft);
  margin: 0;
}
.page-help {
  min-width: 34px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--panel-soft);
  color: #7a818a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-grid;
  place-items: center;
  cursor: default;
  overflow: hidden;
}

.page-help img {
  width: 12px;
  height: 12px;
  display: block;
}

/* ── ACTION BAR ── */
.action-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.btn--add    { background: var(--green); color: white; border: 1px solid transparent; border-radius: var(--radius); padding: 10px 18px; font-size: 13px; font-weight: 600; letter-spacing: 0.01em; cursor: pointer; }
.btn--block-orange { background: var(--orange); color: white; border: 1px solid transparent; border-radius: var(--radius); padding: 10px 18px; font-size: 13px; font-weight: 600; letter-spacing: 0.01em; cursor: pointer; }
.btn--print  { background: var(--cyan); color: white; border: 1px solid transparent; border-radius: var(--radius); padding: 10px 18px; font-size: 13px; font-weight: 600; letter-spacing: 0.01em; cursor: pointer; }
.btn--export { background: var(--yellow); color: #5b3e00; border: 1px solid transparent; border-radius: var(--radius); padding: 10px 18px; font-size: 13px; font-weight: 600; letter-spacing: 0.01em; cursor: pointer; }
.btn--icon   { background: var(--panel-soft); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; font-size: 16px; cursor: pointer; transition: border-color 0.18s ease, background-color 0.18s ease; }

/* ── TAB NAVIGATION ── */
.tab-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding-bottom: 0;
  margin-bottom: 16px;
}
.tab-btn {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.tab-btn.is-active {
  background: var(--sidebar-dark);
  color: white;
  border-color: var(--sidebar-dark);
  box-shadow: 0 8px 18px rgba(31, 45, 58, 0.14);
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: white;
}
.tab-count--green  { background: var(--green); }
.tab-count--orange { background: var(--orange); }
.tab-count--red    { background: var(--danger); }
.tab-count--blue   { background: var(--blue); }
.tab-count--teal   { background: var(--cyan); }
.tab-count--dark   { background: var(--graphite); }
.tab-count--gray   { background: #8a99a8; }

/* ── KPI CARDS (Dashboard) ── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.kpi-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 17px 16px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
/* Opção 1: acento no topo no hover (substitui a borda colorida à esquerda) */
.kpi-card::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--orange); opacity: 0; transition: opacity 0.18s ease;
}
.kpi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.kpi-card:hover::after { opacity: 1; }
.kpi-card--green:hover::after  { background: var(--green); }
.kpi-card--blue:hover::after   { background: var(--blue); }
.kpi-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
  line-height: 1.2;
  color: var(--muted);
}
/* label unificado e tematico (muted) nos 2 temas */
.kpi-card--blue   .kpi-label,
.kpi-card--orange .kpi-label,
.kpi-card--red    .kpi-label,
.kpi-card--green  .kpi-label,
.kpi-card--neutral .kpi-label { color: var(--muted); }
.kpi-value {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  line-height: 0.98;
  margin: 4px 0 12px;
  letter-spacing: -0.035em;
  white-space: normal;
  overflow-wrap: anywhere;
}
.kpi-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--panel-soft);
  color: var(--muted);
}
/* chips suaves por categoria (tematicos: claro e escuro) */
.kpi-card--orange .kpi-badge,
.kpi-card--red    .kpi-badge { background: var(--brand-soft); color: var(--link-accent); }
.kpi-card--green  .kpi-badge { background: var(--success-soft); color: var(--green); }
.kpi-card--blue   .kpi-badge,
.kpi-card--neutral .kpi-badge { background: var(--panel-soft); color: var(--muted); }

/* ── DASHBOARD CONVERSION CHART ── */
.dash-mid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.chart-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 16px 28px rgba(17, 17, 17, 0.06);
}
.chart-card__title {
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--muted);
  margin: 0 0 14px;
}
.chart-months {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 8px;
}
.chart-area-mock {
  height: 100px;
  background: linear-gradient(180deg, #eef6ff 0%, #fff 100%);
  border: 1px dashed #c8d8e8;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #aab5c0;
  font-size: 12px;
}

.view-shell--dashboard .kpi-value {
  color: #ffffff;
}

.view-shell--dashboard .kpi-label,
.view-shell--dashboard .chart-card__title,
.view-shell--dashboard .perf-mini__label {
  color: var(--muted);
}

.view-shell--dashboard .chart-area-mock {
  background: linear-gradient(180deg, #1b1e23, #14161a);
  border-color: rgba(255, 255, 255, 0.08);
  color: #8f98a3;
}

.view-shell--dashboard .perf-month-btn {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: #cfd4db;
}

.view-shell--dashboard .perf-month-btn.is-active {
  background: rgba(227, 27, 35, 0.12);
  border-color: rgba(227, 27, 35, 0.16);
  color: #ffffff;
}
.perf-split {
  display: grid;
  gap: 12px;
}
.perf-mini {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: 0 16px 28px rgba(17, 17, 17, 0.06);
}
.perf-mini__label {
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--muted);
  margin: 0 0 6px;
}
.perf-pct {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--orange);
  display: block;
  margin-bottom: 8px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.perf-mini__meta {
  font-weight: 500;
  color: var(--muted);
}
.perf-months { display: flex; gap: 8px; font-size: 12px; }
.perf-month-btn {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 12px;
  cursor: pointer;
}
.perf-month-btn.is-active { background: var(--graphite); color: white; border-color: var(--graphite); }
.meta-rows { display: grid; gap: 6px; margin-top: 8px; }
.meta-row  { display: flex; justify-content: space-between; font-size: 13px; }
.meta-row span:first-child { color: var(--muted); }
.meta-row strong { color: var(--text); }

/* ── DASHBOARD BOTTOM SECTIONS ── */
.dash-bottom {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.section-card {
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 28px rgba(17, 17, 17, 0.06);
  overflow: hidden;
}
.section-card__head {
  padding: 12px 15px;
  background: var(--panel-soft);
  border-bottom: 1px solid rgba(17, 17, 17, 0.07);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--muted);
}
.section-card__empty {
  padding: 16px 14px;
  color: var(--muted);
  font-size: var(--text-sm);
}
.task-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.task-item__date { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.task-item__link { color: var(--text); font-weight: 700; font-size: 12px; }
.task-item__footer { display: flex; justify-content: space-between; margin-top: 5px; font-size: 11px; }
.task-item__status-pending { color: var(--danger); font-weight: 700; }
.task-item__name  { color: var(--muted); }
.task-actions { display: flex; gap: 6px; margin-top: 8px; }
.task-btn {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.task-btn--ok  { background: var(--green); color: white; border-color: var(--green); }
.task-btn--wip { background: rgba(227, 27, 35, 0.1); color: var(--orange); border-color: rgba(227, 27, 35, 0.18); }
.task-btn--eye { background: var(--graphite); color: white; border-color: var(--graphite); }

.alert-collapse {
  padding: 12px 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 14px;
  font-size: 13px;
  margin-bottom: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 22px rgba(17, 17, 17, 0.05);
}
.alert-collapse--primary {
  border-color: rgba(227, 27, 35, 0.14);
}
.alert-collapse--warning {
  border-color: rgba(17, 17, 17, 0.08);
}
.alert-count {
  min-width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
}
.alert-count--primary {
  background: var(--orange);
}
.alert-count--warning {
  background: rgba(227, 27, 35, 0.12);
  color: var(--orange);
}
.info-row {
  padding: 9px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 12px;
  margin-bottom: 6px;
  box-shadow: 0 12px 22px rgba(17, 17, 17, 0.05);
}
.filter-bar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 12px 22px rgba(17, 17, 17, 0.05);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}
.filter-bar--dashboard {
  margin-top: 16px;
}
.filter-bar label { font-size: 12px; font-weight: 700; margin-right: 4px; }
.filter-bar input,
.filter-bar select {
  min-width: 180px;
}
.filter-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: var(--panel-soft);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-soft);
}
.filter-chip:hover { background: rgba(227, 27, 35, 0.12); color: var(--orange); border-color: rgba(227, 27, 35, 0.16); }

/* ── CALENDAR (Agenda) ── */
.calendar-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.cal-btn {
  padding: 7px 12px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.cal-btn--today { background: linear-gradient(180deg, #f03a41, #e31b23); color: white; border-color: transparent; }
.cal-btn--nav   { background: rgba(255,255,255,0.92); }
.calendar-month-title {
  font-size: 28px;
  font-weight: 600;
  color: #f5f7f9;
  margin-left: auto;
}
.calendar-grid-wrap {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: none;
}
.calendar-week-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: rgba(17,17,17,0.46);
}
.cal-day-name {
  padding: 12px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #cfd4db;
  letter-spacing: 0.05em;
}
.calendar-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.cal-cell {
  min-height: 70px;
  padding: 8px;
  border-right: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 15px;
  color: #7d858f;
  background: rgba(255,255,255,0.02);
}
.cal-cell:nth-child(7n) { border-right: none; }
.cal-cell.is-cur  { color: #f3f6f9; }
.cal-cell.is-today { background: rgba(227,27,35,0.08); }
.cal-cell.is-today .cal-day-num { background: var(--orange); color: white; border-radius: 50%; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.cal-cell--dim  { color: var(--muted); background: rgba(255,255,255,0.015); }
.cal-day-num { font-size: 14px; font-weight: 600; display: block; margin-bottom: 4px; }
.cal-event-chip {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: white;
  padding: 3px 6px;
  border-radius: 999px;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.cal-cell.has-events { background: rgba(255,255,255,0.03); }

/* ── AGENDA LAYOUT ── */
.agenda-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 14px;
  align-items: start;
}
.agenda-cal { min-width: 0; }
.cal-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
.cal-legend-item { display: flex; align-items: center; gap: 5px; }
.cal-legend-item i { width: 10px; height: 10px; border-radius: 999px; flex-shrink: 0; }

/* ── AGENDA SIDEBAR ── */
.agenda-sidebar {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  box-shadow: none;
  overflow: hidden;
}
.agenda-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(17,17,17,0.22);
}
.agenda-sidebar__head h3 { font-size: 13px; font-weight: 700; color: #f3f6f9; margin: 0; }
.agenda-sidebar__count { font-size: 12px; padding: 3px 10px; }
.agenda-sidebar__list { padding: 6px 0; max-height: 600px; overflow-y: auto; }
.cal-event-row {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cal-event-row:last-child { border-bottom: none; }
.cal-event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 36px;
  padding: 6px 4px;
  border-left: 3px solid;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
}
.cal-event-date strong { font-size: 18px; font-weight: 700; color: #f3f6f9; line-height: 1; }
.cal-event-date span  { font-size: 10px; text-transform: uppercase; color: #9299a3; margin-top: 2px; }
.cal-event-info { flex: 1; min-width: 0; }
.cal-event-title { font-size: 13px; font-weight: 600; color: #f3f6f9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-event-meta  { font-size: 11px; color: var(--muted); margin: 2px 0 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-event-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: white;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: capitalize;
}
.cal-empty-msg { padding: 24px 16px; text-align: center; color: var(--muted); font-size: 13px; }
.agenda-empty-state { padding: 40px; text-align: center; }

/* ── ESTOQUE: CAT BADGE ── */
.cat-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: white;
  padding: 2px 8px;
  border-radius: 999px;
}

/* ── ESTOQUE: STATUS FILTER ROW ── */
.stock-status-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.stock-status-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.stock-status-btn:hover { background: var(--panel-soft); }
.stock-status-btn.is-active-filter { background: var(--panel-soft); border-color: var(--blue); }
.stock-status-btn--muted { color: #8a9bb0; }

/* row highlights */
tr.row-warn td { background: #fff9f0; }
tr.row-warn td:first-child { border-left: 3px solid var(--orange); }
tr.row-manut td { background: var(--panel-soft); opacity: 0.75; }
tr.row-manut td:first-child { border-left: 3px solid #8a9bb0; }

/* tab danger variant */
.tab-btn--danger.is-active { background: var(--danger); border-color: var(--danger); color: white; }
.tab-btn--danger:not(.is-active) { color: var(--danger); }

/* status pill muted */
.pill--muted { background: var(--panel-soft); color: #8a9bb0; }

/* ── ESTOQUE: CATEGORIES GRID ── */
.cat-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}
.cat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--panel-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  position: relative;
}
.cat-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.cat-card__body { flex: 1; min-width: 0; }
.cat-card__body strong { font-size: 14px; font-weight: 700; color: var(--text); }
.cat-card__body p { font-size: 12px; color: var(--muted); margin: 2px 0 4px; }
.cat-card__count { font-size: 12px; font-weight: 600; color: var(--blue); }
.cat-card__del {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
}
.cat-card__del:hover { background: #fee; color: var(--danger); }

/* ── ESTOQUE: KIT CARDS ── */
.kit-list { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.kit-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.kit-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--panel-soft);
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.kit-card__name { font-size: 14px; font-weight: 700; color: var(--text); display: block; }
.kit-card__desc { font-size: 12px; color: var(--muted); margin: 3px 0 0; }
.kit-card__actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.kit-items { padding: 10px 16px; display: flex; flex-direction: column; gap: 6px; }
.kit-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
}
.kit-item-qty { margin-left: auto; font-weight: 700; color: var(--blue); }

/* ── ESTOQUE: EDITAR ITEM — LAYOUT ── */
.edit-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .edit-layout { grid-template-columns: 1fr; }
  .edit-sidebar-col { order: -1; }
}

/* EDIT FIELD */
.edit-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.edit-field__label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text);
}
.edit-field__hint {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.45;
}
.edit-field__link {
  font-size: 12px;
  color: var(--cyan);
  text-decoration: none;
  margin-top: 3px;
}
.edit-field__link:hover { text-decoration: underline; }
.edit-field input,
.edit-field select,
.edit-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--text);
  background: var(--panel);
  box-sizing: border-box;
}
.edit-field input:focus,
.edit-field select:focus,
.edit-field textarea:focus {
  outline: none;
  border-color: rgba(61, 111, 242, 0.62);
  box-shadow: 0 0 0 4px rgba(61, 111, 242, 0.12);
}

/* EDIT INLINE ROW (NCM + button, qty + button) */
.edit-inline-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.edit-qty-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* EDIT SECTION BLOCKS */
.edit-section {
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.edit-section--cyan  { background: var(--info-soft); border-color: var(--line); }
.edit-section--yellow { background: var(--warning-soft); border-color: var(--line); }
.edit-section--green  { background: var(--success-soft); border-color: var(--line); }
.edit-section__title {
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  background: rgba(0,0,0,.04);
  border-bottom: 1px solid rgba(0,0,0,.07);
  color: var(--text);
}
.edit-section__body {
  padding: 14px 14px 2px;
}
.edit-section .edit-field input,
.edit-section .edit-field select {
  background: var(--panel);
}

/* RADIO BUTTONS */
.edit-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.edit-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  transition: border-color .15s, background .15s;
}
.edit-radio:has(input:checked) {
  border-color: var(--cyan);
  background: #f0fcfd;
}
.edit-radio input[type="radio"] {
  accent-color: var(--cyan);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin: 0;
}

/* EDIT SUB-TABS */
.edit-item-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
  flex-wrap: wrap;
}
.edit-item-tab {
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.edit-item-tab:hover { color: var(--text); }
.edit-item-tab.is-active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  background: var(--panel);
}

/* COMPARTILHAMENTO BANNER (laranja igual MeEventos) */
.edit-compartilhamento-head {
  background: var(--orange);
  color: white;
  text-align: center;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .3px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.edit-share-btns {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.edit-share-btn {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: none;
  background: var(--cyan);
  color: white;
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .1s;
}
.edit-share-btn:hover { background: #2faabc; transform: translateY(-1px); }
.edit-share-btn--view { background: #23c17a; }
.edit-share-btn--view:hover { background: #1aab6a; }

/* EDIT SIDEBAR CARD */
.edit-sidebar-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.edit-sidebar-card__head {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  background: var(--panel-soft);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.edit-sidebar-card__body {
  padding: 14px;
}
.edit-photo-area {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel-soft);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* EDIT PLACEHOLDER (tabs sem conteudo) */
.edit-placeholder {
  text-align: center;
  padding: 60px 40px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.edit-placeholder strong { font-size: 15px; color: var(--text); }
.edit-placeholder p { font-size: 13px; max-width: 320px; margin: 0; }

/* BTN SM */
.btn--sm {
  padding: 6px 12px !important;
  font-size: 12px !important;
}

/* ── ESTOQUE: KIT FICHA TECNICA ── */
.kit-ficha {
  border-top: 1px solid var(--line);
  background: var(--panel-soft);
  padding: 0;
  animation: fadeIn .15s ease;
}
.kit-ficha__head {
  padding: 10px 16px;
  background: var(--panel-soft);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.kit-ficha__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.kit-ficha__table th {
  background: var(--panel-soft);
  padding: 8px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.kit-ficha__table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.kit-ficha__table tbody tr:last-child td { border-bottom: none; }
.kit-ficha__table tfoot td { border-top: 2px solid var(--line); background: var(--panel-soft); }
.kit-ficha__obs {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--muted);
  background: #fffbf0;
  border-top: 1px solid var(--line);
}

/* ── ESTOQUE: TIPO DE OPERACAO BADGES ── */
.tipo-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2px;
  white-space: nowrap;
}
.tipo-badge--aluguel           { background: #e8f0fe; color: #3366cc; }
.tipo-badge--consumivel        { background: #fce8d4; color: #c0510a; }
.tipo-badge--baixa_manual      { background: #fff3cd; color: #856404; }
.tipo-badge--manutencao_pos_uso { background: #f0e8ff; color: #6f42c1; }

/* ── ESTOQUE: TIPO ROW (legenda) ── */
.stock-tipo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

/* ── ESTOQUE: COMPRAS KPI ── */
.compras-kpi-row {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.compras-kpi {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
  box-shadow: var(--shadow);
}
.compras-kpi__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
}
.compras-kpi__value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

/* ── ESTOQUE: KIT BUILDER FORM ── */
.kit-builder {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 8px;
}
.kit-builder__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.kit-builder__head strong { font-size: 13px; font-weight: 700; color: var(--text); }
.kit-row {
  display: grid;
  grid-template-columns: 1fr 70px;
  gap: 6px;
  margin-bottom: 6px;
}
.kit-select { font-size: 12px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; width: 100%; }
.kit-qty { font-size: 13px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; width: 100%; text-align: center; }

/* ── SEARCH FIELD ── */
.search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(38, 50, 61, 0.04);
  margin-bottom: 14px;
}
.search-wrap input {
  border: none;
  padding: 0;
  font-size: 13px;
  flex: 1;
  box-shadow: none;
}
.search-wrap input:focus { outline: none; box-shadow: none; border: none; }
.search-icon { font-size: 16px; color: var(--muted); }

/* ── CLIENT LIST ── */
.client-list-table th,
.client-list-table td { padding: 11px 12px; }
.client-list-table th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.client-list-table td {
  font-size: 13px;
  line-height: 1.5;
}
.cell-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
  background: var(--blue);
  flex-shrink: 0;
}
.cell-avatar--teal   { background: var(--cyan); }
.cell-avatar--orange { background: var(--orange); }
.cell-avatar--green  { background: var(--green); }
.cell-avatar--photo {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
}
.cell-avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cell-name-link { color: var(--blue); font-weight: 600; cursor: pointer; }

/* ── FUNNEL KANBAN ── */
.funnel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.funnel-col {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.funnel-col h4 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.funnel-sub {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.funnel-amount { font-weight: 700; color: var(--green); }
.funnel-bar {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--green) 100%);
  width: 0%;
  min-width: 10%;
}
.funnel-bar-track {
  height: 8px;
  border-radius: 999px;
  background: var(--panel-soft);
  overflow: hidden;
  margin-top: 4px;
}

/* ── SETTINGS TABS ── */
.settings-body { padding: 16px; }

/* ── PROFILE ACTION ICONS ── */
.mini-action-icon {
  width: 38px; height: 38px;
  border: 1px solid rgba(227,27,35,0.14);
  background: rgba(227,27,35,0.10);
  color: white;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.mini-action-icon:hover { background: rgba(227,27,35,0.18); border-color: rgba(227,27,35,0.24); }

@media (max-width: 1200px) {
  .summary-grid,
  .content-grid,
  .content-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .platform-header,
  .platform-body,
  .platform-shell.is-collapsed .platform-header,
  .platform-shell.is-collapsed .platform-body {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .platform-shell.is-collapsed .sidebar {
    min-height: auto;
  }

  .login-panel {
    grid-template-columns: 1fr;
  }
}

.clients-dashboard-grid {
  display: grid;
  gap: 16px;
}
.client-list-table .cell-name-link,
.client-list-table .action-btn--edit {
  font-weight: 700;
}

.notification-row--unread {
  background: rgba(227, 27, 35, 0.04);
}

.notification-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.task-link {
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px 18px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.task-link:hover {
  color: var(--orange);
}

.view-shell--dashboard .task-item,
.view-shell--dashboard .section-card__head,
.view-shell--notifications .table-card__head {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.view-shell--dashboard .section-card__head,
.view-shell--notifications .table-card__head {
  background: transparent;
}

.view-shell--dashboard .task-item__link,
.view-shell--dashboard .meta-row strong,
.view-shell--notifications .cell-name-link {
  color: #ffffff;
}

.view-shell--notifications .notification-row--unread {
  background: rgba(227, 27, 35, 0.08);
}

.view-shell--notifications .status--neutral {
  background: rgba(255, 255, 255, 0.08);
  color: #cfd4db;
}
.client-list-table td .cell-subtle {
  display: inline-block;
  margin-top: 4px;
}

@media (max-width: 760px) {
  .workspace {
    padding: 14px;
  }

  .workspace-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-grid,
  .content-grid,
  .content-grid--two,
  .form-grid,
  .permission-grid,
  .team-create-form__info-grid,
  .clients-dashboard-grid,
  .me-casting-edit-grid {
    grid-template-columns: 1fr;
  }

  .team-create-form__row,
  .team-create-form__row--split,
  .team-create-form__row--half,
  .team-create-form__row--half-wide {
    grid-template-columns: 1fr;
  }

  .team-create-form__inline {
    flex-direction: column;
    align-items: stretch;
  }

  .timeline-row {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════════════
   SIDEBAR SUB-MENU (Estoque e outros módulos com sub-itens)
══════════════════════════════════════════════════════════════ */
.nav-sub {
  display: grid;
  gap: 2px;
  background: rgba(0, 0, 0, 0.11);
  border-left: none;
  margin-bottom: 3px;
  padding: 6px 0 7px;
}

.nav-sub-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 10px;
  padding: 10px 12px 10px 38px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(255,255,255,0.72);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.005em;
  text-align: left;
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
}

.nav-sub-item:hover {
  background: rgba(255,255,255,0.06);
  color: white;
}

.nav-sub-item.is-active {
  background: rgba(255,255,255,0.06);
  color: white;
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--orange);
}

.nav-sub-item::before {
  content: "";
  position: absolute;
  left: 22px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.28);
}

.nav-sub-item.is-active::before {
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(227,27,35,0.10);
}

.platform-shell.is-collapsed .nav-sub {
  display: none;
}

/* ══════════════════════════════════════════════════════════════
   ESTOQUE — BARRA DE NAVEGAÇÃO (inv-bar)
══════════════════════════════════════════════════════════════ */
.inv-bar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px 4px 0 0;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  padding: 0;
  overflow: hidden;
  flex-wrap: wrap;
  box-shadow: 0 2px 8px rgba(38,50,61,0.04);
}

.inv-bar__tabs {
  display: flex;
  flex-wrap: wrap;
  flex: 1;
}

.inv-tab {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 12px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, border-color .15s, background .15s;
}

.inv-tab:hover {
  background: var(--panel-soft);
  color: var(--text);
}

.inv-tab.is-active {
  color: var(--text);
  border-bottom-color: var(--orange);
  background: var(--panel);
  font-weight: 700;
}

.inv-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.inv-badge--green  { background: #23c17a; color: white; }
.inv-badge--blue   { background: #4d7cfe; color: white; }
.inv-badge--orange { background: var(--orange); color: white; }
.inv-badge--red    { background: var(--danger); color: white; }
.inv-badge--dark   { background: #8a9bb0; color: white; }
.inv-badge--teal   { background: var(--cyan); color: white; }

.inv-bar__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-left: 1px solid var(--line);
  background: var(--panel-soft);
}

.inv-btn-add {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: none;
  background: var(--green);
  color: white;
  font-size: 22px;
  font-weight: 300;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, transform .1s;
  line-height: 1;
}

.inv-btn-add:hover { background: #1aab6a; transform: scale(1.06); }

.inv-btn-filter {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 16px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s;
}

.inv-btn-filter:hover { background: var(--panel-soft); color: var(--text); }

.inv-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px 9px;
  min-width: 220px;
  transition: border-color .15s, box-shadow .15s;
}

.inv-search-box:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,109,40,.10);
}

.inv-search-icon { color: var(--muted); font-size: 15px; flex-shrink: 0; }

.inv-search-box input {
  border: none;
  background: none;
  font-size: 13px;
  width: 100%;
  outline: none;
  box-shadow: none;
  padding: 0;
  color: var(--dark);
}

.inv-search-box input::placeholder { color: var(--muted); }

.inv-search-clear {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 11px;
  padding: 0 2px;
  line-height: 1;
  flex-shrink: 0;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  transition: background .1s, color .1s;
}

.inv-search-clear:hover { background: var(--panel-soft); color: var(--danger); }

/* ══════════════════════════════════════════════════════════════
   ESTOQUE — TABELA DE ITENS (inv-table)
══════════════════════════════════════════════════════════════ */
.inv-table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 4px 4px;
  overflow-x: auto;
  box-shadow: 0 2px 8px rgba(38,50,61,0.04);
}

.inv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.45;
}

.inv-table thead tr {
  background: var(--panel-soft);
  border-bottom: 1px solid var(--line);
}

.inv-table th {
  padding: 9px 10px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  white-space: nowrap;
}

.inv-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.inv-table tbody tr:last-child td { border-bottom: none; }

.inv-table tbody tr:hover td {
  background: var(--panel-soft);
}

/* Célula do thumbnail — botões + thumb */
.inv-thumb-cell {
  width: 96px;
  padding: 8px 10px;
  vertical-align: middle;
}

.inv-thumb-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Botões pré-thumbnail (QR e Sub-itens) */
.inv-pre-btns {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}

.inv-pre-btn {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s, border-color .15s, color .15s;
}

.inv-pre-btn--qr { color: var(--blue); }
.inv-pre-btn--qr:hover { background: #e8f0fe; border-color: var(--blue); }
.inv-pre-btn--sub { color: var(--cyan); }
.inv-pre-btn--sub:hover { background: var(--info-soft); border-color: var(--cyan); }

/* Thumbnail da foto */
.inv-thumb {
  width: 48px;
  height: 48px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid var(--line);
  display: block;
  transition: box-shadow .15s;
}

.inv-thumb-cell:hover .inv-thumb {
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.inv-thumb-empty {
  width: 48px;
  height: 48px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  display: grid;
  place-items: center;
}

.inv-thumb-cell:hover .inv-thumb-empty {
  background: var(--panel-soft);
  border-color: #c5cedc;
}

/* Link do nome do item */
.inv-item-link {
  color: var(--blue);
  font-weight: 600;
  cursor: pointer;
  font-size: 12px;
  text-decoration: none;
  transition: color .12s;
}

.inv-item-link:hover { color: var(--orange); text-decoration: underline; }

/* Categoria badge na tabela */
.inv-cat-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: white;
  background: var(--blue);
}

/* Botões de ação da linha */
.inv-action-btn {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  border: none;
  font-size: 14px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  margin-right: 2px;
}

.inv-action-btn:hover { opacity: 0.82; transform: scale(1.08); }
.inv-action-btn--green  { background: #23c17a; color: white; }
.inv-action-btn--yellow { background: #f7b93e; color: white; }
.inv-action-btn--red    { background: var(--danger); color: white; }

/* Contador abaixo da tabela */
.inv-count {
  font-size: 12px;
  color: var(--muted);
  padding: 10px 16px 6px;
  margin: 0;
}

/* Painel do formulário de novo item (slide-down) */
.inv-form-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  margin-top: 0;
  animation: slideDown .2s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.inv-form-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--panel-soft);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.inv-form-panel__body { padding: 20px; }

.inv-form-close {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 14px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.inv-form-close:hover { background: var(--danger); color: white; border-color: var(--danger); }

/* Status chips inline na tabela */
.inv-status-chip {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.inv-status-chip--ok       { background: #dff4e6; color: #1a7a45; }
.inv-status-chip--low      { background: #fdeecf; color: #8a5200; }
.inv-status-chip--reserved { background: #e8f0fe; color: #3366cc; }
.inv-status-chip--manut    { background: #f3e8ff; color: #6c3ab5; }
.inv-status-chip--empty    { background: #fde8e8; color: #a11f1f; }

/* ── ESTOQUE: selectores de filtro inline ── */
.action-select {
  font-size: 12px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  max-width: 140px;
}

/* ── ESTOQUE: filtro ativo ── */
.inv-btn-filter.is-active {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}

/* ── ESTOQUE: painel de filtros inline ── */
.inv-filter-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  animation: fadeSlideDown .15s ease;
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.inv-filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 130px;
}

.inv-filter-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.inv-filter-select,
.inv-filter-input {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  background: var(--panel);
  font-family: var(--font);
}

.inv-filter-select:focus,
.inv-filter-input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,98,55,.10);
}

.inv-filter-clear {
  padding: 8px 16px;
  background: var(--danger);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  align-self: flex-end;
}

.inv-filter-clear:hover { background: #b03030; }

/* ── ESTOQUE: Adicionar Item (tela cheia) ── */
.inv-novo-header {
  display: flex;
  align-items: center;
  padding: 14px 0 10px;
}

.inv-voltar-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: background .15s;
}

.inv-voltar-btn:hover { background: #e04d1f; }

.inv-novo-card {
  background: var(--panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 28px 32px;
}

.inv-novo-card__title { margin-bottom: 16px; }
.inv-novo-card__title strong { font-size: 20px; line-height: 1.12; letter-spacing: -0.025em; color: var(--text); display: block; margin-bottom: 4px; }
.inv-novo-card__title p { font-size: 12px; line-height: 1.55; color: var(--muted); margin: 0; }

.inv-novo-tabs-bar {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  gap: 6px;
  padding-bottom: 12px;
}

.inv-novo-tab-btn {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--muted);
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.inv-novo-tab-btn.is-active {
  color: white;
  background: var(--cyan);
  border-color: var(--cyan);
}

.inv-novo-tab-btn--disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.inv-novo-form { display: flex; flex-direction: column; gap: 0; }

.inv-novo-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid #f0f3f7;
}

.inv-novo-row--top { align-items: flex-start; padding-top: 13px; }

.inv-novo-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-soft);
}

.inv-novo-input,
.inv-novo-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  background: var(--panel);
  font-family: var(--font);
}

.inv-novo-textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  background: var(--panel);
  font-family: var(--font);
  min-height: 80px;
  resize: vertical;
}

.inv-novo-input:focus,
.inv-novo-select:focus,
.inv-novo-textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,98,55,.10);
}

.inv-novo-field { display: flex; flex-direction: column; gap: 4px; }
.inv-novo-field-row { display: flex; gap: 8px; align-items: center; }
.inv-novo-link { font-size: 12px; color: var(--cyan); text-decoration: none; }
.inv-novo-link:hover { text-decoration: underline; }

.inv-novo-btn-consultar {
  flex-shrink: 0;
  padding: 8px 12px;
  background: var(--cyan);
  color: white;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.inv-novo-section {
  border-radius: 8px;
  padding: 2px 16px;
  margin: 10px 0;
}

.inv-novo-section--teal  { background: var(--info-soft); border-left: 3px solid var(--cyan); }
.inv-novo-section--yellow { background: var(--warning-soft); border-left: 3px solid var(--yellow); }
.inv-novo-section--green  { background: var(--success-soft); border-left: 3px solid var(--green); }

.inv-novo-section .inv-novo-row:last-child { border-bottom: none; }

.inv-novo-radios {
  padding: 4px 0;
}

.inv-novo-radios > div {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
}

.inv-novo-radios input[type="radio"] {
  width: auto;
  padding: 0;
  border: none;
  background: none;
  flex-shrink: 0;
  cursor: pointer;
}

.inv-novo-radios label {
  cursor: pointer;
}

.inv-novo-actions {
  display: flex;
  gap: 12px;
  padding: 22px 0 6px;
  justify-content: flex-end;
}

/* ── MODAL QR CODE ── */
.inv-qr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
}

.inv-qr-modal {
  background: var(--panel);
  border-radius: 14px;
  width: 100%;
  max-width: 380px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  animation: fadeSlideDown .18s ease;
}

.inv-qr-modal__head {
  background: var(--orange);
  color: white;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.inv-qr-close {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  opacity: .8;
  line-height: 1;
  padding: 0;
}

.inv-qr-close:hover { opacity: 1; }

.inv-qr-modal__body {
  padding: 24px 20px;
  text-align: center;
}

.inv-qr-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
}

.inv-qr-canvas {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  padding: 10px;
  background: var(--panel);
  margin: 0 0 8px;
}

.inv-qr-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: .06em;
  margin: 4px 0 16px;
}

.inv-qr-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.inv-qr-btn {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s;
}

.inv-qr-btn:hover { opacity: .85; }
.inv-qr-btn--blue { background: var(--blue); color: white; }
.inv-qr-btn--dark { background: #334150; color: white; }
.inv-qr-btn--teal { background: var(--cyan); color: white; }

/* ── MODAL SUB-ITENS ── */
.inv-sub-modal {
  background: var(--panel);
  border-radius: 14px;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  animation: fadeSlideDown .18s ease;
}

.inv-sub-modal__body {
  padding: 20px 24px 24px;
}

.inv-sub-add-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.inv-sub-empty {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 24px 0;
}

.inv-sub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.inv-sub-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: .04em;
  padding: 8px 10px;
  border-bottom: 2px solid var(--line);
}

.inv-sub-table td {
  padding: 10px;
  border-bottom: 1px solid #f0f3f7;
  vertical-align: middle;
}

.inv-sub-code {
  background: var(--panel-soft);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-family: monospace;
  font-weight: 700;
  color: var(--text);
}

.inv-sub-qr-wrap {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  padding: 3px;
  background: var(--panel);
}

.inv-action-btn--red {
  background: #fde8e8;
  color: var(--danger);
  border: none;
  border-radius: 4px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 13px;
  transition: background .15s;
}

.inv-action-btn--red:hover { background: var(--danger); color: white; }

/* ── DRILLDOWN COMPARTILHADO (Categorias + Kits) ──────── */
.drill-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.kit-list-btn {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  margin-right: 3px;
  color: white;
}
.kit-list-btn:hover { opacity: 0.82; transform: scale(1.08); }
.kit-list-btn--teal   { background: var(--cyan); }
.kit-list-btn--orange { background: var(--orange); }
.kit-list-btn--red    { background: var(--danger); }

.kit-vincular-form {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.kit-vincular-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.kit-vincular-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.kit-vincular-select,
.kit-vincular-input {
  width: 100%;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
  background: var(--panel);
  font-family: var(--font);
}

.kit-vincular-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-bottom: 1px;
}

.inv-action-btn--orange {
  background: var(--orange);
  color: white;
}
.inv-action-btn--orange:hover { background: #e04d1f; }

.drill-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  padding: 10px 14px;
  background: var(--panel-soft);
  border-radius: 8px;
  border: 1px solid var(--line);
}

.drill-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.drill-count {
  font-size: 12px;
  color: var(--muted);
  padding: 2px 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
}

/* Botão de categoria clicável na tabela */
.cat-drill-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background .15s;
  text-align: left;
}

.cat-drill-btn:hover {
  background: var(--panel-soft);
}

/* teal para visualizar */
.inv-action-btn--teal {
  background: #e0f7f4;
  color: var(--cyan);
  border: none;
  border-radius: 4px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 13px;
  transition: background .15s;
}
.inv-action-btn--teal:hover { background: var(--cyan); color: white; }

/* ── EDITOR RICH TEXT (CKEditor 4) ───────────────────── */
/* CKEditor iframe tem seu próprio CSS — apenas ajustamos o container */
.cke_chrome {
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

.cke_top {
  background: var(--panel-soft) !important;
  border-bottom: 1px solid var(--line) !important;
  padding: 4px 6px !important;
}

.cke_bottom {
  background: var(--panel-soft) !important;
  border-top: 1px solid var(--line) !important;
  padding: 2px 6px !important;
}

.cke_inner {
  background: white !important;
}

/* ═══════════════════════════════════════════════
   MÓDULO EVENTOS
   ═══════════════════════════════════════════════ */
.evt-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.evt-search-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.evt-search-input {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 11px;
  width: 220px;
}
.evt-filtro-panel {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.evt-filtro-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
  align-items: flex-end;
}
.evt-filtro-row label {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  gap: 4px;
}
.evt-filtro-row select {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  width: auto;
}
.evt-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--line);
  margin-bottom: 16px;
}
.evt-tab {
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color .15s;
}
.evt-tab:hover { color: var(--text); }
.evt-tab.is-active { color: var(--cyan); border-bottom-color: var(--cyan); }
.evt-badge {
  background: var(--panel-soft);
  color: var(--muted);
  border-radius: 10px;
  font-size: 10px;
  padding: 1px 6px;
  font-weight: 700;
}
.evt-tab.is-active .evt-badge { background: #e0f7f9; color: var(--cyan); }
.evt-table { width: 100%; border-collapse: collapse; }
.evt-table th {
  background: var(--panel-soft);
  padding: 9px 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.evt-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 12px;
}
.evt-row:hover td { background: #f5f8ff; }
.evt-data-cell { min-width: 150px; }
.evt-data-day { display: block; font-weight: 700; color: var(--cyan); font-size: 14px; }
.evt-data-week { display: block; font-size: 11px; color: var(--muted); }
.evt-data-hora { display: block; font-size: 12px; color: var(--text); margin-top: 2px; }
.evt-info-cell strong { display: block; font-size: 13px; }
.evt-nome-tipo { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.evt-local-cell span { font-size: 13px; }
.evt-acoes-cell { white-space: nowrap; }
.evt-info-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border: none;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 4px;
  color: white;
}
.evt-info-btn--teal { background: var(--cyan); }
.evt-info-btn--blue { background: var(--blue); }
.evt-pending-badge {
  background: var(--panel);
  color: var(--danger);
  border-radius: 8px;
  padding: 1px 5px;
  font-size: 10px;
}
.evt-participantes-badge {
  display: inline-block;
  background: var(--panel-soft);
  color: var(--muted);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
}
.evt-footer-count { text-align: right; font-size: 12px; color: var(--muted); padding: 8px 0; }

/* Formulário novo evento */
.evt-form-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.evt-form-header h2 { font-family: var(--font-display); font-size: 20px; line-height: 1.12; letter-spacing: -0.025em; margin: 0; }
.evt-form-card {
  background: var(--panel);
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 22px 24px;
}
.evt-form-section { margin-bottom: 20px; }
.evt-form-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.evt-form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.evt-form-label {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-soft);
  gap: 4px;
  flex: 1;
  min-width: 160px;
}
.evt-form-input, .evt-form-select, .evt-form-textarea {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  background: var(--panel);
  font-family: var(--font);
  width: 100%;
}
.evt-form-check { flex-direction: row; align-items: center; gap: 8px; padding-top: 18px; }
.evt-form-check input { width: auto; }
.evt-form-actions { display: flex; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }

/* Detalhe do evento */
.evt-detalhe-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.evt-detalhe-info { flex: 1; }
.evt-detalhe-titulo { font-size: 18px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.evt-tipo-badge { background: var(--orange); color: white; padding: 2px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.evt-cancelado-badge { background: var(--danger); color: white; padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.evt-detalhe-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); }
.evt-detalhe-meta span { display: flex; align-items: center; gap: 4px; }
.evt-countdown { font-weight: 700; color: var(--blue); font-size: 13px; }
.evt-countdown--urgent { color: var(--danger); }
.evt-detalhe-btns { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.evt-detalhe-btns .btn--danger { background: var(--danger); }

/* Seções */
.evt-secao-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.evt-secao-tab {
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all .15s;
}
.evt-secao-tab:hover { background: var(--panel-soft); color: var(--text); }
.evt-secao-tab.is-active { background: var(--cyan); color: white; border-color: var(--cyan); }
.evt-secao-tab.is-active .evt-badge { background: rgba(255,255,255,.25); color: white; }
.evt-secao-body {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  min-height: 200px;
}
.evt-secao-add-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.evt-secao-input { padding: 7px 11px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; flex: 1; min-width: 140px; }
.evt-secao-select { padding: 7px 11px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.evt-info-textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; font-family: var(--font); resize: vertical; }

/* Checklist */
.evt-checklist-list { display: flex; flex-direction: column; gap: 6px; }
.evt-checklist-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 6px; background: var(--panel-soft); border: 1px solid var(--line); font-size: 13px; }
.evt-checklist-item--concluido { opacity: .65; }
.evt-check-toggle { background: none; border: none; cursor: pointer; font-size: 16px; flex-shrink: 0; }
.evt-check-text { flex: 1; }
.evt-check-done { text-decoration: line-through; color: var(--muted); }
.evt-check-date { font-size: 11px; color: var(--muted); }
.evt-check-resp { font-size: 11px; background: var(--panel-soft); padding: 2px 6px; border-radius: 4px; color: var(--muted); }
.evt-check-del { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 14px; flex-shrink: 0; }

/* Cronograma */
.evt-cronograma-list { display: flex; flex-direction: column; gap: 8px; }
.evt-cron-item { display: flex; align-items: flex-start; gap: 14px; padding: 10px 14px; background: var(--panel-soft); border-radius: 6px; border-left: 3px solid var(--cyan); }
.evt-cron-hora { font-weight: 700; color: var(--cyan); font-size: 14px; white-space: nowrap; min-width: 50px; }
.evt-cron-body { flex: 1; font-size: 13px; }
.evt-cron-body p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }

/* Equipe confirm */
.evt-confirm-btn { border: none; border-radius: 4px; padding: 3px 10px; font-size: 11px; cursor: pointer; font-weight: 600; }
.evt-confirm-btn--yes { background: #d1fae5; color: #065f46; }
.evt-confirm-btn--no  { background: var(--panel-soft); color: var(--muted); }

/* ═══════════════════════════════════════════════════════════════════
   ED — Event Detail (ME Eventos style two-column layout)
═══════════════════════════════════════════════════════════════════ */

/* Top action buttons row */
.ed-top-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.ed-btn-todos  { background: #44c5b8 !important; color: white !important; border-color: #44c5b8 !important; font-size: 12px; font-weight: 700; padding: 7px 14px; border-radius: 5px; cursor: pointer; border: 1px solid transparent; }
.ed-btn-editar { background: var(--orange) !important; color: white !important; border-color: var(--orange) !important; font-size: 12px; font-weight: 700; padding: 7px 14px; border-radius: 5px; cursor: pointer; border: 1px solid transparent; }
.ed-btn-form   { background: #44c5b8 !important; color: white !important; border-color: #44c5b8 !important; font-size: 12px; font-weight: 700; padding: 7px 14px; border-radius: 5px; cursor: pointer; border: 1px solid transparent; }
.ed-btn-todos:hover, .ed-btn-form:hover { background: #35b2a6 !important; }
.ed-btn-editar:hover { background: var(--orange-deep) !important; }

/* Two-column layout */
.ed-layout {
  display: flex;
  gap: 0;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ── LEFT PANEL ───────────────────────────────────── */
.ed-left {
  width: 270px;
  min-width: 240px;
  border-right: 1px solid var(--line);
  padding: 20px 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--panel);
}
.ed-client-name {
  font-size: 15px;
  font-weight: 700;
  color: #e05c50;
  text-align: center;
  line-height: 1.3;
  margin-bottom: 4px;
}
.ed-avatar-wrap {
  position: relative;
  margin: 4px 0 6px;
}
.ed-avatar-upload {
  position: absolute;
  top: -4px;
  left: -4px;
  z-index: 1;
  background: #5ab4d4;
  color: white;
  border-radius: 6px;
  padding: 5px 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.ed-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel-soft);
}
.ed-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ed-tipo-badge {
  background: #f7c84a;
  color: #7a5c00;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 12px;
  margin: 2px 0;
}
.ed-countdown {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #e05c50;
  margin: 2px 0;
}
.ed-tag-row {
  color: var(--muted);
  margin: 2px 0 4px;
  opacity: 0.6;
}

/* Dates timeline */
.ed-dates-timeline {
  width: 100%;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.ed-date-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.ed-date-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5ab4d4;
  flex-shrink: 0;
  margin-top: 4px;
}
.ed-date-info { font-size: 12px; color: var(--text); line-height: 1.5; }
.ed-date-label { font-weight: 600; color: var(--text-soft); }
.ed-date-type  { color: var(--muted); font-size: 11px; }
.ed-date-horario { font-size: 11px; color: var(--muted); }
.ed-date-horario strong { color: var(--text); }
.ed-date-cancel-tag { font-size: 11px; color: var(--danger); font-weight: 600; margin-top: 2px; }

/* Termino section */
.ed-termino-section { width: 100%; font-size: 11px; padding: 8px 0 0; }
.ed-section-label { font-weight: 600; color: var(--muted); font-size: 11px; margin-bottom: 3px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ed-termino-val { color: var(--text); font-size: 12px; }
.ed-termino-empty { color: var(--muted); font-size: 11px; }
.ed-termino-note { color: #bbb; font-size: 10px; margin-top: 2px; }
.ed-icon-link-btn { background: none; border: none; cursor: pointer; color: #5ab4d4; font-size: 12px; padding: 0 2px; }
.ed-link-btn { background: none; border: none; cursor: pointer; color: #5ab4d4; font-size: 11px; padding: 0; text-decoration: underline; }

/* Venue section */
.ed-venue-section { width: 100%; border-top: 1px solid var(--line); padding: 10px 0 0; margin-top: 4px; font-size: 12px; }
.ed-venue-name { font-weight: 600; color: var(--text); }
.ed-venue-addr { color: var(--muted); font-size: 11px; margin-top: 2px; }
.ed-map-link { color: #5ab4d4; font-size: 11px; text-decoration: none; display: inline-flex; align-items: center; gap: 3px; margin-top: 4px; }
.ed-map-link:hover { text-decoration: underline; }

/* Client data section */
.ed-client-section { width: 100%; border-top: 1px solid var(--line); padding: 10px 0 0; margin-top: 4px; font-size: 12px; }
.ed-client-row-item { display: flex; align-items: center; gap: 5px; color: var(--text); margin: 3px 0; font-size: 11px; }
.ed-ci-icon { width: 16px; text-align: center; flex-shrink: 0; }
.ed-ci-teal { color: #44c5b8; font-weight: 600; }
.ed-whatsapp-icon { color: #25d366; margin-left: 2px; }

/* Add client + duplicate buttons */
.ed-add-client-btn {
  background: #44c5b8;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  width: 100%;
}
.ed-add-client-btn:hover { background: #35b2a6; }
.ed-evento-num {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 2px;
  text-align: center;
  font-weight: 600;
}
.ed-duplicate-btn {
  background: #44c5b8;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}
.ed-duplicate-btn:hover { background: #35b2a6; }

/* ── RIGHT PANEL ──────────────────────────────────── */
.ed-right {
  flex: 1;
  min-width: 0;
  padding: 16px 20px 24px;
  overflow: hidden;
}

/* Top bar (Imprimir + share) */
.ed-right-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.ed-print-row { display: flex; gap: 6px; }
.ed-print-btn {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  color: var(--text);
}
.ed-print-btn:hover { background: var(--panel-soft); }
.ed-share-btn {
  background: #44c5b8;
  border: 1px solid #44c5b8;
  color: white;
  border-radius: 5px;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
}

/* Alert banner */
.ed-alert-banner {
  background: #fff5f5;
  border: 1px solid #fdd;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12px;
  color: #c0392b;
  margin-bottom: 16px;
  line-height: 1.5;
}
.ed-alert-banner .ed-link { color: #c0392b; font-weight: 600; }

/* ── CARDS GRID ──────────────────────────────────── */
.ed-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.ed-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: box-shadow .15s, border-color .15s;
  text-align: center;
  min-height: 130px;
}
.ed-card:hover {
  border-color: #5ab4d4;
  box-shadow: 0 2px 12px rgba(90,180,212,.18);
}
.ed-card-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.ed-card-svg { width: 68px; height: 68px; }
.ed-card-label {
  font-size: 12px;
  font-weight: 700;
  color: #5ab4d4;
  line-height: 1.3;
  text-align: center;
}

/* Card progress bar */
.ed-card-progress {
  width: 80%;
  height: 5px;
  background: #e8f0f5;
  border-radius: 3px;
  overflow: hidden;
}
.ed-card-progress-fill {
  height: 100%;
  background: #5ab4d4;
  border-radius: 3px;
  transition: width .3s;
}

/* Card badges */
.ed-card-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  text-align: center;
}
.ed-badge-gray { background: var(--panel-soft); color: var(--muted); }
.ed-badge-count { background: var(--panel-soft); color: var(--muted); min-width: 22px; }
.ed-card-badges { display: flex; gap: 4px; justify-content: center; }
.ed-badge-green { background: #d1fae5; color: #065f46; border-radius: 10px; font-size: 11px; font-weight: 700; padding: 2px 9px; }
.ed-badge-teal  { background: #ccf2f4; color: #0e7490; border-radius: 10px; font-size: 11px; font-weight: 700; padding: 2px 9px; }

/* Personalizar button */
.ed-personalizar-row { text-align: center; padding-top: 4px; }
.ed-personalizar-btn {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}
.ed-personalizar-btn:hover { background: var(--panel-soft); }

/* ── SECTION CONTENT ─────────────────────────────── */
.ed-secao-wrap {
  min-height: 300px;
  border-left: 4px solid #5ab4d4;
  padding-left: 16px;
}
.ed-secao-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.ed-secao-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-soft);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ed-btn-voltar {
  background: #f7c84a !important;
  color: #7a5c00 !important;
  border-color: #f7c84a !important;
  font-size: 12px !important;
  padding: 6px 16px !important;
  border-radius: 20px !important;
  cursor: pointer;
  border: 1px solid transparent;
  font-weight: 700;
}
.ed-btn-voltar:hover { background: #e6b830 !important; }

/* Hints */
.ed-hint { font-size: 12px; color: var(--muted); margin: 0 0 14px; background: var(--panel-soft); border-radius: 5px; padding: 8px 12px; border-left: 3px solid #5ab4d4; }

/* Info textarea */
.ed-info-textarea {
  width: 100%;
  min-height: 200px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-family: var(--font);
  resize: vertical;
  box-sizing: border-box;
}

/* Stats row (checklist) */
.ed-stats-row {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.ed-stat-card {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
}
.ed-stat--danger { border-color: #fdd; background: #fff5f5; }
.ed-stat-num  { font-size: 22px; font-weight: 700; color: #5ab4d4; }
.ed-stat--danger .ed-stat-num { color: var(--danger); }
.ed-stat-lbl  { font-size: 11px; font-weight: 600; color: var(--text); margin: 2px 0; }
.ed-stat-sub  { font-size: 10px; color: var(--muted); }

/* Cronograma date tabs */
.ed-cron-date-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.ed-cron-tab {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  background: var(--panel-soft);
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}
.ed-cron-tab.is-active { background: #4caf87; color: white; border-color: #4caf87; }

/* Add forms */
.ed-add-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.ed-input {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  flex: 1;
  min-width: 120px;
}
.ed-select {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
}
.ed-btn-green {
  background: #4caf87 !important;
  color: white !important;
  border-color: #4caf87 !important;
  font-weight: 700;
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 5px;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.ed-btn-green:hover { background: #3d9a74 !important; }
.ed-btn-print {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 7px 10px;
  font-size: 13px;
  cursor: pointer;
}
.ed-btn-save {
  background: #5ab4d4 !important;
  color: white !important;
  border-color: #5ab4d4 !important;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 5px;
  cursor: pointer;
  border: 1px solid transparent;
}
.ed-secao-body { padding: 0; }

/* Empty states */
.ed-empty-msg { color: var(--muted); font-size: 13px; padding: 16px 0; text-align: center; }
.ed-empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.ed-empty-icon { font-size: 36px; margin-bottom: 10px; }

/* Responsive */
@media (max-width: 900px) {
  .ed-layout { flex-direction: column; }
  .ed-left { width: 100%; border-right: none; border-bottom: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; }
  .ed-cards-grid { grid-template-columns: repeat(2,1fr); }
  .ed-stats-row { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .ed-cards-grid { grid-template-columns: repeat(1,1fr); }
}

/* ── ITENS DO EVENTO ─────────────────────────────── */
.ed-itens-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0f8ff;
  border: 1px solid #c8e6f5;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 12px;
  color: #2980b9;
  margin-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}
.ed-arredondar-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
  cursor: pointer;
}

/* Action buttons row */
.ed-itens-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.ed-iact-green  { background:#44c5b8 !important; color:white !important; border-color:#44c5b8 !important; font-size:11px !important; padding:6px 12px !important; border-radius:5px; cursor:pointer; border:1px solid transparent; font-weight:700; }
.ed-iact-yellow { background:#f7c84a !important; color:#7a5c00 !important; border-color:#f7c84a !important; font-size:11px !important; padding:6px 12px !important; border-radius:5px; cursor:pointer; border:1px solid transparent; font-weight:700; }
.ed-iact-dark   { background:#3d4d5c !important; color:white !important; border-color:#3d4d5c !important; font-size:11px !important; padding:6px 12px !important; border-radius:5px; cursor:pointer; border:1px solid transparent; font-weight:700; }
.ed-iact-blue   { background:#5ab4d4 !important; color:white !important; border-color:#5ab4d4 !important; font-size:11px !important; padding:6px 12px !important; border-radius:5px; cursor:pointer; border:1px solid transparent; font-weight:700; }
.ed-iact-yellow2{ background:#e6a817 !important; color:white !important; border-color:#e6a817 !important; font-size:11px !important; padding:6px 12px !important; border-radius:5px; cursor:pointer; border:1px solid transparent; font-weight:700; }
.ed-iact-green:hover  { background:#35b2a6 !important; }
.ed-iact-yellow:hover { background:#e6b830 !important; }
.ed-iact-dark:hover   { background:#2e3a47 !important; }
.ed-iact-blue:hover   { background:#4a9fc0 !important; }
.ed-iact-yellow2:hover{ background:#d49810 !important; }

/* Search + date filter toolbar */
.ed-itens-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.ed-itens-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 12px;
  min-width: 200px;
}
.ed-itens-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 12px;
  font-family: var(--font);
  background: transparent;
}
.ed-itens-date-filter {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 12px;
  font-family: var(--font);
  background: var(--panel);
  min-width: 180px;
}

/* Add item form wrapper */
.ed-itens-add-wrap {
  background: var(--panel-soft);
  border: 1px solid #c8e6f5;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 14px;
}

/* Itens table */
.ed-itens-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.ed-itens-table thead tr {
  background: var(--panel-soft);
  border-bottom: 2px solid var(--line);
}
.ed-itens-table thead th {
  text-align: left;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.ed-irow {
  border-bottom: 1px solid var(--line);
}
.ed-irow:hover { background: var(--panel-soft); }
.ed-irow-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}
.ed-irow-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  border: 1px solid var(--line);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel-soft);
}
.ed-irow-thumb img { width:100%; height:100%; object-fit:cover; }
.ed-irow-no-photo { font-size:20px; color:#ccc; }
.ed-irow-info { flex:1; }
.ed-irow-name { font-size:13px; color:var(--text); }
.ed-irow-name strong { color: var(--muted); font-weight:700; }
.ed-irow-desc { font-size:11px; color:var(--muted); margin-top:2px; }
.ed-irow-baixado {
  display: inline-block;
  background: #44c5b8;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 4px;
}
.ed-irow-qty {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #5ab4d4;
  white-space: nowrap;
  vertical-align: middle;
}
.ed-irow-funcs {
  padding: 12px 14px;
  display: flex;
  gap: 5px;
  align-items: center;
  vertical-align: middle;
}
.ed-func-edit {
  background: #f7c84a;
  color: white;
  border: none;
  border-radius: 5px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ed-func-warn {
  background: #44c5d8;
  color: white;
  border: none;
  border-radius: 5px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ed-func-del {
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 5px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ed-func-edit:hover { background:#e6b830; }
.ed-func-warn:hover { background:#35b2c4; }
.ed-func-del:hover  { background:#c0392b; }

/* Botão Dar Baixa manual */
.ed-func-baixa {
  background: #2ecc71;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
}
.ed-func-baixa:hover { background: #27ae60; }

/* Badge de tipo de operação */
.ed-tipo-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.ed-tipo-badge--aluguel          { background:#e3f2fd; color:#1565c0; }
.ed-tipo-badge--consumivel       { background:#e8f5e9; color:#2e7d32; }
.ed-tipo-badge--manutencao_pos_uso { background:#fff3e0; color:#e65100; }
.ed-tipo-badge--baixa_manual     { background:#fce4ec; color:#c62828; }

.ed-itens-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 13px;
}
.ed-itens-total {
  font-size: 12px;
  color: var(--muted);
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--panel-soft);
}

/* ── Layout dois painéis (Estoque | Itens do Evento) ─────────── */
.ei-split {
  display: flex;
  margin-top: 12px;
  /* sem borda no estado padrão — só tabela de itens visível */
}
/* Estado ativo: painel de estoque visível */
.ei-split--open {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.ei-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Painel esquerdo oculto por padrão */
.ei-panel--left {
  display: none;
  width: 44%;
  flex-shrink: 0;
  border-right: 2px solid var(--line);
}
/* Aparece quando split está ativo */
.ei-split--open .ei-panel--left { display: flex; flex-direction: column; }

.ei-panel--right { flex: 1; overflow: hidden; }

/* Cabeçalho verde dos painéis */
.ei-panel-head {
  background: #27a862;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 9px 12px;
  letter-spacing: .3px;
}
/* Ocultar cabeçalho do painel direito quando não está em modo split */
.ei-split:not(.ei-split--open) .ei-panel--right .ei-panel-head { display: none; }

/* Cabeçalho da tabela de itens: escuro quando split, claro quando sozinho */
.ei-split:not(.ei-split--open) .ei-panel--right .ed-itens-table thead th {
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
}

.ei-panel-body {
  overflow-y: auto;
  max-height: 520px;
}

/* Tabela do painel esquerdo (estoque) */
.ei-stock-table {
  width: 100%;
  border-collapse: collapse;
}
.ei-stock-table thead th {
  background: #1e7d4a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 8px;
  text-align: left;
  border-bottom: 1px solid #16633a;
  position: sticky;
  top: 0;
  z-index: 1;
}
.ei-srow td {
  padding: 7px 6px;
  border-bottom: 1px solid #f0f4f8;
  vertical-align: middle;
}
.ei-srow:hover td { background: #f5faf7; }
.ei-srow--empty td { background: var(--panel-soft); }
.ei-srow-qty  { width: 110px; }
.ei-srow-photo { width: 52px; }

/* Input + botão → */
.ei-qty-wrap { display: flex; gap: 3px; align-items: center; }
.ei-qty-in {
  width: 52px !important;
  padding: 5px 6px !important;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 13px;
  text-align: center;
  background: var(--panel);
}
.ei-add-arrow {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px 9px;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-soft);
  line-height: 1;
  transition: background .15s;
}
.ei-add-arrow:hover { background: #2ecc71; color: #fff; border-color: #27ae60; }
.ei-sem-est {
  background: #e74c3c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

/* Foto nos painéis */
.ei-thumb { width: 46px; height: 46px; object-fit: cover; border-radius: 5px; display: block; }
.ei-no-photo {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel-soft); border-radius: 5px;
  font-size: 20px; color: #bbb;
}

/* Info do item no painel esquerdo */
.ei-srow-name { font-size: 12px; font-weight: 500; color: var(--text-soft); line-height: 1.3; }
.ei-srow-brand { font-size: 11px; color: #888; margin-top: 1px; }
.ei-qty-badge {
  display: inline-block;
  background: #2ecc71;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  margin-top: 4px;
}

/* Painel direito — reutiliza estilos ed-irow já existentes */
.ei-panel--right .ed-itens-table thead th {
  background: #1e7d4a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 10px;
  position: sticky;
  top: 0;
  z-index: 1;
}
.ei-panel--right .ed-irow-thumb img { width: 46px; height: 46px; object-fit: cover; border-radius: 5px; }

/* Botão trash inline no badge Baixado */
.ei-baixado-del {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  padding: 0 2px;
  vertical-align: middle;
  color: #e74c3c;
}
.ei-baixado-del:hover { opacity: .75; }

/* ── Edição inline de quantidade ─────────────────────────────── */
.ei-qty-edit-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ei-qty-edit-in {
  width: 54px;
  padding: 4px 6px;
  border: 1px solid #3498db;
  border-radius: 4px;
  font-size: 13px;
  text-align: center;
}
.ei-qty-save, .ei-qty-cancel {
  border: none;
  border-radius: 4px;
  padding: 4px 7px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.ei-qty-save   { background: #2ecc71; color: #fff; }
.ei-qty-save:hover { background: #27ae60; }
.ei-qty-cancel { background: #e74c3c; color: #fff; }
.ei-qty-cancel:hover { background: #c0392b; }

/* ── Modais de itens do evento ───────────────────────────────── */
.ed-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.ed-modal-box {
  background: var(--panel);
  border-radius: 8px;
  min-width: 340px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  animation: fadeInScale .15s ease;
}
.ed-modal-box--kit  { max-width: 520px; }
.ed-modal-box--warn { max-width: 480px; }
.ed-modal-box--casting { max-width: 560px; }
.ed-warn-item-display { font-size: 15px; font-weight: 700; color: var(--text-soft); padding: 6px 0 14px; }
.ed-warn-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.ed-warn-table th { background: var(--panel-soft); color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; padding: 8px 10px; text-align: center; border: 1px solid var(--line); }
.ed-warn-table td { padding: 10px; text-align: center; border: 1px solid var(--line); }
.ed-warn-total { font-size: 15px; font-weight: 700; color: var(--text-soft); }
.ed-warn-hint { font-size: 12px; color: #888; margin: 0; line-height: 1.5; }
.ed-func-warn--ativo { background: #f39c12 !important; color: #fff !important; border-color: #e67e22 !important; }
.ed-irow-quebra-badge { font-size: 10px; font-weight: 700; color: #e67e22; margin-top: 3px; }
.ed-kit-empty { font-size: 13px; color: #999; margin: 0; }
.ed-kit-prev-title { font-size: 12px; color: #888; font-weight: 600; margin: 0 0 6px; text-transform: uppercase; letter-spacing: .4px; }
.ed-kit-prev-list { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.ed-kit-prev-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 12px; font-size: 13px; border-bottom: 1px solid #f0f4f8; }
.ed-kit-prev-row:last-child { border-bottom: none; }
.ed-kit-prev-name { color: var(--text-soft); }
.ed-kit-prev-qty { font-weight: 700; color: #27a862; background: #eafaf1; padding: 2px 8px; border-radius: 10px; font-size: 11px; }
@keyframes fadeInScale {
  from { opacity:0; transform: scale(.95); }
  to   { opacity:1; transform: scale(1); }
}
.ed-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-soft);
}
.ed-modal-head button {
  background: none;
  border: none;
  font-size: 15px;
  cursor: pointer;
  color: #999;
  padding: 2px 7px;
  border-radius: 4px;
  line-height: 1;
}
.ed-modal-head button:hover { background: var(--panel-soft); color: var(--muted); }
.ed-modal-body-inner {
  padding: 16px 20px;
}
.ed-modal-foot {
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  text-align: right;
}
.me-casting-backbar {
  margin: 0 0 12px;
}
.me-btn {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f3f6f9 100%);
  color: var(--muted);
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}
.me-btn:hover {
  background: linear-gradient(180deg, #ffffff 0%, #edf2f6 100%);
}
.me-btn--back { min-width: 82px; }
.me-btn--search { min-width: 64px; padding-inline: 12px; }
.me-btn--submit {
  min-width: 94px;
  background: linear-gradient(180deg, #38b46f 0%, #2fa260 100%);
  border-color: #289255;
  color: #fff;
}
.me-btn--submit:hover {
  background: linear-gradient(180deg, #3fc378 0%, #319d60 100%);
}
.me-casting-create-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  margin-bottom: 16px;
}
.me-casting-create-card--edit-shell {
  overflow: visible;
  box-shadow: none;
  border-color: #d9e1ea;
  border-radius: 3px;
}
.me-casting-create-card--flat {
  border: 0;
  box-shadow: none;
  margin-bottom: 0;
}
.me-casting-backbar--edit {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.me-casting-edit-actions {
  margin: 10px 0 0;
  gap: 8px;
}
.me-casting-edit-tabs {
  gap: 0;
  margin: 14px 18px 0;
  border-bottom: 1px solid var(--line);
}
.me-casting-edit-tabs .tab-btn {
  margin: 0 2px -1px 0;
  border-radius: 3px 3px 0 0;
  padding: 8px 13px;
  background: var(--panel-soft);
  box-shadow: none;
  color: var(--muted);
  font-size: 13px;
}
.me-casting-edit-tabs .tab-btn.is-active {
  background: var(--panel);
  color: var(--text-soft);
  border-color: #d9e1ea;
  border-bottom-color: #fff;
  box-shadow: none;
}
.me-casting-edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 16px 18px 18px;
  align-items: start;
}
.me-casting-side-stack {
  display: grid;
  gap: 16px;
}
.me-casting-section-card {
  margin: 18px;
}
.me-casting-create-head {
  padding: 18px 18px 8px;
}
.me-casting-create-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-soft);
}
.me-casting-create-head p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.me-casting-photo-strip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 18px 0;
  padding: 8px 0 12px;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.me-casting-photo-label {
  width: 72px;
  padding-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.me-casting-photo-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.me-casting-photo-card img {
  width: 54px;
  height: 54px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--panel);
}
.me-casting-photo-card--empty {
  min-height: 54px;
  justify-content: center;
  border: 1px dashed #bec9d5;
  border-radius: 4px;
  color: #718196;
  background: var(--panel);
}
.me-casting-photo-strip__text {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.me-casting-photo-strip__text strong {
  color: var(--text-soft);
  font-size: 14px;
}
.me-casting-photo-strip__text span {
  color: var(--muted);
  font-size: 13px;
}
.me-casting-advanced-actions {
  margin: 10px 18px 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel-soft);
}
.me-casting-advanced-actions summary {
  cursor: pointer;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  list-style-position: inside;
}
.me-casting-advanced-actions[open] {
  padding-bottom: 12px;
}
.me-casting-advanced-actions .me-casting-edit-actions {
  padding: 0 12px;
}
.me-casting-photo-form .me-casting-photo-card {
  margin-bottom: 4px;
}
.me-casting-photo-form input[type="file"] {
  padding: 8px;
  background: var(--panel);
}
.me-casting-remove-photo {
  display: flex !important;
  align-items: center;
  gap: 8px;
}
.me-casting-remove-photo input {
  width: auto;
  min-height: 0;
  margin: 0;
}
.me-casting-remove-photo span {
  margin: 0;
}
.me-casting-create-body {
  padding: 8px 18px 18px;
}
.team-create-form {
  display: grid;
  gap: 12px;
}
.team-create-form__row {
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr);
  align-items: center;
  gap: 10px 12px;
}
.team-create-form__row--split { grid-template-columns: 204px 200px; }
.team-create-form__row--half { grid-template-columns: 204px 386px; }
.team-create-form__row--half-wide { grid-template-columns: 204px 591px; }
.team-create-form__label,
.team-create-form__section-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
}
.team-create-form__section-title { padding-top: 4px; }
.team-create-form__divider {
  height: 1px;
  background: #dfe6ee;
  margin: 2px 0 12px;
}
.team-create-form input,
.team-create-form select,
.team-create-form textarea {
  border-color: #ced7e1;
  border-radius: 4px;
  background: var(--panel);
  min-height: 40px;
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-soft);
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.03);
}
.team-create-form textarea {
  min-height: 116px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.45;
}
.team-create-form input::placeholder,
.team-create-form textarea::placeholder { color: #9aa8b6; }
.team-create-form input:focus,
.team-create-form select:focus,
.team-create-form textarea:focus {
  border-color: #8ba4bd;
  box-shadow: 0 0 0 3px rgba(120, 150, 180, 0.12);
  outline: none;
}
.team-create-form__compact {
  width: 200px;
  max-width: 100%;
}
.team-create-form__inline {
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 591px;
}
.team-create-form__inline--cep input {
  max-width: 386px;
  flex: 1 1 auto;
  min-width: 0;
}
.team-create-form__inline .me-btn {
  flex: 0 0 auto;
  height: 40px;
  white-space: nowrap;
}
.team-create-form__info-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
.team-create-form__info-box {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.team-create-form__info-box span {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.team-create-form__info-box input,
.team-create-form__info-box select { width: 100%; }
.team-create-form__row--notes { align-items: start; }
.team-create-form__row--notes .team-create-form__label { padding-top: 12px; }
.team-create-form__submit {
  display: flex;
  justify-content: center;
  padding-top: 8px;
  margin-top: 4px;
}
.team-create-form__submit .me-btn {
  min-width: 104px;
  padding-inline: 18px;
}

.ed-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
}
/* Override global input styles inside modal checkboxes */
.ed-modal-box input[type="checkbox"] {
  width: auto;
  padding: 0;
  border: 1px solid #aaa;
  border-radius: 3px;
  background: var(--panel);
  vertical-align: middle;
  margin-right: 6px;
  cursor: pointer;
}

/* ── TOP BAR NEW BUTTONS ───────────────────────────── */
.ed-btn-imprimir { background: #6b7a8e !important; color: white !important; border-color: #6b7a8e !important; font-size: 12px; font-weight: 700; padding: 7px 14px; border-radius: 5px; cursor: pointer; border: 1px solid transparent; }
.ed-btn-share    { background: #5ab4d4 !important; color: white !important; border-color: #5ab4d4 !important; font-size: 12px; font-weight: 700; padding: 7px 14px; border-radius: 5px; cursor: pointer; border: 1px solid transparent; }
.ed-btn-imprimir:hover { background: #56626f !important; }
.ed-btn-share:hover    { background: #43a0c0 !important; }

/* ── ETIQUETA BADGE & ADD BUTTON ───────────────────── */
.ed-etiqueta-badge-btn {
  background: #fff3cd; color: #856404; border: 1px solid #ffc107;
  border-radius: 12px; padding: 3px 10px; font-size: 11px; font-weight: 600;
  cursor: pointer; transition: background 0.15s;
}
.ed-etiqueta-badge-btn:hover { background: #ffe69c; }
.ed-etiqueta-add-btn {
  background: none; border: 1px dashed #c3cfdb; color: #8899a6;
  border-radius: 12px; padding: 3px 10px; font-size: 11px; cursor: pointer;
}
.ed-etiqueta-add-btn:hover { border-color: #5ab4d4; color: #5ab4d4; }
.ed-etiqueta-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ed-etiqueta-chip {
  background: #e8f5fb; color: #2b7a99; border: 1px solid #b3dff0;
  border-radius: 10px; padding: 3px 10px; font-size: 12px; cursor: pointer;
}
.ed-etiqueta-chip:hover { background: #d4eef8; }

/* ── DIAS ADICIONAIS BUTTON ────────────────────────── */
.ed-dias-add-btn {
  width: 100%; background: #f0f7ff; border: 1px solid #b3d4f7;
  color: #2971c3; border-radius: 6px; padding: 7px 12px; font-size: 12px;
  font-weight: 600; cursor: pointer; text-align: center;
}
.ed-dias-add-btn:hover { background: #dceeff; }

/* ── STAT CARD GREEN ────────────────────────────────── */
.ed-stat--green { border-color: #c6f0e0; background: #f0faf5; }
.ed-stat--green .ed-stat-num { color: #2e7d4f; }

/* ── TAB ROW ────────────────────────────────────────── */
.ed-tab-row { display: flex; gap: 0; margin-bottom: 16px; border-bottom: 2px solid var(--line); }
.ed-tab-btn {
  background: none; border: none; padding: 8px 16px; font-size: 13px;
  font-weight: 600; color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.ed-tab-btn:hover { color: #5ab4d4; }
.ed-tab-btn--active { color: #5ab4d4; border-bottom-color: #5ab4d4; }

/* ── KANBAN ─────────────────────────────────────────── */
.ed-kanban {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px;
}
.ed-kanban-col {
  flex: 1; min-width: 160px; background: var(--panel-soft);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px;
}
.ed-kanban-col-head {
  font-size: 12px; font-weight: 700; color: var(--text-soft);
  margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center;
}
.ed-kanban-cnt {
  background: var(--panel-soft); color: var(--muted); border-radius: 10px;
  padding: 1px 6px; font-size: 11px;
}
.ed-kanban-empty { color: var(--muted); font-size: 12px; text-align: center; padding: 12px 0; }
.ed-kanban-item {
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  padding: 8px; margin-bottom: 6px;
}
.ed-kanban-item-title { font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.ed-kanban-item-actions { display: flex; gap: 4px; }
.ed-kbtn {
  background: var(--panel-soft); border: none; border-radius: 4px;
  padding: 3px 7px; font-size: 11px; cursor: pointer; color: var(--muted);
}
.ed-kbtn:hover { background: #dde6f0; }
.ed-kbtn--del { background: #fff0f0; color: #c0392b; }
.ed-kbtn--del:hover { background: #ffd7d7; }

/* ── TOGGLE SWITCH (Área do Cliente) ───────────────── */
.ed-ca-toggle-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.ed-toggle-switch { position: relative; display: inline-block; width: 42px; height: 22px; flex-shrink: 0; }
.ed-toggle-switch input { opacity: 0; width: 0; height: 0; }
.ed-toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: #ccc; border-radius: 22px; transition: 0.3s;
}
.ed-toggle-slider:before {
  content: ""; position: absolute; width: 16px; height: 16px;
  left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.3s;
}
.ed-toggle-switch input:checked + .ed-toggle-slider { background: #4caf87; }
.ed-toggle-switch input:checked + .ed-toggle-slider:before { transform: translateX(20px); }
.ed-ca-options { margin-bottom: 12px; }
.ed-ca-opt-row { padding: 6px 0; border-bottom: 1px solid #f0f3f7; font-size: 13px; }
.ed-ca-opt-row label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.ed-ca-email-row { font-size: 13px; }
.ed-ca-email-val { color: #2e7d4f; font-weight: 600; margin-top: 4px; }
.ed-ca-email-warn { color: #e05c50; margin-top: 4px; }

/* ── FILE DROP / ARQUIVOS ───────────────────────────── */
.ed-arquivo-drop {
  border: 2px dashed #b3d4f7; border-radius: 8px;
  padding: 20px; text-align: center; color: var(--muted);
  font-size: 13px; background: #f6fbff;
}
.ed-arquivo-drop.is-dragging {
  border-color: #42c6c6;
  background: #edfafa;
}
.ed-arquivo-label {
  display: inline-block; background: #5ab4d4; color: white;
  border-radius: 5px; padding: 6px 14px; font-size: 12px;
  font-weight: 600; cursor: pointer; margin: 8px 0 4px;
}
.ed-arquivo-input { display: none; }
.ed-arquivo-hint { font-size: 11px; color: var(--muted); }
.ed-arquivo-nome { font-size: 12px; color: #3a8fa8; margin-top: 6px; font-weight: 500; }
.ed-file-list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.ed-file-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; background: var(--panel-soft); border: 1px solid var(--line); border-radius: 6px;
}
.ed-file-name { font-size: 13px; color: var(--text-soft); }
.ed-file-actions { display: flex; gap: 6px; }

/* ── STATUS TAG ─────────────────────────────────────── */
.ed-status-tag {
  background: #e8f5fb; color: #2b7a99; border-radius: 10px;
  padding: 2px 8px; font-size: 11px; font-weight: 600;
}

/* ── INSCRIÇÕES BADGE ───────────────────────────────── */
.ed-insc-badge {
  display: inline-block; padding: 5px 14px; border-radius: 14px;
  font-size: 13px; font-weight: 700;
}
.ed-insc-badge--on  { background: #d4f0e4; color: #1e6e44; }
.ed-insc-badge--off { background: var(--panel-soft); color: #8899a6; }

/* ── PLANTA BAIXA PREVIEW ───────────────────────────── */
.ed-planta-preview { margin-top: 14px; }
.ed-planta-preview img { max-width: 100%; border-radius: 6px; border: 1px solid var(--line); }
.ed-planta-upload-form {
  margin: 22px 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ed-planta-name-input {
  flex: 0 0 240px;
  min-width: 220px;
  max-width: 100%;
}
.ed-planta-upload-btn {
  border: 0;
  border-radius: 4px;
  background: #2fb8d0;
  color: #fff;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
}
.ed-planta-save-btn {
  border: 0;
  border-radius: 4px;
  background: #45b987;
  color: #fff;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
}
.ed-planta-upload-btn:disabled,
.ed-planta-save-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.ed-planta-gallery {
  display: grid;
  gap: 22px;
  margin-top: 18px;
}
.ed-planta-item {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 142px;
  padding: 22px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}
.ed-planta-item img {
  width: 170px;
  height: 96px;
  object-fit: contain;
  background: var(--panel-soft);
}
.ed-planta-item strong {
  font-size: 30px;
  line-height: 1.1;
  font-weight: 400;
  color: var(--muted);
}
.ed-planta-remove {
  border: 1px solid #ffd5d5;
  background: #fff5f5;
  color: #b42318;
  border-radius: 4px;
  padding: 7px 10px;
  cursor: pointer;
}
@media (max-width: 720px) {
  .ed-planta-item {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .ed-planta-item img {
    width: 100%;
    height: auto;
    max-height: 220px;
  }
  .ed-planta-item strong {
    font-size: 22px;
  }
}

/* ── TIMELINE ───────────────────────────────────────── */
.ed-timeline-list { display: flex; flex-direction: column; gap: 0; }
.ed-timeline-entry {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid #f0f3f7;
}
.ed-tl-dot {
  width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; margin-top: 3px;
}
.ed-tl-dot--comentario { background: #5ab4d4; }
.ed-tl-dot--reuniao    { background: #4caf87; }
.ed-tl-dot--alteracao  { background: #f5a623; }
.ed-tl-body { flex: 1; min-width: 0; }
.ed-tl-meta { font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.ed-tl-tipo { text-transform: capitalize; }
.ed-tl-desc { font-size: 13px; color: var(--text-soft); }

/* ── HISTÓRICO ──────────────────────────────────────── */
.ed-history-list { display: flex; flex-direction: column; gap: 0; }
.ed-history-entry { padding: 10px 0; border-bottom: 1px solid #f0f3f7; }
.ed-history-meta { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.ed-history-nota { font-size: 13px; color: var(--text-soft); }

/* ── PERSONALIZAR GRID ──────────────────────────────── */
.ed-personalizar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ed-personalizar-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; cursor: pointer; padding: 6px;
  border-radius: 4px;
}
.ed-personalizar-item:hover { background: var(--panel-soft); }

/* ── DIAS ADICIONAIS MODAL ROWS ─────────────────────── */
.ed-ad-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px; background: var(--panel-soft); border: 1px solid var(--line);
  border-radius: 6px; margin-bottom: 6px; font-size: 12px;
}
.ed-ad-dates { font-weight: 600; color: var(--text-soft); }
.ed-ad-time  { color: var(--muted); }
.ed-ad-tag   { background: #e8f5fb; color: #2b7a99; border-radius: 8px; padding: 2px 7px; }
.ed-date-del-btn {
  margin-left: auto; background: none; border: none; color: #c0392b;
  cursor: pointer; font-size: 13px; padding: 2px 4px;
}

/* ── ORGANOGRAMA ────────────────────────────────────── */
.ed-organograma { display: flex; flex-wrap: wrap; gap: 12px; padding: 8px 0; }
.ed-org-node {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel-soft); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 14px; min-width: 200px;
}
.ed-org-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: #5ab4d4;
  color: white; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ed-org-info { flex: 1; }
.ed-org-info strong { display: block; font-size: 13px; color: var(--text-soft); }
.ed-org-info span   { font-size: 11px; color: var(--muted); }
.ed-org-status { font-size: 11px; font-weight: 600; color: var(--muted); }
.ed-org-status--yes { color: #2e7d4f; }

/* ── GRAPHITE OPS GLOBAL MODULE OVERRIDES ───────────────
   Mantém módulos legados alinhados ao shell escuro aprovado. */
.view-shell [class*="-card"],
.view-shell [class*="__card"],
.view-shell [class*="-panel"],
.view-shell [class*="__panel"],
.view-shell [class*="-box"],
.view-shell [class*="__box"],
.view-shell [class*="-row"],
.view-shell [class*="__row"],
.view-shell [class*="-item"],
.view-shell [class*="__item"],
.view-shell [class*="-layout"],
.view-shell [class*="__layout"],
.view-shell [class*="-body"],
.view-shell [class*="__body"],
.view-shell [class*="-wrap"],
.view-shell [class*="__wrap"] {
  border-color: rgba(255, 255, 255, 0.07);
}

.view-shell .ed-layout,
.view-shell .ed-left,
.view-shell .ed-right,
.view-shell .ed-card,
.view-shell .ed-stat-card,
.view-shell .ed-kanban-col,
.view-shell .ed-kanban-item,
.view-shell .ed-file-row,
.view-shell .ed-planta-item,
.view-shell .ed-org-node,
.view-shell .ed-ad-row,
.view-shell .evt-detalhe-header,
.view-shell .evt-secao-body,
.view-shell .evt-checklist-item,
.view-shell .evt-cron-item,
.view-shell .inv-bar,
.view-shell .inv-panel,
.view-shell .inv-card,
.view-shell .inv-filter-panel,
.view-shell .inv-novo-card,
.view-shell .inv-qr-modal,
.view-shell .edit-sidebar-card,
.view-shell .edit-section,
.view-shell .modal-box,
.view-shell .ed-modal-box {
  background: rgba(255, 255, 255, 0.035) !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
  box-shadow: none !important;
  color: #f3f6f9;
}

.view-shell .ed-card:hover,
.view-shell .ed-personalizar-item:hover,
.view-shell .ed-kbtn:hover,
.view-shell .ed-print-btn:hover,
.view-shell .filter-chip:hover,
.view-shell .inv-pre-btn--qr:hover,
.view-shell .inv-pre-btn--sub:hover {
  background: rgba(227, 27, 35, 0.08) !important;
  border-color: rgba(227, 27, 35, 0.16) !important;
  box-shadow: none !important;
}

.view-shell .ed-client-name,
.view-shell .ed-card-label,
.view-shell .ed-stat-num,
.view-shell .ed-tab-btn--active,
.view-shell .ed-tab-btn:hover,
.view-shell .evt-tab.is-active,
.view-shell .evt-data-day,
.view-shell .evt-countdown,
.view-shell .evt-cron-hora,
.view-shell .inv-novo-link,
.view-shell .cell-name-link,
.view-shell .attachment-link,
.view-shell .ed-icon-link-btn,
.view-shell .ed-link-btn,
.view-shell .ed-map-link,
.view-shell .ed-arquivo-nome,
.view-shell .ed-status-tag,
.view-shell .ed-ad-tag {
  color: var(--link-accent) !important;
}

.view-shell .ed-client-row-item,
.view-shell .ed-date-info,
.view-shell .ed-date-label,
.view-shell .ed-date-horario strong,
.view-shell .ed-section-label,
.view-shell .ed-venue-name,
.view-shell .ed-secao-title,
.view-shell .ed-file-name,
.view-shell .ed-tl-desc,
.view-shell .ed-history-nota,
.view-shell .ed-ad-dates,
.view-shell .ed-org-info strong,
.view-shell .evt-detalhe-titulo,
.view-shell .evt-check-text,
.view-shell .evt-cron-body,
.view-shell .inv-novo-card__title strong,
.view-shell .team-create-form__info-box span,
.view-shell .cat-card__count,
.view-shell .kit-item-qty {
  color: #f3f6f9 !important;
}

.view-shell .ed-date-type,
.view-shell .ed-termino-empty,
.view-shell .ed-termino-note,
.view-shell .ed-venue-addr,
.view-shell .ed-evento-num,
.view-shell .ed-hint,
.view-shell .ed-stat-lbl,
.view-shell .ed-stat-sub,
.view-shell .ed-tl-meta,
.view-shell .ed-history-meta,
.view-shell .ed-ad-time,
.view-shell .ed-org-info span,
.view-shell .ed-org-status,
.view-shell .evt-detalhe-meta,
.view-shell .evt-cron-body p,
.view-shell .inv-novo-card__title p,
.view-shell .inv-filter-label,
.view-shell .inv-novo-label,
.view-shell .field-note,
.view-shell .cell-subtle {
  color: var(--muted) !important;
}

.view-shell .ed-btn-todos,
.view-shell .ed-btn-form,
.view-shell .ed-btn-share,
.view-shell .ed-btn-green,
.view-shell .ed-btn-save,
.view-shell .ed-add-client-btn,
.view-shell .ed-duplicate-btn,
.view-shell .ed-share-btn,
.view-shell .ed-arquivo-label,
.view-shell .ed-planta-upload-btn,
.view-shell .evt-info-btn--teal,
.view-shell .evt-info-btn--blue,
.view-shell .inv-novo-btn-consultar,
.view-shell .inv-qr-btn--blue,
.view-shell .inv-qr-btn--teal,
.view-shell .kit-list-btn--teal,
.view-shell .inv-action-btn--teal,
.view-shell .ed-iact-green,
.view-shell .ed-iact-blue {
  background: linear-gradient(180deg, #f03a41, #e31b23) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

.view-shell .ed-btn-todos:hover,
.view-shell .ed-btn-form:hover,
.view-shell .ed-btn-share:hover,
.view-shell .ed-btn-green:hover,
.view-shell .ed-btn-save:hover,
.view-shell .ed-add-client-btn:hover,
.view-shell .ed-duplicate-btn:hover,
.view-shell .ed-share-btn:hover {
  background: linear-gradient(180deg, #e31b23, #b9141b) !important;
}

.view-shell .ed-btn-imprimir,
.view-shell .ed-print-btn,
.view-shell .ed-kbtn,
.view-shell .ed-personalizar-btn,
.view-shell .ed-dias-add-btn,
.view-shell .ed-etiqueta-add-btn,
.view-shell .evt-secao-tab,
.view-shell .evt-confirm-btn--no,
.view-shell .ed-cron-tab,
.view-shell .inv-novo-tab-btn {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #f3f6f9 !important;
}

.view-shell .evt-secao-tab.is-active,
.view-shell .evt-tab.is-active,
.view-shell .ed-cron-tab.is-active,
.view-shell .inv-novo-tab-btn.is-active,
.view-shell .ed-toggle-switch input:checked + .ed-toggle-slider {
  background: rgba(227, 27, 35, 0.14) !important;
  border-color: rgba(227, 27, 35, 0.18) !important;
  border-bottom-color: rgba(227, 27, 35, 0.18) !important;
  color: #ffffff !important;
}

.view-shell .evt-tab.is-active .evt-badge {
  background: rgba(227, 27, 35, 0.14) !important;
  color: #ffffff !important;
}

.view-shell .ed-avatar,
.view-shell .ed-card-progress,
.view-shell .ed-toggle-slider,
.view-shell .ed-planta-item img,
.view-shell .ed-arquivo-drop,
.view-shell .ed-hint,
.view-shell .ed-status-tag,
.view-shell .ed-etiqueta-chip,
.view-shell .ed-ad-tag,
.view-shell .ed-insc-badge--off,
.view-shell .ed-badge-gray,
.view-shell .ed-badge-count,
.view-shell .evt-check-resp,
.view-shell .tipo-badge--baixa_manual {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.view-shell .ed-card-progress-fill,
.view-shell .ed-date-dot,
.view-shell .ed-tl-dot--comentario,
.view-shell .ed-org-avatar {
  background: var(--orange) !important;
}

.view-shell .ed-alert-banner,
.view-shell .ed-stat--danger,
.view-shell .ed-planta-remove,
.view-shell .ed-kbtn--del {
  background: rgba(227, 27, 35, 0.10) !important;
  border-color: rgba(227, 27, 35, 0.18) !important;
  color: var(--link-accent) !important;
}

.view-shell .evt-row:hover td,
.view-shell .client-list-table tbody tr:hover td,
.view-shell .evt-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.04) !important;
}

.view-shell .tab-count--blue,
.view-shell .tab-count--teal {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

/* ════════════════════════════════════════════════════════════
   TEMA CLARO — re-skin do conteudo (.view-shell)
   O conteudo foi construido dark-first (fundos brancos translucidos
   e texto claro fixo). Aqui, SO no tema claro, devolvemos superficies
   e textos para as variaveis. Nao afeta o tema escuro nem o chrome
   (sidebar/topbar) nem badges coloridos.
   ════════════════════════════════════════════════════════════ */
html[data-theme="light"] .view-shell td { color: var(--text); border-bottom-color: var(--line); }
html[data-theme="light"] .view-shell th { color: var(--muted); border-bottom-color: var(--line); }
html[data-theme="light"] .view-shell tbody tr:hover { background: var(--panel-soft); }
html[data-theme="light"] .view-shell .evt-row:hover td,
html[data-theme="light"] .view-shell .client-list-table tbody tr:hover td,
html[data-theme="light"] .view-shell .evt-table tbody tr:hover td { background: var(--panel-soft) !important; }

html[data-theme="light"] .view-shell input,
html[data-theme="light"] .view-shell select,
html[data-theme="light"] .view-shell textarea { background: var(--panel); border-color: var(--line); color: var(--text); }
html[data-theme="light"] .view-shell input::placeholder,
html[data-theme="light"] .view-shell textarea::placeholder { color: var(--muted); }

html[data-theme="light"] .view-shell .btn--ghost,
html[data-theme="light"] .view-shell .btn--outline,
html[data-theme="light"] .view-shell .btn--icon,
html[data-theme="light"] .view-shell .tab-btn,
html[data-theme="light"] .view-shell .cal-btn,
html[data-theme="light"] .view-shell .filter-chip,
html[data-theme="light"] .view-shell .task-btn,
html[data-theme="light"] .view-shell .attachment-link,
html[data-theme="light"] .view-shell .action-btn--info { background: var(--panel); border-color: var(--line); color: var(--text-soft); }

html[data-theme="light"] .view-shell .page-header { background: var(--panel); border-color: var(--line); }
html[data-theme="light"] .view-shell .page-header__title { color: var(--text); }
html[data-theme="light"] .view-shell .page-header__eyebrow { color: var(--muted); }
html[data-theme="light"] .view-shell .page-header__icon,
html[data-theme="light"] .view-shell .page-help { color: var(--text); }
html[data-theme="light"] .view-shell .calendar-month-title,
html[data-theme="light"] .view-shell .calendar-title { color: var(--text); }

/* Dashboard */
html[data-theme="light"] .view-shell .kpi-value { color: var(--text); }
html[data-theme="light"] .view-shell .kpi-card .kpi-label,
html[data-theme="light"] .view-shell .perf-mini__label { color: var(--muted); }
html[data-theme="light"] .view-shell .chart-card__title { color: var(--text); }

/* Cards / secoes */
html[data-theme="light"] .view-shell .section-card__head,
html[data-theme="light"] .view-shell .section-card__head h3,
html[data-theme="light"] .view-shell .table-card__head h3,
html[data-theme="light"] .view-shell .panel-card__head h3,
html[data-theme="light"] .view-shell .hero-card h3,
html[data-theme="light"] .view-shell .form-card h3,
html[data-theme="light"] .view-shell .section-title,
html[data-theme="light"] .view-shell .card-title,
html[data-theme="light"] .view-shell .list-item__title,
html[data-theme="light"] .view-shell .list-item strong,
html[data-theme="light"] .view-shell .meta-row strong,
html[data-theme="light"] .view-shell .summary-card strong,
html[data-theme="light"] .view-shell .summary-card__value,
html[data-theme="light"] .view-shell .stat-value,
html[data-theme="light"] .view-shell .big-number { color: var(--text); }

/* Agenda / calendario */
html[data-theme="light"] .view-shell .cal-cell.is-cur,
html[data-theme="light"] .view-shell .cal-event-title,
html[data-theme="light"] .view-shell .cal-event-date strong,
html[data-theme="light"] .view-shell .agenda-sidebar__head h3 { color: var(--text); }
html[data-theme="light"] .view-shell .cal-day-name,
html[data-theme="light"] .view-shell .cal-weekday { color: var(--muted); }

/* Dashboard — itens restantes */
html[data-theme="light"] .view-shell .task-item__link { color: var(--text); }
html[data-theme="light"] .view-shell .perf-month-btn { color: var(--text-soft); }
html[data-theme="light"] .view-shell .perf-month-btn.is-active { background: var(--orange); border-color: var(--orange); color: #fff; }
html[data-theme="light"] .view-shell .kpi-card--neutral .kpi-badge,
html[data-theme="light"] .view-shell .kpi-card--blue .kpi-badge { background: var(--panel-soft); color: var(--text-soft); }

/* ════════ Fase 2 — grafico de faturamento + donut de mix (tematicos) ════════ */
.dchart-wrap { padding: 8px 2px 0; }
.dchart-svg { width: 100%; height: auto; display: block; }
.dchart-grid { stroke: var(--line); stroke-width: 1; }
.dchart-area { fill: var(--orange); opacity: 0.10; }
.dchart-line { fill: none; stroke: var(--orange); stroke-width: 2.5; }
.dchart-dot  { fill: var(--orange); stroke: var(--panel); stroke-width: 2; }
.dchart-axis { fill: var(--muted); font-size: 11px; font-family: var(--font-body); }
.dchart-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 6px 2px; font-size: 12px; color: var(--muted); }
.dchart-foot strong { color: var(--text); font-size: 15px; font-weight: 700; }
.ddonut-row { display: flex; align-items: center; gap: 16px; }
.ddonut-c1 { fill: var(--text); font-weight: 800; font-size: 15px; font-family: var(--font-body); }
.ddonut-c2 { fill: var(--muted); font-size: 10px; font-family: var(--font-body); }
.ddonut-legend { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; }
.ddonut-leg { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.ddonut-leg i { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }
.ddonut-leg span { color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ddonut-leg b { margin-left: auto; font-weight: 700; color: var(--text); }

/* ════════════════════════════════════════════════════════════
   TEMA CLARO — chrome (sidebar + topbar) tambem claro
   No tema claro, o menu lateral e a barra superior eram escuros
   (feitos so para o tema escuro). Aqui deixamos o chrome claro e
   coeso. Nao afeta o tema escuro.
   ════════════════════════════════════════════════════════════ */
/* Sidebar */
html[data-theme="light"] .sidebar {
  background: var(--panel);
  border-right: 1px solid var(--line);
  color: var(--text);
}
html[data-theme="light"] .profile-card {
  background: var(--panel-soft);
  border-bottom-color: var(--line);
}
html[data-theme="light"] .profile-meta h2 { color: var(--text); }
html[data-theme="light"] .profile-meta p { color: var(--muted); }
html[data-theme="light"] .profile-avatar img { filter: none; }
html[data-theme="light"] .mini-action,
html[data-theme="light"] .mini-action-icon {
  background: var(--panel); border-color: var(--line); color: var(--text-soft);
}
html[data-theme="light"] .mini-action-icon:hover { background: var(--panel-soft); color: var(--text); }

/* Nav */
html[data-theme="light"] .nav-button {
  color: var(--text-soft);
  border-top-color: rgba(0,0,0,0.05);
}
html[data-theme="light"] .nav-button:hover {
  background: var(--panel-soft);
  color: var(--text);
}
html[data-theme="light"] .nav-button:hover .nav-icon,
html[data-theme="light"] .nav-button.is-open .nav-icon {
  background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.06);
}
html[data-theme="light"] .nav-button.is-active {
  background: rgba(227, 27, 35, 0.10);
  color: var(--orange);
}
html[data-theme="light"] .nav-button.is-active .nav-icon {
  background: rgba(227,27,35,0.12); border-color: rgba(227,27,35,0.18);
}
html[data-theme="light"] .nav-button.has-active-child { background: rgba(0,0,0,0.03); color: var(--text); }
html[data-theme="light"] .nav-label { color: var(--muted); }
html[data-theme="light"] .nav-icon img { filter: brightness(0); opacity: 0.7; }
html[data-theme="light"] .nav-button.is-active .nav-icon img { filter: brightness(0); opacity: 1; }
html[data-theme="light"] .nav-sub-item { color: var(--text-soft); }
html[data-theme="light"] .nav-sub-item:hover { color: var(--text); }

/* Topbar */
html[data-theme="light"] .platform-header {
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid var(--line);
}
html[data-theme="light"] .brand-strip {
  background: var(--panel);
  color: var(--text);
  border-right: 1px solid var(--line);
}
html[data-theme="light"] .brand-strip img,
html[data-theme="light"] .menu-toggle img { filter: brightness(0); opacity: 0.82; }
html[data-theme="light"] .menu-toggle { border-color: var(--line); }
html[data-theme="light"] .menu-toggle:hover { background: var(--panel-soft); border-color: var(--line-strong); }
html[data-theme="light"] .country-chip {
  background: var(--panel-soft); border-color: var(--line); color: var(--text-soft);
}
html[data-theme="light"] .header-user { color: var(--text); }
html[data-theme="light"] .theme-toggle {
  background: var(--panel-soft); border-color: var(--line); color: var(--text-soft);
}
html[data-theme="light"] .theme-toggle:hover { background: var(--line); color: var(--text); }

/* Topo do conteudo no tema claro: titulo e botoes de atalho */
html[data-theme="light"] .page-title { color: var(--text); }
html[data-theme="light"] .page-kicker { color: var(--muted); }
html[data-theme="light"] .shortcut-row .btn {
  background: var(--panel);
  color: var(--text-soft);
  border: 1px solid var(--line);
}
html[data-theme="light"] .shortcut-row .btn:hover {
  background: var(--panel-soft);
  color: var(--text);
  border-color: var(--line-strong);
}
html[data-theme="light"] .shortcut-panel {
  background: var(--panel);
  border-color: var(--line);
}
html[data-theme="light"] .shortcut-link { color: var(--text-soft); }
html[data-theme="light"] .shortcut-link:hover { background: var(--panel-soft); color: var(--text); }

/* Fundo da area de conteudo no tema claro (era um gradiente escuro fixo) */
html[data-theme="light"] .workspace { background: var(--bg); }

/* Cabecalhos de painel/secao/calendario no claro (eram overlay preto = cinza sujo) */
html[data-theme="light"] .view-shell .table-card__head,
html[data-theme="light"] .view-shell .form-card__head,
html[data-theme="light"] .view-shell .panel-card__head,
html[data-theme="light"] .view-shell .section-card__head,
html[data-theme="light"] .view-shell .agenda-sidebar__head,
html[data-theme="light"] .view-shell .calendar-week-header,
html[data-theme="light"] .calendar-week-header,
html[data-theme="light"] .agenda-sidebar__head {
  background: var(--panel-soft);
  border-bottom-color: var(--line);
}
html[data-theme="light"] .view-shell .table-card__head h3,
html[data-theme="light"] .view-shell .form-card__head h3,
html[data-theme="light"] .view-shell .agenda-sidebar__head h3,
html[data-theme="light"] .agenda-sidebar__head h3 { color: var(--text); }
html[data-theme="light"] .cal-day-name { color: var(--muted); }

/* Seta de expandir/recolher do menu (era branca) */
html[data-theme="light"] .nav-chevron { color: var(--muted); }

/* Bloco de sub-itens do menu no claro (era overlay preto = cinza pesado) */
html[data-theme="light"] .nav-sub { background: var(--panel-soft); }

/* ════════════════════════════════════════════════════════════
   REFINO VISUAL PROFISSIONAL — SETEMBRO/2026
   Camada global do painel: contraste, hierarquia e densidade.
   ════════════════════════════════════════════════════════════ */
:root {
  --bg: #f3f5f8;
  --panel-soft: #f8f9fb;
  --line: #e2e6ec;
  --line-strong: #cfd5dd;
  --text: #111827;
  --text-soft: #344054;
  --muted: #667085;
  --sidebar: #15171b;
  --sidebar-dark: #0e1013;
  --sidebar-hover: #24272d;
  --shadow: 0 18px 45px rgba(16, 24, 40, 0.10);
  --shadow-soft: 0 7px 22px rgba(16, 24, 40, 0.065);
  --radius: 10px;
  --radius-lg: 16px;
}

body {
  overflow-x: hidden;
  background: var(--bg);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(227, 27, 35, 0.22);
  outline-offset: 2px;
}

.platform-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 68px;
  grid-template-columns: 280px minmax(0, 1fr);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02), 0 8px 24px rgba(16, 24, 40, 0.04);
}

.brand-strip,
html[data-theme="light"] .brand-strip {
  padding: 0 18px;
  background: linear-gradient(135deg, #111317 0%, #202329 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  color: #fff;
}

html[data-theme="light"] .brand-strip strong img { filter: none; opacity: 1; }
html[data-theme="light"] .menu-toggle img { filter: brightness(0) invert(1); opacity: 0.9; }
html[data-theme="light"] .menu-toggle {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

.platform-body { grid-template-columns: 280px minmax(0, 1fr); }

.sidebar,
html[data-theme="light"] .sidebar {
  position: sticky;
  top: 68px;
  align-self: start;
  height: calc(100vh - 68px);
  min-height: calc(100vh - 68px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, #17191e 0%, #101216 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.profile-card,
html[data-theme="light"] .profile-card {
  padding: 20px 18px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .profile-meta h2 { color: #fff; }
html[data-theme="light"] .profile-meta p { color: #aeb5c0; }
html[data-theme="light"] .profile-avatar img { filter: brightness(0) invert(1); }
html[data-theme="light"] .mini-action-icon {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.10);
  color: #e5e7eb;
}

.sidebar-nav { gap: 3px; padding: 10px 8px 24px; }

.nav-button,
html[data-theme="light"] .nav-button {
  min-height: 45px;
  padding: 9px 11px;
  border: 0;
  border-radius: 10px;
  color: #d2d6dc;
  font-size: 12.5px;
}

.nav-button::before { display: none; }
.nav-button:hover,
html[data-theme="light"] .nav-button:hover { background: rgba(255, 255, 255, 0.065); color: #fff; }
.nav-button.is-open,
html[data-theme="light"] .nav-button.is-open { background: rgba(255, 255, 255, 0.045); color: #fff; }
.nav-button.is-active,
html[data-theme="light"] .nav-button.is-active {
  background: linear-gradient(135deg, #e31b23, #bd151b);
  color: #fff;
  box-shadow: 0 10px 24px rgba(227, 27, 35, 0.22);
}

.nav-button.is-active .nav-icon,
html[data-theme="light"] .nav-button.is-active .nav-icon {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.13);
}

.nav-icon,
html[data-theme="light"] .nav-button:hover .nav-icon,
html[data-theme="light"] .nav-button.is-open .nav-icon {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.06);
  color: #fff;
}

html[data-theme="light"] .nav-icon img,
html[data-theme="light"] .nav-button.is-active .nav-icon img { filter: brightness(0) invert(1); opacity: 0.9; }
html[data-theme="light"] .nav-chevron { color: #858d99; }
html[data-theme="light"] .nav-label { color: #858d99; }

.nav-sub,
html[data-theme="light"] .nav-sub {
  margin: 0 4px 6px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 10px;
}

.nav-sub-item,
html[data-theme="light"] .nav-sub-item { border-radius: 7px; color: #aeb5c0; }
.nav-sub-item:hover,
html[data-theme="light"] .nav-sub-item:hover { background: rgba(255, 255, 255, 0.055); color: #fff; }

.workspace,
html[data-theme="light"] .workspace {
  min-width: 0;
  padding: 26px 30px 48px;
  background:
    radial-gradient(circle at 92% 0%, rgba(227, 27, 35, 0.045), transparent 24%),
    var(--bg);
}

.workspace-top,
.shortcut-panel,
.view-shell {
  width: 100%;
  max-width: 1680px;
  margin-left: auto;
  margin-right: auto;
}

.workspace-top { align-items: center; margin-bottom: 20px; }
.page-kicker { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 0.18em; }
.page-title { margin-top: 7px; color: var(--text); font-size: clamp(28px, 2vw, 36px); }

.shortcut-row { gap: 8px; }
.shortcut-row .btn,
html[data-theme="light"] .shortcut-row .btn {
  min-height: 42px;
  padding: 11px 17px;
  border-radius: 11px;
  box-shadow: none;
}
.shortcut-row .btn--success,
html[data-theme="light"] .shortcut-row .btn--success { background: #17191e; border-color: #17191e; color: #fff; }
.shortcut-row .btn--warning,
html[data-theme="light"] .shortcut-row .btn--warning {
  background: linear-gradient(135deg, #e31b23, #c5161d);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 24px rgba(227, 27, 35, 0.18);
}

.view-shell { gap: 18px; }
.page-header,
html[data-theme="light"] .view-shell .page-header {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--panel), var(--panel-soft));
  box-shadow: var(--shadow-soft);
}
.page-header__icon,
html[data-theme="light"] .view-shell .page-header__icon { border-radius: 11px; }
.page-header__title { font-size: 21px; }

.summary-grid { gap: 14px; }
.kpi-card,
.summary-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.kpi-card::after {
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  width: auto;
  height: 3px;
  opacity: 1;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.kpi-card--orange::after { background: var(--orange); }
.kpi-card--red::after { background: #d92d20; }
.kpi-card--green::after { background: var(--green); }
.kpi-card--blue::after { background: #356ae6; }
.kpi-card--neutral::after { background: #98a2b3; }
.kpi-value { font-size: clamp(30px, 2.25vw, 40px); }

.card,
.table-card,
.panel-card,
.summary-card,
.form-card,
.hero-card,
.chart-card,
.section-card {
  border-color: var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.table-card:hover,
.panel-card:hover { box-shadow: 0 12px 34px rgba(16, 24, 40, 0.085); }

html[data-theme="light"] .view-shell .table-card__head,
html[data-theme="light"] .view-shell .form-card__head,
html[data-theme="light"] .view-shell .panel-card__head,
html[data-theme="light"] .view-shell .section-card__head,
html[data-theme="light"] .view-shell .agenda-sidebar__head {
  background: var(--panel);
  border-bottom-color: var(--line);
}

.view-shell th {
  background: var(--panel-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}
.view-shell td { vertical-align: middle; }
.view-shell tbody tr { transition: background-color 0.16s ease; }

.view-shell input,
.view-shell select,
.view-shell textarea { border-radius: 10px; }
.btn,
.btn--add,
.btn--export,
.btn--print,
.btn--outline,
.btn--danger,
.action-btn { border-radius: 9px; }

@media (max-width: 1200px) {
  .workspace { padding: 22px 22px 40px; }
}

@media (max-width: 980px) {
  .platform-header,
  .platform-shell.is-collapsed .platform-header { grid-template-columns: minmax(0, 1fr) auto; height: 64px; }
  .platform-body,
  .platform-shell.is-collapsed .platform-body { grid-template-columns: 1fr; }
  .brand-strip { min-width: 0; height: 64px; }
  .header-actions { padding: 0 12px; gap: 8px; }
  .header-user { display: none; }
  .sidebar,
  html[data-theme="light"] .sidebar {
    display: none;
    position: fixed;
    top: 64px;
    bottom: 0;
    left: 0;
    z-index: 29;
    width: min(320px, 88vw);
    height: calc(100vh - 64px);
    min-height: 0;
    max-height: none;
    box-shadow: 20px 0 48px rgba(0, 0, 0, 0.30);
  }
  .platform-shell.is-collapsed .sidebar { display: block; }
  .platform-shell.is-collapsed .profile-card { padding: 20px 18px 16px; }
  .platform-shell.is-collapsed .profile-avatar { width: 64px; height: 64px; margin: 0; font-size: 20px; }
  .platform-shell.is-collapsed .profile-meta,
  .platform-shell.is-collapsed .nav-button strong { display: block; }
  .platform-shell.is-collapsed .brand-strip strong { display: inline-flex; }
  .platform-shell.is-collapsed .nav-chevron { display: inline; }
  .platform-shell.is-collapsed .nav-count { display: inline-flex; }
  .platform-shell.is-collapsed .nav-button {
    grid-template-columns: 28px minmax(0, 1fr) auto auto;
    justify-items: stretch;
    padding: 9px 11px;
  }
  .platform-shell.is-collapsed .nav-icon { font-size: 13px; }
  .platform-shell.is-collapsed .nav-sub { display: grid; }
  .platform-shell.is-collapsed .nav-button.has-active-child,
  .platform-shell.is-collapsed .nav-button.is-open {
    background: rgba(255, 255, 255, 0.045);
  }
}

@media (max-width: 760px) {
  .workspace { padding: 18px 14px 34px; }
  .workspace-top { align-items: stretch; }
  .shortcut-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .shortcut-row .btn { width: 100%; }
  .page-header { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
