:root {
  --ui-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ui-slate-50: #f8fafc;
  --ui-slate-100: #f1f5f9;
  --ui-slate-200: #e2e8f0;
  --ui-slate-300: #cbd5e1;
  --ui-slate-400: #94a3b8;
  --ui-slate-500: #64748b;
  --ui-slate-700: #334155;
  --ui-slate-800: #1e293b;
  --ui-slate-900: #0f172a;
  --ui-primary: #2563eb;
  --ui-primary-dark: #1d4ed8;
  --ui-success: #16a34a;
  --ui-danger: #dc2626;
  --ui-warning: #d97706;
  --ui-info: #0891b2;
  --ui-surface: #ffffff;
  --ui-surface-muted: #f8fafc;
  --ui-border: rgba(148, 163, 184, 0.35);
  --ui-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --ui-shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
  --ui-radius-sm: 0.625rem;
  --ui-radius-md: 0.875rem;
  --ui-radius-lg: 1.25rem;
}

html[data-theme="dark"] {
  --ui-slate-50: #0f172a;
  --ui-slate-100: #111827;
  --ui-slate-200: #1f2937;
  --ui-slate-300: #334155;
  --ui-slate-400: #64748b;
  --ui-slate-500: #94a3b8;
  --ui-slate-700: #cbd5e1;
  --ui-slate-800: #e2e8f0;
  --ui-slate-900: #f8fafc;
  --ui-surface: rgba(15, 23, 42, 0.92);
  --ui-surface-muted: rgba(17, 24, 39, 0.92);
  --ui-border: rgba(148, 163, 184, 0.22);
  --ui-shadow-sm: 0 1px 2px rgba(2, 6, 23, 0.35);
  --ui-shadow: 0 18px 46px rgba(2, 6, 23, 0.36);
}

html,
body {
  font-family: var(--ui-font-sans);
}

html[data-theme="dark"] body {
  color: var(--ui-slate-900);
}

body.login-public-body,
body.salao-login-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 22rem),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.14), transparent 20rem),
    linear-gradient(180deg, #020617, #0f172a 42%, #1e293b);
  color: var(--ui-slate-900);
}

html[data-theme="light"] body.login-public-body,
html[data-theme="light"] body.salao-login-body {
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 22rem),
    radial-gradient(circle at bottom right, rgba(99, 102, 241, 0.1), transparent 20rem),
    linear-gradient(180deg, #f8fafc, #eef2ff 42%, #e2e8f0);
}

a {
  color: inherit;
}

.container,
.container-fluid {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 1rem;
  padding-left: 1rem;
  box-sizing: border-box;
}

.container {
  max-width: 1280px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.75rem;
  margin-left: -0.75rem;
}

.row > * {
  width: 100%;
  max-width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
  box-sizing: border-box;
}

.col,
.col-auto,
[class*="col-"] {
  position: relative;
}

.col {
  flex: 1 0 0%;
}

.col-auto {
  flex: 0 0 auto;
  width: auto;
}

.col-1 { flex: 0 0 auto; width: 8.333333%; }
.col-2 { flex: 0 0 auto; width: 16.666667%; }
.col-3 { flex: 0 0 auto; width: 25%; }
.col-4 { flex: 0 0 auto; width: 33.333333%; }
.col-5 { flex: 0 0 auto; width: 41.666667%; }
.col-6 { flex: 0 0 auto; width: 50%; }
.col-7 { flex: 0 0 auto; width: 58.333333%; }
.col-8 { flex: 0 0 auto; width: 66.666667%; }
.col-9 { flex: 0 0 auto; width: 75%; }
.col-10 { flex: 0 0 auto; width: 83.333333%; }
.col-11 { flex: 0 0 auto; width: 91.666667%; }
.col-12 { flex: 0 0 auto; width: 100%; }

