@import url("../branding.css.php");
body {
  background: var(--app-bg);
  color: var(--app-text);
  font-family: var(--app-font);
  min-height: 100vh;
}
.app-navbar {
  background: var(--app-navbar-background);
}
.card,
.list-group-item {
  background-color: var(--app-surface);
}
.card,
.list-group,
.form-control,
.form-select,
.btn {
  border-radius: var(--app-radius);
}
.btn-primary {
  --bs-btn-bg: var(--app-navy);
  --bs-btn-border-color: var(--app-navy);
  --bs-btn-hover-bg: var(--app-primary-variant);
  --bs-btn-hover-border-color: var(--app-primary-variant);
  --bs-btn-active-bg: var(--app-primary-variant);
  --bs-btn-active-border-color: var(--app-primary-variant);
}
.text-primary {
  color: var(--app-navy) !important;
}
.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.app-brand img {
  width: 38px;
  height: 38px;
  border-radius: 0.55rem;
}
.app-brand-label {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.42rem 0.65rem;
  line-height: 1.15;
}
.app-brand-label small {
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--app-amber) 78%, #fff);
  border-radius: 999px;
  padding: 0.22rem 0.58rem;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.015em;
  opacity: 0.92;
  white-space: nowrap;
}
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.install-button {
  border-color: var(--app-amber);
  color: #fff;
}
.install-button:hover,
.install-button:focus {
  background: var(--app-amber);
  border-color: var(--app-amber);
  color: #231f20;
}
.pwa-status {
  border-left: 0.3rem solid var(--app-amber);
}
.environment-banner {
  background: #d2a13a;
  color: #231f20;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.75rem;
  text-transform: uppercase;
}
.auth-shell {
  max-width: 460px;
}
.brand-horizontal {
  display: block;
  width: 100%;
  max-width: 405px;
  height: auto;
  margin: 0 auto;
}
.demo-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1rem;
  border: 1px solid #d7e0e5;
  border-radius: var(--app-radius);
  background: var(--app-surface);
  text-align: left;
}
.demo-brand-lockup img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}
.demo-brand-lockup strong,
.demo-brand-lockup span {
  display: block;
}
.demo-brand-lockup strong {
  color: var(--app-text);
  font-size: 1.15rem;
}
.demo-brand-lockup span {
  color: var(--app-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.action-grid .btn {
  min-height: 3.25rem;
  font-weight: 600;
}
.action-grid .btn,
#observation-action {
  border-width: 2px;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    opacity 0.16s ease,
    filter 0.16s ease;
}
.action-grid .btn::before,
#observation-action::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  margin-right: 0.42rem;
  border-radius: 50%;
  background: #198754;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}
.action-grid .btn:not(:disabled),
#observation-action:not(:disabled) {
  box-shadow: 0 0.22rem 0.65rem rgba(15, 23, 42, 0.2);
}
.action-grid .btn:not(:disabled):active,
#observation-action:not(:disabled):active {
  transform: translateY(1px);
  box-shadow: 0 0.08rem 0.25rem rgba(15, 23, 42, 0.2);
}
.action-grid .btn-outline-primary:not(:disabled),
.action-grid .btn-outline-secondary:not(:disabled),
#observation-action:not(:disabled) {
  background: color-mix(in srgb, currentColor 9%, var(--app-surface));
}
.action-grid .btn:disabled,
#observation-action:disabled {
  border-style: dashed;
  opacity: 0.46;
  filter: saturate(0.45);
  box-shadow: none;
  cursor: not-allowed;
}
.action-grid .btn:disabled::before,
#observation-action:disabled::before {
  content: "×";
  border: 1.5px solid rgba(15, 23, 42, 0.72);
  background: #fff;
  color: rgba(15, 23, 42, 0.72);
  box-shadow: none;
}
.action-state-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin-top: 0.65rem;
  color: var(--app-muted);
  font-size: 0.78rem;
}
.action-state-legend span::before {
  display: inline-grid;
  place-items: center;
  width: 1.05rem;
  height: 1.05rem;
  margin-right: 0.28rem;
  border-radius: 50%;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
}
.action-state-legend .is-available::before {
  content: "✓";
  background: #198754;
}
.action-state-legend .is-unavailable::before {
  content: "×";
  border: 1.5px solid rgba(15, 23, 42, 0.5);
  background: #fff;
  color: rgba(15, 23, 42, 0.65);
}

