:root {
  --ui-font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ui-font-size-base: 15px;
  --ui-font-size-caption: 0.8125rem;
  --ui-font-size-body: 0.9375rem;
  --ui-font-size-label: 0.95rem;
  --ui-font-size-control: 0.875rem;
  --ui-font-size-button: 0.875rem;
  --ui-font-size-navigation: 0.875rem;
  --ui-font-size-section: 1rem;
  --ui-line-height-base: 1.45;
  --ui-text: #1e293b;
  --ui-text-muted: #64748b;
  --ui-text-subtle: #64748b;
  --ui-surface: #ffffff;
  --ui-surface-subtle: #f8fafc;
  --ui-surface-hover: #f1f5f9;
  --ui-border: #e2e8f0;
  --ui-border-strong: #cbd5e1;
  --ui-primary: #0479b8;
  --ui-primary-hover: #035f91;
  --ui-primary-soft: #e6f6fe;
  --ui-secondary: #475569;
  --ui-secondary-hover: #334155;
  --ui-success: #15803d;
  --ui-success-soft: #f0fdf4;
  --ui-warning: #a16207;
  --ui-warning-soft: #fffbeb;
  --ui-danger: #b91c1c;
  --ui-danger-hover: #991b1b;
  --ui-danger-soft: #fef2f2;
  --ui-radius-sm: 7px;
  --ui-radius-md: 10px;
  --ui-radius-lg: 12px;
  --ui-radius-pill: 999px;
  --ui-btn-height: 40px;
  --ui-control-height: 40px;
  --ui-focus-ring: 0 0 0 3px rgba(4, 121, 184, 0.22);
  --ui-shadow-raised: 0 8px 24px rgba(27, 46, 94, 0.08);
}

body[data-pc-theme="dark"] {
  --ui-text: #e2e8f0;
  --ui-text-muted: #94a3b8;
  --ui-text-subtle: #94a3b8;
  --ui-surface: #1e293b;
  --ui-surface-subtle: #172033;
  --ui-surface-hover: #273449;
  --ui-border: #334155;
  --ui-border-strong: #475569;
  --ui-secondary: #cbd5e1;
  --ui-secondary-hover: #f1f5f9;
  --ui-danger: #f87171;
  --ui-danger-hover: #fca5a5;
  --ui-primary-soft: #172554;
  --ui-success-soft: #142d20;
  --ui-warning-soft: #34270e;
  --ui-danger-soft: #351719;
}

html,
body,
input,
select,
textarea,
button {
  font-family: var(--ui-font-family);
}

