@import "https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap";
/* [project]/app/globals.css [app-client] (css) */
:root {
  --bg: #f6f3ee;
  --bg-soft: #ebe4da;
  --panel: #fffdfa;
  --panel-raised: #fff;
  --text: #171717;
  --muted: #79716b;
  --line: #e3ddd4;
  --line-strong: #d2c7ba;
  --brand: #171717;
  --brand-strong: #0b0b0b;
  --brand-soft: #eee9e2;
  --accent: #b87333;
  --accent-soft: #f4eadf;
  --success: #2f7d4f;
  --success-soft: #e8f2ec;
  --warning: #a66510;
  --warning-soft: #f8ead5;
  --danger: #b23a32;
  --danger-soft: #f7e5e2;
  --info: #3d5a80;
  --info-soft: #e8edf4;
  --shadow-sm: 0 1px 2px #1c19170a, 0 10px 30px #1c191709;
  --shadow: 0 26px 76px #1c19171a;
  --radius: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html, body {
  background: radial-gradient(circle at top left, #b873331a, transparent 30rem),
    radial-gradient(circle at 72% 0%, #3d5a8012, transparent 28rem),
    linear-gradient(180deg, #fbfaf7 0%, var(--bg) 100%);
  min-height: 100%;
  color: var(--text);
  letter-spacing: 0;
  word-spacing: .02em;
  margin: 0;
  font-family: Plus Jakarta Sans, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

select, option, input, textarea {
  word-spacing: normal;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
}

button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline-offset: 2px;
  outline: 3px solid #b7824259;
}

.app-shell {
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
  display: grid;
}

.sidebar {
  color: #faf7f2;
  height: 100vh;
  box-shadow: none;
  background: linear-gradient(#151311 0%, #0f0e0d 100%);
  padding: 18px 10px;
  position: sticky;
  top: 0;
  overflow-y: auto;
}

.brand {
  align-items: center;
  gap: 12px;
  padding: 5px 9px 22px;
  display: flex;
}

.brand-mark {
  background: linear-gradient(135deg, var(--accent), #dfb16f);
  color: #111827;
  border-radius: 10px;
  place-items: center;
  width: 34px;
  height: 34px;
  font-weight: 900;
  display: grid;
  box-shadow: 0 10px 26px #b7824247;
}

.brand-name {
  font-size: 15px;
  font-weight: 850;
}

.brand-subtitle {
  color: #a9a19a;
  margin-top: 2px;
  font-size: 12px;
}

.nav-group {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 2px 0 10px;
}

.nav-group-trigger {
  color: #9d958e;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
  background: none;
  border: 0;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 30px;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 800;
  display: flex;
}

.nav-group-trigger svg {
  transition: transform .18s;
}

.nav-group-trigger svg.open {
  transform: rotate(180deg);
}

.nav-group-items {
  gap: 3px;
  display: grid;
}

.nav a, .mobile-more a {
  color: #d7d0c8;
  border-radius: 9px;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
}

.nav a span, .mobile-bottom-nav span, .mobile-more a {
  word-spacing: .12em;
}

.nav a:hover, .nav a.active {
  color: #fff;
  background: #ffffff1c;
}

.nav a.active {
  color: #171717;
  background: #fbf7ef;
  box-shadow: 0 10px 26px #00000029;
}

.main {
  min-width: 0;
}

.topbar {
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  z-index: 20;
  background: #fbfaf7d1;
  border-bottom: 1px solid #e3ddd4cc;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 64px;
  padding: 0 34px;
  display: flex;
  position: sticky;
  top: 0;
}

.topbar-left {
  align-items: center;
  gap: 12px;
  min-width: 0;
  display: flex;
}

.topbar strong {
  font-size: 16px;
}

.content {
  max-width: 1500px;
  padding: 34px 38px 46px;
}

.page-header, .resource-head {
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
  display: flex;
}

.eyebrow {
  background: var(--accent-soft);
  color: #80511e;
  border-radius: 999px;
  align-items: center;
  min-height: 24px;
  margin-bottom: 9px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
}

.page-title {
  letter-spacing: 0;
  margin: 0;
  font-size: 32px;
  line-height: 1.12;
}

.page-subtitle {
  color: var(--muted);
  max-width: 850px;
  margin: 9px 0 0;
  line-height: 1.55;
}

.page-actions, .toolbar {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex;
}

.section-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
  display: flex;
}

.section-header h2, .panel h2 {
  margin: 0;
  font-size: 18px;
}

.section-header p {
  color: var(--muted);
  margin: 5px 0 0;
  font-size: 13px;
}

.btn {
  border: 1px solid var(--line);
  min-height: 40px;
  color: var(--text);
  cursor: pointer;
  box-shadow: none;
  background: #fff;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  font-weight: 700;
  transition: transform .14s, border-color .14s, background .14s, box-shadow .14s, color .14s;
  display: inline-flex;
}

.btn:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px #1c191712;
}

.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 12px 28px #0b3b4338;
}

.btn.danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.btn.icon-only {
  width: 40px;
  min-height: 40px;
  padding: 0;
}

.mobile-menu-button, .mobile-bottom-nav, .mobile-more, .mobile-drawer {
  display: none;
}

.unit-select, .form-grid input, .form-grid select, .form-grid textarea, .form input, .searchbox input {
  border: 1px solid var(--line);
  width: 100%;
  min-height: 42px;
  color: var(--text);
  background: #fff;
  border-radius: 10px;
  padding: 0 12px;
}

.unit-select {
  width: auto;
}

.form-grid textarea {
  resize: vertical;
  min-height: 104px;
  padding-top: 10px;
}

.form-grid, .form {
  align-content: start;
  gap: 13px;
  display: grid;
}

.form-grid.compact {
  border: 0;
  padding: 0;
}

.form-grid label, .form label {
  color: var(--muted);
  gap: 7px;
  font-size: 13px;
  font-weight: 750;
  display: grid;
}

.checkbox-line {
  align-items: center;
  color: var(--text) !important;
  grid-template-columns: none !important;
  gap: 9px !important;
  display: flex !important;
}

.checkbox-line input {
  width: 18px;
  height: 18px;
  min-height: 18px;
}

.searchbox {
  border: 1px solid var(--line);
  width: min(320px, 100%);
  min-height: 42px;
  box-shadow: var(--shadow-sm);
  background: #fff;
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  display: inline-flex;
}

.searchbox input {
  min-height: 36px;
  box-shadow: none;
  border: 0;
  padding: 0;
}

.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  display: grid;
}

.metric, .panel, .data-card {
  min-width: 0;
  box-shadow: var(--shadow-sm);
  background: #fffdf9eb;
  border: 1px solid #e3ddd4f2;
  border-radius: 16px;
}

.metric {
  padding: 18px 18px 16px;
  position: relative;
  overflow: hidden;
}

.metric:after {
  display: none;
}

.metric span, .panel-kicker {
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  margin-top: 8px;
  font-size: 25px;
  line-height: 1.1;
  display: block;
}

.metric small {
  color: var(--muted);
  margin-top: 8px;
  display: block;
}

.metric-success:after {
  background: var(--success);
}

.metric-warning:after {
  background: var(--warning);
}

.metric-danger:after {
  background: var(--danger);
}

.metric-info:after {
  background: var(--info);
}

.metric-accent:after {
  background: var(--accent);
}

.grid {
  grid-template-columns: minmax(0, .95fr) minmax(460px, 1.35fr);
  gap: 18px;
  margin-top: 18px;
  display: grid;
}

.client-list-panel, .client-detail-panel {
  align-self: start;
}

.client-list-panel {
  max-height: calc(100vh - 116px);
  position: sticky;
  top: 86px;
  overflow: hidden;
}

.client-scroll-list {
  max-height: calc(100vh - 226px);
  padding-right: 4px;
  overflow: auto;
}

.client-detail-panel {
  min-height: calc(100vh - 156px);
}

.work-grid {
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 16px;
  margin-top: 18px;
  display: grid;
}

.panel {
  padding: 22px;
}

.table-wrap {
  border-radius: var(--radius-sm);
  overflow-x: auto;
}

.table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: 14px;
}

.table th, .table td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  padding: 13px 12px;
}