/* Ações condicionadas por preenchimento ou seleção. */
.state-action {
  border-width: 2px;
  font-weight: 650;
}
.state-action::before,
.decision-validate::before,
.decision-correct::before,
.decision-invalidate::before,
.decision-attention::before,
.decision-edit::before,
.decision-end::before {
  display: inline-grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}
.state-action::before,
.decision-validate::before {
  content: "✓";
  background: #198754;
  color: #fff;
}
.state-action:not(:disabled) {
  box-shadow: 0 0.2rem 0.58rem rgba(15, 23, 42, 0.18);
}
.state-action:disabled {
  border-style: dashed;
  opacity: 0.46;
  filter: saturate(0.45);
  box-shadow: none;
  cursor: not-allowed;
}
.state-action:disabled::before {
  content: "×";
  border: 1.5px solid rgba(15, 23, 42, 0.72);
  background: #fff;
  color: rgba(15, 23, 42, 0.72);
}
.decision-correct::before,
.decision-edit::before {
  content: "✎";
  border: 1px solid currentColor;
}
.decision-invalidate::before {
  content: "!";
  border: 1px solid currentColor;
}
.decision-attention::before {
  content: "!";
  border: 1px solid currentColor;
}
.decision-end::before {
  content: "■";
  border: 1px solid currentColor;
  font-size: 0.55rem;
}
.action-grid .btn:last-child {
  grid-column: 1 / -1;
}
.week-navigation-wrap {
  margin-top: 0.2rem;
}
.week-navigation {
  display: inline-grid;
  grid-template-columns: 2.7rem auto 2.7rem;
  gap: 0.3rem;
  padding: 0.28rem;
  border: 1px solid color-mix(in srgb, var(--app-navy) 22%, #fff);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0.16rem 0.5rem rgba(15, 42, 51, 0.1);
}
.week-navigation .btn {
  min-height: 2.6rem;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    opacity 160ms ease;
}
.week-navigation #week-current {
  padding-inline: 1rem;
  border: 1px solid color-mix(in srgb, var(--app-amber) 62%, #fff);
  background: color-mix(in srgb, var(--app-amber) 12%, #fff);
  color: var(--app-navy);
  letter-spacing: 0.01em;
}
.week-navigation #week-current::before {
  content: "▦";
  margin-right: 0.45rem;
  color: var(--app-amber);
  font-size: 1rem;
}
.week-navigation #week-previous,
.week-navigation #week-next {
  padding: 0;
  background: color-mix(in srgb, var(--app-navy) 7%, #fff);
  color: var(--app-navy);
  font-size: 1.15rem;
}
.week-navigation .btn:not(:disabled):hover {
  background: var(--app-amber);
  color: #211b0e;
  transform: translateY(-1px);
}
.week-navigation .btn:focus-visible {
  outline: 2px solid var(--app-amber);
  outline-offset: 2px;
  box-shadow: none;
}
.week-navigation .btn:disabled {
  background: transparent;
  color: var(--app-navy);
  opacity: 0.28;
}
.week-calendar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem;
}
.week-day {
  position: relative;
  border: 1px solid #d6d3d1;
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.7rem 0.45rem;
  text-align: center;
  min-width: 0;
}
.week-day {
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.week-day:hover,
.week-day:focus-visible {
  border-color: var(--app-amber);
  box-shadow: 0 0.2rem 0.65rem rgba(35, 31, 32, 0.12);
  outline: none;
}
.week-day.is-future {
  cursor: default;
}
.week-day.is-today {
  border: 2px solid var(--app-amber);
  box-shadow: 0 0.25rem 0.8rem rgba(35, 31, 32, 0.12);
}
.week-day.is-selected {
  border: 2px solid var(--app-navy);
  background: color-mix(in srgb, var(--app-navy) 9%, #fff);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--app-navy) 20%, transparent);
  outline: none;
}
.week-day.is-today.is-selected {
  border-color: var(--app-amber);
  box-shadow:
    0 0 0 2px var(--app-navy),
    0 0.3rem 0.85rem rgba(35, 31, 32, 0.16);
}
.week-state-row {
  min-height: 1.25rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.22rem;
  margin-bottom: 0.2rem;
}
.week-state {
  display: inline-flex;
  align-items: center;
  min-height: 1.1rem;
  padding: 0.08rem 0.34rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.035em;
  line-height: 1;
  text-transform: uppercase;
}
.is-today-label {
  border: 1px solid var(--app-amber);
  background: var(--app-amber);
  color: #211b0e;
}
.is-selected-label {
  border: 1px solid var(--app-navy);
  background: transparent;
  color: var(--app-navy);
}
.week-day.is-future {
  opacity: 0.48;
}
.week-day .week-total {
  font-weight: 800;
  color: var(--app-navy);
}
.week-day .week-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #78716c;
}
.week-day .week-date {
  font-size: 1.1rem;
  font-weight: 700;
}
.history-meta {
  font-size: 0.82rem;
  color: #64748b;
}
.activity-timeline {
  border-left: 2px solid #e7e5e4;
  margin-left: 0.55rem;
  padding-left: 1rem;
}
#day-detail.is-consulted-detail {
  border: 1px solid color-mix(in srgb, var(--app-navy) 28%, #d6d3d1) !important;
  border-left: 5px solid var(--app-navy) !important;
  background: color-mix(in srgb, var(--app-navy) 5%, #fff);
}
#day-detail.is-today-detail {
  border-left-color: var(--app-amber) !important;
}
.day-detail-state {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.42rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: var(--app-navy);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
#day-detail.is-today-detail .day-detail-state {
  background: var(--app-amber);
  color: #211b0e;
}
.timeline-event {
  position: relative;
  padding: 0 0 1rem 0.25rem;
}
.timeline-event:last-child {
  padding-bottom: 0;
}
.timeline-event::before {
  content: "";
  position: absolute;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--app-amber);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--app-amber);
  left: -1.44rem;
  top: 0.34rem;
}
.report-bar {
  height: 0.42rem;
  border-radius: 999px;
  background: #e7e5e4;
  overflow: hidden;
}
.report-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--app-amber), #f3cf6a);
}
.report-month + .report-month {
  margin-top: 1rem;
}
.report-user {
  cursor: pointer;
}
.report-user:hover {
  --bs-table-bg-state: rgba(210, 161, 58, 0.1);
}
.duration-value {
  display: inline-flex;
  align-items: baseline;
  gap: 0.14em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.duration-number {
  letter-spacing: -0.035em;
}
.duration-sign {
  margin-right: -0.08em;
}
.duration-unit {
  font-size: 0.58em;
  font-weight: 700;
  opacity: 0.72;
  text-transform: uppercase;
}
.duration-minutes {
  margin-left: 0.18em;
  font-size: 0.7em;
  font-weight: 700;
  opacity: 0.82;
}
.duration-minutes small {
  margin-left: 0.15em;
  font-size: 0.64em;
  text-transform: uppercase;
}
.duration-equivalent {
  margin-top: 0.35rem;
  color: var(--app-muted);
  font-size: 0.75rem;
  line-height: 1.25;
}
.report-duration-compact {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
#report-summary .h3 {
  font-size: clamp(1.15rem, 4.2vw, 1.75rem);
}
.metric-card {
  position: relative;
  overflow: hidden;
}
.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 0.22rem;
  background: var(--app-amber);
}
.metric-card-negative::before {
  background: var(--app-danger);
}
.metric-card-warning::before {
  background: color-mix(in srgb, var(--app-amber) 72%, #fff);
}
.daily-contexts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.daily-context {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid #e2e8f0;
  background: color-mix(in srgb, var(--app-bg) 70%, #fff);
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  font-size: 0.78rem;
}
.daily-context strong {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.admin-section-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--app-bg);
  padding: 0.55rem 0;
}
.admin-tabs {
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  scrollbar-width: thin;
}
.admin-tab {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: var(--app-navy);
  border-radius: 999px;
  padding: 0.58rem 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}
.admin-tab.active {
  background: var(--app-navy);
  border-color: var(--app-navy);
  color: #fff;
}
.admin-shortcut {
  color: inherit;
  min-height: 100%;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.admin-shortcut:hover,
.admin-shortcut:focus {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(8, 47, 85, 0.12) !important;
}
.admin-panel[hidden] {
  display: none !important;
}
.user-manage .text-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  border: 1px solid color-mix(in srgb, var(--app-amber) 70%, var(--app-navy));
  border-radius: 999px;
  background: color-mix(in srgb, var(--app-amber) 16%, var(--app-surface));
  color: var(--app-navy) !important;
  padding: 0.28rem 0.62rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}
.user-manage:hover .text-primary,
.user-manage:focus-visible .text-primary {
  background: var(--app-amber);
  color: var(--app-navy) !important;
  transform: translateX(0.15rem);
}
.map-picker[hidden] {
  display: none !important;
}
.map-picker {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.72);
  padding: min(3vh, 1.5rem);
}
.map-picker-dialog {
  width: min(1100px, 100%);
  height: 94vh;
  margin: auto;
  background: #fff;
  border-radius: 0.9rem;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.map-picker-header,
.map-picker-footer {
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.map-picker-header {
  border-bottom: 1px solid #e2e8f0;
}
.map-picker-footer {
  border-top: 1px solid #e2e8f0;
}
.map-picker-map {
  min-height: 320px;
  width: 100%;
}
body.map-picker-open {
  overflow: hidden;
}
.entity-editor[hidden] {
  display: none !important;
}
.entity-editor {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: grid;
  justify-items: end;
}
.entity-editor-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
}
.entity-editor-panel {
  position: relative;
  width: min(620px, 100%);
  height: 100%;
  background: var(--app-surface);
  box-shadow: -0.75rem 0 2rem rgba(15, 23, 42, 0.22);
  overflow: auto;
}
.entity-editor-panel form {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.entity-editor-header,
.entity-editor-footer {
  position: sticky;
  z-index: 1;
  background: var(--app-surface);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.entity-editor-header {
  top: 0;
  border-bottom: 1px solid #e2e8f0;
}
.entity-editor-footer {
  bottom: 0;
  border-top: 1px solid #e2e8f0;
  justify-content: flex-end;
}
.entity-editor-body {
  padding: 1.25rem;
}
body.entity-editor-open {
  overflow: hidden;
}
@media (max-width: 575.98px) {
  .week-calendar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .app-navbar .container {
    align-items: flex-start;
  }
  .app-brand-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.22rem;
  }
  .app-brand-label small {
    padding: 0.16rem 0.46rem;
    font-size: 0.64rem;
  }
  .navbar-actions .btn {
    min-height: 2.4rem;
  }
  main.container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
  .action-grid .btn {
    min-height: 3.75rem;
  }
  .admin-section-nav {
    top: -0.1rem;
  }
  .admin-panel .card-body {
    padding: 1rem;
  }
  .admin-panel .btn {
    min-height: 2.65rem;
  }
  .map-picker {
    padding: 0;
  }
  .map-picker-dialog {
    height: 100dvh;
    border-radius: 0;
  }
  .map-picker-header,
  .map-picker-footer {
    padding: 0.7rem 0.8rem;
  }
  .map-picker-footer .btn {
    min-height: 2.8rem;
  }
  .entity-editor-panel {
    width: 100%;
  }
  .entity-editor-header,
  .entity-editor-footer,
  .entity-editor-body {
    padding: 1rem;
  }
  .entity-editor-footer .btn {
    flex: 1;
    min-height: 2.8rem;
  }
}
@media (min-width: 768px) {
  .action-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .action-grid .btn:last-child {
    grid-column: auto;
  }
}

.registration-progress[hidden] {
  display: none;
}
.registration-progress {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(8, 20, 27, 0.74);
  backdrop-filter: blur(3px);
}
.registration-progress-card {
  width: min(25rem, 100%);
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  padding: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 1.1rem;
  background: var(--app-surface);
  color: var(--app-ink);
  text-align: center;
  box-shadow: 0 1.2rem 3rem rgba(8, 20, 27, 0.34);
}
.registration-progress-card strong {
  font-size: 1.15rem;
}
.registration-progress-card span {
  color: var(--app-muted);
  font-size: 0.9rem;
}
body.registration-busy {
  overflow: hidden;
  touch-action: none;
}
.floating-feedback {
  position: fixed;
  z-index: 4000;
  top: max(1rem, env(safe-area-inset-top));
  left: 50%;
  width: min(34rem, calc(100% - 2rem));
  transform: translateX(-50%);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  border-width: 2px;
  box-shadow: 0 1rem 2.5rem rgba(8, 20, 27, 0.35);
}
.floating-feedback strong {
  display: block;
  margin-bottom: 0.25rem;
}

.report-document-header,
.report-print-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.report-print-brand {
  display: none;
}
.report-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  color: var(--app-muted);
}
.report-metric {
  border: 1px solid #e2e8f0;
}
.report-metric strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.1;
}
.report-metric span {
  display: block;
  margin-top: 0.35rem;
  color: var(--app-muted);
  font-size: 0.82rem;
}
.report-metric.negative {
  border-left: 4px solid var(--app-danger);
}
.report-metric.positive {
  border-left: 4px solid var(--app-success);
}
.report-metric.warning {
  border-left: 4px solid var(--app-accent);
}
.report-day {
  margin-bottom: 1rem;
  break-inside: avoid;
}
.report-day .card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  background: color-mix(in srgb, var(--app-background) 82%, white);
}
.report-day-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  font-size: 0.82rem;
}
.report-allocations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.86rem;
}
.report-events {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.report-event {
  display: grid;
  grid-template-columns: 3.8rem 1fr;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #eef2f6;
}
.report-event:last-child {
  border-bottom: 0;
}
.report-event time {
  font-weight: 700;
}
.report-observation {
  margin-top: 0.25rem;
  font-style: italic;
}
.report-document-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #cbd5e1;
  color: var(--app-muted);
  font-size: 0.78rem;
}
@media (max-width: 767.98px) {
  .report-document-header {
    align-items: flex-start;
  }
  .report-day .card-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .report-day-totals {
    width: 100%;
    justify-content: space-between;
  }
  .report-event {
    grid-template-columns: 3.2rem 1fr;
  }
}
@media print {
  body {
    background: #fff !important;
    font-size: 10pt;
  }
  .no-print,
  .environment-banner,
  .app-navbar {
    display: none !important;
  }
  .individual-report {
    max-width: none !important;
    padding: 0 !important;
  }
  .report-print-brand {
    display: flex;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #111;
  }
  .report-print-brand img {
    max-height: 3rem;
    max-width: 14rem;
  }
  .report-print-brand div {
    display: grid;
    text-align: right;
  }
  .individual-report .card {
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
  }
  .report-metric strong {
    font-size: 1.05rem;
  }
  .report-day {
    break-inside: avoid;
  }
  .report-day .card-body {
    padding: 0.65rem;
  }
  .report-event {
    padding: 0.3rem 0;
  }
  a[href]:after {
    content: none !important;
  }
}

