:root {
    --brand-primary: #2a6ef2;
    --brand-secondary: #5f6af2;
    --brand-accent: #1ec9a5;
    --surface: #ffffff;
    --surface-muted: #f4f6fb;
    --text-strong: #1f2937;
    --text-muted: #6b7280;
    --border-soft: #e5e7eb;
    --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 30px 60px rgba(15, 23, 42, 0.12);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at top left, rgba(88, 101, 242, 0.18), rgba(30, 200, 165, 0.12)), #f8fafc;
    color: var(--text-strong);
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-strong);
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(1.6rem, 1.2rem + 1vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

h2 {
    font-size: clamp(1.3rem, 1.08rem + 0.6vw, 1.7rem);
    font-weight: 600;
    line-height: 1.35;
}

.navbar {
    background: #86A5D5 !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.4);
    backdrop-filter: blur(12px);
    padding: 0.85rem 1.5rem;
    position: relative;
    z-index: 1100;
}

.navbar-toggler {
    border: none;
    color: var(--brand-primary);
    font-size: 1.4rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--brand-primary) !important;
}

.navbar-logo {
    height: 40px;
    width: auto;
    display: block;
}

/* ——— Páginas de acceso (login, recuperar contraseña) ——— */
body.auth-page {
    margin: 0;
    min-height: 100vh;
    background: #e8edf5;
}

.auth-screen {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
}

.auth-brand {
    display: none;
    position: relative;
    background: linear-gradient(155deg, #5f8ec8 0%, #86A5D5 45%, #a8bde2 100%);
    overflow: hidden;
}

.auth-brand__decor {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.22) 0%, transparent 42%),
        radial-gradient(circle at 82% 78%, rgba(255, 255, 255, 0.14) 0%, transparent 38%);
    pointer-events: none;
}

.auth-brand__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 3rem 2.5rem;
    text-align: center;
}

.auth-brand__logo {
    width: min(300px, 78%);
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 24px rgba(15, 23, 42, 0.12));
}

.auth-brand__tagline {
    margin: 1.75rem 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.auth-form-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem 2.5rem;
    min-height: 100vh;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
    padding: 2rem 1.75rem 1.75rem;
}

.auth-mobile-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #6b94cb 0%, #86A5D5 100%);
}

.auth-mobile-logo__img {
    width: min(220px, 100%);
    height: auto;
    display: block;
}

.auth-card__header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-card__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-strong);
    letter-spacing: -0.02em;
}

.auth-card__subtitle {
    margin: 0.5rem 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

.auth-card__body {
    width: 100%;
}

.auth-form .form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-strong);
    margin-bottom: 0.4rem;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
}

.auth-input {
    padding: 0.72rem 0.95rem 0.72rem 2.65rem;
    border: 1px solid #dbe2ea;
    border-radius: 12px;
    font-size: 0.975rem;
    background: #f9fafb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-input:focus {
    background: #fff;
    border-color: #86A5D5;
    box-shadow: 0 0 0 4px rgba(134, 165, 213, 0.22);
}