@media (min-width: 576px) {
  .col-sm-1 { flex: 0 0 auto; width: 8.333333%; }
  .col-sm-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-sm-3 { flex: 0 0 auto; width: 25%; }
  .col-sm-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-sm-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-sm-6 { flex: 0 0 auto; width: 50%; }
  .col-sm-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-sm-8 { flex: 0 0 auto; width: 66.666667%; }
  .col-sm-9 { flex: 0 0 auto; width: 75%; }
  .col-sm-10 { flex: 0 0 auto; width: 83.333333%; }
  .col-sm-11 { flex: 0 0 auto; width: 91.666667%; }
  .col-sm-12 { flex: 0 0 auto; width: 100%; }
}

@media (min-width: 768px) {
  .col-md-1 { flex: 0 0 auto; width: 8.333333%; }
  .col-md-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-md-3 { flex: 0 0 auto; width: 25%; }
  .col-md-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-md-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-md-6 { flex: 0 0 auto; width: 50%; }
  .col-md-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-md-8 { flex: 0 0 auto; width: 66.666667%; }
  .col-md-9 { flex: 0 0 auto; width: 75%; }
  .col-md-10 { flex: 0 0 auto; width: 83.333333%; }
  .col-md-11 { flex: 0 0 auto; width: 91.666667%; }
  .col-md-12 { flex: 0 0 auto; width: 100%; }
}

@media (min-width: 992px) {
  .col-lg-1 { flex: 0 0 auto; width: 8.333333%; }
  .col-lg-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-lg-3 { flex: 0 0 auto; width: 25%; }
  .col-lg-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-lg-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-lg-6 { flex: 0 0 auto; width: 50%; }
  .col-lg-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-lg-8 { flex: 0 0 auto; width: 66.666667%; }
  .col-lg-9 { flex: 0 0 auto; width: 75%; }
  .col-lg-10 { flex: 0 0 auto; width: 83.333333%; }
  .col-lg-11 { flex: 0 0 auto; width: 91.666667%; }
  .col-lg-12 { flex: 0 0 auto; width: 100%; }
}

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }
.d-inline-flex { display: inline-flex !important; }
.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-end { justify-content: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-stretch { align-items: stretch !important; }

@media (min-width: 768px) {
  .justify-content-md-end { justify-content: flex-end !important; }
  .d-md-none { display: none !important; }
  .d-md-block { display: block !important; }
  .d-md-flex { display: flex !important; }
}

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.min-vh-100 { min-height: 100vh !important; }
.img-fluid { max-width: 100%; height: auto; }
.overflow-auto { overflow: auto !important; }

.text-center { text-align: center !important; }
.text-start,
.text-left { text-align: left !important; }
.text-end,
.text-right { text-align: right !important; }
.text-white { color: #fff !important; }
.text-dark { color: var(--ui-slate-900) !important; }
.text-muted,
.small.text-muted { color: var(--ui-slate-500) !important; }
.text-primary { color: var(--ui-primary) !important; }
.text-success { color: var(--ui-success) !important; }
.text-danger { color: var(--ui-danger) !important; }
.text-warning { color: var(--ui-warning) !important; }
.text-info { color: var(--ui-info) !important; }
.fw-bold,
.font-weight-bold { font-weight: 700 !important; }
.small,
small { font-size: 0.875rem !important; }

.h1, .h2, .h3, .h4, .h5, .h6,
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ui-slate-900);
}

.h1, h1 { font-size: clamp(1.8rem, 2vw, 2.5rem); }
.h2, h2 { font-size: 1.65rem; }
.h3, h3 { font-size: 1.45rem; }
.h4, h4 { font-size: 1.25rem; }
.h5, h5 { font-size: 1.1rem; }
.h6, h6 { font-size: 1rem; }

.rounded { border-radius: var(--ui-radius-sm) !important; }
.rounded-circle { border-radius: 9999px !important; }
.rounded-pill { border-radius: 9999px !important; }
.shadow-sm { box-shadow: var(--ui-shadow-sm) !important; }
.shadow { box-shadow: var(--ui-shadow) !important; }

