/*
 * component_odonto_shell_frame | entry_js: app/emp/odonto/index.html | entry_css: app/emp/odonto/odontoflow.css | mount_strategy: shell classes | scope: OdontoFlow
 * Contrato estrutural do OdontoFlow: tokens, frame, grid, superfícies base e toast/snackbar.
 */
:root {
  --odf-space-2xs: .25rem;
  --odf-space-xs: .5rem;
  --odf-space-sm: .75rem;
  --odf-space-md: 1rem;
  --odf-space-lg: 1.5rem;
  --odf-space-xl: 2rem;
  --odf-space-2xl: 3rem;
  --odf-screen-max-width: 92rem;
  --odf-screen-padding-x: var(--odf-space-lg);
  --odf-screen-padding-y: 2.5rem;
  --odf-screen-gap: var(--odf-space-xl);
  --odf-section-gap: var(--odf-space-lg);
  --odf-card-radius: 1rem;
  --odf-button-radius: .875rem;
  --odf-card-padding: var(--odf-space-md);
  --odf-border-width: 1px;
  --odf-card-border: var(--odf-border-width) solid #e2e8f0;
  --odf-card-bg: #ffffff;
  --odf-card-shadow: 0 1px 2px rgb(15 23 42 / .06);
  --odf-shell-bg: #f8fafc;
  --odf-toast-bottom: var(--odf-space-lg);
  --odf-mobile-bottom-nav-height: 5.5rem;
  --odf-toast-z-index: 95;
  --odf-text-strong: #0f172a;
  --odf-text-body: #1e293b;
  --odf-text-muted: #475569;
  --odf-text-subtle: #64748b;
  --odf-font-weight-body: 400;
  --odf-font-weight-medium: 450;
  --odf-font-weight-semibold: 550;
  --odf-font-weight-bold: 650;
  --odf-font-weight-heavy: 700;
}


*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--odf-shell-bg);
  color: var(--odf-text-body);
  font-weight: var(--odf-font-weight-body);
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


#main-scroller {
  min-width: 0;
  overflow-x: hidden;
}

#view-agenda,
#agenda-feature-root {
  width: 100%;
  min-width: 0;
}

.odf-shell-frame {
  width: 100%;
  min-width: 0;
}

.odf-shell-frame > .tab-content {
  min-width: 0;
}

.odf-screen {
  width: min(100%, var(--odf-screen-max-width));
  margin-inline: auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--odf-screen-gap);
  padding: var(--odf-screen-padding-y) var(--odf-screen-padding-x);
  color: var(--odf-text-strong);
}

.odf-screen-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--odf-space-md);
  min-width: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.odf-screen-heading {
  min-width: 0;
}

.odf-screen-eyebrow {
  margin: 0 0 var(--odf-space-xs);
  color: #0f766e;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.odf-screen-title {
  margin: 0;
  color: var(--odf-text-strong);
  font-size: clamp(1.5rem, 1.15rem + 1vw, 1.875rem);
  font-weight: var(--odf-font-weight-bold);
  letter-spacing: -.035em;
  line-height: 1.08;
}

.odf-screen-subtitle {
  max-width: 48rem;
  margin: var(--odf-space-xs) 0 0;
  color: var(--odf-text-muted);
  font-size: .95rem;
  font-weight: var(--odf-font-weight-body);
  line-height: 1.5;
}

.odf-screen-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--odf-space-xs);
  min-width: 0;
}


.odf-action-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--odf-space-xs);
  min-width: 0;
}

.odf-primary-action,
.odf-secondary-action,
.odf-toolbar-action,
.odf-action-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--odf-space-xs);
  min-width: 0;
  border: var(--odf-border-width) solid transparent;
  border-radius: var(--odf-button-radius);
  font-weight: var(--odf-font-weight-semibold);
  line-height: 1;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .12s ease;
}

.odf-primary-action,
.odf-screen-actions .odf-primary-action {
  min-height: 2.75rem;
  padding: 0 var(--odf-space-lg);
  border-color: #0f766e;
  background: #0f766e;
  color: #ffffff;
  box-shadow: 0 .75rem 1.5rem rgb(15 118 110 / .16);
  font-size: .875rem;
}

.odf-primary-action:hover,
.odf-screen-actions .odf-primary-action:hover {
  border-color: #115e59;
  background: #115e59;
  color: #ffffff;
}

.odf-secondary-action,
.odf-screen-actions .odf-secondary-action {
  min-height: 2.75rem;
  padding: 0 var(--odf-space-lg);
  border-color: #cbd5e1;
  background: #ffffff;
  color: #334155;
  box-shadow: none;
  font-size: .875rem;
}

.odf-secondary-action:hover,
.odf-screen-actions .odf-secondary-action:hover {
  border-color: #99f6e4;
  background: #f0fdfa;
  color: #0f766e;
}

.odf-toolbar-action,
.odf-screen-toolbar .odf-toolbar-action,
.odf-action-chip,
.odf-screen-toolbar .odf-action-chip {
  min-height: 2.25rem;
  padding: 0 var(--odf-space-sm);
  border-color: #e2e8f0;
  border-radius: 999px;
  background: #ffffff;
  color: var(--odf-text-muted);
  box-shadow: none;
  font-size: .72rem;
  letter-spacing: .025em;
}