.btn-auth {
    padding: 0.78rem 1rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #6b94cb 0%, #86A5D5 100%);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-auth:hover,
.btn-auth:focus {
    color: #fff;
    filter: brightness(1.03);
    box-shadow: 0 10px 24px rgba(107, 148, 203, 0.35);
}

.btn-auth:active {
    transform: translateY(1px);
}

.btn-auth-outline {
    padding: 0.72rem 1rem;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: var(--text-strong);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-auth-outline:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: var(--text-strong);
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.auth-card__links {
    margin: 1.25rem 0 0;
    font-size: 0.9rem;
}

.auth-card__links a {
    color: #5f8ec8;
    text-decoration: none;
    font-weight: 500;
}

.auth-card__links a:hover {
    color: #4a78b0;
    text-decoration: underline;
}

.auth-page-footer {
    margin: 1.25rem 0 0;
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: center;
}

@media (min-width: 992px) {
    .auth-screen {
        grid-template-columns: 1fr 1fr;
    }

    .auth-brand {
        display: block;
    }

    .auth-mobile-logo {
        display: none;
    }

    .auth-form-panel {
        padding: 3rem 2rem;
    }

    .auth-card {
        padding: 2.25rem 2rem 2rem;
    }
}

.navbar-brand .brand-text {
    color: currentColor;
    font-size: 1rem;
    font-weight: 600;
}

.navbar-toggler {
    border: none;
    color: var(--surface);
    font-size: 1.4rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar .nav-link {
    position: relative;
    border-radius: 999px;
    padding: 0.6rem 1rem;
    color: var(--text-muted);
    transition: all 0.25s ease;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15);
}

.navbar .dropdown-menu {
    /* Por encima del offcanvas (1045) y del contenido */
    z-index: 1200;
}

/* Primer nivel visible en la barra; cada sección despliega su submenú */
.navbar-top-level {
    flex-wrap: nowrap;
    gap: 0.15rem;
}

.navbar-top-level .nav-top-item {
    position: relative;
}

.navbar-top-level .nav-link {
    white-space: nowrap;
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
}

.navbar-top-level .nav-link.active,
.navbar-top-level .nav-link.show {
    background: rgba(255, 255, 255, 0.15);
}

.notification-nav-item {
    position: relative;
}

.notification-bell-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem !important;
    font-size: 1.15rem;
}

.notification-bell-badge {
    position: absolute;
    top: 0.15rem;
    right: 0.1rem;
    min-width: 1.05rem;
    height: 1.05rem;
    padding: 0 0.25rem;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1.05rem;
    text-align: center;
    color: #fff;
    background: #dc3545;
    border-radius: 999px;
    border: 2px solid #86A5D5;
}

.notification-dropdown {
    width: min(22rem, 92vw);
    padding: 0;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.notification-dropdown__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-soft);
    background: var(--surface-muted);
    font-size: 0.9rem;
}

.notification-dropdown__list {
    max-height: 20rem;
    overflow-y: auto;
}

.notification-dropdown__item {
    display: flex;
    gap: 0.65rem;
    padding: 0.7rem 1rem;
    text-decoration: none;
    color: var(--text-strong);
    border-bottom: 1px solid var(--border-soft);
    transition: background 0.15s ease;
}

.notification-dropdown__item:hover {
    background: var(--surface-muted);
    color: var(--text-strong);
}

.notification-dropdown__item--unread {
    background: rgba(42, 110, 242, 0.06);
}

.notification-dropdown__icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(42, 110, 242, 0.12);
    color: var(--brand-primary);
    font-size: 0.95rem;
}

.notification-dropdown__content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0.15rem;
}

.notification-dropdown__title {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
}