.bg-white { background-color: #fff !important; }
.bg-light { background-color: var(--ui-surface-muted) !important; }
.bg-dark { background-color: var(--ui-slate-900) !important; color: #fff; }
.bg-primary { background-color: var(--ui-primary) !important; color: #fff; }
.bg-secondary { background-color: #64748b !important; color: #fff; }
.bg-success { background-color: var(--ui-success) !important; color: #fff; }
.bg-danger { background-color: var(--ui-danger) !important; color: #fff; }
.bg-warning { background-color: #f59e0b !important; color: #111827; }
.bg-info { background-color: var(--ui-info) !important; color: #fff; }

.border { border: 1px solid var(--ui-border) !important; }
.border-0 { border: 0 !important; }

.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.ms-2, .ml-2, .mr-2 { margin-left: 0.5rem !important; }
.me-2, .mr-2 { margin-right: 0.5rem !important; }
.p-0 { padding: 0 !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.ps-3 { padding-left: 1rem !important; }
.pe-3 { padding-right: 1rem !important; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.75rem 1.05rem;
  border-radius: 9999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px) scale(1.01);
  text-decoration: none;
}

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

.btn-sm {
  min-height: 2.2rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
}

.btn-lg {
  min-height: 3.25rem;
  padding: 0.95rem 1.25rem;
  font-size: 1rem;
}

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

.btn-primary { background: linear-gradient(135deg, #2563eb, #1e40af); border-color: rgba(37, 99, 235, 0.16); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: linear-gradient(135deg, #1d4ed8, #1e3a8a); }
.btn-secondary { background: linear-gradient(135deg, #64748b, #475569); border-color: rgba(100, 116, 139, 0.16); color: #fff; }
.btn-success { background: linear-gradient(135deg, #16a34a, #166534); border-color: rgba(22, 163, 74, 0.16); color: #fff; }
.btn-danger { background: linear-gradient(135deg, #dc2626, #991b1b); border-color: rgba(220, 38, 38, 0.16); color: #fff; }
.btn-warning { background: linear-gradient(135deg, #f59e0b, #d97706); border-color: rgba(245, 158, 11, 0.16); color: #111827; }
.btn-info { background: linear-gradient(135deg, #06b6d4, #0f766e); border-color: rgba(8, 145, 178, 0.16); color: #fff; }
.btn-light { background: linear-gradient(180deg, #ffffff, #f8fafc); border-color: rgba(148, 163, 184, 0.22); color: var(--ui-slate-900); }
.btn-dark { background: linear-gradient(135deg, #0f172a, #020617); border-color: rgba(15, 23, 42, 0.16); color: #fff; }
.btn-link { background: transparent; border-color: transparent; color: var(--ui-primary); box-shadow: none; }

.btn-outline-primary { background: rgba(37, 99, 235, 0.08); border-color: rgba(37, 99, 235, 0.16); color: var(--ui-primary); box-shadow: inset 0 0 0 1px rgba(191, 219, 254, 0.8); }
.btn-outline-secondary { background: rgba(100, 116, 139, 0.08); border-color: rgba(100, 116, 139, 0.16); color: var(--ui-slate-700); box-shadow: inset 0 0 0 1px rgba(203, 213, 225, 0.9); }
.btn-outline-success { background: rgba(22, 163, 74, 0.08); border-color: rgba(22, 163, 74, 0.16); color: var(--ui-success); box-shadow: inset 0 0 0 1px rgba(187, 247, 208, 0.9); }
.btn-outline-danger { background: rgba(220, 38, 38, 0.08); border-color: rgba(220, 38, 38, 0.16); color: var(--ui-danger); box-shadow: inset 0 0 0 1px rgba(254, 202, 202, 0.9); }
.btn-outline-warning { background: rgba(217, 119, 6, 0.08); border-color: rgba(217, 119, 6, 0.16); color: var(--ui-warning); box-shadow: inset 0 0 0 1px rgba(253, 230, 138, 0.9); }
.btn-outline-info { background: rgba(8, 145, 178, 0.08); border-color: rgba(8, 145, 178, 0.16); color: var(--ui-info); box-shadow: inset 0 0 0 1px rgba(165, 243, 252, 0.9); }
.btn-outline-light { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.btn-outline-dark { background: rgba(15, 23, 42, 0.06); border-color: rgba(15, 23, 42, 0.12); color: var(--ui-slate-900); box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.9); }

.form-group,
.mb-3 {
  display: block;
}

.form-label,
.form-group label {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--ui-slate-800);
}

.form-control,
.form-select,
textarea.form-control {
  display: block;
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-surface);
  color: var(--ui-slate-900);
  box-sizing: border-box;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.14);
}

.input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.input-group > .form-control {
  flex: 1 1 auto;
}

.input-group-text {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-surface-muted);
  color: var(--ui-slate-700);
}

.card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, var(--ui-surface), var(--ui-surface-muted));
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

.card-header,
.card-footer {
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, var(--ui-surface-muted), var(--ui-slate-100));
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.card-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  border-bottom: 0;
}

.card-body {
  padding: 1.25rem;
}

.alert {
  position: relative;
  padding: 0.95rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: var(--ui-radius-sm);
}

.alert-danger {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.18);
  color: #991b1b;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.22);
  color: #92400e;
}

.alert-info {
  background: rgba(8, 145, 178, 0.08);
  border-color: rgba(8, 145, 178, 0.18);
  color: #155e75;
}

.alert-success {
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.18);
  color: #166534;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.nav-tabs {
  border-bottom: 0;
  gap: 0.75rem;
  padding: 0.35rem;
  border-radius: 9999px;
  background: var(--ui-surface);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.14);
}

.nav-tabs .nav-link,
.nav-pills .nav-link,
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: var(--ui-radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--ui-slate-700);
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}

.nav-tabs .nav-link.active,
.nav-pills .nav-link.active,
.nav-link.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(14, 165, 233, 0.08));
  border-color: rgba(37, 99, 235, 0.14);
  color: var(--ui-primary);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.12);
}

.tab-content > .tab-pane {
  display: none;
}

.tab-content > .active {
  display: block;
}

.accordion-item {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--ui-radius-sm);
  background: #fff;
  overflow: hidden;
  margin-bottom: 0.9rem;
}

.accordion-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.1rem;
  border: 0;
  background: rgba(248, 250, 252, 0.94);
  color: var(--ui-slate-900);
  font-weight: 700;
  cursor: pointer;
}

.accordion-button::after,
.dropdown-toggle::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease;
  margin-left: auto;
}

.accordion-button:not(.collapsed)::after {
  transform: rotate(-135deg);
}

.accordion-body {
  padding: 1rem 1.1rem 1.1rem;
}

.collapse {
  display: none;
}

.collapse.show {
  display: block;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 1090;
  display: none;
  min-width: 12rem;
  padding: 0.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow);
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu-end {
  right: 0;
  left: auto;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  background: transparent;
  color: var(--ui-slate-800);
  text-decoration: none;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(37, 99, 235, 0.08);
  color: var(--ui-primary);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.5);
}

.modal.show {
  display: block;
}

.modal-dialog {
  position: relative;
  width: min(100%, 40rem);
  margin: 2rem auto;
}

.modal-lg {
  width: min(100%, 68rem);
}

.modal-dialog-centered {
  min-height: calc(100vh - 4rem);
  display: flex;
  align-items: center;
}

.modal-content {
  width: 100%;
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: var(--ui-surface);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.modal-header,
.modal-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.modal-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  border-bottom: 0;
  justify-content: flex-end;
}

.modal-body {
  padding: 1.25rem;
}

.modal-backdrop,
.offcanvas-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1190;
  background: rgba(15, 23, 42, 0.62);
  opacity: 0;
  transition: opacity 180ms ease;
}

.modal-backdrop.show,
.offcanvas-backdrop.show {
  opacity: 1;
}

.offcanvas {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 1210;
  display: flex;
  flex-direction: column;
  width: min(100vw, 26rem);
  max-width: 100%;
  background: var(--ui-surface);
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.24);
  transition: transform 180ms ease;
}

.offcanvas-end {
  right: 0;
  transform: translateX(100%);
}

.offcanvas-start {
  left: 0;
  transform: translateX(-100%);
}

.offcanvas-bottom {
  left: 0;
  right: 0;
  top: auto;
  width: 100%;
  height: min(85vh, 36rem);
  transform: translateY(100%);
}

.offcanvas.show {
  transform: translateX(0);
}

.offcanvas-bottom.show {
  transform: translateY(0);
}

.offcanvas-header,
.offcanvas-body {
  padding: 1rem 1.1rem;
}

.offcanvas-body {
  flex: 1 1 auto;
  overflow: auto;
}

.btn-close {
  width: 2.25rem;
  height: 2.25rem;
  margin-left: auto;
  border: 0;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--ui-slate-700);
  cursor: pointer;
  position: relative;
}

.btn-close::before,
.btn-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.95rem;
  height: 2px;
  background: currentColor;
  border-radius: 9999px;
}

.btn-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.btn-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.tooltip {
  z-index: 1300;
  pointer-events: none;
}

.tooltip-inner {
  padding: 0.45rem 0.65rem;
  border-radius: 0.65rem;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.2;
  box-shadow: var(--ui-shadow-sm);
}

.list-group {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
}

.list-group-item {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: var(--ui-surface);
  color: var(--ui-slate-900);
}

.list-group-item + .list-group-item {
  border-top: 0;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--ui-surface);
}

.table th,
.table td {
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  text-align: left;
  vertical-align: middle;
}

.table thead th {
  background: var(--ui-slate-100);
  color: var(--ui-slate-700);
  font-weight: 700;
}

.table-hover tbody tr:hover {
  background: rgba(37, 99, 235, 0.04);
}

.table-striped tbody tr:nth-child(even) {
  background: var(--ui-surface-muted);
}

html[data-theme="dark"] .table-hover tbody tr:hover {
  background: rgba(56, 189, 248, 0.08);
}

html[data-theme="dark"] .alert-danger {
  color: #fecaca;
}

html[data-theme="dark"] .alert-warning {
  color: #fde68a;
}

html[data-theme="dark"] .alert-info {
  color: #bae6fd;
}

html[data-theme="dark"] .alert-success {
  color: #bbf7d0;
}

.btn-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-group > .btn {
  margin: 0;
}

.spinner-border {
  display: inline-block;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 9999px;
  border: 2px solid rgba(37, 99, 235, 0.16);
  border-top-color: currentColor;
  animation: ui-spin 0.9s linear infinite;
}

.spinner-border-sm {
  width: 0.95rem;
  height: 0.95rem;
}

.fade {
  transition: opacity 180ms ease;
}

.fade:not(.show) {
  opacity: 0;
}

.my-4 {
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

.g-2 {
  row-gap: 0.5rem;
}

.g-2 > * {
  padding-top: 0.5rem;
}

.align-middle {
  vertical-align: middle !important;
}

.fw-semibold {
  font-weight: 600 !important;
}

.form-select-sm,
.form-control-sm {
  min-height: 2.35rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  font-size: 0.875rem;
}

.auth-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1rem 2rem;
  overflow: hidden;
}

.auth-shell__backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.22), transparent 22rem),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.18), transparent 20rem),
    rgba(2, 6, 23, 0.56);
  pointer-events: none;
}