html,
body {
  color: var(--ui-text);
  font-size: var(--ui-font-size-base);
  line-height: var(--ui-line-height-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html {
  font-size: 16px;
}

body {
  font-size: var(--ui-font-size-base);
}

::selection {
  color: #172554;
  background: #bfdbfe;
}

* {
  scrollbar-color: var(--ui-border-strong) transparent;
  scrollbar-width: thin;
}

*:focus-visible {
  outline: 2px solid var(--ui-primary);
  outline-offset: 2px;
}

a {
  text-underline-offset: 0.18em;
}

h1,
.h1 {
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.018em;
}

h2,
.h2 {
  font-size: 1.25rem;
  line-height: 1.3;
}

h3,
.h3 {
  font-size: 1.125rem;
  line-height: 1.35;
}

h4,
.h4,
h5,
.h5 {
  font-size: 1rem;
  line-height: 1.4;
}

h6,
.h6 {
  font-size: 0.9375rem;
  line-height: 1.4;
}

.text-muted {
  color: var(--ui-text-muted) !important;
}

.pc-container {
  top: 68px;
}

.pc-container .pc-content {
  padding-top: 8px;
}

.pc-container .page-header {
  min-height: 0;
  margin-bottom: 20px;
  padding: 10px 0 0;
}

.pc-container .page-header + .row {
  padding-top: 0;
}

.pc-container .page-header .page-block {
  padding-block: 0;
}

.pc-container .page-header .breadcrumb {
  margin-bottom: 10px;
  color: var(--ui-text-muted);
  font-size: var(--ui-font-size-navigation);
}

.pc-container .page-header .breadcrumb-item,
.pc-container .page-header .breadcrumb-item a {
  color: var(--ui-text-muted);
}

.pc-container .page-header .breadcrumb-item[aria-current="page"] {
  color: var(--ui-secondary);
  font-weight: 600;
}

.pc-sidebar .navbar-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.ui-sidebar-logo {
  max-height: 50px;
}

.ui-profile-scroll {
  max-height: calc(100vh - 225px);
}

.ui-pre-wrap {
  white-space: pre-wrap;
}

.calendar-v2-legend-dot--hall {
  background: #3b82f6;
}

.calendar-v2-legend-dot--temple {
  background: #16a34a;
}

.pc-sidebar .navbar-content {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}

.pc-sidebar .card.pc-user-card {
  flex-shrink: 0;
  margin-top: auto;
}

.pc-sidebar .pc-caption .pc-caption-label {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.pc-sidebar .card.pc-user-card .pc-user-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.pc-sidebar .card.pc-user-card .pc-user-meta {
  min-width: 0;
}

.pc-sidebar .card.pc-user-card .pc-user-meta h6,
.pc-sidebar .card.pc-user-card .pc-user-meta small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-sidebar .card.pc-user-card .pc-user-action {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--pc-sidebar-submenu-border-color);
  color: var(--pc-sidebar-color);
  background: color-mix(in srgb, var(--pc-sidebar-active-color) 10%, transparent);
}

.ui-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.page-header .ui-page-heading {
  display: block;
  height: 0;
  margin: 0;
}

.page-header .ui-page-title {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.page-header .ui-page-description {
  display: none;
}

.ui-page-title {
  margin: 0;
  color: var(--ui-text);
  font-weight: 650;
}

.ui-page-description {
  max-width: 72ch;
  margin: 4px 0 0;
  color: var(--ui-text-muted);
  font-size: 0.9375rem;
}

.ui-page-actions,
.ui-actions-bar,
.ui-toolbar-actions,
.ui-panel-actions,
.ui-context-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.ui-actions-bar {
  padding: 18px 24px 10px;
}

.ui-panel-actions {
  min-height: 68px;
  padding: 20px 24px 8px;
}

.ui-report-filter {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--ui-border);
}

.ui-report-filter-card > .card-body {
  padding: 0;
}

.ui-report-filter-card .ui-report-filter {
  border-bottom: 0;
  padding: 20px 24px;
}

.ui-panel-actions .btn-primary {
  min-height: 40px;
  padding-inline: 1rem;
}

.ui-context-actions {
  margin: -4px 0 16px;
}

.ui-toolbar,
.ui-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--ui-border);
}

.ui-toolbar-title {
  margin: 0;
  font-size: var(--ui-font-size-section);
  font-weight: 650;
  line-height: 1.4;
}

.ui-toolbar-description {
  margin: 3px 0 0;
  color: var(--ui-text-muted);
  font-size: 0.875rem;
}

.card {
  border-color: var(--ui-border);
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow-raised);
}

.card-header {
  padding: 16px 24px;
  border-bottom-color: var(--ui-border);
}

.card .card-header h5,
.card .card-header .h5 {
  font-size: 1rem;
}

.card-body {
  font-size: 0.9375rem;
}

.table-card > .card-body {
  padding: 0;
}