.notification-dropdown__body {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.notification-dropdown__time {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.notification-dropdown__empty {
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.85rem;
}

.notification-dropdown__footer {
    padding: 0.6rem 1rem;
    text-align: center;
    border-top: 1px solid var(--border-soft);
    background: var(--surface-muted);
}

.notification-dropdown__footer a {
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.notification-item--unread {
    background: rgba(42, 110, 242, 0.05);
}

.notification-item__link {
    color: inherit;
}

.notification-item__link:hover {
    color: inherit;
}

.notification-item__delete {
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.notification-item__icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(42, 110, 242, 0.1);
    color: var(--brand-primary);
}

.notification-item__title {
    font-size: 0.95rem;
}

.notification-item__body {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-item__dot {
    flex-shrink: 0;
    width: 0.55rem;
    height: 0.55rem;
    margin-top: 0.35rem;
    border-radius: 50%;
    background: #dc3545;
}

.navbar-top-level .nav-menu-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.35rem;
    margin-left: 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: #dc3545;
    border-radius: 999px;
    vertical-align: middle;
}

.navbar-top-level .nav-dropdown-panel {
    min-width: 240px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    padding: 0.75rem 0.5rem;
    margin-top: 0.35rem;
}

.navbar-top-level .nav-dropdown-wide .nav-dropdown-panel {
    min-width: 300px;
    max-width: min(360px, calc(100vw - 2rem));
    max-height: min(70vh, 520px);
    overflow-y: auto;
}

.navbar-top-level .nav-dropdown-panel .megamenu-link {
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
}

.megamenu-content {
    width: 100%;
}

.megamenu-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.megamenu-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0;
    color: var(--text-strong);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease, color 0.2s ease;
}

.megamenu-link i {
    color: var(--brand-primary);
    width: 20px;
    text-align: center;
}

.megamenu-link:hover,
.megamenu-link.active {
    background: rgba(42, 110, 242, 0.08);
    color: var(--brand-primary);
}

.megamenu-link.active i {
    color: var(--brand-secondary);
}

.nav-menu-divider {
    height: 1px;
    margin: 0.55rem 0.25rem;
    background: var(--border-soft);
    list-style: none;
}

.nav-menu-divider--mobile {
    margin: 0.65rem 0;
}

.megamenu .dropdown-menu ul {
    margin: 0;
}

.megamenu .dropdown-menu li {
    list-style: none;
}

.impersonation-banner {
    background: linear-gradient(135deg, rgba(134, 165, 213, 0.85), rgba(88, 116, 177, 0.85));
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    padding: 0.75rem 0;
    /* Va encima del <nav> en el DOM; sin z-index alto para no competir con el megamenú */
    position: relative;
    z-index: auto;
    color: #ffffff;
}

.impersonation-banner .btn {
    border-radius: 999px;
    box-shadow: none;
}

.impersonation-banner .badge {
    font-weight: 600;
}

.card {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(226, 232, 240, 0.7);
    box-shadow: var(--shadow-sm);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.86) 100%);
    backdrop-filter: blur(6px);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    padding: 1.25rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

.stats-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(42, 110, 242, 0.15), rgba(30, 201, 165, 0.15));
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.stats-card .value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-strong);
    margin: 0;
}

.stats-card .label {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1.4rem;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(47, 99, 255, 0.25);
}

.btn-outline-secondary {
    border-radius: 999px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(47, 99, 255, 0.28);
}

.badge {
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-weight: 600;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text-strong);
}

.section-title i {
    color: var(--brand-primary);
    background: rgba(42, 110, 242, 0.12);
    border-radius: 50%;
    padding: 0.6rem;
    font-size: 1.1rem;
}

.table {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.table thead {
    background: rgba(42, 110, 242, 0.08);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.table-hover tbody tr:hover {
    background: rgba(42, 110, 242, 0.07);
}

.calendar-wrapper {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-lg);
    padding: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.7);
    box-shadow: var(--shadow-sm);
    min-height: 360px;
}

.calendar-wrapper .fc .fc-toolbar-title {
    font-size: 1.35rem;
}

.calendar-wrapper .fc .fc-button {
    border-radius: var(--radius-sm);
    padding: 0.3rem 0.75rem;
    font-size: 0.85rem;
}

.calendar-wrapper .fc .fc-daygrid-day-number {
    font-size: 0.9rem;
}

.fc .fc-toolbar.fc-header-toolbar {
    margin-bottom: 1.5rem;
}

.fc-theme-standard .fc-scrollgrid {
    border-radius: var(--radius-md);
    border: 1px solid rgba(226, 232, 240, 0.7);
}

.fc-theme-standard td,
.fc-theme-standard th {
    border-color: rgba(226, 232, 240, 0.6);
}

.fc-daygrid-day-number {
    color: var(--text-muted);
    font-weight: 500;
}

.fc .fc-daygrid-day.fc-day-today {
    background: rgba(42, 110, 242, 0.12);
}