.auth-layout {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.5rem;
  align-items: stretch;
}

.auth-panel {
  position: relative;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.auth-panel--hero {
  padding: 2rem;
  color: #fff;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.68));
  box-shadow: 0 30px 60px rgba(2, 6, 23, 0.34);
}

.auth-panel--form {
  padding: 2rem;
  color: var(--ui-slate-800);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 252, 0.95));
  border-color: rgba(191, 219, 254, 0.28);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
}

html[data-theme="dark"] .auth-panel--form {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(17, 24, 39, 0.92));
  border-color: rgba(148, 163, 184, 0.2);
  box-shadow: 0 30px 60px rgba(2, 6, 23, 0.4);
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-badge--admin {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.18);
  color: #1d4ed8;
}

.auth-badge--cliente {
  background: rgba(22, 163, 74, 0.12);
  border-color: rgba(22, 163, 74, 0.18);
  color: #15803d;
}

html[data-theme="dark"] .auth-badge--admin {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(96, 165, 250, 0.26);
  color: #bfdbfe;
}

html[data-theme="dark"] .auth-badge--cliente {
  background: rgba(22, 163, 74, 0.16);
  border-color: rgba(74, 222, 128, 0.24);
  color: #bbf7d0;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.auth-brand__logo,
.auth-brand__support-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.auth-brand__logo img,
.auth-brand__support-logo img {
  max-width: 72%;
  max-height: 72%;
  object-fit: contain;
}

.auth-brand__meta {
  min-width: 0;
}

.auth-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.02;
  color: #fff;
  letter-spacing: -0.03em;
}