.btn {
  min-height: var(--ui-btn-height);
  padding: 0.45rem 0.8rem;
  border-width: 1px;
  border-radius: var(--ui-radius-sm);
  font-size: var(--ui-font-size-button);
  font-weight: 600;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.btn > i {
  flex: 0 0 auto;
}

.btn.btn-sm {
  min-height: 32px;
  padding: 0.35rem 0.65rem;
  font-size: var(--ui-font-size-button);
}

.btn.btn-primary {
  border-color: var(--ui-primary);
  background: var(--ui-primary);
}

.btn.btn-primary:hover,
.btn.btn-primary:focus {
  border-color: var(--ui-primary-hover);
  background: var(--ui-primary-hover);
}

.btn.btn-secondary {
  border-color: var(--ui-secondary);
  background: var(--ui-secondary);
}

.btn.btn-secondary:hover,
.btn.btn-secondary:focus {
  border-color: var(--ui-secondary-hover);
  background: var(--ui-secondary-hover);
}

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

.btn.btn-danger:hover,
.btn.btn-danger:focus {
  border-color: var(--ui-danger-hover);
  background: var(--ui-danger-hover);
}

.btn[class*="btn-outline-"] {
  background: var(--ui-surface);
}

.btn.btn-outline-primary {
  color: var(--ui-primary);
  border-color: #93c5fd;
}

.btn.btn-outline-primary:hover,
.btn.btn-outline-primary:focus {
  color: #fff;
  border-color: var(--ui-primary);
  background: var(--ui-primary);
}

.btn.btn-outline-secondary {
  color: var(--ui-secondary);
  border-color: var(--ui-border-strong);
}

.btn.btn-outline-secondary:hover,
.btn.btn-outline-secondary:focus {
  color: #fff;
  border-color: var(--ui-secondary);
  background: var(--ui-secondary);
}

.btn:focus-visible,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--ui-primary);
  box-shadow: var(--ui-focus-ring);
}

.btn:disabled,
.btn.disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.form-label,
.form-check-label,
label:not(.btn) {
  margin-bottom: 6px;
  color: var(--ui-text);
  font-size: var(--ui-font-size-label);
  font-weight: 600;
}

.form-control,
.form-select,
.input-group-text,
.choices__inner {
  min-height: var(--ui-control-height);
  border-color: var(--ui-border-strong);
  border-radius: var(--ui-radius-sm);
  color: var(--ui-text);
  font-size: var(--ui-font-size-control);
  line-height: 1.35;
}

.choices__input,
.select2-container .select2-selection--single .select2-selection__rendered,
.select2-container .select2-search__field {
  font-size: var(--ui-font-size-control);
}

input[type="file"]::file-selector-button {
  font-size: var(--ui-font-size-button);
}

.form-control {
  padding: 0.5rem 0.75rem;
}

.form-select {
  padding: 0.5rem 2.25rem 0.5rem 0.75rem;
}

.form-control::placeholder {
  color: var(--ui-text-subtle);
  opacity: 1;
}

.invalid-feedback,
.valid-feedback,
.form-text {
  font-size: var(--ui-font-size-caption);
  line-height: 1.4;
}

.choices__list--multiple .choices__item,
.choices__list--multiple .choices__button {
  font-size: var(--ui-font-size-caption);
}

.ui-form-section-title {
  margin-bottom: 4px;
  font-size: 1rem;
  font-weight: 650;
}

.ui-form-section-description {
  margin-bottom: 16px;
  color: var(--ui-text-muted);
  font-size: 0.875rem;
}

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

.ui-form-grid > * {
  width: auto !important;
  margin-bottom: 0 !important;
}

.ui-form-grid .ui-field-wide {
  grid-column: 1 / -1;
}

.sessao-form-grid {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}

.sessao-form-grid > * {
  width: 100% !important;
  max-width: 960px;
  margin: 0 !important;
}

.sessao-form-grid > .sessao-field-compact {
  max-width: 480px;
}

.sessao-form-grid #eventoExtras {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
}

.sessao-form-grid #eventoExtras[hidden] {
  display: none !important;
}

.sessao-form-grid #eventoExtras > * {
  width: 100%;
  max-width: 960px;
  padding: 0;
}

.ui-image-preview {
  display: block;
  width: min(100%, 240px);
  height: auto;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
}

.financeiro-filter-btn {
  min-width: 160px;
}

.ui-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
  padding: 14px 20px;
  border-top: 1px solid var(--ui-border);
  background: var(--ui-surface-subtle);
}

.card > .ui-form-actions {
  margin-top: 0;
  border-radius: 0 0 var(--ui-radius-lg) var(--ui-radius-lg);
}

.ui-section-header--seamless {
  padding-bottom: 10px;
  border-bottom: 0;
}