.fc-event {
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 0.82rem;
    border: none;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.fc-event .fc-event-title {
    font-weight: 600;
}

/* Estilos para días festivos */
.fc-bg-event.holiday-event {
    background-color: #e3f2fd !important;
    border: 2px dashed #2196f3 !important;
    border-radius: 4px;
    opacity: 0.6;
}

.fc-event.holiday-event-list {
    background-color: #e3f2fd !important;
    border-color: #2196f3 !important;
    color: #1565c0 !important;
    font-weight: 500;
}

.fc-daygrid-day.fc-day-today .fc-bg-event.holiday-event {
    background-color: rgba(227, 242, 253, 0.8) !important;
    opacity: 0.7;
}

/* Fondo sutil para días con festivos */
.fc-daygrid-day:has(.holiday-event) {
    background-color: rgba(227, 242, 253, 0.2) !important;
}

/* Fallback para navegadores que no soportan :has() */
.fc-daygrid-day .holiday-event + .fc-daygrid-day-events {
    position: relative;
}

.fc-daygrid-day .holiday-event + .fc-daygrid-day-events::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background-color: #2196f3;
    border-radius: 50%;
    border: 1px solid #ffffff;
}

.quick-actions .btn {
    border-radius: var(--radius-md);
    border: 1px solid rgba(226, 232, 240, 0.7);
    padding: 1.2rem;
    font-weight: 600;
    color: var(--text-strong);
    background: rgba(255, 255, 255, 0.85);
    transition: all 0.25s ease;
}

.quick-actions .btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.filter-section {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.7);
    border-radius: var(--radius-lg);
}

.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border: 1px solid rgba(203, 213, 225, 0.8);
    background: rgba(255, 255, 255, 0.92);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(42, 110, 242, 0.4);
    box-shadow: 0 0 0 4px rgba(42, 110, 242, 0.15);
}

.card-ghost {
    border: 1px dashed rgba(148, 163, 184, 0.7);
    background: rgba(241, 245, 249, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--text-muted);
    gap: 0.75rem;
    padding: 2.5rem;
}

.avatar-lg {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(42, 110, 242, 0.1);
    color: var(--brand-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.page-heading {
    margin-bottom: 2.25rem;
}

.page-heading .page-title {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}

.page-heading .page-title i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(42, 110, 242, 0.12);
    color: var(--brand-primary);
    font-size: 1.5rem;
}

.page-heading .page-subtitle {
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 0.76rem;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(30, 201, 165, 0.12);
    color: var(--brand-accent);
    font-weight: 500;
}

footer {
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    background: rgba(255, 255, 255, 0.6);
}

.navbar-brand,
.navbar .nav-link,
.navbar .nav-link i,
.navbar .dropdown-toggle .nav-label,
.navbar .dropdown-toggle i {
    color: #ffffff !important;
}

.navbar .dropdown-menu .megamenu-link,
.navbar .dropdown-menu .megamenu-title,
.navbar .dropdown-menu .megamenu-link i {
    color: var(--text-strong);
}

.navbar .dropdown-menu .megamenu-link:hover,
.navbar .dropdown-menu .megamenu-link.active {
    color: var(--brand-primary);
}

@media (max-width: 991px) {
    .navbar {
        padding: 0.75rem 1rem;
    }

    .stats-card .value {
        font-size: 2rem;
    }

    .quick-actions .btn {
        padding: 1rem;
    }

    .navbar-top-level .nav-dropdown-panel {
        min-width: calc(100vw - 1.5rem);
    }

    .calendar-wrapper {
        padding: 0.6rem;
        min-height: 300px;
    }

    .calendar-wrapper .fc .fc-toolbar-title {
        font-size: 1.1rem;
    }

    .calendar-wrapper .fc .fc-button {
        padding: 0.25rem 0.6rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 767.98px) {
    .stack-table {
        border-collapse: separate;
        border-spacing: 0;
    }

    .stack-table thead {
        display: none;
    }

    .stack-table tbody tr {
        display: block;
        background: #fff;
        border: 1px solid rgba(226, 232, 240, 0.8);
        border-radius: var(--radius-lg);
        padding: 0.85rem 1rem;
        margin-bottom: 1rem;
        box-shadow: var(--shadow-sm);
    }

    .stack-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .stack-table tbody td {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.4rem 0;
        border-bottom: 1px solid rgba(226, 232, 240, 0.8);
        font-size: 0.95rem;
    }

    .stack-table tbody td:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .stack-table tbody td:first-child {
        padding-top: 0;
    }

    .stack-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
    }
}