.table th {
  color: var(--muted);
  background: #f8f4ed;
  font-weight: 800;
}

.table tr:hover td {
  background: #fff9f0;
}

.status, .status-badge {
  background: var(--brand-soft);
  min-height: 28px;
  color: var(--brand);
  border-radius: 999px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
  display: inline-flex;
}

.health-dot {
  color: var(--muted);
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
}

.health-dot:before {
  content: "";
  background: var(--warning);
  border-radius: 999px;
  width: 7px;
  height: 7px;
}

.health-dot.ok:before {
  background: var(--success);
}

.health-dot.error:before {
  background: var(--danger);
}

.realtime-status {
  border: 1px solid var(--line);
  min-height: 30px;
  color: var(--muted);
  background: #fffdf9c7;
  border-radius: 999px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  transition: color .16s, border-color .16s, background .16s;
  display: inline-flex;
}

.realtime-status span {
  background: var(--warning);
  border-radius: 999px;
  width: 7px;
  height: 7px;
  box-shadow: 0 0 0 3px #a665101f;
}

.realtime-status.connected {
  color: var(--success);
  border-color: #2f7d4f40;
}

.realtime-status.connected span {
  background: var(--success);
  box-shadow: 0 0 0 3px #2f7d4f1f;
}

.realtime-status.syncing {
  color: #80511e;
  border-color: #b8733347;
}

.realtime-status.syncing span {
  background: var(--accent);
  box-shadow: 0 0 0 3px #b873331f;
}

.realtime-status.offline {
  color: var(--danger);
  border-color: #b23a3238;
}

.realtime-status.offline span {
  background: var(--danger);
  box-shadow: 0 0 0 3px #b23a321a;
}

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

.status-warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

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

.status-accent {
  background: var(--accent-soft);
  color: #80511e;
}

.inline-message {
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 13px;
  line-height: 1.45;
}

.inline-message.danger {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

.segmented {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: #fff;
  border-radius: 999px;
  display: inline-flex;
  overflow: hidden;
}

.segmented button {
  cursor: pointer;
  background: none;
  border: 0;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 750;
}

.segmented button.selected {
  background: var(--brand);
  color: #fff;
}

.agenda-board {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  display: grid;
}

.agenda-column {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  min-height: 260px;
  padding: 12px;
}

.agenda-column h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

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

.appointment-card {
  border-left: 5px solid var(--brand);
  box-shadow: var(--shadow-sm);
  background: #fff;
  border-radius: 12px;
  gap: 7px;
  padding: 13px;
  display: grid;
}

.appointment-card strong {
  font-size: 14px;
}

.appointment-card small {
  color: var(--muted);
}

.appointment-card.confirmado {
  border-left-color: var(--success);
}

.appointment-card.cancelado, .appointment-card.nao_compareceu {
  border-left-color: var(--danger);
}

.appointment-card.em_atendimento {
  border-left-color: var(--accent);
}

.appointment-card.finalizado {
  border-left-color: var(--info);
}

.risk {
  background: var(--danger-soft);
  border-radius: 999px;
  width: fit-content;
  padding: 4px 8px;
  font-weight: 800;
  color: var(--danger) !important;
}

.data-card {
  padding: 14px;
}

.client-row {
  text-align: left;
  cursor: pointer;
  width: 100%;
}

.client-row.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #b7824229;
}

.client-profile {
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  display: flex;
}

.client-profile h2 {
  margin: 0 0 5px;
}

.client-profile p {
  color: var(--muted);
  margin: 0 0 10px;
}

.avatar {
  background: var(--brand);
  color: #fff;
  border-radius: 18px;
  place-items: center;
  width: 58px;
  height: 58px;
  font-weight: 900;
  display: grid;
}

.tabs {
  gap: 6px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  display: flex;
  overflow-x: auto;
}

.tabs button {
  border: 1px solid var(--line);
  min-height: 36px;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  background: #fff;
  border-radius: 999px;
  padding: 0 12px;
  font-weight: 800;
}

.tabs button.selected {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.visual-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  display: grid;
}

.chat-preview {
  border-radius: var(--radius);
  background: #eef2f5;
  gap: 10px;
  padding: 14px;
  display: grid;
}

.route-loading {
  min-height: 100vh;
  color: var(--muted);
  place-items: center;
  display: grid;
}

.briefing-hero, .agenda-hero {
  border: 1px solid var(--line);
  color: #fffaf4;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #171717f5, #2a241ef0), radial-gradient(circle at 100% 0, #b8733352, #0000 22rem);
  border-radius: 26px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 22px;
  padding: 34px;
  display: grid;
}

.agenda-hero {
  color: var(--text);
  box-shadow: none;
  background: linear-gradient(135deg, #fffdf9f5, #f4eadfb8), radial-gradient(circle at 85% 0, #b873331f, #0000 22rem);
}

.briefing-hero .eyebrow, .agenda-hero .eyebrow {
  color: #c9935f;
  background: #b873332e;
}

.agenda-hero .eyebrow {
  color: #80511e;
}

.briefing-hero h1, .agenda-hero h1 {
  letter-spacing: 0;
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
}

.briefing-hero p, .agenda-hero p {
  color: #fffaf4b3;
  max-width: 620px;
  line-height: 1.6;
}

.agenda-hero p {
  color: var(--muted);
}

.briefing-number {
  background: #fffaf414;
  border: 1px solid #fffaf41f;
  border-radius: 22px;
  min-width: 260px;
  max-width: 100%;
  padding: 22px;
}

.briefing-number span, .briefing-strip span, .cash-note span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.briefing-number strong {
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
  margin-top: 8px;
  font-size: 36px;
  line-height: 1.08;
  display: block;
}

.briefing-number small {
  color: #fffaf494;
}

.briefing-strip {
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: 22px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 22px;
  display: grid;
  overflow: hidden;
}

.briefing-strip div {
  background: #fffdf9d6;
  min-width: 0;
  padding: 20px;
}

.briefing-strip strong {
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
  margin-top: 6px;
  font-size: 24px;
  line-height: 1.1;
  display: block;
}

.product-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 18px;
  display: grid;
}