.badge {
  padding: 0.32rem 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--ui-radius-pill);
  font-size: var(--ui-font-size-caption);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.badge.bg-light-success {
  color: #166534 !important;
  border-color: #bbf7d0;
  background: #dcfce7 !important;
}

.badge.bg-light-primary {
  color: #1d4ed8 !important;
  border-color: #bfdbfe;
  background: #dbeafe !important;
}

.badge.bg-light-secondary {
  color: #334155 !important;
  border-color: var(--ui-border);
  background: #f1f5f9 !important;
}

.badge.bg-light-warning {
  color: #854d0e !important;
  border-color: #fde68a;
  background: #fef9c3 !important;
}

.badge.bg-light-danger {
  color: #991b1b !important;
  border-color: #fecaca;
  background: #fee2e2 !important;
}

.alert {
  border-width: 1px;
  border-radius: var(--ui-radius-md);
  font-size: var(--ui-font-size-control);
}

.alert-warning {
  color: #713f12;
  border-color: #fde68a;
  background: var(--ui-warning-soft);
}

.alert-danger {
  color: #7f1d1d;
  border-color: #fecaca;
  background: var(--ui-danger-soft);
}

.table-responsive,
.table-wrap {
  border-radius: 0 0 var(--ui-radius-lg) var(--ui-radius-lg);
}

.table {
  margin-bottom: 0;
  color: var(--ui-text);
  font-variant-numeric: tabular-nums;
}

.table > :not(caption) > * > * {
  padding: 0.75rem 1rem;
  border-bottom-color: var(--ui-border);
  vertical-align: middle;
  font-size: var(--ui-font-size-body);
  line-height: 1.4;
}

.table.table-hover > tbody > tr > td {
  font-size: 0.95em;
}

.table.table-hover > tbody > tr > td h6 {
  font-size: 1em;
}

.table p {
  font-size: inherit;
}

.table .ui-table-subtext {
  font-size: var(--ui-font-size-caption);
}