.odf-toolbar-action:hover,
.odf-screen-toolbar .odf-toolbar-action:hover,
.odf-action-chip:hover,
.odf-screen-toolbar .odf-action-chip:hover,
.odf-toolbar-action.is-active,
.odf-screen-toolbar .odf-toolbar-action.is-active,
.odf-action-chip.is-active,
.odf-screen-toolbar .odf-action-chip.is-active {
  border-color: #99f6e4;
  background: #f0fdfa;
  color: #0f766e;
}

.odf-screen-toolbar {
  display: flex;
  flex-direction: column;
  gap: var(--odf-space-sm);
  min-width: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.odf-section {
  display: flex;
  flex-direction: column;
  gap: var(--odf-section-gap);
  min-width: 0;
}

.odf-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--odf-space-sm);
  min-width: 0;
}

.odf-section-title {
  margin: 0;
  color: var(--odf-text-strong);
  font-size: 1rem;
  font-weight: var(--odf-font-weight-bold);
  letter-spacing: -.015em;
  line-height: 1.2;
}

.odf-section-subtitle {
  margin: var(--odf-space-2xs) 0 0;
  color: var(--odf-text-muted);
  font-size: .82rem;
  font-weight: var(--odf-font-weight-body);
  line-height: 1.45;
}

.odf-grid,
.odf-grid-compact,
.odf-layout-main-aside,
.odf-layout-kpis,
.odf-layout-list-detail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--odf-section-gap);
  min-width: 0;
  max-width: 100%;
}

.odf-grid-compact {
  gap: calc(var(--odf-section-gap) * .65);
}

.odf-grid > *,
.odf-grid-compact > *,
.odf-layout-main-aside > *,
.odf-layout-kpis > *,
.odf-layout-list-detail > * {
  min-width: 0;
  grid-column: 1 / -1;
}

.odf-col-12,
.odf-col-8,
.odf-col-6,
.odf-col-4,
.odf-col-3 {
  min-width: 0;
  grid-column: 1 / -1;
}

.odf-card,
.odf-card-soft,
.odf-card-flat,
.odf-card-row,
.odf-kpi-card {
  min-width: 0;
  border-radius: var(--odf-card-radius);
}

.odf-card,
.odf-card-row,
.odf-kpi-card {
  border: var(--odf-card-border);
  background: var(--odf-card-bg);
  box-shadow: var(--odf-card-shadow);
}

.odf-card,
.odf-card-soft,
.odf-kpi-card {
  padding: var(--odf-card-padding);
}

.odf-card-soft {
  border: var(--odf-border-width) solid #dbe4ee;
  background: #eef3f8;
  box-shadow: var(--odf-card-shadow);
}

.odf-card-flat {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.odf-card-row {
  display: flex;
  align-items: center;
  gap: var(--odf-space-sm);
  padding: var(--odf-space-sm);
}

.odf-kpi-card {
  position: relative;
  overflow: hidden;
}

.odf-action-button,
.odf-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--odf-space-xs);
  min-width: 0;
  border: var(--odf-border-width) solid #cbd5e1;
  border-radius: .75rem;
  background: #ffffff;
  color: #334155;
  font-weight: var(--odf-font-weight-semibold);
  line-height: 1;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .12s ease;
}

.odf-action-button {
  min-height: 2.5rem;
  padding: .65rem 1rem;
  font-size: .78rem;
}

.odf-icon-button {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 999px;
}

.odf-action-button:hover,
.odf-icon-button:hover {
  border-color: #99f6e4;
  background: #f0fdfa;
  color: #0f766e;
}

.odf-toast-container,
#toast-container {
  position: fixed;
  right: var(--odf-space-lg);
  bottom: max(var(--odf-toast-bottom), env(safe-area-inset-bottom));
  top: auto !important;
  left: auto !important;
  z-index: var(--odf-toast-z-index);
  display: flex;
  width: min(24rem, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  flex-direction: column;
  align-items: flex-end;
  gap: var(--odf-space-xs);
  pointer-events: none;
  transform: none !important;
}