.product-panel {
  border: 1px solid var(--line);
  background: #fffdf9eb;
  border-radius: 22px;
  min-width: 0;
  padding: 22px;
}

.settings-tabs {
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 18px;
  display: flex;
}

.settings-tabs a {
  border: 1px solid var(--line);
  min-height: 40px;
  color: var(--muted);
  background: #fffdf9bd;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color .14s, border-color .14s, color .14s, transform .14s;
  display: inline-flex;
}

.settings-tabs a:hover {
  color: var(--text);
  border-color: #b873335c;
  transform: translateY(-1px);
}

.settings-tabs a.active {
  color: #2d1d12;
  background: #fff3e2;
  border-color: #b8733380;
}

.settings-context-panel {
  min-width: 0;
}

.focus-panel {
  min-height: 420px;
}

.quiet-panel {
  background: linear-gradient(#f4eadf94, #fffdf9c7);
}

.timeline-list {
  gap: 8px;
  display: grid;
}

.timeline-event {
  border-bottom: 1px solid var(--line);
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  display: grid;
}

.timeline-event time {
  color: var(--accent);
  font-weight: 800;
}

.timeline-event strong, .timeline-event span {
  display: block;
}

.timeline-event span {
  color: var(--muted);
  margin-top: 3px;
}

.alert-list {
  gap: 9px;
  display: grid;
}

.soft-alert {
  border: 1px solid var(--line);
  color: var(--text);
  background: #fffdf9d1;
  border-radius: 14px;
  padding: 12px 13px;
  font-weight: 650;
}

.soft-alert.good {
  color: var(--success);
  background: var(--success-soft);
}

.cash-note {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.cash-note strong {
  margin-top: 5px;
  display: block;
}

.agenda-filterbar {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  display: flex;
}

.agenda-command {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px) auto;
}

.agenda-live-card {
  min-width: 220px;
  box-shadow: var(--shadow-sm);
  background: #fffdf9db;
  border: 1px solid #17171714;
  border-radius: 22px;
  padding: 18px;
}

.agenda-live-card span, .agenda-live-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.agenda-live-card strong {
  margin: 5px 0;
  font-size: 32px;
  display: block;
}

.operation-bar {
  border: 1px solid var(--line);
  background: #fffdf9c2;
  border-radius: 22px;
  align-items: center;
  padding: 12px;
}

.agenda-message {
  margin-bottom: 16px;
}

.operation-timeline {
  border: 1px solid var(--line);
  color: #fffaf4;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #11100ff5, #26201bf5);
  border-radius: 24px;
  margin-bottom: 18px;
  padding: 20px;
}

.operation-timeline .section-header h2 {
  color: #fffaf4;
}

.operation-timeline .section-header p {
  color: #fffaf494;
}

.timeline-rail {
  grid-auto-columns: minmax(230px, 280px);
  grid-auto-flow: column;
  gap: 12px;
  padding-bottom: 3px;
  display: grid;
  overflow-x: auto;
}

.premium-agenda-layout {
  grid-template-columns: minmax(270px, 315px) minmax(0, 1fr);
  gap: 18px;
  display: grid;
}

.agenda-workspace {
  border: 1px solid var(--line);
  background: #fffdf9db;
  border-radius: 26px;
  min-width: 0;
  padding: 18px;
}

.kanban-timeline {
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: 24px;
  grid-template-columns: 74px minmax(0, 1fr);
  display: grid;
  overflow: hidden;
}

.ibg-agenda-board {
  --slot-height: 44px;
  --slot-count: 49;
  background: #d8d0c6;
  align-items: stretch;
  max-height: min(76vh, 980px);
  overflow: auto;
  box-shadow: inset 0 1px #ffffff8c;
}

.time-column {
  grid-template-rows: 54px repeat(var(--slot-count), var(--slot-height));
  background: var(--line);
  z-index: 6;
  gap: 1px;
  display: grid;
  position: sticky;
  left: 0;
}

.board-corner, .time-slot-label, .resource-header, .drop-slot {
  background: #fffdf9f0;
}

.board-corner, .resource-header {
  min-height: 54px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  align-items: center;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 900;
  display: flex;
}

.time-slot-label {
  min-height: var(--slot-height);
  color: var(--accent);
  justify-content: center;
  align-items: flex-start;
  padding-top: 7px;
  font-size: 11px;
  font-weight: 900;
  display: flex;
}

.board-scroll {
  min-width: 0;
  overflow-x: auto;
}

.resource-header-row, .slot-grid {
  grid-template-columns: repeat(var(--columns), minmax(245px, 1fr));
  min-width: calc(var(--columns) * 245px);
  gap: 1px;
  display: grid;
}

.slot-grid {
  background: var(--line);
}

.board-columns {
  align-items: stretch;
  position: relative;
}

.resource-column-track {
  grid-template-rows: repeat(var(--slot-count), var(--slot-height));
  min-height: calc(var(--slot-count) * var(--slot-height));
  background: var(--line);
  gap: 1px;
  display: grid;
  position: relative;
}

.drop-slot {
  min-height: var(--slot-height);
  text-align: left;
  cursor: pointer;
  border: 0;
  border-radius: 0;
  padding: 4px 8px;
  transition: background .16s, box-shadow .16s, opacity .16s;
  position: relative;
}

.drop-slot:hover {
  background: #fbf7ef;
  box-shadow: inset 0 0 0 2px #b8733338;
}

.drop-slot.occupied {
  background: #fffdf9fa;
}

.drop-slot.occupied-time {
  background: linear-gradient(90deg, #b8733314, #0000 54%), #fffdf9fa;
}

.drop-slot.drag-over {
  background: #fff3df;
  box-shadow: inset 0 0 0 2px #b873336b;
}

.free-slot {
  color: #b8afa4;
  opacity: 0;
  font-size: 10px;
  font-weight: 750;
}

.drop-slot:hover .free-slot, .drop-slot:focus-visible .free-slot {
  opacity: 1;
}

.now-line {
  z-index: 7;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  pointer-events: none;
  height: 2px;
  position: absolute;
  left: 0;
  right: 0;
}

.now-line span {
  color: #fffaf4;
  letter-spacing: .04em;
  background: #11100f;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 900;
  display: inline-flex;
  position: sticky;
  left: 10px;
  transform: translateY(-50%);
}

.appointment-event {
  cursor: grab;
  background: #fff;
  border: 1px solid #1717170f;
  border-radius: 16px;
  gap: 7px;
  width: 100%;
  padding: 12px;
  display: grid;
  box-shadow: 0 18px 36px #1c191717;
}

.resource-column-track > .appointment-event {
  z-index: 5;
  position: absolute;
  left: 8px;
  right: 8px;
  overflow: hidden;
}

.resource-column-track > .appointment-event:hover {
  z-index: 8;
}

.appointment-event:active {
  cursor: grabbing;
}

.appointment-event.compact {
  color: #fffaf4;
  background: #fffaf414;
  border-color: #fffaf41a;
  min-height: 142px;
}

.mobile-agenda-list {
  display: none;
}

.mobile-slot-row {
  border-bottom: 1px solid var(--line);
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 12px 0;
  display: grid;
}

.mobile-slot-row > time {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.mobile-slot-row > div > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.mobile-overflow-note {
  color: var(--accent);
  background: #f4eadf6b;
  border: 1px dashed #b8733352;
  border-radius: 12px;
  margin-top: 8px;
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 850;
}

.appointment-event.confirmado {
  border-left: 4px solid var(--success);
}

.appointment-event.cancelado, .appointment-event.nao_compareceu {
  border-left: 4px solid var(--danger);
}

.appointment-event.em_atendimento {
  border-left: 4px solid var(--accent);
}

.appointment-event.finalizado {
  border-left: 4px solid var(--info);
}

.event-topline, .event-flags, .event-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  display: flex;
}

.event-topline {
  justify-content: space-between;
}

.event-topline time {
  color: var(--accent);
  margin-right: auto;
  font-size: 12px;
  font-weight: 900;
}

.event-duration {
  align-items: center;
  gap: 3px;
  display: inline-flex;
}

.appointment-event strong {
  font-size: 15px;
}

.appointment-event span, .appointment-event small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.appointment-event.compact span, .appointment-event.compact small {
  color: #fffaf49e;
}

.event-actions {
  opacity: 0;
  max-height: 0;
  transition: max-height .18s, opacity .18s;
  overflow: hidden;
}

.appointment-event:hover .event-actions, .appointment-event:focus-within .event-actions, .appointment-event.compact .event-actions {
  opacity: 1;
  max-height: 120px;
}

.event-actions .btn {
  min-height: 30px;
  padding: 0 9px;
  font-size: 11px;
}

.agenda-layout {
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 18px;
  display: grid;
}

.compact-form {
  align-self: start;
  position: sticky;
  top: 86px;
}

.agenda-board {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.agenda-column {
  background: #f4eadf70;
  border: 0;
  border-radius: 22px;
  padding: 14px;
}

.agenda-column h3 {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
}

.event-card {
  border: 0;
  border-radius: 18px;
  padding: 16px;
}

.event-card time {
  color: var(--accent);
  font-weight: 800;
}

.event-card strong {
  font-size: 16px;
}

.event-card .toolbar {
  gap: 6px;
}

.client-profile {
  color: #fffaf4;
  background: linear-gradient(135deg, #171717f5, #2a241ef0);
  border-radius: 22px;
  margin: -4px -4px 18px;
  padding: 22px;
}

.client-profile p {
  color: #fffaf4a8;
}

.avatar {
  background: linear-gradient(135deg, var(--accent), #dfb16f);
  color: #171717;
}

.client-context-grid, .client-memory {
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 18px;
  display: grid;
  overflow: hidden;
}

.client-context-grid div, .client-memory div {
  background: #fffdf9e0;
  min-width: 0;
  padding: 15px;
}

.client-context-grid span, .client-memory span {
  color: var(--muted);
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  display: block;
}

.client-context-grid strong, .client-memory strong {
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
  font-size: 14px;
  line-height: 1.35;
  display: block;
}

.whatsapp-layout {
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr) minmax(280px, 330px);
  gap: 18px;
  display: grid;
}

.inbox-hero {
  margin-bottom: 18px;
}

.chat-workspace {
  min-height: 620px;
}

.chat-preview {
  background: linear-gradient(#f4eadfd9, #fbfaf7);
  align-content: end;
  min-height: 300px;
}

.bubble {
  border-radius: 20px;
}

.bubble.out {
  background: #171717;
}

.client-memory {
  grid-template-columns: 1fr;
}

.finance-hero {
  background: linear-gradient(135deg, #171717f5, #1a1816eb), radial-gradient(circle at 100% 0, #2f7d4f2e, #0000 21rem);
}

.finance-line {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.finance-line span {
  color: var(--muted);
  text-transform: capitalize;
}

.login-page {
  background: #11100f;
}

.login-card {
  background: #fffdf9;
}

.bubble {
  border-radius: 16px;
  width: fit-content;
  max-width: min(520px, 88%);
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.45;
}

.bubble.in {
  border: 1px solid var(--line);
  background: #fff;
}

.bubble.out {
  background: var(--brand);
  color: #fff;
  justify-self: end;
}

.data-card-head {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

.data-card-head strong {
  display: block;
}

.data-card-head span, .data-card-body {
  color: var(--muted);
  margin-top: 5px;
  font-size: 13px;
}

.empty-state, .loading-state {
  text-align: center;
  min-height: 180px;
  color: var(--muted);
  place-items: center;
  gap: 8px;
  display: grid;
}

.empty-state strong {
  color: var(--text);
}

.empty-state p {
  max-width: 420px;
  margin: 0;
}

.spin {
  animation: .8s linear infinite spin;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.permission-grid {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.access-hero {
  color: #fffaf4;
  background: linear-gradient(135deg, #141b22f5, #212a32eb), radial-gradient(circle at 100% 0, #c6894c3d, #0000 34%);
  border: 1px solid #1c252e14;
  border-radius: 22px;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
  align-items: stretch;
  gap: 18px;
  margin-bottom: 18px;
  padding: 24px;
  display: grid;
  box-shadow: 0 22px 60px #0f172029;
}

.access-hero h2 {
  letter-spacing: 0;
  max-width: 760px;
  margin: 8px 0 10px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.04;
}

.access-hero p {
  color: #fffaf4b8;
  max-width: 700px;
  margin: 0;
  font-size: 15px;
}

.access-hero-metrics {
  gap: 10px;
  display: grid;
}

.access-hero-metrics div {
  background: #fffaf40f;
  border: 1px solid #fffaf41f;
  border-radius: 16px;
  padding: 14px;
}

.access-hero-metrics strong {
  font-size: 28px;
  display: block;
}

.access-hero-metrics span {
  color: #fffaf4ad;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
}

.access-tabs {
  z-index: 4;
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: #ffffffdb;
  border-radius: 999px;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 16px;
  padding: 5px;
  display: flex;
  position: sticky;
  top: 76px;
  overflow-x: auto;
  box-shadow: 0 14px 36px #0f172014;
}

.access-tabs button, .role-picker button {
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 900;
  transition: background .16s, color .16s, transform .12s;
}

.access-tabs button:active, .role-picker button:active, .team-actions button:active {
  transform: scale(.98);
}

.access-tabs button.active, .role-picker button.active {
  background: var(--brand);
  color: #fffaf4;
}

.access-section {
  margin-top: 14px;
}

.team-grid {
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 14px;
  display: grid;
}

.team-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  transition: transform .16s, border-color .16s, box-shadow .16s;
  display: grid;
  box-shadow: 0 16px 42px #0f172012;
}

.team-card:hover {
  border-color: #c6894c57;
  transform: translateY(-1px);
  box-shadow: 0 20px 54px #0f17201c;
}

.team-avatar, .role-template-icon {
  color: #f1c084;
  background: #141b22;
  border-radius: 16px;
  place-items: center;
  width: 48px;
  height: 48px;
  font-weight: 950;
  display: grid;
}

.team-main, .team-title-row, .team-role-line {
  min-width: 0;
}

.team-title-row {
  justify-content: space-between;
  gap: 10px;
  display: flex;
}

.team-title-row strong, .role-template strong, .access-group-head strong {
  color: var(--text);
  display: block;
}

.team-title-row span, .team-role-line span, .role-template p, .role-template span, .access-group-head span, .access-technical-note span, .audit-timeline-preview span {
  color: var(--muted);
  font-size: 13px;
}

.team-title-row div span {
  word-break: break-word;
  margin-top: 3px;
  display: block;
}

.team-role-line {
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  display: flex;
}

.team-actions {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  display: flex;
}

.team-actions button {
  border: 1px solid var(--line);
  min-height: 34px;
  color: var(--text);
  cursor: pointer;
  background: #fbfaf8;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  transition: background .16s, border-color .16s, transform .12s;
  display: inline-flex;
}

.team-actions button:hover {
  background: #fff7ec;
  border-color: #c6894c61;
}

.team-role-select {
  border: 1px solid var(--line);
  min-height: 34px;
  color: var(--text);
  background: #fbfaf8;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
}

.team-role-select select {
  min-width: 92px;
  color: inherit;
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  outline: 0;
}

.role-template-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  display: grid;
}

.role-template {
  border: 1px solid var(--line);
  cursor: pointer;
  background: #fff;
  border-radius: 18px;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 17px;
  transition: transform .16s, box-shadow .16s, border-color .16s;
  display: grid;
}

.role-template:hover {
  border-color: #c6894c57;
  transform: translateY(-1px);
  box-shadow: 0 18px 46px #0f172017;
}

.role-template p {
  margin: 5px 0 9px;
}

.access-permissions-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 18px;
  display: grid;
}

.role-picker {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  display: flex;
}

.role-picker button {
  border: 1px solid var(--line);
  background: #fff;
}

.access-groups {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  display: grid;
}

.access-group-card, .access-matrix-panel, .audit-timeline-preview, .access-technical-note {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 14px 38px #0f17200f;
}

.access-group-card {
  padding: 15px;
}

.access-group-head {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  display: flex;
}

.friendly-permission-list {
  gap: 9px;
  margin-top: 12px;
  display: grid;
}

.friendly-permission-list div {
  color: var(--muted);
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  display: flex;
}

.friendly-permission-list span {
  color: #8a96a3;
  background: #f2f4f6;
  border-radius: 50%;
  place-items: center;
  width: 22px;
  height: 22px;
  display: grid;
}

.friendly-permission-list .allowed {
  color: var(--text);
}

.friendly-permission-list .allowed span {
  color: #239c5c;
  background: #239c5c1f;
}

.access-matrix-panel {
  align-self: start;
  padding: 16px;
  position: sticky;
  top: 136px;
  overflow-x: auto;
}

.access-matrix {
  gap: 2px;
  min-width: 390px;
  display: grid;
}

.matrix-row {
  grid-template-columns: 118px repeat(5, minmax(42px, 1fr));
  align-items: center;
  gap: 4px;
  min-height: 38px;
  font-size: 12px;
  display: grid;
}

.matrix-row span, .matrix-row b {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 950;
}

.matrix-row em {
  border-radius: 10px;
  place-items: center;
  height: 30px;
  font-style: normal;
  font-weight: 950;
  display: grid;
}

.matrix-row em.yes {
  color: #239c5c;
  background: #239c5c1c;
}

.matrix-row em.no {
  color: #a2adb7;
  background: #f3f5f6;
}

.audit-timeline-preview {
  gap: 0;
  display: grid;
  overflow: hidden;
}

.audit-timeline-preview article {
  border-bottom: 1px solid var(--line);
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  display: grid;
}

.audit-timeline-preview article:last-child {
  border-bottom: 0;
}

.audit-timeline-preview svg {
  color: #c6894c;
}

.access-technical-note {
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 16px;
  display: flex;
}

.access-technical-note svg {
  color: #c6894c;
}

.modal-backdrop {
  z-index: 80;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: #0c12187a;
  place-items: center;
  padding: 20px;
  display: grid;
  position: fixed;
  inset: 0;
}

.access-modal {
  background: #fffdf9;
  border: 1px solid #ffffff9e;
  border-radius: 22px;
  width: min(520px, 100%);
  max-height: min(760px, 92vh);
  padding: 20px;
  overflow: auto;
  box-shadow: 0 28px 80px #0c121847;
}

.access-modal label {
  color: var(--muted);
  text-transform: uppercase;
  gap: 7px;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 950;
  display: grid;
}

.access-modal input, .access-modal select {
  border: 1px solid var(--line);
  min-height: 44px;
  color: var(--text);
  text-transform: none;
  background: #fff;
  border-radius: 14px;
  outline: 0;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 800;
}

.access-modal input:focus, .access-modal select:focus {
  border-color: #c6894c85;
  box-shadow: 0 0 0 4px #c6894c1f;
}

.access-checkbox {
  grid-template-columns: none;
  align-items: center;
  color: var(--text) !important;
  text-transform: none !important;
  gap: 9px !important;
  font-size: 14px !important;
  display: flex !important;
}

.access-checkbox input {
  width: 18px;
  min-height: 18px;
}

.access-temp-password {
  background: #fff7ec;
  border: 1px solid #c6894c47;
  border-radius: 14px;
  margin-top: 14px;
  padding: 12px;
}

.access-temp-password strong, .access-temp-password span {
  display: block;
}

.access-temp-password span {
  color: var(--text);
  margin-top: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 950;
}

.modal-actions {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  display: flex;
}

@media (max-width: 920px) {
  .access-hero, .access-permissions-layout {
    grid-template-columns: 1fr;
  }

  .access-matrix-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .access-hero {
    border-radius: 18px;
    padding: 18px;
  }

  .access-tabs {
    border-radius: 18px;
    width: 100%;
    top: 64px;
  }

  .access-tabs button {
    flex: 1 0 auto;
  }

  .team-grid, .role-template-grid, .access-groups {
    grid-template-columns: 1fr;
  }

  .team-card, .role-template {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 14px;
  }

  .team-avatar, .role-template-icon {
    border-radius: 14px;
    width: 42px;
    height: 42px;
  }

  .team-title-row, .access-group-head, .team-role-line {
    flex-direction: column;
    align-items: flex-start;
  }

  .team-actions button {
    flex: calc(50% - 8px);
    justify-content: center;
  }

  .access-matrix-panel {
    margin-inline: -4px;
  }
}

.login-page {
  background: #101820;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  min-height: 100vh;
  display: grid;
}

.login-visual {
  color: #fff;
  background: linear-gradient(#1018201a, #101820e6), url("https://images.unsplash.com/photo-1503951914875-452162b0f3f1?auto=format&fit=crop&w=1600&q=80") center / cover;
  flex-direction: column;
  justify-content: flex-end;
  padding: 56px;
  display: flex;
}

.login-kicker {
  color: #f1c084;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: #fffaf414;
  border: 1px solid #fffaf438;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 900;
}

.login-visual h1 {
  max-width: 720px;
  margin: 0 0 16px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
}

.login-visual p {
  color: #d7dee8;
  max-width: 620px;
  margin: 0;
  font-size: 18px;
}

.login-card {
  background: linear-gradient(#fffdf9fa, #f6f3eefa);
  flex-direction: column;
  justify-content: center;
  padding: 44px;
  display: flex;
}

.login-card .form {
  max-width: 360px;
}

.command-layout, .whatsapp-layout {
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr) minmax(260px, 320px);
  gap: 16px;
  margin-top: 18px;
  display: grid;
}

.mobile-cards {
  display: none;
}

@media (max-width: 1180px) {
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .command-layout, .whatsapp-layout {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .product-grid, .agenda-layout, .premium-agenda-layout, .agenda-command {
    grid-template-columns: 1fr;
  }

  .client-context-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-form {
    position: static;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .desktop-sidebar {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .mobile-drawer {
    opacity: 0;
    pointer-events: none;
    z-index: 50;
    background: #02081775;
    transition: opacity .18s;
    display: block;
    position: fixed;
    inset: 0;
  }

  .mobile-drawer.open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-drawer-panel {
    background: #11100f;
    width: min(88vw, 340px);
    height: 100%;
    padding: 18px 14px;
    transition: transform .18s;
    overflow-y: auto;
    transform: translateX(-100%);
  }

  .mobile-drawer.open .mobile-drawer-panel {
    transform: translateX(0);
  }

  .drawer-close {
    z-index: 2;
    position: absolute;
    top: 14px;
    right: 14px;
  }

  .grid, .work-grid, .command-layout, .whatsapp-layout, .briefing-hero, .agenda-hero, .login-page {
    grid-template-columns: 1fr;
  }

  .briefing-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content {
    padding-bottom: 98px;
  }

  .mobile-bottom-nav {
    z-index: 45;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    min-height: 66px;
    box-shadow: var(--shadow);
    background: #fffffff0;
    border: 1px solid #cbd5e1e6;
    border-radius: 20px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 7px;
    display: grid;
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
  }

  .mobile-bottom-nav a, .mobile-bottom-nav button {
    color: var(--muted);
    cursor: pointer;
    background: none;
    border: 0;
    border-radius: 14px;
    place-items: center;
    gap: 2px;
    font-size: 11px;
    font-weight: 800;
    display: grid;
  }

  .mobile-bottom-nav .active, .mobile-bottom-nav a.active {
    background: var(--brand-soft);
    color: var(--brand);
  }

  .mobile-more {
    z-index: 46;
    width: min(260px, 100vw - 32px);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 18px;
    gap: 4px;
    padding: 10px;
    display: grid;
    position: fixed;
    bottom: 88px;
    right: 16px;
  }

  .mobile-more a {
    color: var(--text);
    border-radius: 12px;
  }
}

@media (max-width: 700px) {
  .topbar, .content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .topbar-actions, .unit-select, .searchbox, .page-actions {
    width: 100%;
  }

  .page-header, .resource-head {
    display: grid;
  }

  .page-title {
    font-size: 26px;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .briefing-hero, .agenda-hero {
    border-radius: 22px;
    padding: 22px;
  }

  .briefing-number {
    min-width: 0;
  }

  .briefing-strip {
    grid-template-columns: 1fr;
  }

  .timeline-event {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .timeline-event .status-badge {
    grid-column: 2;
    width: fit-content;
  }

  .product-panel {
    border-radius: 20px;
    padding: 16px;
  }

  .operation-bar {
    display: grid;
  }

  .agenda-workspace {
    display: none;
  }

  .mobile-agenda-list {
    border: 1px solid var(--line);
    background: #fffdf9e6;
    border-radius: 22px;
    padding: 16px;
    display: block;
  }

  .mobile-slot-row .appointment-event.compact {
    min-height: auto;
    color: var(--text);
    background: #fffdf9;
    border-color: #17171714;
  }

  .mobile-slot-row .appointment-event.compact span, .mobile-slot-row .appointment-event.compact small {
    color: var(--muted);
  }

  .mobile-slot-row .appointment-event.compact .event-actions {
    opacity: 1;
    max-height: 160px;
  }

  .timeline-rail {
    grid-auto-columns: minmax(220px, 86vw);
  }

  .client-profile {
    display: grid;
  }

  .client-context-grid {
    grid-template-columns: 1fr;
  }

  .chat-workspace {
    min-height: auto;
  }

  .panel {
    padding: 15px;
  }

  .table {
    min-width: 620px;
  }

  .mobile-cards {
    gap: 10px;
    display: grid;
  }

  .panel > .table-wrap + .mobile-cards {
    margin-top: 12px;
  }

  :is(.table-wrap, .panel:has(.table)) {
    overflow-x: auto;
  }

  .login-visual, .login-card {
    padding: 28px;
  }

  .login-visual h1 {
    font-size: 36px;
  }
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px)scale(.98);
  }

  to {
    opacity: 1;
    transform: translateY(0)scale(1);
  }
}

.page-transition {
  will-change: opacity, transform;
  animation: .18s cubic-bezier(.22, 1, .36, 1) pageIn;
}

.route-progress {
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  height: 2px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.route-progress span {
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  width: 38%;
  height: 100%;
  display: block;
  transform: translateX(-100%);
}

.route-progress.active {
  opacity: 1;
}

.route-progress.active span {
  transition: transform .42s cubic-bezier(.22, 1, .36, 1);
  transform: translateX(220%);
}

.btn, .nav a, .mobile-bottom-nav a, .mobile-bottom-nav button, .tabs button, .segmented button, .data-card, .appointment-event, .drop-slot, .client-row {
  transition: transform .14s, border-color .14s, background-color .14s, box-shadow .14s, color .14s, opacity .14s;
}

.btn:active, .nav a:active, .mobile-bottom-nav a:active, .mobile-bottom-nav button:active, .tabs button:active, .segmented button:active, .data-card:active, .client-row:active, .appointment-event:active {
  transform: translateY(1px)scale(.99);
}

.data-card:hover, .metric:hover, .appointment-event:hover {
  transform: translateY(-1px);
}

.btn:disabled, .btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .58;
  transform: none;
}

.nav a.active, .mobile-bottom-nav .active, .tabs button.selected, .segmented button.selected {
  transition-duration: .18s;
}

.mobile-drawer, .mobile-drawer-panel, .mobile-more {
  will-change: opacity, transform;
}

.drop-slot.drag-over, .drop-slot:hover {
  background: #fbf2e7;
}

.appointment-event[draggable="true"] {
  -webkit-user-select: none;
  user-select: none;
}

.appointment-event[draggable="true"]:hover {
  box-shadow: 0 24px 56px #1c19171f;
}

.skeleton {
  background: #e8e1d8;
  border-radius: 16px;
  min-height: 22px;
  position: relative;
  overflow: hidden;
}

.skeleton:after {
  content: "";
  background: linear-gradient(90deg, #0000, #fffdf994, #0000);
  animation: 1.25s ease-in-out infinite shimmer;
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
}

.page-skeleton {
  gap: 18px;
  display: grid;
}

.skeleton-hero {
  border-radius: 28px;
  min-height: 220px;
}

.skeleton-strip {
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: 22px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  display: grid;
  overflow: hidden;
}

.skeleton-strip .skeleton {
  border-radius: 0;
  min-height: 82px;
}

.skeleton-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: 18px;
  display: grid;
}

.skeleton-panel {
  border-radius: 24px;
  min-height: 360px;
}

.skeleton-panel.small {
  min-height: 280px;
}

.skeleton-agenda .skeleton-hero {
  min-height: 180px;
}

.skeleton-inbox .skeleton-grid {
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.4fr) minmax(260px, .8fr);
}

.toast {
  z-index: 90;
  color: #fffaf4;
  background: #11100ff0;
  border: 1px solid #b8733347;
  border-radius: 16px;
  max-width: min(360px, 100vw - 32px);
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 750;
  animation: .18s cubic-bezier(.22, 1, .36, 1) toastIn;
  position: fixed;
  bottom: 24px;
  right: 24px;
  box-shadow: 0 24px 70px #1c191738;
}

@media (max-width: 980px) {
  .skeleton-grid, .skeleton-inbox .skeleton-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .skeleton-strip {
    grid-template-columns: 1fr;
  }

  .toast {
    bottom: 92px;
    left: 16px;
    right: 16px;
  }
}

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

.form-note {
  color: var(--muted);
  margin: -4px 0 2px;
  font-size: 13px;
  line-height: 1.45;
}

.owner-hero {
  background: linear-gradient(135deg, #0f0e0dfa, #231d18f0), radial-gradient(circle at 88% 10%, #b8733347, #0000 21rem);
}

.progress-alert {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.progress-alert span {
  color: var(--accent);
  font-weight: 900;
}

.conversation-meta {
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  display: flex;
}

.client-note {
  background: linear-gradient(135deg, #fffdf9f5, #f4eadf8c);
}

.compact-toolbar {
  gap: 6px;
}

.whatsapp-layout {
  grid-template-columns: minmax(290px, 340px) minmax(0, 1.1fr) minmax(300px, 350px);
  align-items: stretch;
  gap: 18px;
}

.whatsapp-layout > .product-panel:first-child {
  background: #fffdf9d1;
  padding: 16px;
}

.whatsapp-layout > .product-panel:first-child .agenda-list {
  max-height: 680px;
  padding-right: 4px;
  overflow: auto;
}

.client-scroll-list::-webkit-scrollbar {
  width: 10px;
}

.client-scroll-list::-webkit-scrollbar-thumb {
  background: #b8733347;
  border: 3px solid #fffdf9b8;
  border-radius: 999px;
}

.whatsapp-layout .data-card {
  border-radius: 18px;
}

.chat-workspace {
  background: linear-gradient(#fffdf9f0, #f6f3eee6);
}

.command-layout {
  align-items: start;
}

.command-layout > .panel, .work-grid > .panel {
  border-radius: 22px;
}

.command-layout aside {
  position: sticky;
  top: 86px;
}

.agenda-filterbar .toolbar {
  flex: 1;
  justify-content: flex-end;
}

.ibg-agenda-board::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.board-scroll::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.whatsapp-layout > .product-panel:first-child .agenda-list::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.tabs::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.timeline-rail::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.ibg-agenda-board::-webkit-scrollbar-thumb {
  background: #b8733347;
  border: 3px solid #fffdf9b8;
  border-radius: 999px;
}

.board-scroll::-webkit-scrollbar-thumb {
  background: #b8733347;
  border: 3px solid #fffdf9b8;
  border-radius: 999px;
}

.whatsapp-layout > .product-panel:first-child .agenda-list::-webkit-scrollbar-thumb {
  background: #b8733347;
  border: 3px solid #fffdf9b8;
  border-radius: 999px;
}

.tabs::-webkit-scrollbar-thumb {
  background: #b8733347;
  border: 3px solid #fffdf9b8;
  border-radius: 999px;
}

.timeline-rail::-webkit-scrollbar-thumb {
  background: #b8733347;
  border: 3px solid #fffdf9b8;
  border-radius: 999px;
}

.resource-column-track > .appointment-event {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.appointment-event.agendado {
  border-left: 4px solid #9a8f84;
}

.appointment-event .status-badge {
  white-space: nowrap;
}

.client-row {
  border-radius: 18px;
}

.client-row:hover {
  border-color: #b8733347;
}

.tabs {
  position: relative;
}

.tabs button.selected {
  box-shadow: 0 10px 24px #11100f1f;
}

.page-header {
  max-width: 1180px;
}

.empty-state {
  background: #fffdf97a;
  border: 1px dashed #b8733342;
  border-radius: 18px;
  padding: 18px;
}

.loading-state {
  border-radius: 18px;
}

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

.executive-row {
  background: #fffdf9b8;
  border: 1px solid #11100f14;
  border-radius: 18px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  transition: transform .18s, border-color .18s, box-shadow .18s;
  display: grid;
}

.executive-row:hover {
  border-color: #b873333d;
  transform: translateY(-1px);
  box-shadow: 0 16px 34px #11100f14;
}

.executive-row small, .segment-card small {
  color: var(--muted);
  margin-top: 3px;
  display: block;
}

.rank-number {
  width: 30px;
  height: 30px;
  color: var(--accent);
  background: #b873331a;
  border-radius: 50%;
  place-items: center;
  font-weight: 800;
  display: grid;
}

.heatmap-grid {
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
  display: grid;
}

.heatmap-cell {
  background: linear-gradient(135deg, #b8733324, #fffdf9d1);
  border: 1px solid #b873332e;
  border-radius: 16px;
  flex-direction: column;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px;
  display: flex;
}

.heatmap-cell span {
  color: var(--muted);
  font-size: 12px;
}

.heatmap-cell strong {
  font-size: 22px;
}

.segment-grid, .report-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  display: grid;
}

.segment-card {
  min-height: 280px;
}

.compact-list {
  gap: 8px;
}

.report-assistant {
  gap: 16px;
  margin-bottom: 18px;
  display: grid;
}

.question-pills {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.report-card {
  min-height: 126px;
}

.client-intelligence {
  gap: 16px;
  display: grid;
}

.purchase-layout {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1.4fr) minmax(280px, 360px);
  align-items: start;
  gap: 16px;
  display: grid;
}

.purchase-item-form {
  grid-template-columns: minmax(180px, 1fr) 120px 150px auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 16px;
  display: grid;
}

.purchase-item-form label, .compact-form label {
  color: var(--muted);
  gap: 6px;
  font-size: 13px;
  display: grid;
}

.purchase-item-form input, .purchase-item-form select, .compact-form input, .compact-form select, .compact-form textarea {
  width: 100%;
  min-height: 42px;
  color: var(--text);
  background: #fffdf9d1;
  border: 1px solid #11100f1a;
  border-radius: 14px;
  padding: 10px 12px;
}

.compact-form {
  gap: 10px;
  margin-bottom: 24px;
  display: grid;
}

.stacked-cell {
  gap: 3px;
  min-width: 190px;
  display: grid;
}

.stacked-cell span, .stacked-cell small {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1180px) {
  .purchase-layout {
    grid-template-columns: 1fr;
  }

  .purchase-item-form {
    grid-template-columns: 1fr 1fr;
  }

  .whatsapp-layout {
    grid-template-columns: minmax(290px, 360px) minmax(0, 1fr);
  }

  .whatsapp-layout > aside {
    grid-column: 1 / -1;
  }

  .command-layout aside {
    position: static;
  }

  .client-list-panel {
    max-height: none;
    position: static;
  }

  .client-scroll-list {
    max-height: 520px;
  }
}

@media (max-width: 700px) {
  .agenda-command .btn.primary {
    width: 100%;
  }

  .agenda-filterbar .toolbar {
    justify-content: stretch;
  }

  .segmented {
    width: 100%;
  }

  .segmented button {
    flex: 1;
  }

  .whatsapp-layout {
    grid-template-columns: 1fr !important;
  }

  .whatsapp-layout .chat-workspace {
    order: -1;
  }

  .whatsapp-layout > .product-panel:first-child .agenda-list {
    max-height: 560px;
    overflow: auto;
  }

  .whatsapp-layout > aside {
    grid-column: auto;
  }

  .inbox-hero h1 {
    font-size: 34px;
  }

  .client-scroll-list {
    max-height: 520px;
  }

  .command-layout, .whatsapp-layout {
    margin-top: 12px;
  }

  .purchase-item-form {
    grid-template-columns: 1fr;
  }
}

.metric-stack {
  text-align: right;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 92px;
  max-width: 100%;
  display: flex;
}

.metric-stack strong {
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.metric-stack small {
  color: var(--muted);
  font-weight: 700;
}

.my-day-layout {
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, .6fr);
  gap: 18px;
  display: grid;
}

.reception-station-grid {
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 1fr) minmax(280px, 1fr) minmax(260px, .9fr);
  align-items: start;
  gap: 14px;
  display: grid;
}

.compact-list {
  max-height: 520px;
  padding-right: 4px;
  overflow: auto;
}

.my-day-hero, .reception-hero {
  min-height: 190px;
}

.growth-actions-hero {
  min-height: 210px;
}

.growth-action-list {
  gap: 12px;
  display: grid;
}

.growth-action-card {
  background: linear-gradient(#fffdf9f5, #f7f1e8b8);
  border: 1px solid #11100f14;
  border-radius: 18px;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  transition: transform .18s, border-color .18s, box-shadow .18s;
  display: grid;
}

.growth-action-card:hover {
  border-color: #b27e4a52;
  transform: translateY(-1px);
  box-shadow: 0 16px 34px #221c1614;
}

.growth-action-rank {
  background: var(--ink);
  width: 38px;
  height: 38px;
  color: var(--paper);
  border-radius: 14px;
  place-items: center;
  font-weight: 800;
  display: grid;
}

.growth-action-main {
  gap: 9px;
  display: grid;
}

.growth-action-main h3 {
  margin: 0;
  font-size: 20px;
}

.growth-action-main p {
  color: var(--muted);
  margin: 0;
}

.mini-client-list {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}

.mini-client-list span {
  color: var(--muted);
  background: #11100f0f;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
}

.mini-toolbar {
  gap: 6px;
  margin-top: 8px;
}

.mini-toolbar .btn {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}

.inbox-filter-row {
  gap: 8px;
  padding: 0 0 12px;
  display: flex;
  overflow-x: auto;
}

.inbox-filter-row button {
  color: var(--muted);
  white-space: nowrap;
  background: #fffdf9c7;
  border: 1px solid #11100f17;
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 800;
  transition: background .16s, color .16s, border-color .16s;
}

.inbox-filter-row button.active, .inbox-filter-row button:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.premium-inbox-layout {
  grid-template-columns: minmax(300px, .85fr) minmax(360px, 1.2fr) minmax(300px, .9fr);
}

.premium-chat {
  min-height: 520px;
  max-height: 620px;
  overflow: auto;
}

.premium-chat .bubble {
  gap: 5px;
  display: grid;
}

.premium-chat .bubble small {
  opacity: .7;
  font-size: 11px;
}

.homologation-composer {
  border-top: 1px solid #11100f14;
  margin-top: 14px;
  padding-top: 14px;
}

.reception-command-center {
  margin-bottom: 16px;
}

.pending-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
  display: grid;
}

.pending-grid .soft-alert {
  align-items: center;
}

.pending-grid strong {
  font-size: 22px;
  display: block;
}

.universal-search {
  background: #fffdf9db;
  border: 1px solid #11100f1a;
  border-radius: 18px;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  display: flex;
}

.universal-search input {
  color: var(--text);
  background: none;
  border: 0;
  outline: 0;
  width: 100%;
  min-height: 28px;
}

.universal-results {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  display: grid;
}

.universal-results button {
  text-align: left;
}

@media (max-width: 1180px) {
  .reception-station-grid, .premium-inbox-layout {
    grid-template-columns: 1fr 1fr;
  }

  .premium-inbox-layout > aside {
    grid-column: 1 / -1;
  }

  .pending-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .my-day-layout, .reception-station-grid {
    grid-template-columns: 1fr;
  }

  .compact-list {
    max-height: none;
  }

  .pending-grid, .universal-results, .premium-inbox-layout, .growth-action-card {
    grid-template-columns: 1fr;
  }
}

/*# sourceMappingURL=app_globals_0yg4wg8.css.map*/