.table thead th {
  color: var(--ui-secondary);
  background: var(--ui-surface-subtle);
  font-size: var(--ui-font-size-caption);
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pc-content small,
.pc-content .small,
.pc-content .f-12,
.table .f-12 {
  font-size: var(--ui-font-size-caption) !important;
}

.ui-table-subtext {
  display: block;
  max-width: 52ch;
  margin-top: 2px;
  overflow: hidden;
  color: var(--ui-text-muted);
  font-size: var(--ui-font-size-caption);
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-table-primary,
.sessao-tipo-cell {
  min-width: 0;
}

.ui-table-cell-truncate {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-table-primary h6,
.sessao-tipo-cell h6 {
  font-size: var(--ui-font-size-body);
}

.sessao-tipo-cell {
  display: flex;
  min-height: 47px;
  flex-direction: column;
  justify-content: center;
}

.sessao-table {
  width: 100% !important;
  min-width: 980px;
  table-layout: fixed;
}

.sessao-table th:nth-child(1),
.sessao-table td:nth-child(1) {
  width: 180px;
}

.sessao-table th:nth-child(2),
.sessao-table td:nth-child(2) {
  width: 260px;
}

.sessao-table th:nth-child(4),
.sessao-table td:nth-child(4) {
  width: 130px;
}

.sessao-table th:nth-child(5),
.sessao-table td:nth-child(5) {
  width: 152px;
}

.sessao-table td:nth-child(1),
.sessao-table td:nth-child(2),
.sessao-table td:nth-child(4) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-recent-table,
.obreiro-table,
.presenca-table,
.visitantes-table,
.percentual-table,
.financeiro-table,
.plano-contas-table,
.proloja-table {
  width: 100% !important;
  table-layout: fixed;
}

.home-recent-table {
  min-width: 620px;
}

.home-recent-table th:first-child,
.home-recent-table td:first-child {
  width: 55%;
}

.obreiro-table {
  min-width: 760px;
}

.obreiro-table th:nth-child(1),
.obreiro-table td:nth-child(1) {
  width: 34%;
}

.obreiro-table th:nth-child(2),
.obreiro-table td:nth-child(2) {
  width: 36%;
}

.obreiro-table th:nth-child(3),
.obreiro-table td:nth-child(3) {
  width: 120px;
}

.obreiro-table th:nth-child(4),
.obreiro-table td:nth-child(4) {
  width: 152px;
}

.obreiro-table td:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.presenca-table {
  min-width: 840px;
}

.presenca-table th:nth-child(1),
.presenca-table td:nth-child(1) {
  width: 180px;
}

.presenca-table th:nth-child(2),
.presenca-table td:nth-child(2) {
  width: 28%;
}

.presenca-table th:nth-child(3),
.presenca-table td:nth-child(3) {
  width: 120px;
}

.presenca-table th:nth-child(1),
.presenca-table td:nth-child(1),
.presenca-table th:nth-child(3),
.presenca-table td:nth-child(3) {
  white-space: nowrap;
}

.visitantes-table {
  min-width: 980px;
}

.visitantes-table th:nth-child(1),
.visitantes-table td:nth-child(1) {
  width: 180px;
}

.visitantes-table th:nth-child(2),
.visitantes-table td:nth-child(2) {
  width: 24%;
}

.visitantes-table th:nth-child(3),
.visitantes-table td:nth-child(3) {
  width: 120px;
}

.visitantes-table th:nth-child(5),
.visitantes-table td:nth-child(5) {
  width: 152px;
}

.percentual-table {
  min-width: 800px;
}

.percentual-table th:nth-child(1),
.percentual-table td:nth-child(1) {
  width: 120px;
}

.percentual-table th:nth-child(n+3),
.percentual-table td:nth-child(n+3) {
  width: 140px;
}

.financeiro-table {
  min-width: 1080px;
}

.financeiro-table th:nth-child(1),
.financeiro-table td:nth-child(1) {
  width: 118px;
}

.financeiro-table th:nth-child(2),
.financeiro-table td:nth-child(2) {
  width: 170px;
}

.financeiro-table th:nth-child(4),
.financeiro-table td:nth-child(4) {
  width: 128px;
}

.financeiro-table th:nth-child(5),
.financeiro-table td:nth-child(5) {
  width: 136px;
}

.financeiro-table th:nth-child(6),
.financeiro-table td:nth-child(6),
.financeiro-table th:nth-child(7),
.financeiro-table td:nth-child(7) {
  width: 132px;
}

.financeiro-table th:nth-child(8),
.financeiro-table td:nth-child(8) {
  width: 152px;
}

.financeiro-table td:nth-child(2),
.financeiro-table td:nth-child(3) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plano-contas-table {
  min-width: 600px;
}

.plano-contas-table th:nth-child(2),
.plano-contas-table td:nth-child(2) {
  width: 160px;
}

.plano-contas-table th:nth-child(3),
.plano-contas-table td:nth-child(3) {
  width: 152px;
}

.plano-contas-table td:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proloja-table {
  min-width: 760px;
}

.proloja-pending-table th:nth-child(2),
.proloja-pending-table td:nth-child(2),
.proloja-result-table th:first-child,
.proloja-result-table td:first-child {
  width: 130px;
}

.proloja-table th:last-child,
.proloja-table td:last-child {
  width: 170px;
}

.proloja-pending-table td:first-child,
.proloja-pending-table td:nth-child(3),
.proloja-result-table td:nth-child(2),
.proloja-result-table td:nth-child(3) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-hover > tbody > tr:hover > * {
  --bs-table-accent-bg: var(--ui-surface-hover);
  color: var(--ui-text);
}

.table .text-end,
.table th.text-end {
  font-variant-numeric: tabular-nums;
}

.tbl-product th.table-actions-column,
.tbl-product td.table-actions-column,
.table th.table-actions-column,
.table td.table-actions-column,
.visitantes-table th:last-child,
.visitantes-table td:last-child {
  width: 9.5rem;
  min-width: 9.5rem;
  text-align: center;
  white-space: nowrap;
}

.tbl-product .prod-action-links,
.tbl-product tr:hover .prod-action-links {
  position: static;
  z-index: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transform: none;
  opacity: 1;
  background: transparent;
  box-shadow: none;
  transition: none;
}

.tbl-product .prod-action-links .list-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tbl-product .prod-action-links .list-inline-item {
  margin: 0;
}

.tbl-product .prod-action-links .avtar {
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ui-secondary);
  background: transparent;
}

.tbl-product .prod-action-links .btn-link-success,
.tbl-product .prod-action-links .btn-link-secondary,
.tbl-product .prod-action-links .btn-pc-default:not(.btn-link-danger) {
  color: var(--ui-secondary);
}

.tbl-product .prod-action-links .btn-link-danger {
  color: var(--ui-danger);
}

.tbl-product .prod-action-links .avtar:hover {
  color: var(--ui-secondary-hover);
  background: var(--ui-surface-hover);
}

.tbl-product .prod-action-links .btn-link-danger:hover {
  color: var(--ui-danger-hover);
  background: var(--ui-danger-soft);
}

.ui-table-heading {
  display: inline-block;
  min-width: 0;
  color: var(--ui-text);
  font: inherit;
  font-weight: 650;
}

.ui-table-region {
  position: relative;
}

.ui-table-loading {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  color: var(--ui-text-muted);
  font-size: var(--ui-font-size-control);
}

.ui-table-loading[hidden] {
  display: none !important;
}

.ui-table-region[aria-busy="true"] .datatable-empty {
  visibility: hidden;
}

.obreiro-row {
  cursor: pointer;
}

.sessao-tipo-linha {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.sessao-tipo-linha .badge {
  white-space: nowrap;
}

.sessao-action-tooltip {
  position: relative;
}

.sessao-action-tooltip::before,
.sessao-action-tooltip::after {
  position: absolute;
  left: 50%;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease, transform 120ms ease;
}

.sessao-action-tooltip::before {
  bottom: calc(100% + 2px);
  border: 5px solid transparent;
  border-top-color: #0f172a;
  content: "";
  transform: translate(-50%, -2px);
}

.sessao-action-tooltip::after {
  bottom: calc(100% + 12px);
  padding: 6px 8px;
  border-radius: 6px;
  color: #fff;
  background: #0f172a;
  box-shadow: var(--ui-shadow-raised);
  content: attr(data-tooltip);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
  transform: translate(-50%, 2px);
}

.sessao-action-tooltip:hover::before,
.sessao-action-tooltip:hover::after,
.sessao-action-tooltip:focus-within::before,
.sessao-action-tooltip:focus-within::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.datatable-wrapper .datatable-top,
.datatable-wrapper .datatable-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
}

.datatable-wrapper .datatable-top {
  border-bottom: 1px solid var(--ui-border);
}

.datatable-wrapper .datatable-top > .datatable-dropdown:first-child {
  margin-right: auto;
}

.datatable-wrapper .datatable-top #statusFilterWrap {
  margin-left: auto !important;
}

.datatable-wrapper .datatable-bottom {
  border-top: 1px solid var(--ui-border);
}

.datatable-wrapper .datatable-input,
.datatable-wrapper .datatable-selector {
  min-height: 34px;
  border: 1px solid var(--ui-border-strong);
  border-radius: var(--ui-radius-sm);
  color: var(--ui-text);
  background: var(--ui-surface);
  font-size: var(--ui-font-size-control);
}

.datatable-wrapper .datatable-selector {
  width: 84px;
  min-width: 84px;
  min-height: var(--ui-control-height);
  padding: 0.45rem 2rem 0.45rem 0.7rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 16px;
}

.datatable-wrapper .datatable-dropdown > label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--ui-text-muted);
  font-size: var(--ui-font-size-label);
  white-space: nowrap;
}