.auth-subtitle {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  color: rgba(226, 232, 240, 0.92);
}

.auth-domain {
  margin-top: 0.4rem;
  color: rgba(191, 219, 254, 0.95);
  font-size: 0.92rem;
  font-weight: 700;
}

.auth-copy {
  margin: 1.5rem 0 0;
  max-width: 38rem;
  color: rgba(226, 232, 240, 0.88);
  font-size: 1rem;
  line-height: 1.65;
}

.auth-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.auth-feature {
  padding: 1rem 1.1rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-feature strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #fff;
  font-size: 0.95rem;
}

.auth-feature span {
  display: block;
  color: rgba(226, 232, 240, 0.84);
  font-size: 0.88rem;
  line-height: 1.45;
}

.auth-support {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-support__copy {
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.88rem;
}

.auth-support__copy strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #fff;
}

.auth-form-shell {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-form-head {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.auth-form-head h2 {
  margin: 0;
  font-size: 1.65rem;
  color: var(--ui-slate-900);
  letter-spacing: -0.03em;
}

.auth-form-head p {
  margin: 0;
  color: var(--ui-slate-500);
  line-height: 1.6;
}

.auth-alert-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-alert {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid transparent;
  font-size: 0.93rem;
  line-height: 1.55;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.auth-alert strong {
  font-weight: 800;
}

.auth-alert--danger {
  background: rgba(254, 226, 226, 0.88);
  border-color: rgba(248, 113, 113, 0.24);
  color: #991b1b;
}

.auth-alert--warning {
  background: rgba(255, 247, 237, 0.92);
  border-color: rgba(245, 158, 11, 0.26);
  color: #9a3412;
}

.auth-alert--info {
  background: rgba(224, 242, 254, 0.92);
  border-color: rgba(56, 189, 248, 0.26);
  color: #0c4a6e;
}

html[data-theme="dark"] .auth-alert {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .auth-alert--danger {
  background: rgba(127, 29, 29, 0.3);
  border-color: rgba(248, 113, 113, 0.22);
  color: #fecaca;
}

html[data-theme="dark"] .auth-alert--warning {
  background: rgba(120, 53, 15, 0.28);
  border-color: rgba(251, 191, 36, 0.22);
  color: #fde68a;
}

html[data-theme="dark"] .auth-alert--info {
  background: rgba(8, 47, 73, 0.36);
  border-color: rgba(56, 189, 248, 0.2);
  color: #bae6fd;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.auth-field label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ui-slate-800);
}

.auth-field .form-control,
.auth-field .auth-input {
  min-height: 3.35rem;
  width: 100%;
  padding-inline: 1rem;
  border-radius: 1rem;
  border-style: solid;
  border-width: 1px;
  border-color: rgba(148, 163, 184, 0.24);
  background: var(--ui-surface);
  color: var(--ui-slate-900);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

html[data-theme="dark"] .auth-field .form-control,
html[data-theme="dark"] .auth-field .auth-input {
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-field .form-control::placeholder,
.auth-field .auth-input::placeholder {
  color: var(--ui-slate-500);
}

.auth-field .auth-input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.14);
}

.auth-form-head h2 {
  color: var(--ui-slate-800);
}

.auth-form-head p {
  color: var(--ui-slate-500);
}

.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.95rem 1.2rem;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #fff;
  box-shadow: 0 18px 32px rgba(37, 99, 235, 0.24);
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 22px 36px rgba(37, 99, 235, 0.28);
}

.auth-submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.22rem rgba(37, 99, 235, 0.18), 0 18px 32px rgba(37, 99, 235, 0.24);
}

.auth-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.auth-help {
  margin: 0;
  color: var(--ui-slate-500);
  font-size: 0.9rem;
  line-height: 1.6;
}

.auth-mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--ui-slate-500);
  font-size: 0.82rem;
}