/* R01: densidade de uma folha de conferência, sem retirar informação. */
.individual-report .report-person {
  margin-bottom: 0.8rem !important;
}
.individual-report #individual-summary {
  --bs-gutter-x: 0.65rem;
  --bs-gutter-y: 0.65rem;
  margin-bottom: 1rem !important;
}
.individual-report .report-metric .card-body {
  padding: 0.7rem 0.8rem;
}
.individual-report .report-metric strong {
  font-size: 1.18rem;
}
.report-day {
  margin-bottom: 0.55rem;
}
.report-day .card-header {
  padding: 0.5rem 0.7rem;
}
.report-day .card-body {
  padding: 0.45rem 0.7rem;
}
.report-day-totals {
  gap: 0.35rem 0.85rem;
}
.report-allocations {
  padding-bottom: 0.35rem;
  gap: 0.25rem 0.75rem;
}
.report-events {
  margin: 0.35rem 0 0;
}
.report-event {
  grid-template-columns: 3.35rem 1fr;
  gap: 0.45rem;
  padding: 0.22rem 0;
  line-height: 1.2;
}
.report-event > div > div {
  display: inline;
}
.report-event > div > div + div:before {
  content: " · ";
  color: var(--app-muted);
}
.report-event .report-observation {
  display: block;
  margin-top: 0.12rem;
}
.report-event .report-observation:before {
  content: "";
}
.report-day-empty .card-body {
  padding: 0.3rem 0.7rem;
}
.report-day-empty .report-allocations {
  display: none;
}
.report-day-empty .report-events {
  margin: 0;
}
.report-day-empty .report-events li {
  font-size: 0.82rem;
}
@media print {
  @page {
    size: A4;
    margin: 10mm;
  }
  .individual-report {
    font-size: 8.5pt;
  }
  .report-document-header {
    margin-bottom: 0.5rem;
  }
  .report-print-brand {
    margin-bottom: 0.55rem;
    padding-bottom: 0.4rem;
  }
  .report-print-brand img {
    max-height: 2.1rem;
  }
  .report-person .card-body {
    padding: 0.45rem 0.6rem;
  }
  .individual-report #individual-summary {
    --bs-gutter-x: 0.3rem;
    --bs-gutter-y: 0.3rem;
    margin-bottom: 0.55rem !important;
  }
  .individual-report #individual-summary > .col-6 {
    width: 25%;
  }
  .individual-report .report-metric .card-body {
    padding: 0.35rem 0.45rem;
  }
  .individual-report .report-metric strong {
    font-size: 0.92rem;
  }
  .individual-report .report-metric span {
    margin-top: 0.1rem;
    font-size: 0.68rem;
  }
  .report-day {
    margin-bottom: 0.32rem;
  }
  .report-day .card-header {
    padding: 0.28rem 0.45rem;
  }
  .report-day .card-body {
    padding: 0.25rem 0.45rem;
  }
  .report-day-totals {
    font-size: 0.72rem;
    gap: 0.25rem 0.6rem;
  }
  .report-allocations {
    padding-bottom: 0.2rem;
    font-size: 0.72rem;
  }
  .report-events {
    margin: 0.18rem 0 0;
  }
  .report-event {
    grid-template-columns: 2.7rem 1fr;
    gap: 0.25rem;
    padding: 0.12rem 0;
    font-size: 0.74rem;
    line-height: 1.12;
  }
  .report-event .small {
    font-size: 0.67rem !important;
  }
  .report-document-footer {
    margin-top: 0.6rem;
    padding-top: 0.35rem;
    font-size: 0.65rem;
  }
}
.macro-indicator {
  height: 100%;
  padding: 0.75rem;
  border: 1px solid #dbe2e8;
  border-radius: var(--app-radius);
  background: color-mix(in srgb, var(--app-background) 55%, white);
}
.macro-indicator strong {
  display: block;
  font-size: 1.3rem;
  line-height: 1.1;
}
.macro-indicator span {
  display: block;
  margin-top: 0.3rem;
  color: var(--app-muted);
  font-size: 0.78rem;
}
.report-row-quality {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  color: var(--app-muted);
}
.app-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--app-accent);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-weight: 700;
}
.app-menu-toggle span:first-child {
  font-size: 1.25rem;
  line-height: 1;
}
.app-menu-toggle:hover,
.app-menu-toggle:focus-visible {
  background: var(--app-accent);
  /* color: #111; */
  color: color-mix(in srgb, var(--app-amber) 78%, #fff);
  border: 1px solid color-mix(in srgb, var(--app-amber) 78%, #fff);
  border-radius: 999px;
}
.app-menu-shell {
  position: fixed;
  inset: 0;
  z-index: 5000;
}
.app-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 27, 0.58);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.app-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(24rem, 88vw);
  height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--app-bg);
  box-shadow: -1rem 0 3rem rgba(8, 20, 27, 0.3);
  overflow: auto;
  transform: translateX(102%);
  transition: transform 0.2s ease;
}
.app-menu-shell.is-open .app-menu-backdrop {
  opacity: 1;
}
.app-menu-shell.is-open .app-menu-panel {
  transform: translateX(0);
}
.app-menu-panel > header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid #dce3e8;
  background: var(--app-bg);
}
.app-menu-panel > header div {
  display: grid;
}
.app-menu-panel > header strong {
  font-size: 1.1rem;
}
.app-menu-panel > header span {
  color: var(--app-muted);
  font-size: 0.78rem;
}
.app-menu-close {
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
  font-size: 1.5rem;
  line-height: 1;
}
.app-menu-groups {
  padding: 0.4rem 1rem 1rem;
}
.app-menu-group {
  padding: 0.7rem 0;
  border-bottom: 1px solid #e5eaf0;
}
.app-menu-group:last-child {
  border-bottom: 0;
}
.app-menu-group h2 {
  margin: 0 0 0.35rem;
  padding: 0 0.55rem;
  color: var(--app-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.app-menu-link,
.app-menu-action {
  display: flex;
  width: 100%;
  align-items: center;
  min-height: 3rem;
  margin: 0.12rem 0;
  padding: 0.65rem 0.75rem;
  border: 0;
  border-radius: 0.7rem;
  background: transparent;
  color: var(--app-ink);
  font-weight: 650;
  text-align: left;
  text-decoration: none;
}
.app-menu-link:hover,
.app-menu-link:focus-visible,
.app-menu-action:hover,
.app-menu-action:focus-visible {
  background: color-mix(in srgb, var(--app-accent) 16%, white);
  color: var(--app-ink);
}
.app-menu-link.is-current {
  background: color-mix(in srgb, var(--app-accent) 24%, white);
  box-shadow: inset 4px 0 0 var(--app-accent);
}
.app-menu-link.is-current:after {
  content: "Página atual";
  margin-left: auto;
  color: var(--app-muted);
  font-size: 0.68rem;
  font-weight: 500;
}
.app-menu-action[hidden] {
  display: none;
}
.app-menu-action[data-subscribed="1"] {
  color: #8a5c00;
}
.app-menu-open {
  overflow: hidden;
}
@media (max-width: 575.98px) {
  .app-menu-toggle {
    min-width: 3rem;
    justify-content: center;
    padding: 0.4rem 0.65rem;
  }
  .app-menu-toggle span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .app-menu-panel {
    width: min(25rem, 92vw);
  }
  .app-menu-link,
  .app-menu-action {
    min-height: 3.35rem;
    font-size: 1rem;
  }
}
.app-session-identity {
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 6.4rem;
  max-width: 13rem;
  padding: 0.22rem 0.72rem;
  /* border-left: 1px solid color-mix(in srgb, var(--app-accent) 58%, transparent); */

  border: 1px solid color-mix(in srgb, var(--app-amber) 78%, #fff);
  border-radius: 999px;

  color: #fff;
  line-height: 1.08;
  text-align: center;
}
.app-session-identity strong {
  overflow: hidden;
  max-width: 100%;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-session-identity span {
  margin-top: 0.16rem;
  color: color-mix(in srgb, #fff 72%, var(--app-accent));
  font-size: 0.66rem;
  font-weight: 600;
}
.app-session-identity[hidden] {
  display: none;
}
@media (max-width: 575.98px) {
  .app-session-identity {
    min-width: 5.5rem;
    max-width: 7.5rem;
    padding-inline: 0.45rem;
  }
  .app-session-identity strong {
    font-size: 0.7rem;
  }
  .app-session-identity span {
    font-size: 0.6rem;
  }
}
.team-report-table th,
.team-report-table td {
  padding: 0.48rem 0.55rem;
  white-space: nowrap;
}
.team-report-table td:first-child {
  white-space: normal;
  min-width: 11rem;
}
.team-member-attention {
  background: color-mix(in srgb, var(--app-accent) 8%, white);
}
@media print {
  .team-report {
    font-size: 8.5pt;
  }
  .team-report .report-document-header {
    margin-bottom: 0.5rem;
  }
  .team-report #team-summary {
    --bs-gutter-x: 0.3rem;
    --bs-gutter-y: 0.3rem;
    margin-bottom: 0.55rem !important;
  }
  .team-report #team-summary > .col-6 {
    width: 25%;
  }
  .team-report .report-metric .card-body {
    padding: 0.35rem 0.45rem;
  }
  .team-report .report-metric strong {
    font-size: 0.92rem;
  }
  .team-report .report-metric span {
    font-size: 0.67rem;
  }
  .team-report-table th,
  .team-report-table td {
    padding: 0.2rem 0.3rem;
    font-size: 7.5pt;
  }
  .team-report .list-group-item {
    padding: 0.28rem 0.45rem;
  }
  .team-report .report-bar {
    height: 0.18rem;
  }
}
.monthly-table th,
.monthly-table td {
  padding: 0.42rem 0.48rem;
  white-space: nowrap;
}
.monthly-table td:first-child {
  min-width: 11rem;
  white-space: normal;
}
@media print {
  .monthly-conference {
    font-size: 8.2pt;
  }
  .monthly-conference #monthly-summary {
    --bs-gutter-x: 0.3rem;
    --bs-gutter-y: 0.3rem;
    margin-bottom: 0.55rem !important;
  }
  .monthly-conference #monthly-summary > .col-6 {
    width: 25%;
  }
  .monthly-conference .report-metric .card-body {
    padding: 0.3rem 0.4rem;
  }
  .monthly-conference .report-metric strong {
    font-size: 0.88rem;
  }
  .monthly-conference .report-metric span {
    font-size: 0.64rem;
  }
  .monthly-table th,
  .monthly-table td {
    padding: 0.16rem 0.22rem;
    font-size: 6.8pt;
  }
  .monthly-table td:first-child {
    min-width: 8rem;
  }
}