.datatable-wrapper .datatable-input {
  width: min(280px, 100%);
  padding: 0.4rem 0.65rem;
}

.datatable-wrapper .datatable-info {
  color: var(--ui-text-muted);
  font-size: 0.875rem;
}

.datatable-wrapper .datatable-dropdown {
  color: var(--ui-text-muted);
  font-size: var(--ui-font-size-label);
}

.ui-empty-state {
  padding: 40px 20px;
  text-align: center;
}

.ui-empty-state i {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--ui-text-subtle);
  font-size: 1.5rem;
}

.ui-empty-state-title {
  margin: 0 0 4px;
  font-weight: 650;
}

.ui-empty-state-description {
  max-width: 52ch;
  margin: 0 auto;
  color: var(--ui-text-muted);
  font-size: 0.875rem;
}

.sessao-meta {
  margin: -4px 0 12px;
  color: var(--ui-text-muted);
  font-size: var(--ui-font-size-control);
}

.statistics-card-1 h5 {
  font-size: 1rem;
}

.dashboard-row {
  margin-bottom: 24px;
}

.dashboard-row.g-3 {
  margin-top: 0;
}

.dashboard-row.g-3 > * {
  margin-top: 0;
}

.dashboard-row .card {
  margin-bottom: 0;
}

.statistics-card-1 h3 {
  font-size: 1.5rem;
  line-height: 1.15;
}