.auth-mini-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.login-public-body .header {
  background: transparent;
  padding: 1rem 1.1rem;
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.login-public-body .header a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
}

.login-public-body .header a:hover {
  color: #fff;
}

.header-links {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.version-fab {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 6;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.22);
}

.public-version-button,
.version-fab__button,
.release-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.public-version-button,
.version-fab__button {
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.22);
}

.public-version-button[disabled],
.version-fab__button[disabled] {
  opacity: 0.88;
  cursor: not-allowed;
}

.version-fab__button:hover,
.release-modal__close:hover {
  transform: translateY(-1px);
}

.release-modal__body {
  max-height: 70vh;
  overflow-y: auto;
  text-align: left;
}

.release-modal__meta {
  margin-bottom: 1rem;
}

.release-modal__list {
  margin: 0;
  padding-left: 1.1rem;
}

.release-modal__item {
  margin-bottom: 0.8rem;
}

.release-modal__item:last-child {
  margin-bottom: 0;
}

.release-modal__empty {
  color: var(--ui-slate-500);
}

.release-modal__close {
  min-width: 7rem;
  background: linear-gradient(135deg, #64748b, #475569);
  border-color: rgba(100, 116, 139, 0.16);
}

.dashboard-surface {
  height: 100%;
  border-radius: 1.6rem;
  overflow: hidden;
  border: 1px solid rgba(191, 219, 254, 0.7);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.99));
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
}

.dashboard-surface__header {
  padding: 1.15rem 1.35rem;
}

.dashboard-surface__body {
  padding: 1.35rem;
}

.dashboard-surface__title {
  margin: 0;
}

.login-public-body .header .btn {
  box-shadow: none;
}

.visually-hidden {
  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;
}

@media (max-width: 767.98px) {
  .container,
  .container-fluid {
    padding-right: 0.875rem;
    padding-left: 0.875rem;
  }

  .modal {
    padding: 0.75rem;
  }

  .modal-dialog {
    margin: 1rem auto;
  }

  .auth-shell {
    padding-top: 5.75rem;
  }

  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-panel--hero,
  .auth-panel--form {
    padding: 1.35rem;
    border-radius: 1.5rem;
  }

  .auth-feature-list {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    align-items: flex-start;
  }

  .auth-title {
    font-size: 1.75rem;
  }

  .header-links {
    width: 100%;
    justify-content: space-between;
  }
}

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