.odf-toast {
  pointer-events: auto;
  width: fit-content;
  max-width: 100%;
  border: var(--odf-border-width) solid rgb(15 23 42 / .18);
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 18px 45px rgb(15 23 42 / .22);
  padding: var(--odf-space-sm) var(--odf-space-md);
  font-size: .68rem;
  font-weight: var(--odf-font-weight-heavy);
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.odf-toast--success {
  border-color: rgb(22 101 52 / .18);
  background: #166534;
}

.odf-toast--warning {
  border-color: rgb(146 64 14 / .22);
  background: #92400e;
}

.odf-toast--error {
  border-color: rgb(159 18 57 / .22);
  background: #9f1239;
}

.odf-toast--info {
  border-color: rgb(7 89 133 / .2);
  background: #075985;
}


/* component_odonto_readability_typography | entry_js: app/emp/odonto/index.html | entry_css: app/emp/odonto/odontoflow.css | mount_strategy: global shell typography tokens | scope: OdontoFlow
 * Ajusta a leitura do app com texto mais escuro e pesos menos pesados sem reescrever marcações Tailwind legadas.
 */
body .odf-shell-frame,
body .odf-screen,
body .view-section,
body .modal-content,
body table,
body input,
body select,
body textarea,
body button {
  color: var(--odf-text-body);
  font-weight: var(--odf-font-weight-body);
}

body .text-slate-400,
body .text-slate-500,
body .text-slate-600,
body .text-slate-700,
body .text-slate-800 {
  color: var(--odf-text-muted) !important;
}

body .text-slate-950,
body .text-slate-900,
body .text-gray-900,
body .text-black,
body .odf-screen-title,
body .odf-section-title {
  color: var(--odf-text-strong) !important;
}

body .font-medium {
  font-weight: var(--odf-font-weight-medium) !important;
}

body .font-semibold,
body .font-bold,
body .font-extrabold {
  font-weight: var(--odf-font-weight-semibold) !important;
}

body .font-black {
  font-weight: var(--odf-font-weight-heavy) !important;
}

body h1,
body h2,
body h3,
body h4,
body .account-tab,
body .account-record-label,
body .account-info-label,
body .badge-status {
  font-weight: var(--odf-font-weight-heavy) !important;
}

body .account-record-value,
body .account-info-value {
  font-weight: var(--odf-font-weight-semibold) !important;
}

body p,
body li,
body td,
body th,
body label,
body input,
body select,
body textarea {
  color: var(--odf-text-body);
}

body small,
body .text-xs,
body .text-\[10px\],
body .text-\[9px\],
body .text-\[8px\] {
  letter-spacing: .005em;
}


@media (min-width: 768px) {
  :root {
    --odf-screen-padding-x: var(--odf-space-2xl);
    --odf-screen-padding-y: var(--odf-space-2xl);
    --odf-card-padding: 1.25rem;
  }

  .odf-grid,
  .odf-grid-compact,
  .odf-layout-main-aside,
  .odf-layout-kpis,
  .odf-layout-list-detail {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .odf-col-12,
  .odf-col-8 {
    grid-column: span 8;
  }

  .odf-col-6,
  .odf-col-4,
  .odf-col-3,
  .odf-layout-kpis > * {
    grid-column: span 4;
  }

  .odf-layout-main-aside > * {
    grid-column: 1 / -1;
  }

  .odf-layout-list-detail > * {
    grid-column: span 4;
  }

  .odf-card,
  .odf-card-soft,
  .odf-kpi-card {
    padding: var(--odf-card-padding);
  }
}

@media (min-width: 1024px) {
  .odf-grid,
  .odf-grid-compact,
  .odf-layout-main-aside,
  .odf-layout-kpis,
  .odf-layout-list-detail {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .odf-col-12 {
    grid-column: span 12;
  }

  .odf-col-8 {
    grid-column: span 8;
  }

  .odf-col-6 {
    grid-column: span 6;
  }

  .odf-col-4 {
    grid-column: span 4;
  }

  .odf-col-3 {
    grid-column: span 3;
  }

  .odf-layout-main-aside > :first-child {
    grid-column: span 8;
  }

  .odf-layout-main-aside > :last-child {
    grid-column: span 4;
  }

  .odf-layout-list-detail > :first-child {
    grid-column: span 7;
  }

  .odf-layout-list-detail > :last-child {
    grid-column: span 5;
  }

  .odf-layout-kpis > * {
    grid-column: span 3;
  }
}


@media (max-width: 1023px) {
  .odf-screen-header,
  .odf-section-header {
    align-items: stretch;
    flex-direction: column;
  }

  .odf-screen-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .odf-action-group {
    justify-content: flex-start;
    width: 100%;
  }
}

@media (max-width: 767px) {
  :root {
    --odf-screen-padding-x: var(--odf-space-md);
    --odf-screen-padding-y: var(--odf-space-md);
    --odf-screen-gap: var(--odf-space-md);
    --odf-section-gap: .85rem;
    --odf-card-padding: var(--odf-space-md);
    --odf-toast-bottom: calc(var(--odf-mobile-bottom-nav-height) + var(--odf-space-sm));
  }

  .odf-action-button {
    min-height: 2.85rem;
    border-radius: 1rem;
  }

  .odf-primary-action,
  .odf-secondary-action,
  .odf-screen-actions .odf-primary-action,
  .odf-screen-actions .odf-secondary-action {
    width: 100%;
    min-height: 2.85rem;
  }

  .odf-toast-container,
  #toast-container {
    right: 50%;
    bottom: max(var(--odf-toast-bottom), calc(var(--odf-mobile-bottom-nav-height) + env(safe-area-inset-bottom) + var(--odf-space-sm)));
    align-items: center;
    width: min(26rem, calc(100vw - 2rem));
    transform: translateX(50%) !important;
  }

  .odf-toast {
    width: 100%;
    border-radius: 1rem;
    text-align: center;
  }
}