.presenca-split {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}

.presenca-split-item {
  flex: 1;
  min-width: 128px;
  padding: 14px 16px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  background: var(--ui-surface-subtle);
}

.presenca-split-label {
  display: block;
  margin-bottom: 4px;
  color: var(--ui-text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.presenca-split-value {
  color: var(--ui-text);
  font-size: 1.5rem;
  font-weight: 650;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ui-progress-compact {
  height: 7px;
}

.statistics-card-1 .ui-progress-compact {
  margin-top: 8px;
}

.ui-avatar-sm {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.ui-auth-card-body {
  padding: 28px;
}

.ui-qr-card {
  max-width: 900px;
  margin-inline: auto;
}

.ui-qr-session-card {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.ui-qr-session-card .card-body {
  padding: 0;
}

.ui-qr-print-sheet {
  display: flex;
  width: 100%;
  min-height: 1120px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin-inline: auto;
  padding: 32px 36px 40px;
  color: #111827;
  background: #fff;
  text-align: center;
}

.ui-qr-logo {
  display: block;
  width: min(300px, 62vw);
  height: min(300px, 62vw);
  margin: 0 auto 24px;
  border-radius: 50%;
  object-fit: contain;
}

.ui-qr-title {
  margin: 0 0 8px;
  color: #171c26;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
}

.ui-qr-session-date {
  margin: 0 0 40px;
  color: #4b5563;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  line-height: 1.35;
}

.ui-qrcode-session {
  min-height: 420px;
  margin: 0 auto 46px;
}

.ui-qrcode,
.qrcode-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  margin: 50px auto;
}

#qrcode img,
#qrcode canvas {
  max-width: 100%;
  height: auto !important;
}

.ui-qr-instructions {
  max-width: 58rem;
  margin: 0 auto;
  color: #111827;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.45;
}

.ui-qr-instructions span {
  display: block;
}

.ui-auth-logo {
  width: min(250px, 64vw);
  max-height: 250px;
  object-fit: contain;
}

.ui-auth-error {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: var(--ui-radius-sm);
  color: var(--ui-danger);
  background: var(--ui-danger-soft);
  font-size: 0.875rem;
}

.ui-auth-error[hidden] {
  display: none;
}

.auth-main .ui-login-submit.btn-primary {
  border-color: #04a9f5;
  background: #04a9f5;
}

.auth-main .ui-login-submit.btn-primary:hover,
.auth-main .ui-login-submit.btn-primary:focus {
  border-color: #0387c4;
  background: #0390d0;
}

.auth-main .ui-login-submit.btn-primary:focus-visible {
  box-shadow: 0 0 0 3px rgba(4, 169, 245, 0.24);
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 44px;
}

.password-wrapper .toggle-password {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: inline-flex;
  width: 34px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--ui-radius-sm);
  color: var(--ui-text-muted);
  background: transparent;
}

.password-wrapper .toggle-password:hover {
  color: var(--ui-text);
  background: var(--ui-surface-hover);
}

.modal-content {
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow-raised);
}

.modal-header,
.modal-footer {
  border-color: var(--ui-border);
}

.modal-title {
  font-weight: 650;
}

@media (max-width: 1024px) {
  .pc-container {
    top: 64px;
  }

  .pc-container .pc-content {
    padding-top: 6px;
  }
}

@media (min-width: 1025px) {
  body.pc-sidebar-hide .pc-header {
    left: 0 !important;
  }

  body.pc-sidebar-hide .pc-container,
  body.pc-sidebar-hide .pc-footer {
    margin-left: 0 !important;
  }

  body[data-pc-direction="rtl"].pc-sidebar-hide .pc-header {
    right: 0 !important;
    left: 0 !important;
  }

  body[data-pc-direction="rtl"].pc-sidebar-hide .pc-container,
  body[data-pc-direction="rtl"].pc-sidebar-hide .pc-footer {
    margin-right: 0 !important;
  }
}

@media (max-width: 767.98px) {
  .pc-container .page-header {
    margin-bottom: 12px;
  }

  .ui-page-heading,
  .ui-toolbar,
  .ui-section-header,
  .datatable-wrapper .datatable-top,
  .datatable-wrapper .datatable-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .ui-page-actions,
  .ui-actions-bar,
  .ui-toolbar-actions,
  .ui-form-actions {
    justify-content: stretch;
  }

  .ui-page-actions .btn,
  .ui-actions-bar .btn,
  .ui-toolbar-actions .btn,
  .ui-form-actions .btn {
    flex: 1 1 auto;
  }

  .datatable-wrapper .datatable-search,
  .datatable-wrapper .datatable-input {
    width: 100%;
  }

  .form-control,
  .form-select,
  .input-group-text,
  .choices__inner,
  .choices__input,
  .datatable-wrapper .datatable-input,
  .datatable-wrapper .datatable-selector {
    font-size: var(--ui-font-size-control);
  }

  .table > :not(caption) > * > * {
    padding: 0.6rem 0.7rem;
  }

  .tbl-product th.table-actions-column,
  .tbl-product td.table-actions-column,
  .table th.table-actions-column,
  .table td.table-actions-column,
  .visitantes-table th:last-child,
  .visitantes-table td:last-child {
    position: sticky;
    right: 0;
    z-index: 3;
    background: var(--ui-surface);
    box-shadow: -10px 0 14px -14px rgba(15, 23, 42, 0.55);
  }

  .tbl-product thead th.table-actions-column,
  .table thead th.table-actions-column,
  .visitantes-table thead th:last-child {
    z-index: 4;
    background: var(--ui-surface-subtle);
  }

  .tbl-product tbody tr:hover td.table-actions-column,
  .table-hover tbody tr:hover td.table-actions-column,
  .visitantes-table tbody tr:hover td:last-child {
    background: var(--ui-surface-hover);
  }

  .tbl-product .prod-action-links .avtar {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .financeiro-filter-actions,
  .financeiro-filter-btn {
    width: 100%;
  }

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

  .ui-form-grid .ui-field-wide {
    grid-column: auto;
  }

  .ui-qr-print-sheet {
    min-height: auto;
    padding: 24px 16px 28px;
  }

  .ui-qr-logo {
    width: min(220px, 64vw);
    height: min(220px, 64vw);
    margin-bottom: 20px;
  }

  .ui-qr-title {
    font-size: 2rem;
  }

  .ui-qr-session-date {
      max-width: 58rem;
      margin: 0 auto;
      color: #111827;
      font-size: 1.15rem;
      font-weight: 600;
      line-height: 1.45;
  }

  .ui-qrcode-session {
    min-height: 320px;
    margin-bottom: 32px;
  }

  .ui-qr-instructions {
    font-size: 1rem;
  }
}

@media (pointer: coarse) {
  .btn,
  .tbl-product .prod-action-links .avtar,
  .pc-head-link {
    min-width: 44px;
    min-height: 44px;
  }
}

button.pc-head-link {
  border: 0;
  font: inherit;
}

.pc-h-dropdown button.dropdown-item {
  width: 100%;
  border: 0;
  text-align: left;
}

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

@media print {
  .no-print {
    display: none !important;
  }
}
