:root {
    --ui-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --ui-primary: #0d6efd;
    --ui-primary-hover: #0b5ed7;
    --ui-primary-active: #0a58ca;
    --ui-primary-soft: rgba(13, 110, 253, 0.12);

    --ui-secondary: #6c757d;
    --ui-secondary-hover: #5c636a;
    --ui-secondary-active: #565e64;
    --ui-secondary-soft: rgba(108, 117, 125, 0.12);

    --ui-success: #198754;
    --ui-success-hover: #157347;
    --ui-success-active: #146c43;
    --ui-success-soft: rgba(25, 135, 84, 0.12);

    --ui-info: #0dcaf0;
    --ui-info-hover: #31d2f2;
    --ui-info-active: #25cff2;
    --ui-info-soft: rgba(13, 202, 240, 0.14);

    --ui-warning: #ffc107;
    --ui-warning-hover: #ffca2c;
    --ui-warning-active: #ffcd39;
    --ui-warning-soft: rgba(255, 193, 7, 0.16);
    --ui-warning-text: #3d3208;
    --ui-warning-subtle-text: #3d3208;

    --ui-danger: #dc3545;
    --ui-danger-hover: #bb2d3b;
    --ui-danger-active: #b02a37;
    --ui-danger-soft: rgba(220, 53, 69, 0.14);

    --ui-page-bg: #f8f9fa;
    --ui-surface: #ffffff;
    --ui-surface-muted: #f8f9fa;
    --ui-surface-subtle: #f1f3f5;
    --ui-border: #dee2e6;
    --ui-border-strong: #ced4da;

    --ui-text: #212529;
    --ui-text-muted: #6c757d;
    --ui-text-soft: #868e96;
    --ui-text-on-dark: #ffffff;

    --ui-header-primary-bg: #0d6efd;
    --ui-header-primary-text: #ffffff;
    --ui-header-info-bg: #0dcaf0;
    --ui-header-info-text: #083344;
    --ui-header-success-bg: #198754;
    --ui-header-success-text: #ffffff;
    --ui-header-warning-bg: #ffc107;
    --ui-header-warning-text: #3d3208;
    --ui-header-danger-bg: #dc3545;
    --ui-header-danger-text: #ffffff;
    --ui-header-secondary-bg: #6c757d;
    --ui-header-secondary-text: #ffffff;
    --ui-header-dark-bg: #212529;
    --ui-header-dark-text: #f8f9fa;

    --ui-page-action-warning-bg: #b7791f;
    --ui-page-action-warning-hover: #975a16;
    --ui-page-action-warning-text: #ffffff;
    --ui-page-action-danger-bg: #b42318;
    --ui-page-action-danger-hover: #991b1b;
    --ui-page-action-danger-text: #ffffff;

    --ui-radius-sm: 8px;
    --ui-radius-md: 12px;
    --ui-radius-lg: 16px;
    --ui-radius-pill: 9999px;

    --ui-shadow-sm: none;
    --ui-shadow-md: none;
    --ui-shadow-lg: none;

    --ui-focus-ring: 0 0 0 0.25rem rgba(13, 110, 253, 0.18);
    --ui-transition: 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
html.dark-mode,
body.dark-mode {
    --ui-primary: #4dabf7;
    --ui-primary-hover: #74c0fc;
    --ui-primary-active: #8ccfff;
    --ui-primary-soft: rgba(77, 171, 247, 0.16);

    --ui-secondary: #adb5bd;
    --ui-secondary-hover: #ced4da;
    --ui-secondary-active: #dee2e6;
    --ui-secondary-soft: rgba(173, 181, 189, 0.16);

    --ui-success: #51cf66;
    --ui-success-hover: #69db7c;
    --ui-success-active: #8ce99a;
    --ui-success-soft: rgba(81, 207, 102, 0.16);

    --ui-info: #66d9ef;
    --ui-info-hover: #99e9f2;
    --ui-info-active: #c5f6fa;
    --ui-info-soft: rgba(102, 217, 239, 0.18);

    --ui-warning: #ffd43b;
    --ui-warning-hover: #ffe066;
    --ui-warning-active: #ffec99;
    --ui-warning-soft: rgba(255, 212, 59, 0.18);
    --ui-warning-text: #3d3208;
    --ui-warning-subtle-text: #fff0c2;

    --ui-danger: #ff8787;
    --ui-danger-hover: #ffa8a8;
    --ui-danger-active: #ffc9c9;
    --ui-danger-soft: rgba(255, 135, 135, 0.18);

    --ui-page-bg: #121212;
    --ui-surface: #1e1e1e;
    --ui-surface-muted: #2a2a2a;
    --ui-surface-subtle: #252525;
    --ui-border: #444444;
    --ui-border-strong: #555555;

    --ui-text: #e0e0e0;
    --ui-text-muted: #a0a0a0;
    --ui-text-soft: #8d8d8d;
    --ui-text-on-dark: #ffffff;
    --bs-body-color: var(--ui-text);
    --bs-emphasis-color: #ffffff;
    --bs-secondary-color: var(--ui-text-muted);
    --bs-tertiary-color: var(--ui-text-soft);
    --bs-heading-color: var(--ui-text);

    --ui-header-primary-bg: #173b63;
    --ui-header-primary-text: #eaf3ff;
    --ui-header-info-bg: #114b57;
    --ui-header-info-text: #def7fb;
    --ui-header-success-bg: #173f31;
    --ui-header-success-text: #e6fff3;
    --ui-header-warning-bg: #5a4718;
    --ui-header-warning-text: #fff0c2;
    --ui-header-danger-bg: #5a2227;
    --ui-header-danger-text: #ffe5e7;
    --ui-header-secondary-bg: #3c4652;
    --ui-header-secondary-text: #edf2f7;
    --ui-header-dark-bg: #1f2329;
    --ui-header-dark-text: #f4f7fb;

    --ui-page-action-warning-bg: #8a6512;
    --ui-page-action-warning-hover: #a27a19;
    --ui-page-action-warning-text: #fff7db;
    --ui-page-action-danger-bg: #7f1d1d;
    --ui-page-action-danger-hover: #991b1b;
    --ui-page-action-danger-text: #ffe5e7;

    --ui-shadow-sm: none;
    --ui-shadow-md: none;
    --ui-shadow-lg: none;
    --ui-focus-ring: 0 0 0 0.25rem rgba(77, 171, 247, 0.22);
}

html body {
    color: var(--ui-text);
    font-family: var(--ui-font-sans);
}
.btn [data-feather],
.nav-link [data-feather] {
    vertical-align: text-bottom;
    width: 1em;
    height: 1em;
}
html body .btn {
    border-radius: var(--ui-radius-sm);
    transition:
        background-color var(--ui-transition),
        border-color var(--ui-transition),
        color var(--ui-transition),
        transform var(--ui-transition),
        box-shadow var(--ui-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 40px;
    font-weight: 600;
    box-shadow: none;
}

html body .btn.btn-sm {
    min-height: 34px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

html body .btn.btn-lg {
    min-height: 48px;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
}

html body .btn:hover {
    transform: translateY(-1px);
}

html body .btn:active {
    transform: translateY(0);
}

html body .btn:focus-visible {
    box-shadow: var(--ui-focus-ring);
}

html body .btn:disabled,
html body .btn.disabled {
    opacity: 0.68;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

html body .btn-primary {
    background-color: var(--ui-primary) !important;
    border-color: var(--ui-primary) !important;
    color: var(--ui-text-on-dark) !important;
    box-shadow: var(--ui-shadow-sm);
}

html body .btn-primary:hover,
html body .btn-primary:focus-visible {
    background-color: var(--ui-primary-hover) !important;
    border-color: var(--ui-primary-hover) !important;
    color: var(--ui-text-on-dark) !important;
}

html body .btn-primary:active {
    background-color: var(--ui-primary-active) !important;
    border-color: var(--ui-primary-active) !important;
}

html body .btn-secondary {
    background-color: var(--ui-secondary) !important;
    border-color: var(--ui-secondary) !important;
    color: var(--ui-text-on-dark) !important;
}

html body .btn-secondary:hover,
html body .btn-secondary:focus-visible {
    background-color: var(--ui-secondary-hover) !important;
    border-color: var(--ui-secondary-hover) !important;
    color: var(--ui-text-on-dark) !important;
}

html body .btn-secondary:active {
    background-color: var(--ui-secondary-active) !important;
    border-color: var(--ui-secondary-active) !important;
}

html body .btn-success {
    background-color: var(--ui-success) !important;
    border-color: var(--ui-success) !important;
    color: var(--ui-text-on-dark) !important;
}

html body .btn-success:hover,
html body .btn-success:focus-visible {
    background-color: var(--ui-success-hover) !important;
    border-color: var(--ui-success-hover) !important;
    color: var(--ui-text-on-dark) !important;
}

html body .btn-success:active {
    background-color: var(--ui-success-active) !important;
    border-color: var(--ui-success-active) !important;
}

html body .btn-info {
    background-color: var(--ui-info) !important;
    border-color: var(--ui-info) !important;
    color: #063340 !important;
}

html body .btn-info:hover,
html body .btn-info:focus-visible {
    background-color: var(--ui-info-hover) !important;
    border-color: var(--ui-info-hover) !important;
    color: #063340 !important;
}

html body .btn-info:active {
    background-color: var(--ui-info-active) !important;
    border-color: var(--ui-info-active) !important;
}

html body .btn-warning {
    background-color: var(--ui-warning) !important;
    border-color: var(--ui-warning) !important;
    color: var(--ui-warning-text) !important;
}

html body .btn-warning:hover,
html body .btn-warning:focus-visible {
    background-color: var(--ui-warning-hover) !important;
    border-color: var(--ui-warning-hover) !important;
    color: var(--ui-warning-text) !important;
}

html body .btn-warning:active {
    background-color: var(--ui-warning-active) !important;
    border-color: var(--ui-warning-active) !important;
}

html body .btn-danger {
    background-color: var(--ui-danger) !important;
    border-color: var(--ui-danger) !important;
    color: var(--ui-text-on-dark) !important;
}

html body .btn-danger:hover,
html body .btn-danger:focus-visible {
    background-color: var(--ui-danger-hover) !important;
    border-color: var(--ui-danger-hover) !important;
    color: var(--ui-text-on-dark) !important;
}

html body .btn-danger:active {
    background-color: var(--ui-danger-active) !important;
    border-color: var(--ui-danger-active) !important;
}

html body .btn-light {
    background-color: var(--ui-surface) !important;
    border-color: var(--ui-border) !important;
    color: var(--ui-text) !important;
}

html body .btn-light:hover,
html body .btn-light:focus-visible {
    background-color: var(--ui-surface-muted) !important;
    border-color: var(--ui-border-strong) !important;
    color: var(--ui-text) !important;
}

html body .btn-outline-primary {
    background-color: transparent !important;
    border-color: var(--ui-primary) !important;
    color: var(--ui-primary) !important;
}

html body .btn-outline-primary:hover,
html body .btn-outline-primary:focus-visible {
    background-color: var(--ui-primary-soft) !important;
    border-color: var(--ui-primary) !important;
    color: var(--ui-primary) !important;
}

html body .btn-outline-secondary {
    background-color: transparent !important;
    border-color: var(--ui-secondary) !important;
    color: var(--ui-secondary) !important;
}

html body .btn-outline-secondary:hover,
html body .btn-outline-secondary:focus-visible {
    background-color: var(--ui-secondary-soft) !important;
    border-color: var(--ui-secondary) !important;
    color: var(--ui-secondary) !important;
}

html body .btn-outline-success {
    background-color: transparent !important;
    border-color: var(--ui-success) !important;
    color: var(--ui-success) !important;
}

html body .btn-outline-success:hover,
html body .btn-outline-success:focus-visible {
    background-color: var(--ui-success-soft) !important;
    border-color: var(--ui-success) !important;
    color: var(--ui-success) !important;
}

html body .btn-outline-info {
    background-color: transparent !important;
    border-color: var(--ui-info) !important;
    color: var(--ui-info) !important;
}

html body .btn-outline-info:hover,
html body .btn-outline-info:focus-visible {
    background-color: var(--ui-info-soft) !important;
    border-color: var(--ui-info) !important;
    color: var(--ui-info) !important;
}

html body .btn-outline-warning {
    background-color: transparent !important;
    border-color: #d39e00 !important;
    color: #b58105 !important;
}

html body .btn-outline-warning:hover,
html body .btn-outline-warning:focus-visible {
    background-color: var(--ui-warning-soft) !important;
    border-color: #d39e00 !important;
    color: #8f6a04 !important;
}

html body .btn-outline-danger {
    background-color: transparent !important;
    border-color: var(--ui-danger) !important;
    color: var(--ui-danger) !important;
}

html body .btn-outline-danger:hover,
html body .btn-outline-danger:focus-visible {
    background-color: var(--ui-danger-soft) !important;
    border-color: var(--ui-danger) !important;
    color: var(--ui-danger) !important;
}
.app-page-actions,
.action-buttons {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.app-page-actions .btn,
.action-buttons .btn {
    margin-right: 0;
}

.app-page-actions .app-page-action-btn.btn-warning,
.action-buttons .app-page-action-btn.btn-warning {
    background-color: var(--ui-page-action-warning-bg) !important;
    border-color: var(--ui-page-action-warning-bg) !important;
    color: var(--ui-page-action-warning-text) !important;
}

.app-page-actions .app-page-action-btn.btn-warning:hover,
.app-page-actions .app-page-action-btn.btn-warning:focus-visible,
.action-buttons .app-page-action-btn.btn-warning:hover,
.action-buttons .app-page-action-btn.btn-warning:focus-visible {
    background-color: var(--ui-page-action-warning-hover) !important;
    border-color: var(--ui-page-action-warning-hover) !important;
    color: var(--ui-page-action-warning-text) !important;
}

.app-page-actions .app-page-action-btn.btn-danger,
.action-buttons .app-page-action-btn.btn-danger {
    background-color: var(--ui-page-action-danger-bg) !important;
    border-color: var(--ui-page-action-danger-bg) !important;
    color: var(--ui-page-action-danger-text) !important;
}

.app-page-actions .app-page-action-btn.btn-danger:hover,
.app-page-actions .app-page-action-btn.btn-danger:focus-visible,
.action-buttons .app-page-action-btn.btn-danger:hover,
.action-buttons .app-page-action-btn.btn-danger:focus-visible {
    background-color: var(--ui-page-action-danger-hover) !important;
    border-color: var(--ui-page-action-danger-hover) !important;
    color: var(--ui-page-action-danger-text) !important;
}
main .container-fluid > .d-flex.justify-content-between.align-items-center.mb-4,
main .container-fluid > .d-flex.justify-content-between.align-items-center.flex-wrap.gap-2.mb-4,
main .container-fluid > .d-flex.justify-content-between.align-items-start.mb-4,
main .container-fluid > .d-flex.flex-column.flex-md-row.justify-content-between.align-items-start.align-items-md-center.mb-4,
main .container-fluid > .d-flex.flex-column.flex-lg-row.justify-content-between.align-items-lg-center.gap-3.mb-4,
main .container-fluid > .d-flex.flex-wrap.justify-content-between.align-items-center.gap-3.mb-4,
.page-header,
.app-page-header {
    gap: 1rem;
    flex-wrap: wrap;
}

.app-page-title,
.page-header > h1,
.page-header > .h1,
.page-header > .h2,
main .container-fluid > .d-flex.justify-content-between.align-items-center.mb-4 > h1,
main .container-fluid > .d-flex.justify-content-between.align-items-center.mb-4 > .h1,
main .container-fluid > .d-flex.justify-content-between.align-items-center.mb-4 > .h2,
main .container-fluid > .d-flex.justify-content-between.align-items-center.flex-wrap.gap-2.mb-4 > h1,
main .container-fluid > .d-flex.justify-content-between.align-items-center.flex-wrap.gap-2.mb-4 > .h1,
main .container-fluid > .d-flex.justify-content-between.align-items-center.flex-wrap.gap-2.mb-4 > .h2,
main .container-fluid > .d-flex.justify-content-between.align-items-start.mb-4 > div:first-child > h1,
main .container-fluid > .d-flex.flex-column.flex-md-row.justify-content-between.align-items-start.align-items-md-center.mb-4 > div:first-child > h1,
main .container-fluid > .d-flex.flex-column.flex-lg-row.justify-content-between.align-items-lg-center.gap-3.mb-4 > div:first-child > h1,
main .container-fluid > .d-flex.flex-wrap.justify-content-between.align-items-center.gap-3.mb-4 > div:first-child > h1 {
    margin: 0;
    color: var(--ui-text);
    font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.app-page-title [data-feather],
.page-header h1 [data-feather],
main .container-fluid > .d-flex.justify-content-between.align-items-center.mb-4 > h1 [data-feather],
main .container-fluid > .d-flex.justify-content-between.align-items-center.mb-4 > .h2 [data-feather],
main .container-fluid > .d-flex.justify-content-between.align-items-center.flex-wrap.gap-2.mb-4 > h1 [data-feather],
main .container-fluid > .d-flex.justify-content-between.align-items-center.flex-wrap.gap-2.mb-4 > .h2 [data-feather],
main .container-fluid > .d-flex.flex-column.flex-lg-row.justify-content-between.align-items-lg-center.gap-3.mb-4 > div:first-child > h1 [data-feather],
main .container-fluid > .d-flex.flex-wrap.justify-content-between.align-items-center.gap-3.mb-4 > div:first-child > h1 [data-feather] {
    color: var(--ui-primary);
}

.app-page-subtitle {
    margin: 0.25rem 0 0;
    color: var(--ui-text-muted);
    font-size: 0.95rem;
}

.app-page-hero-card {
    border: 0 !important;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--ui-primary) 94%, #ffffff 6%) 0%, color-mix(in srgb, var(--ui-primary) 72%, #111827 28%) 100%) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.app-page-hero-card .card-body {
    padding: 1.5rem 1.75rem;
}

.app-page-hero-card .icon-shape-white {
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.app-page-hero-card .icon-shape-white [data-feather] {
    color: #ffffff !important;
}

.app-page-hero-card .badge.bg-white {
    background-color: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
}
html body .card {
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-md);
    background-color: var(--ui-surface);
    box-shadow: none;
}

html body .shadow,
html body .shadow-sm,
html body .shadow-lg,
html body .card.shadow,
html body .card.shadow-sm,
html body .card.shadow-lg,
html body .alert.shadow,
html body .alert.shadow-sm,
html body .alert.shadow-lg,
html body .rounded.shadow-sm,
html body .rounded-3.shadow-sm,
html body .dropdown-menu.shadow,
html body .dropdown-menu.shadow-sm,
html body .shadow.shadow-sm,
html body .shadow.shadow-lg,
html body .shadow-sm.shadow-lg {
    box-shadow: none !important;
}

html body .modal-content,
html body .dropdown-menu,
html body .toast,
html body .popover,
html body .offcanvas,
html body .list-group,
html body .filter-bar-card,
html body .form-panel {
    box-shadow: none !important;
}

html body .card-header,
html body .modal-header {
    background-color: var(--ui-surface-muted);
    border-color: var(--ui-border);
    padding: 0.875rem 1.125rem;
}

html body .card-body,
html body .card-footer,
html body .modal-body,
html body .modal-footer {
    border-color: var(--ui-border);
}

html body .card-header h5,
html body .card-header h6,
html body .modal-header h5,
html body .modal-header h6 {
    margin-bottom: 0;
    font-weight: 700;
    line-height: 1.3;
}

html body .card-header.bg-primary,
html body .modal-header.bg-primary {
    background-color: var(--ui-header-primary-bg) !important;
    color: var(--ui-header-primary-text) !important;
    border-color: color-mix(in srgb, var(--ui-header-primary-bg) 82%, #ffffff 18%) !important;
}

html body .card-header.bg-info,
html body .modal-header.bg-info {
    background-color: var(--ui-header-info-bg) !important;
    color: var(--ui-header-info-text) !important;
    border-color: color-mix(in srgb, var(--ui-header-info-bg) 82%, #ffffff 18%) !important;
}

html body .card-header.bg-success,
html body .modal-header.bg-success {
    background-color: var(--ui-header-success-bg) !important;
    color: var(--ui-header-success-text) !important;
    border-color: color-mix(in srgb, var(--ui-header-success-bg) 82%, #ffffff 18%) !important;
}

html body .card-header.bg-warning,
html body .modal-header.bg-warning {
    background-color: var(--ui-header-warning-bg) !important;
    color: var(--ui-header-warning-text) !important;
    border-color: color-mix(in srgb, var(--ui-header-warning-bg) 82%, #ffffff 18%) !important;
}

html body .card-header.bg-danger,
html body .modal-header.bg-danger {
    background-color: var(--ui-header-danger-bg) !important;
    color: var(--ui-header-danger-text) !important;
    border-color: color-mix(in srgb, var(--ui-header-danger-bg) 82%, #ffffff 18%) !important;
}

html body .card-header.bg-secondary,
html body .modal-header.bg-secondary {
    background-color: var(--ui-header-secondary-bg) !important;
    color: var(--ui-header-secondary-text) !important;
    border-color: color-mix(in srgb, var(--ui-header-secondary-bg) 82%, #ffffff 18%) !important;
}

html body .card-header.bg-dark,
html body .modal-header.bg-dark {
    background-color: var(--ui-header-dark-bg) !important;
    color: var(--ui-header-dark-text) !important;
    border-color: color-mix(in srgb, var(--ui-header-dark-bg) 82%, #ffffff 18%) !important;
}

html body .card-header.bg-success-soft {
    background-color: color-mix(in srgb, var(--ui-success) 18%, var(--ui-surface)) !important;
    color: var(--ui-success) !important;
    border-color: color-mix(in srgb, var(--ui-success) 28%, var(--ui-border)) !important;
}

html body .card-header.bg-danger-soft {
    background-color: color-mix(in srgb, var(--ui-danger) 18%, var(--ui-surface)) !important;
    color: var(--ui-danger) !important;
    border-color: color-mix(in srgb, var(--ui-danger) 28%, var(--ui-border)) !important;
}

html body .card-header.bg-warning-subtle,
html body .modal-header.bg-warning-subtle {
    background-color: color-mix(in srgb, var(--ui-warning) 20%, var(--ui-surface)) !important;
    color: var(--ui-warning-subtle-text) !important;
    border-color: color-mix(in srgb, var(--ui-warning) 30%, var(--ui-border)) !important;
}

html body .card-header.bg-secondary-subtle,
html body .modal-header.bg-secondary-subtle {
    background-color: color-mix(in srgb, var(--ui-secondary) 18%, var(--ui-surface)) !important;
    color: var(--ui-text) !important;
    border-color: color-mix(in srgb, var(--ui-secondary) 30%, var(--ui-border)) !important;
}

html body .card-header.bg-success.bg-opacity-10 {
    background-color: color-mix(in srgb, var(--ui-success) 24%, var(--ui-surface)) !important;
    color: var(--ui-success) !important;
    border-color: color-mix(in srgb, var(--ui-success) 22%, var(--ui-border)) !important;
}

html body .card-header.bg-danger.bg-opacity-10 {
    background-color: color-mix(in srgb, var(--ui-danger) 22%, var(--ui-surface)) !important;
    color: var(--ui-danger) !important;
    border-color: color-mix(in srgb, var(--ui-danger) 22%, var(--ui-border)) !important;
}

html body .card-header[class*="bg-"] *:not(.btn):not(.btn *):not(.badge):not(.badge *):not(.dropdown-menu):not(.dropdown-menu *):not(.form-control):not(.form-control *):not(.form-select):not(.form-select *):not(.form-check-input):not(.form-check-label),
html body .modal-header[class*="bg-"] *:not(.btn):not(.btn *):not(.badge):not(.badge *):not(.dropdown-menu):not(.dropdown-menu *):not(.form-control):not(.form-control *):not(.form-select):not(.form-select *):not(.form-check-input):not(.form-check-label) {
    color: inherit !important;
}

html body .card-header[class*="bg-"] .badge.bg-light,
html body .modal-header[class*="bg-"] .badge.bg-light {
    background-color: rgba(255, 255, 255, 0.12) !important;
    color: inherit !important;
    border: 1px solid rgba(255, 255, 255, 0.16);
}
html body .form-label {
    margin-bottom: 0.5rem;
    color: var(--ui-text);
    font-weight: 700;
}

html body .form-control,
html body .form-select,
html body .input-group-text {
    min-height: 40px;
    border-radius: var(--ui-radius-sm);
    border-color: var(--ui-border) !important;
    background-color: var(--ui-surface) !important;
    color: var(--ui-text) !important;
    transition:
        border-color var(--ui-transition),
        box-shadow var(--ui-transition),
        background-color var(--ui-transition),
        color var(--ui-transition);
}

html body textarea.form-control:not(.chatbot-message-textarea) {
    min-height: 96px;
}

html body .form-control::placeholder,
html body .form-select::placeholder {
    color: var(--ui-text-soft);
}

html body .form-control:focus,
html body .form-select:focus,
html body .input-group:focus-within .input-group-text {
    border-color: var(--ui-primary) !important;
    box-shadow: var(--ui-focus-ring) !important;
    background-color: var(--ui-surface) !important;
    color: var(--ui-text) !important;
}

html body .form-control[readonly],
html body textarea.form-control[readonly],
html body .form-select:disabled,
html body .form-control:disabled {
    background-color: var(--ui-surface-muted) !important;
    color: var(--ui-text-muted) !important;
    opacity: 1;
    cursor: default;
}

html body .form-text,
html body .text-muted,
html body small.text-muted {
    color: var(--ui-text-muted) !important;
}

html body .invalid-feedback {
    color: var(--ui-danger);
}

html body .valid-feedback {
    color: var(--ui-success);
}
html body .badge {
    border-radius: var(--ui-radius-pill);
    font-weight: 600;
}

html body .badge.bg-primary,
html body .bg-primary {
    background-color: var(--ui-primary) !important;
    color: var(--ui-text-on-dark) !important;
}

html body .badge.bg-success,
html body .bg-success {
    background-color: var(--ui-success) !important;
    color: var(--ui-text-on-dark) !important;
}

html body .badge.bg-info,
html body .bg-info {
    background-color: var(--ui-info) !important;
    color: #063340 !important;
}

html body .badge.bg-warning,
html body .bg-warning {
    background-color: var(--ui-warning) !important;
    color: var(--ui-warning-text) !important;
}

html body .badge.bg-danger,
html body .bg-danger {
    background-color: var(--ui-danger) !important;
    color: var(--ui-text-on-dark) !important;
}

html body .badge.bg-secondary,
html body .bg-secondary {
    background-color: var(--ui-secondary) !important;
    color: var(--ui-text-on-dark) !important;
}
html body .bg-primary.bg-opacity-10,
html body .bg-primary.bg-opacity-25 {
    background-color: var(--ui-primary-soft) !important;
    color: var(--ui-primary) !important;
}

html body .bg-success.bg-opacity-10,
html body .bg-success.bg-opacity-25 {
    background-color: var(--ui-success-soft) !important;
    color: var(--ui-success) !important;
}

html body .bg-info.bg-opacity-10,
html body .bg-info.bg-opacity-25 {
    background-color: var(--ui-info-soft) !important;
    color: var(--ui-info) !important;
}

html body .bg-warning.bg-opacity-10,
html body .bg-warning.bg-opacity-25 {
    background-color: var(--ui-warning-soft) !important;
    color: var(--ui-warning-subtle-text) !important;
}

html body .bg-warning.bg-opacity-10 .text-warning,
html body .bg-warning.bg-opacity-25 .text-warning {
    color: var(--ui-warning-subtle-text) !important;
}

html body .bg-danger.bg-opacity-10,
html body .bg-danger.bg-opacity-25 {
    background-color: var(--ui-danger-soft) !important;
    color: var(--ui-danger) !important;
}

html body .bg-secondary.bg-opacity-10,
html body .bg-secondary.bg-opacity-25 {
    background-color: var(--ui-secondary-soft) !important;
    color: var(--ui-secondary) !important;
}

html body .badge.bg-primary.bg-opacity-10,
html body .badge.bg-primary.bg-opacity-25 {
    background-color: var(--ui-primary-soft) !important;
    color: var(--ui-primary) !important;
}

html body .badge.bg-success.bg-opacity-10,
html body .badge.bg-success.bg-opacity-25 {
    background-color: var(--ui-success-soft) !important;
    color: var(--ui-success) !important;
}

html body .badge.bg-info.bg-opacity-10,
html body .badge.bg-info.bg-opacity-25 {
    background-color: var(--ui-info-soft) !important;
    color: var(--ui-info) !important;
}

html body .badge.bg-warning.bg-opacity-10,
html body .badge.bg-warning.bg-opacity-25 {
    background-color: var(--ui-warning-soft) !important;
    color: var(--ui-warning-subtle-text) !important;
}

html body .badge.bg-danger.bg-opacity-10,
html body .badge.bg-danger.bg-opacity-25 {
    background-color: var(--ui-danger-soft) !important;
    color: var(--ui-danger) !important;
}

html body .badge.bg-secondary.bg-opacity-10,
html body .badge.bg-secondary.bg-opacity-25 {
    background-color: var(--ui-secondary-soft) !important;
    color: var(--ui-secondary) !important;
}

body.dark-mode .badge.bg-primary-subtle,
[data-bs-theme="dark"] .badge.bg-primary-subtle {
    background-color: var(--ui-primary-soft) !important;
    color: var(--ui-primary) !important;
}

body.dark-mode .badge.bg-success-subtle,
[data-bs-theme="dark"] .badge.bg-success-subtle {
    background-color: var(--ui-success-soft) !important;
    color: var(--ui-success) !important;
}

body.dark-mode .badge.bg-info-subtle,
[data-bs-theme="dark"] .badge.bg-info-subtle {
    background-color: var(--ui-info-soft) !important;
    color: var(--ui-info) !important;
}

body.dark-mode .badge.bg-warning-subtle,
[data-bs-theme="dark"] .badge.bg-warning-subtle {
    background-color: var(--ui-warning-soft) !important;
    color: var(--ui-warning-subtle-text) !important;
}

body.dark-mode .badge.bg-danger-subtle,
[data-bs-theme="dark"] .badge.bg-danger-subtle {
    background-color: var(--ui-danger-soft) !important;
    color: var(--ui-danger) !important;
}

body.dark-mode .badge.bg-secondary-subtle,
[data-bs-theme="dark"] .badge.bg-secondary-subtle {
    background-color: var(--ui-secondary-soft) !important;
    color: var(--ui-secondary) !important;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--ui-radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
}

.app-code-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.55rem;
    border-radius: var(--ui-radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
}

.app-code-badge--lg {
    padding: 0.45rem 0.8rem;
    font-size: 0.85rem;
}

.app-birthday-badge {
    position: absolute;
    z-index: 11;
    align-items: center;
    display: inline-flex;
    justify-content: center;
    padding: 0;
    color: #ffffff;
    font: inherit;
    line-height: 1;
    appearance: none;
    background: #e45578;
    border: 0;
    border-radius: 50%;
    box-shadow: none;
    pointer-events: auto;
    vertical-align: middle;
}

.app-birthday-badge[data-birthday-actor="teacher"] {
    background: #168b76;
}

.app-birthday-badge:focus-visible {
    outline: 3px solid rgb(228 85 120 / 28%);
    outline-offset: 2px;
}

.app-birthday-badge[data-birthday-actor="teacher"]:focus-visible {
    outline-color: rgb(22 139 118 / 30%);
}

.app-birthday-badge--static {
    pointer-events: none;
}

.app-birthday-badge--sm {
    bottom: -2px;
    right: 1px;
    width: 18px;
    height: 18px;
}

.app-birthday-badge--md {
    bottom: -2px;
    right: 1px;
    width: 16px;
    height: 16px;
}

.app-birthday-badge--xs {
    bottom: -1px;
    right: 0;
    width: 14px;
    height: 14px;
}

.app-birthday-badge--header {
    bottom: -4px;
    right: 1px;
    width: 20px;
    height: 20px;
}

.app-birthday-badge--panel {
    bottom: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
}

.app-birthday-badge--lg {
    bottom: -6px;
    right: -6px;
    width: 44px;
    height: 44px;
}

.app-birthday-badge__icon {
    color: #ffffff !important;
    stroke-width: 2.5;
}

.app-birthday-badge__label {
    color: inherit;
    font-size: 0.72rem;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
}

.app-birthday-badge--sm .app-birthday-badge__icon {
    width: 10px;
    height: 10px;
}

.app-birthday-badge--md .app-birthday-badge__icon {
    width: 9px;
    height: 9px;
}

.app-birthday-badge--xs .app-birthday-badge__icon {
    width: 8px;
    height: 8px;
}

.app-birthday-badge--header .app-birthday-badge__icon {
    width: 12px;
    height: 12px;
}

.app-birthday-badge--panel .app-birthday-badge__icon {
    width: 14px;
    height: 14px;
}

.app-birthday-badge--lg .app-birthday-badge__icon {
    width: 28px;
    height: 28px;
}

.app-birthday-profile-banner {
    --birthday-profile-accent: #e45578;
    --birthday-profile-accent-rgb: 228 85 120;
    display: grid;
    width: 100%;
    align-items: center;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    color: var(--ui-text-primary);
    background: rgb(var(--birthday-profile-accent-rgb) / 7%);
    border: 1px solid rgb(var(--birthday-profile-accent-rgb) / 20%);
    border-radius: var(--ui-radius-lg);
}

.app-birthday-profile-banner--teacher {
    --birthday-profile-accent: #168b76;
    --birthday-profile-accent-rgb: 22 139 118;
}

.app-birthday-profile-banner__icon {
    display: inline-grid;
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    color: #ffffff;
    background: var(--birthday-profile-accent);
    border-radius: 50%;
    place-items: center;
}

.app-birthday-profile-banner__content,
.app-birthday-profile-banner__eyebrow,
.app-birthday-profile-banner__title,
.app-birthday-profile-banner__copy {
    display: block;
}

.app-birthday-profile-banner__content {
    min-width: 0;
    text-align: left;
}

.app-birthday-profile-banner__eyebrow {
    margin-bottom: 0.12rem;
    color: var(--birthday-profile-accent);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-birthday-profile-banner__title {
    color: var(--ui-text-primary);
    font-size: 1rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.app-birthday-profile-banner__copy {
    margin-top: 0.2rem;
    color: var(--ui-text-secondary);
    font-size: 0.9rem;
    line-height: 1.45;
}

.app-birthday-profile-banner__replay {
    position: relative !important;
    inset: auto !important;
    flex: 0 0 auto;
    width: 2rem;
    min-width: 2rem;
    height: 2rem;
    padding: 0;
}

.app-birthday-profile-banner__replay .app-birthday-badge__icon {
    width: 0.85rem;
    height: 0.85rem;
}

.app-birthday-profile-banner__replay .app-birthday-badge__label {
    display: none;
}

.app-birthday-profile-avatar {
    position: relative;
    isolation: isolate;
}

.app-birthday-profile-avatar::before {
    position: absolute;
    inset: -0.65rem;
    z-index: -1;
    border: 1px solid rgb(228 85 120 / 28%);
    border-radius: 50%;
    box-shadow: 0 0 0 0.45rem rgb(228 85 120 / 7%);
    content: '';
}

.app-birthday-profile-avatar--teacher::before {
    border-color: rgb(22 139 118 / 30%);
    box-shadow: 0 0 0 0.45rem rgb(22 139 118 / 7%);
}

html.dark-mode .app-birthday-profile-banner {
    color: var(--ui-text-primary);
    background: rgb(var(--birthday-profile-accent-rgb) / 12%);
    border-color: rgb(var(--birthday-profile-accent-rgb) / 30%);
}

@media (max-width: 575.98px) {
    .app-birthday-profile-banner {
        position: relative;
        align-items: start;
        grid-template-columns: minmax(0, 1fr);
        gap: 0.65rem;
        padding: 0.85rem;
    }

    .app-birthday-profile-banner__icon {
        display: none;
    }

    .app-birthday-profile-banner__content {
        padding-right: 2.5rem;
    }

    .app-birthday-profile-banner__copy {
        font-size: 0.84rem;
    }

    .app-birthday-profile-banner__replay {
        position: absolute !important;
        top: 0.85rem !important;
        right: 0.85rem !important;
        bottom: auto !important;
        left: auto !important;
    }

}

.app-person-fallback-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--ui-secondary) !important;
    color: var(--ui-text-on-dark) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.app-person-fallback-avatar [data-feather] {
    width: 16px;
    height: 16px;
}

.app-payment-method-thumbnail {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    object-fit: cover;
}

.app-payment-method-thumbnail [data-feather] {
    width: 22px;
    height: 22px;
}

.app-person-fallback-meta {
    color: var(--ui-text-muted) !important;
}

.app-person-fallback-meta.small,
.app-person-fallback-meta small {
    color: var(--ui-text-muted) !important;
}

.app-staff-link,
.app-staff-link:hover {
    color: inherit;
}

.app-staff-link__content,
.app-staff-link__meta {
    min-width: 0;
}

.app-person-avatar {
    display: block;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

.app-person-avatar--sm {
    width: 2rem;
    height: 2rem;
}

.app-person-type-badge {
    padding: 0.125rem 0.3125rem;
    font-size: 0.6rem;
    font-weight: 400;
}

.app-person-timestamp {
    font-size: 0.875em;
}

.app-person-timestamp__icon {
    width: 0.875rem;
    height: 0.875rem;
    margin-right: 0.25rem;
}

.app-badge-xs {
    font-size: 0.65rem;
}

.app-badge-icon-xs {
    width: 0.625rem;
    height: 0.625rem;
}

.app-badge-icon-sm {
    width: 0.75rem;
    height: 0.75rem;
}

.app-icon-md {
    width: 1.125rem;
    height: 1.125rem;
}

.app-fit-content {
    width: fit-content;
}

.book-image-container {
    overflow: hidden;
    border-radius: 4px;
    background-color: var(--ui-surface-muted);
}

.app-birthday-notification-icon {
    width: 35px;
    height: 35px;
    margin-inline: auto;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
}

.app-birthday-notification-icon [data-feather] {
    width: 18px;
    height: 18px;
}

.app-birthday-hero-icon {
    color: #ff6b6b;
}

.app-cursor-pointer {
    cursor: pointer;
}

.app-cursor-default {
    cursor: default;
}
.attendance-type-toggle {
    display: grid;
    gap: 0.25rem;
    width: 100%;
    min-width: 12rem;
}

.attendance-type-toggle--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.attendance-type-toggle--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 22rem;
}

.attendance-type-toggle--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-width: 30rem;
}

.attendance-type-toggle__option {
    display: inline-flex;
    min-height: 2.25rem;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin: 0;
    padding: 0.375rem 0.625rem;
    color: var(--ui-text);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    background-color: var(--ui-surface);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-sm);
    cursor: pointer;
    transition:
        color var(--ui-transition),
        background-color var(--ui-transition),
        border-color var(--ui-transition),
        transform var(--ui-transition);
}

.attendance-type-toggle__option svg {
    width: 0.875rem;
    height: 0.875rem;
    flex: 0 0 auto;
}

.attendance-type-toggle__input:not(:checked):not(:disabled) + .attendance-type-toggle__option:hover {
    color: var(--ui-text);
    background-color: var(--ui-surface-muted);
    border-color: var(--ui-border-strong);
}

.attendance-type-toggle__input:not(:disabled) + .attendance-type-toggle__option:active {
    transform: translateY(1px);
}

.attendance-type-toggle__input:focus-visible + .attendance-type-toggle__option {
    outline: none;
    box-shadow: var(--ui-focus-ring);
}

.attendance-type-toggle__input:checked + .attendance-type-toggle__option--present {
    color: var(--ui-header-success-text);
    background-color: var(--ui-header-success-bg);
    border-color: var(--ui-success);
}

.attendance-type-toggle__input:checked + .attendance-type-toggle__option--unmarked {
    color: var(--ui-text);
    background-color: var(--ui-surface-muted);
    border-color: var(--ui-border-strong);
}

.attendance-type-toggle__input:checked + .attendance-type-toggle__option--absent_excused {
    color: var(--ui-header-warning-text);
    background-color: var(--ui-header-warning-bg);
    border-color: var(--ui-warning);
}

.attendance-type-toggle__input:checked + .attendance-type-toggle__option--absent_unexcused {
    color: var(--ui-header-danger-text);
    background-color: var(--ui-header-danger-bg);
    border-color: var(--ui-danger);
}

.attendance-type-toggle__input:checked + .attendance-type-toggle__option--absent {
    color: var(--ui-header-danger-text);
    background-color: var(--ui-header-danger-bg);
    border-color: var(--ui-danger);
}

.attendance-type-toggle__input:disabled + .attendance-type-toggle__option {
    cursor: not-allowed;
    color: var(--ui-text-muted);
    background-color: var(--ui-surface-muted);
    border-color: var(--ui-border);
    opacity: 1;
}

.table > tbody > tr.attendance-row--staff-locked > * {
    color: var(--ui-text-muted);
    background-color: var(--ui-surface-muted);
}

@media (max-width: 767.98px) {
    .attendance-type-toggle {
        min-width: 0;
    }

    .attendance-type-toggle--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .attendance-type-toggle__option {
        padding-inline: 0.5rem;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .table-mobile-cards .mobile-card-row--form {
        display: block;
    }

    .table-mobile-cards .mobile-card-row--form > .mobile-card-label {
        margin-bottom: 0.375rem;
    }

    .table-mobile-cards .mobile-card-value--form {
        display: block;
        min-width: 0;
        text-align: left;
    }

    .table-mobile-cards .mobile-card-value--form > .attendance-type-toggle {
        display: grid !important;
        width: 100% !important;
        margin-left: 0;
    }

    .table-mobile-cards .mobile-card-value--form > .form-control,
    .table-mobile-cards .mobile-card-value--form > .form-select {
        width: 100%;
        min-width: 0;
    }
}
html body .alert {
    border-radius: var(--ui-radius-md);
    border-width: 1px;
}

body.dark-mode .alert-success {
    background-color: color-mix(in srgb, var(--ui-success) 16%, var(--ui-surface));
    border-color: color-mix(in srgb, var(--ui-success) 28%, var(--ui-border));
}

body.dark-mode .alert-danger {
    background-color: color-mix(in srgb, var(--ui-danger) 16%, var(--ui-surface));
    border-color: color-mix(in srgb, var(--ui-danger) 28%, var(--ui-border));
}

body.dark-mode .alert-warning {
    background-color: color-mix(in srgb, var(--ui-warning) 14%, var(--ui-surface));
    border-color: color-mix(in srgb, var(--ui-warning) 28%, var(--ui-border));
    color: var(--ui-warning-subtle-text);
}

body.dark-mode .alert-info {
    background-color: color-mix(in srgb, var(--ui-info) 14%, var(--ui-surface));
    border-color: color-mix(in srgb, var(--ui-info) 24%, var(--ui-border));
}
.metrics-card {
    transition: transform var(--ui-transition), box-shadow var(--ui-transition);
}

.metrics-card:hover {
    transform: translateY(-2px);
}

.metric-card-shell {
    position: relative;
    border: 1px solid var(--ui-border) !important;
    border-radius: var(--ui-radius-md);
    background-color: var(--ui-surface);
    box-shadow: none !important;
    overflow: hidden;
    transition:
        transform var(--ui-transition),
        box-shadow var(--ui-transition),
        border-color var(--ui-transition),
        background-color var(--ui-transition);
}

.metric-card-shell.bg-primary {
    --metric-card-bg: var(--ui-header-primary-bg);
    --metric-card-text: var(--ui-header-primary-text);
}

.metric-card-shell.bg-success {
    --metric-card-bg: var(--ui-header-success-bg);
    --metric-card-text: var(--ui-header-success-text);
}

.metric-card-shell.bg-info {
    --metric-card-bg: var(--ui-header-info-bg);
    --metric-card-text: var(--ui-header-info-text);
}

.metric-card-shell.bg-warning {
    --metric-card-bg: var(--ui-header-warning-bg);
    --metric-card-text: var(--ui-header-warning-text);
}

.metric-card-shell.bg-danger {
    --metric-card-bg: var(--ui-header-danger-bg);
    --metric-card-text: var(--ui-header-danger-text);
}

.metric-card-shell.bg-secondary {
    --metric-card-bg: var(--ui-header-secondary-bg);
    --metric-card-text: var(--ui-header-secondary-text);
}

.metric-card-shell.bg-primary,
.metric-card-shell.bg-success,
.metric-card-shell.bg-info,
.metric-card-shell.bg-warning,
.metric-card-shell.bg-danger,
.metric-card-shell.bg-secondary {
    background-color: var(--metric-card-bg) !important;
    color: var(--metric-card-text) !important;
}

.metric-card-shell.bg-primary :is(.metric-card-title, .metric-card-value, .metric-card-subtitle, .metric-card-icon),
.metric-card-shell.bg-success :is(.metric-card-title, .metric-card-value, .metric-card-subtitle, .metric-card-icon),
.metric-card-shell.bg-info :is(.metric-card-title, .metric-card-value, .metric-card-subtitle, .metric-card-icon),
.metric-card-shell.bg-warning :is(.metric-card-title, .metric-card-value, .metric-card-subtitle, .metric-card-icon),
.metric-card-shell.bg-danger :is(.metric-card-title, .metric-card-value, .metric-card-subtitle, .metric-card-icon),
.metric-card-shell.bg-secondary :is(.metric-card-title, .metric-card-value, .metric-card-subtitle, .metric-card-icon) {
    color: var(--metric-card-text) !important;
    stroke: currentColor !important;
}


.metric-card-shell.metric-card-clickable {
    cursor: pointer !important;
}

.metric-card-shell.metric-card-clickable * {
    cursor: pointer !important;
}

.metric-card-link,
.metric-card-link:hover,
.metric-card-link:focus-visible {
    color: inherit;
    text-decoration: none;
}

.metric-card-body {
    padding: 1rem 1.1rem !important;
}

.metric-card-shell .text-xs.metric-card-title {
    display: block;
    font-size: 0.72rem !important;
    line-height: 1.35;
    letter-spacing: 0.05em;
    font-weight: 700 !important;
    text-wrap: balance;
}

.metric-card-tooltip {
    position: absolute;
    top: 0.55rem;
    right: 0.65rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.metric-card-tooltip .tooltip-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.metric-card-tooltip .tooltip-icon {
    font-size: 0.85rem;
    opacity: 0.82;
}

.metric-card-has-tooltip .metric-card-title {
    padding-right: 1rem;
}

.metric-card-shell .text-gray-800.metric-card-value {
    color: var(--ui-text) !important;
}

.metric-card-shell .text-gray-300.metric-card-icon {
    color: var(--ui-text-soft) !important;
}

.metric-card-value {
    display: block;
    font-size: 1.55rem !important;
    line-height: 1.1;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums;
}

.metric-card-subtitle {
    display: block;
    margin-top: 0.28rem;
    line-height: 1.3;
}

.metric-card-icon {
    width: 30px !important;
    height: 30px !important;
    opacity: 0.82;
    transition:
        transform var(--ui-transition),
        opacity var(--ui-transition);
}

.metric-cards-row > .metric-card-col,
.classes-metrics > .metric-card-col,
.staff-metrics > .metric-card-col,
.accounts-metrics .row > .metric-card-col {
    display: flex;
}

.metric-cards-row > .metric-card-col > .metric-card-shell,
.classes-metrics > .metric-card-col > .metric-card-shell,
.staff-metrics > .metric-card-col > .metric-card-shell,
.accounts-metrics .row > .metric-card-col > .metric-card-shell {
    width: 100%;
}

.metric-card-clickable {
    transition: transform var(--ui-transition), box-shadow var(--ui-transition);
    position: relative;
}

.metric-card-clickable:hover,
.metric-card-clickable:focus-visible {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--ui-primary) 35%, var(--ui-border)) !important;
    box-shadow: 0 0.25rem 0.75rem color-mix(in srgb, var(--ui-text) 8%, transparent) !important;
}

.metric-card-clickable:hover .metric-card-body,
.metric-card-clickable:focus-visible .metric-card-body {
    opacity: 0.96;
}

.metric-card-clickable:hover .metric-card-icon,
.metric-card-clickable:focus-visible .metric-card-icon {
    opacity: 1;
    transform: scale(1.06);
}

.metric-card-clickable:focus-visible {
    outline: none;
    box-shadow: var(--ui-focus-ring) !important;
}

.metric-card-clickable:active {
    transform: translateY(-1px);
}

body.dark-mode .metric-card-clickable:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.24) !important;
}

body.dark-mode .metric-card-clickable:focus-visible {
    box-shadow: var(--ui-focus-ring) !important;
}

body.dark-mode .metric-card-shell {
    border-color: var(--ui-border);
    background-color: var(--ui-surface);
}

.app-empty-state {
    display: flex;
    min-height: 12rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 2rem 1rem;
    color: var(--ui-text-muted);
    text-align: center;
}

.app-empty-state--compact {
    min-height: 7rem;
    padding: 1.25rem 0.75rem;
}

.app-empty-state__icon {
    width: 1.75rem;
    height: 1.75rem;
    opacity: 0.72;
}

.app-empty-state__title {
    margin: 0;
    color: var(--ui-text-muted);
    font-size: 1.05rem;
    font-weight: 650;
}

.app-empty-state__message {
    max-width: 32rem;
    margin: 0;
    line-height: 1.5;
}

.app-empty-state__action {
    margin-top: 0.35rem;
}
.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-sm {
    width: 32px;
    height: 32px;
}

.avatar-md {
    width: 40px;
    height: 40px;
}

.avatar-lg {
    width: 48px;
    height: 48px;
}
.loading-spinner {
    width: 1rem;
    height: 1rem;
    border-width: 0.125rem;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}
.table-responsive {
    overflow-x: auto;
    border-radius: var(--ui-radius-sm);
}

.table-action-column,
.table-action-cell {
    white-space: nowrap;
    text-align: right;
}

.table-action-cell .btn-group {
    flex-wrap: nowrap;
}

html body .table thead th {
    color: var(--ui-text-muted);
    font-weight: 700;
}
.change-history-table {
    min-width: 720px;
    margin-bottom: 0;
}

.change-history-table th:first-child,
.change-history-table__message {
    width: 58%;
}

.change-history-table__actor {
    min-width: 180px;
}

.change-history-table__time {
    min-width: 150px;
    color: var(--ui-text-muted);
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.change-history-details {
    display: grid;
    gap: 0.625rem;
}

.change-history-item {
    display: grid;
    gap: 0.45rem;
    border-left: 3px solid var(--ui-primary);
    padding: 0.65rem 0.75rem;
    background-color: var(--ui-surface-muted);
}

.change-history-item__label {
    color: var(--ui-primary);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.change-history-item__values {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.change-history-value {
    display: inline-flex;
    min-width: 0;
    align-items: baseline;
    gap: 0.4rem;
    border: 1px solid transparent;
    border-radius: var(--ui-radius-sm);
    padding: 0.35rem 0.55rem;
}

.change-history-value--old {
    border-color: color-mix(in srgb, var(--ui-danger) 32%, var(--ui-border));
    background-color: var(--ui-danger-soft);
    color: var(--ui-danger);
}

.change-history-value--new {
    border-color: color-mix(in srgb, var(--ui-success) 32%, var(--ui-border));
    background-color: var(--ui-success-soft);
    color: var(--ui-success);
}

.change-history-value__text {
    min-width: 0;
    overflow-wrap: anywhere;
    color: currentColor;
    font-family: var(--bs-font-monospace);
    font-size: 0.8125rem;
    line-height: 1.45;
    white-space: pre-wrap;
}

.change-history-value--old .change-history-value__text {
    text-decoration-thickness: 1px;
}

.change-history-value--new .change-history-value__text {
    text-decoration: none;
}

.change-history-item__arrow {
    flex: 0 0 auto;
    color: var(--ui-text-soft);
    font-size: 1rem;
    font-weight: 700;
}

.change-history-event {
    display: grid;
    grid-template-columns: 0.5rem minmax(0, 1fr);
    align-items: start;
    gap: 0.55rem;
    color: var(--ui-text);
    line-height: 1.55;
}

.change-history-event__marker {
    width: 0.5rem;
    height: 0.5rem;
    margin-top: 0.46rem;
    border-radius: 50%;
    background-color: var(--ui-info);
}

.change-history-event__text {
    color: var(--ui-text);
}

.change-history-creation {
    min-width: 0;
}

.change-history-creation__title {
    display: grid;
    grid-template-columns: 0.5rem minmax(0, 1fr);
    align-items: start;
    gap: 0.55rem;
    margin: 0 0 0.75rem;
    color: var(--ui-text);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.45;
}

.change-history-creation__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem 1rem;
    margin: 0;
    padding-left: 1.05rem;
}

.change-history-creation__field {
    min-width: 0;
}

.change-history-creation__field dt {
    margin-bottom: 0.15rem;
    color: var(--ui-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.35;
}

.change-history-creation__field dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--ui-text);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.45;
}

.change-history-card .table-mobile-cards .mobile-card-header--rich {
    color: inherit;
    font-weight: inherit;
}

.change-history-card .table-mobile-cards .mobile-card-header__content {
    min-width: 0;
}

.change-history-card .table-mobile-cards .change-history-creation__fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.625rem;
    padding-left: 1.05rem;
}

.change-history-teacher-actor {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--ui-info);
    font-weight: 700;
}

.change-history-teacher-actor__icon {
    width: 1rem;
    height: 1rem;
}
html body .clickable-row,
html body .clickable-notification,
html body .clickable-note {
    cursor: pointer;
    transition:
        background-color var(--ui-transition),
        transform var(--ui-transition);
}

html body .clickable-row:hover,
html body .clickable-row:focus-visible,
html body .clickable-notification:hover,
html body .clickable-notification:focus-visible,
html body .clickable-note:hover,
html body .clickable-note:focus-visible,
html body .table-hover tbody tr.clickable-row:hover,
html body .table-hover tbody tr.clickable-row:focus-visible {
    background-color: var(--ui-surface-muted) !important;
    transform: translateY(-1px);
}

html body .clickable-row:focus-visible,
html body .clickable-notification:focus-visible,
html body .clickable-note:focus-visible {
    outline: 2px solid var(--ui-primary);
    outline-offset: -2px;
}
body.dark-mode .text-primary { color: var(--ui-primary) !important; }
body.dark-mode .text-success { color: var(--ui-success) !important; }
body.dark-mode .text-info { color: var(--ui-info) !important; }
body.dark-mode .text-warning { color: var(--ui-warning) !important; }
body.dark-mode .text-danger { color: var(--ui-danger) !important; }
body.dark-mode .text-secondary { color: var(--ui-secondary) !important; }
body.dark-mode .progress {
    background-color: var(--ui-surface-muted);
}

body.dark-mode .progress-bar {
    background-color: var(--ui-primary);
}
body.dark-mode .tooltip-inner {
    background-color: var(--ui-surface-muted);
    color: var(--ui-text);
}

body.dark-mode .tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--ui-surface-muted);
}

body.dark-mode .tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: var(--ui-surface-muted);
}

body.dark-mode .popover {
    background-color: var(--ui-surface-muted);
    border-color: var(--ui-border);
}

body.dark-mode .popover-header {
    background-color: var(--ui-surface-subtle);
    border-color: var(--ui-border);
}

body.dark-mode .popover-body {
    color: var(--ui-text);
}
body.dark-mode .nav-tabs {
    border-color: var(--ui-border);
}

body.dark-mode .nav-tabs .nav-link {
    color: var(--ui-text-muted);
    border-color: transparent;
}

body.dark-mode .nav-tabs .nav-link:hover {
    color: var(--ui-text);
    border-color: var(--ui-border) var(--ui-border) transparent;
}

body.dark-mode .nav-tabs .nav-link.active {
    color: var(--ui-text);
    background-color: var(--ui-surface);
    border-color: var(--ui-border) var(--ui-border) var(--ui-surface);
}

body.dark-mode .accordion-item {
    background-color: var(--ui-surface);
    border-color: var(--ui-border);
}

body.dark-mode .accordion-button {
    background-color: var(--ui-surface-muted);
    color: var(--ui-text);
}

body.dark-mode .accordion-button:not(.collapsed) {
    background-color: var(--ui-surface-subtle);
    color: var(--ui-text);
}

body.dark-mode .accordion-button::after {
    filter: invert(1);
}
body.dark-mode .offcanvas {
    background-color: var(--ui-surface);
}

body.dark-mode .offcanvas-header {
    border-color: var(--ui-border);
}

body.dark-mode .toast {
    background-color: var(--ui-surface-muted);
    border-color: var(--ui-border);
}

body.dark-mode .toast-header {
    background-color: var(--ui-surface-subtle);
    border-color: var(--ui-border);
    color: var(--ui-text);
}

body.dark-mode .toast-body {
    color: var(--ui-text);
}
.ck.ck-editor__editable_inline,
html.dark-mode .ck.ck-editor__editable_inline {
    background: #ffffff !important;
    color: #212529 !important;
    border-color: #ccced1 !important;
}
.ck.ck-editor__editable_inline :where(p, ol, ul, li, blockquote, pre, h1, h2, h3, h4, h5, h6, strong, em, u, label, span):not([style*="color"]) {
    color: #212529 !important;
}
.ck.ck-editor__editable_inline :where(table, td, th, .ck-editor__nested-editable),
.dark-mode .ck.ck-editor__editable_inline :where(table, td, th, .ck-editor__nested-editable),
html.dark-mode .ck.ck-editor__editable_inline :where(table, td, th, .ck-editor__nested-editable),
[data-bs-theme="dark"] .ck.ck-editor__editable_inline :where(table, td, th, .ck-editor__nested-editable) {
    background-color: #ffffff !important;
    color: #212529 !important;
    border: 1px solid #dee2e6 !important;
}
.ck.ck-editor__editable_inline th,
.dark-mode .ck.ck-editor__editable_inline th,
html.dark-mode .ck.ck-editor__editable_inline th,
[data-bs-theme="dark"] .ck.ck-editor__editable_inline th {
    background-color: #f8f9fa !important;
    font-weight: bold;
}
.ck.ck-editor__editable_inline {
    height: var(--editor-height, 480px) !important;
    min-height: var(--editor-height, 300px);
    overflow-y: auto !important;
}
@media (max-width: 1199.98px) {
    .ck.ck-editor__editable_inline {
        height: min(var(--editor-height, 480px), 450px) !important;
    }
}
@media (max-width: 991.98px) {
    .ck.ck-editor__editable_inline {
        height: min(var(--editor-height, 480px), 420px) !important;
    }
}
@media (max-width: 767.98px) {
    .ck.ck-editor__editable_inline {
        height: min(var(--editor-height, 480px), 380px) !important;
    }
}

.ck.ck-toolbar,
html.dark-mode .ck.ck-toolbar {
    background: #f8f9fa !important;
    border-color: #ccced1 !important;
}
.ck.ck-toolbar .ck-button,
html.dark-mode .ck.ck-toolbar .ck-button {
    color: #212529 !important;
}
.ck.ck-toolbar .ck-button:hover,
.ck.ck-toolbar .ck-button.ck-on,
html.dark-mode .ck.ck-toolbar .ck-button:hover,
html.dark-mode .ck.ck-toolbar .ck-button.ck-on {
    background: #e9ecef !important;
    color: #212529 !important;
    cursor: pointer;
}
.ck.ck-toolbar .ck-separator,
html.dark-mode .ck.ck-toolbar .ck-separator {
    background-color: #ccced1 !important;
}
.ck.ck-dropdown__panel,
html.dark-mode .ck.ck-dropdown__panel {
    background: #ffffff !important;
    border-color: #ccced1 !important;
}
.ck.ck-list,
html.dark-mode .ck.ck-list {
    background: #ffffff !important;
}
.ck.ck-list__item .ck-button,
html.dark-mode .ck.ck-list__item .ck-button {
    background: #ffffff !important;
    color: #212529 !important;
}
.ck.ck-list__item .ck-button:hover,
html.dark-mode .ck.ck-list__item .ck-button:hover {
    background: #e9ecef !important;
    color: #212529 !important;
}
.ck.ck-balloon-panel,
html.dark-mode .ck.ck-balloon-panel {
    background: #ffffff !important;
    border-color: #ccced1 !important;
    color: #212529 !important;
}
.ck.ck-balloon-panel input,
.ck.ck-balloon-panel textarea,
.ck.ck-balloon-panel select,
.ck.ck-balloon-panel label,
.ck.ck-balloon-panel button,
.ck.ck-balloon-panel span:not([class*="error"]):not(.ck-error) {
    color: #212529 !important;
}
.ck.ck-balloon-panel input,
.ck.ck-balloon-panel textarea,
.ck.ck-balloon-panel select,
.ck.ck-balloon-panel .ck-input {
    background-color: #ffffff !important;
    border: 1px solid #ccced1 !important;
    color: #212529 !important;
}
.ck.ck-editor__placeholder,
html.dark-mode .ck.ck-editor__placeholder {
    color: #757575 !important;
}
.app-ckeditor-content-light,
body.dark-mode .app-ckeditor-content-light,
[data-bs-theme="dark"] .app-ckeditor-content-light,
.dark-mode .app-ckeditor-content-light {
    color-scheme: light !important;
    background-color: #ffffff !important;
    color: #212529 !important;
}
.app-ckeditor-content-light :where(p, ol, ul, li, blockquote, pre, h1, h2, h3, h4, h5, h6, strong, em, u, label):not([style*="color"]),
.dark-mode .app-ckeditor-content-light :where(p, ol, ul, li, blockquote, pre, h1, h2, h3, h4, h5, h6, strong, em, u, label):not([style*="color"]),
html.dark-mode .app-ckeditor-content-light :where(p, ol, ul, li, blockquote, pre, h1, h2, h3, h4, h5, h6, strong, em, u, label):not([style*="color"]),
[data-bs-theme="dark"] .app-ckeditor-content-light :where(p, ol, ul, li, blockquote, pre, h1, h2, h3, h4, h5, h6, strong, em, u, label):not([style*="color"]) {
    color: #212529 !important;
}

.app-ckeditor-content-light span:not([style*="color"]),
.dark-mode .app-ckeditor-content-light span:not([style*="color"]),
html.dark-mode .app-ckeditor-content-light span:not([style*="color"]),
[data-bs-theme="dark"] .app-ckeditor-content-light span:not([style*="color"]) {
    color: #212529 !important;
}

.app-ckeditor-content-light a,
.dark-mode .app-ckeditor-content-light a,
html.dark-mode .app-ckeditor-content-light a,
[data-bs-theme="dark"] .app-ckeditor-content-light a {
    color: #0d6efd !important;
}
.app-ckeditor-content-light table,
.app-ckeditor-content-light table td,
.app-ckeditor-content-light table th,
.dark-mode .app-ckeditor-content-light table,
.dark-mode .app-ckeditor-content-light table td,
.dark-mode .app-ckeditor-content-light table th,
html.dark-mode .app-ckeditor-content-light table,
html.dark-mode .app-ckeditor-content-light table td,
html.dark-mode .app-ckeditor-content-light table th,
[data-bs-theme="dark"] .app-ckeditor-content-light table,
[data-bs-theme="dark"] .app-ckeditor-content-light table td,
[data-bs-theme="dark"] .app-ckeditor-content-light table th {
    background-color: #ffffff !important;
    color: #212529 !important;
    border: 1px solid #dee2e6 !important;
}

.app-ckeditor-content-light table th,
.dark-mode .app-ckeditor-content-light table th,
html.dark-mode .app-ckeditor-content-light table th,
[data-bs-theme="dark"] .app-ckeditor-content-light table th {
    background-color: #f8f9fa !important;
    font-weight: bold;
}
body.dark-mode .bg-light-subtle,
[data-bs-theme="dark"] .bg-light-subtle {
    background-color: #262626 !important;
    color: var(--ui-text) !important;
    border-color: var(--ui-border) !important;
}
body.dark-mode .bg-light,
[data-bs-theme="dark"] .bg-light {
    background-color: var(--ui-surface-muted) !important;
    color: var(--ui-text) !important;
}
body.dark-mode .bg-success-subtle:not(.badge),
[data-bs-theme="dark"] .bg-success-subtle:not(.badge) {
    background-color: #173f31 !important;
    color: #e6fff3 !important;
}
body.dark-mode .border-success,
[data-bs-theme="dark"] .border-success {
    border-color: #235646 !important;
}
html.dark-mode .shadow,
html.dark-mode .shadow-sm,
html.dark-mode .shadow-lg,
body.dark-mode .shadow,
body.dark-mode .shadow-sm,
body.dark-mode .shadow-lg {
    box-shadow: none !important;
}
.navbar {
  height: 60px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
  z-index: 1000 !important;
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  transition: transform 0.3s ease-in-out;
}
body {
  box-sizing: border-box;
  min-height: calc(100dvh - var(--app-header-height, 60px));
  padding-top: var(--app-header-height, 60px);
}
body.auth-layout {
  min-height: 100dvh !important;
  padding-top: 0 !important;
}
.navbar .btn {
  transition: all 0.3s ease;
}

.navbar .btn:hover {
  transform: scale(1.05);
  animation: buttonPulse 0.6s ease-in-out;
}

.navbar .app-header-search-clear:hover,
.navbar .app-header-search-submit:hover {
  transform: translateY(-50%) !important;
  animation: none !important;
}

@keyframes buttonPulse {
  0%, 100% { transform: scale(1.05); }
  50% { transform: scale(1.1); }
}
.navbar .badge {
  animation: badgeBounce 2s ease-in-out infinite;
  animation-delay: 2s;
}

@keyframes badgeBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) scale(1);
  }
  40% {
    transform: translateY(-3px) scale(1.1);
  }
  60% {
    transform: translateY(-1px) scale(1.05);
  }
}
.notifications-container {
  max-height: 360px;
  overflow-y: auto;
}
.dropdown-item:hover {
  background-color: rgba(0,0,0,0.05);
}

.dropdown-item .dropdown-fa-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  vertical-align: middle;
  flex: 0 0 24px;
}
.dropdown-menu {
  animation: fadeInDown 0.2s ease-out;
  z-index: 9999 !important;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.app-header .badge {
  transition: all 0.2s ease;
}
.btn-link:hover {
  background-color: rgba(0,0,0,0.05);
  border-radius: 50%;
}
.dropdown-menu-notification {
  border: none;
  background-color: transparent !important;
  box-shadow: none !important;
  z-index: 1060 !important;
  padding: 0 !important;
  min-width: 0 !important;
  width: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
.notification-overlay,
.notification-overlay-mobile {
  z-index: 1060 !important;
}

#notifications-container {
  min-width: 0 !important;
  overflow: visible !important;
}

.notification-load-more {
  background-color: rgba(0, 0, 0, 0.02);
}

.notification-load-more .btn {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.notification-overlay {
  pointer-events: auto;
}

.notification-item, .notification-load-more {
  pointer-events: auto;
}

.notification-load-more button {
  pointer-events: auto;
}
.notification-toast {
  position: absolute;
  top: 46px;
  right: -4px;
  width: 320px;
  max-width: calc(100vw - 24px);
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #dde5ef;
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.16);
  padding: 12px;
  z-index: 10001;
  transform: translateY(-6px);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  min-width: 260px;
  white-space: normal;
  pointer-events: none;
  line-height: 1.4;
}

.notification-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.notification-toast::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 22px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-left: 1px solid #dde5ef;
  border-top: 1px solid #dde5ef;
  transform: rotate(45deg);
}

.notification-toast__content {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.notification-toast__icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
}

.notification-toast__icon [data-feather] {
  width: 16px;
  height: 16px;
}

.notification-toast__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.notification-toast__title {
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}

.notification-toast__message {
  display: -webkit-box;
  overflow: hidden;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  text-overflow: ellipsis;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.notification-pulse {
  animation: notificationPulse 2s ease-in-out;
}

@keyframes notificationPulse {
  0%, 100% { transform: scale(1); }
  10%, 30%, 50%, 70%, 90% { transform: scale(1.1); }
  20%, 40%, 60%, 80% { transform: scale(1.05); }
}
.notification-loading-icon {
  background-color: white;
  border-radius: 50%;
  padding: 1px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  animation: notificationLoadingPulse 1.5s ease-in-out infinite;
}

.notification-reload-loading {
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
}

.notification-reload-loading:not(.d-none) {
  display: inline-flex;
}

@keyframes notificationLoadingPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}
.notification-auto-refresh-icon {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 2px 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.auto-refresh-dots {
  display: flex;
  gap: 2px;
  align-items: center;
}

.auto-refresh-dots .dot {
  width: 3px;
  height: 3px;
  background-color: #6c757d;
  border-radius: 50%;
  animation: autoRefreshDots 1.4s ease-in-out infinite both;
}

.auto-refresh-dots .dot:nth-child(1) {
  animation-delay: -0.32s;
}

.auto-refresh-dots .dot:nth-child(2) {
  animation-delay: -0.16s;
}

.auto-refresh-dots .dot:nth-child(3) {
  animation-delay: 0s;
}

@keyframes autoRefreshDots {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}
.modal-content {
  background-color: rgba(255, 255, 255, 0.95);
}

.account-switcher-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.account-switcher-item:hover {
  border-color: #007bff;
  background-color: #f8f9fa;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.account-switcher-item.current-account {
  border-color: #28a745;
  background-color: #f8fff8;
}

.account-switcher-item.current-account .badge {
  background-color: #28a745 !important;
}
.account-item {
  border-radius: 8px;
  transition: all 0.2s ease;
}

.account-item:hover:not(.current-account) {
  background-color: #f8f9fa;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.account-item.current-account {
  background-color: #f8fff8;
  border-left: 4px solid #28a745;
}

.account-item.current-account .badge {
  background-color: #28a745 !important;
}
@media (max-width: 767.98px) {
  .navbar {
    height: 54px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .navbar .btn:hover {
    transform: none;
    animation: none;
  }
  .navbar .badge {
    animation: badgeBounceMobile 3s ease-in-out infinite;
    animation-delay: 2s;
  }

  @keyframes badgeBounceMobile {
    0%, 20%, 50%, 80%, 100% {
      transform: translateY(0) scale(1);
    }
    40% {
      transform: translateY(-2px) scale(1.05);
    }
    60% {
      transform: translateY(-1px) scale(1.02);
    }
  }

  .notification-toast {
    position: fixed;
    top: 70px;
    right: 16px;
    left: auto;
    width: min(320px, calc(100vw - 32px));
    max-width: 320px;
    min-width: auto;
    padding: 12px;
    transform: translateY(-8px);
  }

  .notification-toast.show {
    transform: translateY(0);
  }

  .notification-toast::before {
    display: none;
  }

  .notification-toast__message {
    font-size: 0.78rem;
  }

  .notification-toast__icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
  .dropdown-menu-notification {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    pointer-events: none;
  }

  .dropdown-menu-notification.show {
    display: block !important;
  }

  #desktop-notifications-container {
    display: none !important;
  }

  #mobile-notifications-container {
    display: none;
  }
}
body.dark-mode .navbar {
  background-color: #1e1e1e !important;
  border-color: #444;
}

body.dark-mode .navbar .navbar-brand {
  color: #e0e0e0 !important;
}
body.dark-mode .dropdown-menu {
  background-color: #2a2a2a;
  border-color: #444;
}

body.dark-mode .dropdown-item {
  color: #e0e0e0;
}

body.dark-mode .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.075);
  color: #e0e0e0;
}

body.dark-mode .dropdown-header {
  color: #a0a0a0;
}

body.dark-mode .dropdown-divider {
  border-color: #444;
}
body.dark-mode .btn-link:hover {
  background-color: rgba(255, 255, 255, 0.075);
}
body.dark-mode .notification-overlay,
body.dark-mode .notification-overlay-mobile {
  background-color: #2a2a2a;
  border-color: #444;
}

body.dark-mode .notification-load-more {
  background-color: rgba(255, 255, 255, 0.02);
}
body.dark-mode .modal-content {
  background-color: rgba(30, 30, 30, 0.95);
  border-color: #444;
}

body.dark-mode .modal-header {
  border-color: #444;
}

body.dark-mode .modal-title {
  color: #e0e0e0;
}

body.dark-mode .account-switcher-item {
  border-color: #444;
  background-color: #2a2a2a;
}

body.dark-mode .account-switcher-item:hover {
  border-color: #4dabf7;
  background-color: #333;
}

body.dark-mode .account-switcher-item.current-account {
  border-color: #28a745;
  background-color: #1a3d1a;
}

body.dark-mode .account-item {
  color: #e0e0e0;
}

body.dark-mode .account-item:hover:not(.current-account) {
  background-color: #333;
}

body.dark-mode .account-item.current-account {
  background-color: #1a3d1a;
  border-left-color: #28a745;
}
body.dark-mode .text-muted {
  color: #a0a0a0 !important;
}

body.dark-mode .small.text-muted {
  color: #888 !important;
}
body.dark-mode .app-header .badge.bg-primary {
  background-color: #4dabf7 !important;
}

body.dark-mode .app-header .badge.bg-success {
  background-color: #28a745 !important;
}
body.dark-mode .notification-toast {
  background: #242424;
  border-color: #444;
  color: #e0e0e0;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
}

body.dark-mode .notification-toast::before {
  background: #242424;
  border-color: #444;
}

body.dark-mode .notification-toast__icon {
  background: #303030;
  border-color: #444;
  color: #cbd5e1;
}

body.dark-mode .notification-toast__title {
  color: #f8fafc;
}

body.dark-mode .notification-toast__message {
  color: #cbd5e1;
}

body.dark-mode .notification-loading-icon {
  background-color: #2a2a2a;
}

body.dark-mode .notification-auto-refresh-icon {
  background-color: rgba(42, 42, 42, 0.9);
}

body.dark-mode .auto-refresh-dots .dot {
  background-color: #a0a0a0;
}
.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}
.rounded-circle {
  border-radius: 50% !important;
}
.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.btn-outline-danger {
  color: #dc3545;
  border-color: #dc3545;
}

.btn-outline-danger:hover {
  background-color: #dc3545;
  border-color: #dc3545;
  color: #fff;
}

body.dark-mode .btn-outline-danger {
  color: #f5c6cb;
  border-color: #f5c6cb;
}

body.dark-mode .btn-outline-danger:hover {
  background-color: #dc3545;
  border-color: #dc3545;
  color: #fff;
}
.theme-overlay {
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.theme-overlay.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.theme-overlay-header {
  padding: 16px;
  border-bottom: 1px solid #e0e0e0;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.theme-overlay-header .btn-close {
  display: block !important;
}

.theme-overlay-header h6 {
  margin: 0;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.theme-overlay-body {
  padding: 16px;
}

.theme-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.theme-option:last-child {
  border-bottom: none;
}

.theme-option-info {
  flex: 1;
}

.theme-option-label {
  font-weight: 500;
  color: #333;
  font-size: 13px;
  margin-bottom: 2px;
}

.theme-option-description {
  font-size: 11px;
  color: #666;
  line-height: 1.3;
}

.theme-toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: #ddd;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.theme-toggle-switch.active {
  background: #007bff;
}

.theme-toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.theme-toggle-switch.active::after {
  transform: translateX(20px);
}

.theme-toggle-switch.disabled,
.theme-overlay .theme-toggle-switch.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.auto-dark-mode-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.auto-dark-mode-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.auto-dark-mode-label {
  font-weight: 500;
  color: #333;
  font-size: 13px;
}

.auto-dark-mode-description {
  font-size: 11px;
  color: #666;
  margin-bottom: 12px;
  line-height: 1.4;
}

.time-range-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.time-input {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 12px;
  text-align: center;
}

.time-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.time-separator {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.theme-overlay-footer {
  padding: 12px 16px;
  border-top: 1px solid #f0f0f0;
  background: #f8f9fa;
  border-radius: 0 0 8px 8px;
  display: flex;
  gap: 8px;
}

.theme-btn {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  color: #333;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-btn:hover {
  background: #f0f0f0;
  border-color: #ccc;
}

.theme-btn.primary {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.theme-btn.primary:hover {
  background: #0056b3;
  border-color: #0056b3;
}
.auto-mode-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #666;
  margin-top: 8px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #28a745;
}

.status-indicator.inactive {
  background: #dc3545;
}
body.dark-mode .theme-overlay {
  background: #2a2a2a;
  border-color: #444;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

body.dark-mode .theme-overlay-header {
  background: #333;
  border-color: #444;
}

body.dark-mode .theme-overlay-header h6 {
  color: #e0e0e0;
}

body.dark-mode .theme-overlay-footer {
  background: #333;
  border-color: #444;
}

body.dark-mode .theme-option {
  border-color: #444;
}

body.dark-mode .theme-option-label {
  color: #e0e0e0;
}

body.dark-mode .theme-option-description {
  color: #a0a0a0;
}

body.dark-mode .auto-dark-mode-label {
  color: #e0e0e0;
}

body.dark-mode .auto-dark-mode-description {
  color: #a0a0a0;
}

body.dark-mode .time-input {
  background: #333;
  border-color: #555;
  color: #e0e0e0;
}

body.dark-mode .time-input:focus {
  border-color: #4dabf7;
  box-shadow: 0 0 0 2px rgba(77, 171, 247, 0.25);
}

body.dark-mode .time-separator {
  color: #a0a0a0;
}

body.dark-mode .theme-btn {
  background: #333;
  border-color: #555;
  color: #e0e0e0;
}

body.dark-mode .theme-btn:hover {
  background: #444;
  border-color: #666;
}

body.dark-mode .theme-btn.primary {
  background: #4dabf7;
  border-color: #4dabf7;
  color: #000;
}

body.dark-mode .theme-btn.primary:hover {
  background: #6bc4ff;
  border-color: #6bc4ff;
}

body.dark-mode .auto-mode-status {
  color: #a0a0a0;
}

body.dark-mode .auto-dark-mode-section {
  background-color: rgba(255, 255, 255, 0.02);
  border-color: #444;
}

.time-display {
  text-align: center;
  padding: 4px 12px;
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.03);
  min-width: 100px;
}

.current-time {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: #333;
  letter-spacing: 0.3px;
}

.current-date {
  font-size: 10px;
  line-height: 1.2;
  color: #666;
  margin-top: 1px;
}
body.dark-mode .time-display {
  background-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .current-time {
  color: #e0e0e0;
}

body.dark-mode .current-date {
  color: #a0a0a0;
}

.php-memory-display {
  text-align: center;
  padding: 4px 12px;
  border-radius: 6px;
  background-color: rgba(13, 110, 253, 0.08);
  min-width: 132px;
  max-width: 160px;
  line-height: 1.2;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.php-memory-display:hover {
  background-color: rgba(13, 110, 253, 0.14);
  transform: translateY(-1px);
}

.php-memory-label {
  font-size: 10px;
  color: #0d6efd;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.php-memory-value {
  font-size: 12px;
  color: #333;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.dark-mode .php-memory-display {
  background-color: rgba(77, 171, 247, 0.12);
}

body.dark-mode .php-memory-label {
  color: #74c0fc;
}

body.dark-mode .php-memory-value {
  color: #e0e0e0;
}

@media (max-width: 768px) {
  .theme-overlay,
  .theme-overlay.show,
  body > .theme-overlay,
  #theme-toggler-item .theme-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    z-index: 9999 !important;
    border-radius: 0 !important;
    border: none !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 !important;
    inset: 0 !important;
    box-shadow: none !important;
    background: #ffffff !important;
  }
  body.dark-mode .theme-overlay,
  body.dark-mode .theme-overlay.show,
  body.dark-mode > .theme-overlay,
  body.dark-mode #theme-toggler-item .theme-overlay {
    background: #2a2a2a !important;
  }
  .theme-overlay:not(.show) {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(100%) !important;
    transition: all 0.3s ease !important;
  }
  .theme-overlay.show,
  body > .theme-overlay.show,
  #theme-toggler-item .theme-overlay.show,
  .theme-overlay.show[style],
  body > .theme-overlay.show[style] {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    transition: all 0.3s ease !important;
  }
  @media (max-width: 768px) {
    .theme-overlay.show {
      opacity: 1 !important;
      visibility: visible !important;
      transform: translateY(0) !important;
    }
  }
  .theme-overlay-header {
    padding: 20px !important;
    border-radius: 0 !important;
    border-bottom: 1px solid #e0e0e0 !important;
    flex-shrink: 0 !important;
    position: relative !important;
  }

  .theme-overlay-header h6 {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    padding-right: 50px !important;
  }

  .theme-overlay-header .btn-close {
    position: absolute !important;
    top: 50% !important;
    right: 20px !important;
    transform: translateY(-50%) !important;
    width: 36px !important;
    height: 36px !important;
    background: rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    cursor: pointer !important;
    color: #333 !important;
    opacity: 1 !important;
  }

  .theme-overlay-header .btn-close:before {
    content: "×" !important;
    font-size: 20px !important;
    line-height: 1 !important;
  }

  .theme-overlay-header .btn-close:hover {
    background: rgba(0, 0, 0, 0.2) !important;
  }
  .theme-overlay-body {
    flex: 1 !important;
    padding: 20px !important;
    overflow-y: auto !important;
  }

  .theme-option {
    padding: 20px 0 !important;
    border-bottom: 1px solid #e9ecef !important;
  }

  .theme-option:last-child {
    border-bottom: none !important;
  }

  .theme-option-label {
    font-size: 16px !important;
    margin-bottom: 6px !important;
  }

  .theme-option-description {
    font-size: 14px !important;
  }

  .auto-dark-mode-label {
    font-size: 16px !important;
  }

  .auto-dark-mode-description {
    font-size: 14px !important;
    margin-bottom: 20px !important;
  }

  .time-range-inputs {
    flex-direction: column !important;
    gap: 15px !important;
  }

  .time-input {
    width: 100% !important;
    padding: 15px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
  }

  .theme-toggle-switch {
    width: 56px !important;
    height: 32px !important;
  }

  .theme-toggle-switch::after {
    width: 28px !important;
    height: 28px !important;
    top: 2px !important;
    left: 2px !important;
  }

  .theme-toggle-switch.active::after {
    transform: translateX(24px) !important;
  }
  .theme-overlay-footer {
    padding: 20px !important;
    border-radius: 0 !important;
    border-top: 1px solid #e0e0e0 !important;
    flex-shrink: 0 !important;
    flex-direction: column !important;
    gap: 15px !important;
  }

  .theme-btn {
    width: 100% !important;
    padding: 16px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
  }
  body.theme-overlay-open {
    overflow: hidden !important;
  }
  .theme-overlay[style] {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body > .theme-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  body.dark-mode .theme-overlay-header .btn-close {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #e0e0e0 !important;
  }

  body.dark-mode .theme-overlay-header .btn-close:hover {
    background: rgba(255, 255, 255, 0.2) !important;
  }
}
#headerSidebarToggle {
  color: #6c757d;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #dee2e6;
  background: #ffffff;
  transition: all 0.2s ease;
}

#headerSidebarToggle:hover {
  color: #495057;
  background: #f8f9fa;
  border-color: #adb5bd;
}

#headerSidebarToggle:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

#headerSidebarToggle .fas {
  font-size: 1.1rem;
}
body.dark-mode #headerSidebarToggle {
  color: #e0e0e0;
  background: #2a2a2a;
  border-color: #444;
}

body.dark-mode #headerSidebarToggle:hover {
  color: #ffffff;
  background: #333;
  border-color: #555;
}
body.dark-mode #session-expired-overlay {
  background-color: rgba(0, 0, 0, 0.75);
}
body.dark-mode #session-expired-overlay > div {
  background-color: #2a2a2a !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
  border: 1px solid #444;
}
body.dark-mode #session-expired-overlay > div > div:first-child {
  color: #e0e0e0 !important;
}

body.dark-mode #session-expired-overlay > div > div:first-child i {
  color: #e0e0e0;
  stroke: #e0e0e0;
}
body.dark-mode #session-expired-overlay > div > div:nth-child(2) {
  color: #a0a0a0 !important;
}
body.dark-mode #session-expired-overlay > div > div:last-child > button:first-child {
  background-color: var(--primary-color, #4dabf7) !important;
  color: #000 !important;
  border: none !important;
}

body.dark-mode #session-expired-overlay > div > div:last-child > button:first-child:hover {
  background-color: #6bc4ff !important;
}
body.dark-mode #session-expired-overlay > div > div:last-child > button:last-child {
  background-color: #333 !important;
  color: #e0e0e0 !important;
  border-color: #555 !important;
}

body.dark-mode #session-expired-overlay > div > div:last-child > button:last-child:hover {
  background-color: #444 !important;
  border-color: #666 !important;
}

.navbar.app-header {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  height: 60px;
  padding: 0;
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid #dde5ef !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07) !important;
  backdrop-filter: blur(14px);
  transition: background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.app-header .app-header-inner {
  display: flex !important;
  align-items: center !important;
  height: 100%;
  gap: 0.35rem;
}

.app-header .navbar-brand,
.app-header .nav-link,
.app-header .btn {
  min-height: 0;
}

.app-header-brand {
  gap: 0;
  min-width: 0;
  overflow: visible;
  padding: 0.5rem 1.18rem 0.5rem 0.24rem;
  border-radius: 8px;
  color: #334155 !important;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.app-header-brand.has-pack-badge {
  margin-right: 0.8rem !important;
}

.app-header-brand:hover {
  background: #eef6ff;
  color: #1d4ed8 !important;
  transform: translateX(1px);
}

.app-header-brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  overflow: visible;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 8px;
  background: #f8fafc;
}

.app-header-brand-mark img {
  display: block;
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.app-header-pack-label {
  position: absolute;
  right: -1.15rem;
  bottom: -0.42rem;
  z-index: 3;
  align-items: center;
  min-height: 18px;
  max-width: 82px;
  padding: 0.2rem 0.48rem;
  border: 2px solid #fff;
  border-radius: 999px;
  font-size: 0.62rem;
  line-height: 1;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
  animation: none !important;
  transform: none !important;
}

.pack-badge-desktop.app-header-pack-label {
  max-width: 96px;
}

.app-header-actions {
  gap: 0.24rem;
}

.app-header .header-icon-button,
#headerSidebarToggle.header-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0 !important;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.app-header .header-icon-button:hover,
.app-header .header-icon-button:focus,
#headerSidebarToggle.header-icon-button:hover,
#headerSidebarToggle.header-icon-button:focus {
  background: #eef6ff;
  border-color: rgba(37, 99, 235, 0.14);
  color: #1d4ed8;
  transform: translateY(-1px);
  animation: none;
  box-shadow: none;
}

.app-header .header-icon-button svg,
.app-header .header-icon-button [data-feather],
#headerSidebarToggle.header-icon-button svg {
  width: 18px;
  height: 18px;
}

.app-header .btn:hover {
  animation: none;
}

.app-header .badge {
  animation: none !important;
}

#notification-bell.dropdown-toggle::after {
  display: none;
}

#notification-bell .badge {
  min-width: 17px;
  height: 17px;
  padding: 0 0.3rem;
  border: 2px solid #fff;
  font-size: 0.62rem;
  line-height: 13px;
}

.app-header-user {
  min-height: 42px;
  gap: 0.25rem;
  padding: 0.25rem 0.42rem !important;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #334155 !important;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.app-header-user-item {
  position: relative;
}

.app-header-user-birthday-trigger {
  top: calc(50% + 1px);
  right: auto;
  bottom: auto;
  left: 27px;
  z-index: 13;
}

.app-header-user-meta {
  min-width: 0;
}

.app-header-user-dropdown-identity {
  padding: 0.7rem 0.8rem 0.6rem !important;
  white-space: normal !important;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 0.2rem;
}

.app-header-user-dropdown-name {
  color: #334155;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  word-break: break-word;
}

.app-header-user-dropdown-meta {
  margin-top: 0.22rem;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.4;
  word-break: break-word;
}

.app-header-user:hover,
.app-header-user:focus {
  background: #f8fafc;
  border-color: #dde5ef;
  color: #1d4ed8 !important;
}

.app-header-user img.rounded-circle,
.app-header-user .rounded-circle {
  width: 34px !important;
  height: 34px !important;
  margin-right: 0.54rem !important;
  border: 1px solid rgba(37, 99, 235, 0.16);
}

.app-header-user .fw-semibold {
  max-width: 260px;
  color: #334155 !important;
  font-size: 0.86rem;
  line-height: 1.12;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-header-user .small.text-muted {
  max-width: 260px;
  color: #64748b !important;
  font-size: 0.72rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-header-user-menu {
  z-index: 2000 !important;
  min-width: 260px;
  padding: 0.45rem;
  border: 1px solid #dde5ef !important;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16) !important;
}

.app-header-user-menu .dropdown-item {
  display: flex;
  align-items: center;
  min-height: 36px;
  border-radius: 7px;
  font-size: 0.9rem;
}

.app-header-more-menu {
  min-width: 248px;
  padding: 0.45rem;
  border: 1px solid #dde5ef !important;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16) !important;
}

.header-more-status,
.app-header-more-menu .header-more-action {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  width: 100%;
  min-height: 42px;
  padding: 0.55rem 0.64rem;
  border-radius: 7px;
}

.header-more-status {
  margin-bottom: 0.2rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.header-more-status-icon,
.app-header-more-menu .header-more-action > svg,
.app-header-more-menu .header-more-action > [data-feather] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: #64748b;
}

.header-more-status-copy,
.app-header-more-menu .header-more-action > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.header-more-status-title,
.header-more-action-title {
  color: #334155;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
}

.header-more-status-subtitle,
.header-more-action-subtitle {
  color: #64748b;
  font-size: 0.72rem;
  line-height: 1.2;
}

.app-header-more-menu .header-more-action {
  color: #334155;
  font-size: 0.9rem;
  font-weight: 600;
}

.app-header-more-menu .header-more-action:hover,
.app-header-more-menu .header-more-action:focus {
  background: #eef6ff;
  color: #1d4ed8;
}

.app-header-more-menu .header-more-action:hover > svg,
.app-header-more-menu .header-more-action:focus > svg {
  color: #1d4ed8;
}

@media (max-width: 1399.98px) {
  #header-tour-launcher {
    display: none !important;
  }
}

.time-display,
.php-memory-display {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: none;
}

.time-display {
  min-width: 112px;
  padding: 0.35rem 0.7rem;
}

.php-memory-display {
  min-width: 132px;
  padding: 0.34rem 0.7rem;
}

.current-time,
.php-memory-value {
  color: #334155;
}

.current-date,
.php-memory-label {
  color: #64748b;
}

body.dark-mode .navbar.app-header {
  background: #1e1e1e !important;
  border-bottom-color: #444 !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18) !important;
}

body.dark-mode .app-header-brand {
  color: #e0e0e0 !important;
}

body.dark-mode .app-header-brand:hover,
body.dark-mode .app-header .header-icon-button:hover,
body.dark-mode .app-header .header-icon-button:focus,
body.dark-mode #headerSidebarToggle.header-icon-button:hover,
body.dark-mode #headerSidebarToggle.header-icon-button:focus {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.1);
  color: #6bc4ff;
}

body.dark-mode .app-header-brand-mark {
  background: #242424;
  border-color: #444;
}

body.dark-mode .app-header-pack-label {
  border-color: #1e1e1e;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.32);
}

body.dark-mode .app-header .header-icon-button,
body.dark-mode #headerSidebarToggle.header-icon-button {
  color: #a0a0a0;
  background: transparent;
  border-color: transparent;
}

body.dark-mode #notification-bell .badge {
  border-color: #1e1e1e;
}

body.dark-mode .app-header-user {
  color: #e0e0e0 !important;
}

body.dark-mode .app-header-user:hover,
body.dark-mode .app-header-user:focus {
  background: rgba(255, 255, 255, 0.075);
  border-color: #444;
  color: #6bc4ff !important;
}

body.dark-mode .app-header-user img.rounded-circle,
body.dark-mode .app-header-user .rounded-circle {
  border-color: #444;
}

body.dark-mode .app-header-user .fw-semibold {
  color: #e0e0e0 !important;
}

body.dark-mode .app-header-user .small.text-muted {
  color: #a0a0a0 !important;
}

body.dark-mode .app-header-user-dropdown-identity {
  border-bottom-color: #444;
}

body.dark-mode .app-header-user-dropdown-name {
  color: #e8e8e8;
}

body.dark-mode .app-header-user-dropdown-meta {
  color: #a0a0a0;
}

body.dark-mode .app-header-user-menu {
  background: #2a2a2a;
  border-color: #444 !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32) !important;
}

body.dark-mode .app-header-more-menu {
  background: #2a2a2a;
  border-color: #444 !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32) !important;
}

body.dark-mode .header-more-status {
  background: #242424;
  border-color: #444;
}

body.dark-mode .header-more-status-title,
body.dark-mode .header-more-action-title,
body.dark-mode .app-header-more-menu .header-more-action {
  color: #e0e0e0;
}

body.dark-mode .header-more-status-subtitle,
body.dark-mode .header-more-action-subtitle,
body.dark-mode .header-more-status-icon,
body.dark-mode .app-header-more-menu .header-more-action > svg {
  color: #a0a0a0;
}

body.dark-mode .app-header-more-menu .header-more-action:hover,
body.dark-mode .app-header-more-menu .header-more-action:focus {
  background: rgba(255, 255, 255, 0.075);
  color: #6bc4ff;
}

body.dark-mode .time-display,
body.dark-mode .php-memory-display {
  background: #242424;
  border-color: #444;
}

@media (max-width: 767.98px) {
  .navbar.app-header {
    height: 60px;
  }

  .app-header .app-header-inner {
    padding-right: 0.65rem;
    padding-left: 0.65rem;
    gap: 0.2rem;
  }

  .app-header-brand {
    padding: 0.5rem 0.88rem 0.5rem 0.2rem;
  }

  .app-header-brand.has-pack-badge {
    margin-right: 0.45rem !important;
  }

  .app-header-brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .app-header-brand-mark img {
    width: 30px;
    height: 30px;
  }

  .app-header .header-icon-button,
  #headerSidebarToggle.header-icon-button {
    width: 36px;
    height: 36px;
  }

  .app-header-pack-label {
    right: -0.72rem;
    bottom: -0.34rem;
    min-height: 16px;
    max-width: 50px;
    padding: 0.18rem 0.36rem;
    font-size: 0.52rem;
  }

  .app-header-user {
    padding: 0.2rem !important;
  }

  .app-header-user img.rounded-circle,
  .app-header-user .rounded-circle {
    margin-right: 0 !important;
  }
}

@media (max-width: 991.98px) {
  .app-header-user img.rounded-circle,
  .app-header-user .rounded-circle {
    margin-right: 0 !important;
  }
}

.app-header .app-header-inner {
  min-width: 0;
  flex-wrap: nowrap;
}

.app-header-brand,
.app-header-actions {
  flex: 0 0 auto;
}

.app-header-search {
  min-width: 180px;
  max-width: min(560px, 42vw);
}

@media (max-width: 1199.98px) {
  .app-header-search {
    min-width: 140px;
    max-width: none;
    margin-right: 0.5rem !important;
    margin-left: 0.5rem !important;
  }

  .app-header-actions {
    gap: 0.25rem;
  }
}

@media (max-width: 991.98px) {
  .app-header-search {
    min-width: 0;
  }

  .app-header-actions > .nav-item {
    margin-right: 0.35rem !important;
  }
}

@media (max-width: 575.98px) {
  .app-header .app-header-inner {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    gap: 0.1rem;
  }

  .app-header-actions > .nav-item {
    margin-right: 0.18rem !important;
  }

  .app-header-brand.has-pack-badge {
    margin-right: 0.25rem !important;
  }

  .app-header .header-icon-button,
  #headerSidebarToggle.header-icon-button {
    width: 34px;
    height: 34px;
  }

  #header-mobile-more-actions {
    position: static !important;
  }

  .app-header-more-menu {
    right: 8px !important;
    left: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .navbar.app-header,
  .navbar.app-header *,
  .app-header-user-menu {
    transition: none !important;
    animation: none !important;
  }
}
:root {
  --app-header-height: 60px;
  --app-sidebar-width: 304px;
  --app-sidebar-mini-width: 72px;
  --app-chatbot-width: 400px;
}
#chatbot-sidebar {
  position: fixed;
  top: var(--app-header-height);
  right: calc(0px - var(--app-chatbot-width));
  width: var(--app-chatbot-width);
  height: calc(100vh - var(--app-header-height));
  background-color: #fff;
  box-shadow: none;
  transition: right 0.3s ease;
  z-index: 100;
  overflow-y: auto;
}

#chatbot-sidebar.show {
  right: 0;
}
#chatbot-sidebar.show ~ .chatbot-toggle,
#chatbot-sidebar.show + .chatbot-toggle {
  display: none !important;
}

.chatbot-toggle {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 100;
  height: 80px;
  width: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  padding: 0;
  border-right: none;
  box-shadow: none;
  font-size: 12px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.chatbot-toggle:hover {
  width: 32px;
  min-width: 32px;
  right: 0;
  transform: translateY(-50%);
}

.content-shifted {
  transition: width 0.3s ease, max-width 0.3s ease;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (min-width: 768px) {
  .content-shifted.active {
    width: calc(100% - var(--app-chatbot-width));
    max-width: calc(100% - var(--app-chatbot-width));
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .content-shifted.active {
    width: calc(100% - min(380px, 52vw));
    max-width: calc(100% - min(380px, 52vw));
  }
}

.chatbot-header {
  padding: 15px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-body {
  height: calc(100vh - 186px);
  overflow-y: auto;
  padding: 15px;
}

.chatbot-input {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background: #fff;
  border-top: 1px solid #e0e0e0;
}
.dropdown-menu,
.dropdown-menu-notification,
.notification-overlay,
.notification-overlay-mobile {
  z-index: 1030 !important;
}
main {
  width: calc(100% - var(--app-sidebar-width));
  max-width: calc(100% - var(--app-sidebar-width));
  min-width: 0;
  margin-left: var(--app-sidebar-width);
  padding-top: 20px;
  transition:
    margin-left 0.3s ease,
    width 0.3s ease,
    max-width 0.3s ease;
}

#sidebar.minimal ~ main {
  width: calc(100% - var(--app-sidebar-mini-width));
  max-width: calc(100% - var(--app-sidebar-mini-width));
  margin-left: var(--app-sidebar-mini-width);
}
main.no-sidebar {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
}
body.hybrid-frame main.hybrid-frame-main {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  padding-top: 0 !important;
}
@media (min-width: 768px) {
  body.hybrid-frame .modal-dialog:not(.modal-sm):not(.modal-lg):not(.modal-xl):not([class*="modal-fullscreen"]) {
    --bs-modal-width: min(600px, calc(100vw - 2rem));
  }

  .work-schedule-assignment-modal {
    --bs-modal-width: min(900px, calc(100vw - 2rem));
  }

  body.hybrid-frame .work-schedule-assignment-modal {
    --bs-modal-width: min(1120px, calc(100vw - 2rem));
  }
}

.work-schedule-toggle-card__body {
  min-width: 0;
}

.work-schedule-toggle-card .form-check-label,
.work-schedule-toggle-card .form-text {
  overflow-wrap: anywhere;
}

@media (min-width: 992px) {
  body.hybrid-frame .modal-dialog.modal-lg,
  body.hybrid-frame .modal-dialog.modal-xl {
    --bs-modal-width: min(1120px, calc(100vw - 2rem));
  }
}

@media (min-width: 1200px) {
  body.hybrid-frame .modal-dialog.modal-xl {
    --bs-modal-width: min(1520px, calc(100vw - 1.5rem));
  }
}
@media (max-width: 767.98px) {
  #chatbot-sidebar {
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    z-index: 9999;
  }

  #chatbot-sidebar.show {
    right: 0;
  }

  .content-shifted.active {
    width: 100%;
  }

  .chatbot-body {
    height: calc(100vh - 130px);
  }

  main {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
  }
}
#theme-toggle .theme-icon-sun {
  display: none;
}

#theme-toggle .theme-icon-moon {
  display: inline-block;
}

body.dark-mode #theme-toggle .theme-icon-sun {
  display: inline-block;
}

body.dark-mode #theme-toggle .theme-icon-moon {
  display: none;
}
html.dark-mode,
body.dark-mode {
  background-color: #121212 !important;
  color: #e0e0e0;
}

body.dark-mode .bg-white,
body.dark-mode .modal-content,
body.dark-mode .card,
body.dark-mode #sidebar,
body.dark-mode .navbar,
body.dark-mode #chatbot-sidebar,
body.dark-mode .chatbot-input,
body.dark-mode .offcanvas {
  background-color: #1e1e1e !important;
}

body.dark-mode .bg-light {
  background-color: #2a2a2a !important;
}

html.dark-mode .table,
body.dark-mode .table {
  --bs-table-color: var(--ui-text);
  --bs-table-striped-color: var(--ui-text);
  --bs-table-hover-color: var(--ui-text);
}

html.dark-mode .table .sortable-header.text-dark,
body.dark-mode .table .sortable-header.text-dark,
html.dark-mode .table > :not(caption) > * > * .text-dark:not(.badge):not(.btn):not([class*="bg-"]),
body.dark-mode .table > :not(caption) > * > * .text-dark:not(.badge):not(.btn):not([class*="bg-"]) {
  color: var(--ui-text) !important;
}

html.dark-mode .fee-voucher-payment-account-name,
body.dark-mode .fee-voucher-payment-account-name {
  color: var(--ui-text) !important;
}

body.dark-mode .text-body,
body.dark-mode .form-control,
body.dark-mode .form-select,
body.dark-mode .table,
body.dark-mode .dropdown-item,
body.dark-mode .offcanvas,
html.dark-mode .text-body,
html.dark-mode .form-control,
html.dark-mode .form-select,
html.dark-mode .table,
html.dark-mode .dropdown-item,
html.dark-mode .offcanvas {
  color: #e0e0e0 !important;
}

body.dark-mode .text-body-secondary,
html.dark-mode .text-body-secondary {
  color: var(--ui-text-muted) !important;
}

body.dark-mode .text-body-tertiary,
html.dark-mode .text-body-tertiary {
  color: var(--ui-text-soft) !important;
}

body.dark-mode .text-muted {
  color: #a0a0a0 !important;
}

body.dark-mode .border-bottom,
body.dark-mode .border-top,
body.dark-mode .border,
body.dark-mode .modal-header,
body.dark-mode .modal-footer,
body.dark-mode .dropdown-divider,
body.dark-mode .chatbot-header {
  border-color: #333 !important;
}

body.dark-mode .shadow-sm {
  box-shadow: none !important;
}

body.dark-mode .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}
body.dark-mode #sidebar .nav-link {
  color: #a0a0a0;
}

body.dark-mode #sidebar .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

body.dark-mode #sidebar .nav-link.active {
  background-color: rgba(0, 123, 255, 0.2);
  color: #4dabf7;
}

body.dark-mode .offcanvas .nav-link {
  color: #a0a0a0;
}

body.dark-mode .offcanvas .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

body.dark-mode .offcanvas .nav-link.active {
  background-color: rgba(0, 123, 255, 0.2);
  color: #4dabf7;
}
body.dark-mode .dropdown-menu {
  background-color: #2a2a2a;
  border: 1px solid #444;
}

body.dark-mode .dropdown-item:hover,
body.dark-mode .dropdown-item:focus {
  background-color: #3a3a3a;
  color: #fff;
}

body.dark-mode .dropdown-header {
  color: #a0a0a0;
}
body.dark-mode .form-control,
body.dark-mode .form-select {
  background-color: #2a2a2a;
  border-color: #444;
}

body.dark-mode .form-control:focus,
body.dark-mode .form-select:focus {
  background-color: #2a2a2a;
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

body.dark-mode .form-control::placeholder {
  color: #a0a0a0 !important;
}
html.dark-mode .table > :not(caption) > * > *,
body.dark-mode .table > :not(caption) > * > * {
  background-color: transparent;
}

html.dark-mode .table-striped > tbody > tr:nth-of-type(odd) > *,
body.dark-mode .table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: rgba(255, 255, 255, 0.05);
}

html.dark-mode .table-hover > tbody > tr:hover > *,
body.dark-mode .table-hover > tbody > tr:hover > * {
  --bs-table-accent-bg: rgba(255, 255, 255, 0.075);
}

html.dark-mode .table-bordered,
html.dark-mode .table > thead > tr > th,
body.dark-mode .table-bordered,
body.dark-mode .table > thead > tr > th {
  border-color: #444;
}
body.dark-mode .navbar .nav-link,
body.dark-mode .navbar .btn-link {
  color: #e0e0e0;
}
body.dark-mode .notification-overlay,
body.dark-mode .notification-overlay-mobile {
  background-color: #1e1e1e;
  border: 1px solid #444;
  color: #e0e0e0;
  box-shadow: none;
}

body.dark-mode .notification-header,
body.dark-mode .notification-footer {
  background-color: #2a2a2a;
}

body.dark-mode .notification-item:hover,
body.dark-mode .notification-load-more:hover {
  background-color: #3a3a3a;
}

body.dark-mode .notification-item.unread {
  background-color: #2c3e50;
}

body.dark-mode .notification-text,
body.dark-mode .notification-link {
  color: #e0e0e0;
}
body.dark-mode .desktop-search-overlay {
  background: #2a2a2a !important;
  border-color: #555 !important;
}

body.dark-mode .recent-search-item,
body.dark-mode #searchModal .search-card {
  background: #3a3a3a;
  color: #e0e0e0;
}

body.dark-mode .recent-search-item:hover,
body.dark-mode #searchModal .search-card:hover {
  background: #4a4a4a;
}

body.dark-mode .recent-search-item a {
  color: #e0e0e0 !important;
}

body.dark-mode #searchModal .modal-header,
body.dark-mode #searchModal .search-overlay {
  background-color: #1e1e1e !important;
}

body.dark-mode #searchModal .list-group-item {
  background-color: #1e1e1e;
  border-color: #444;
}

body.dark-mode #searchModal .list-group-item a span {
  color: #e0e0e0 !important;
}
body.dark-mode p,
body.dark-mode label,
body.dark-mode .card-body,
body.dark-mode .modal-body,
body.dark-mode .card-title,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode .fw-semibold {
  color: #e0e0e0 !important;
}

body.dark-mode .card-header,
body.dark-mode .card-footer {
  background-color: #2a2a2a;
}

body.dark-mode .card-header.bg-primary,
body.dark-mode .modal-header.bg-primary {
  background-color: #173b63 !important;
  color: #eaf3ff !important;
  border-color: #24507f !important;
}

body.dark-mode .card-header.bg-info,
body.dark-mode .modal-header.bg-info {
  background-color: #114b57 !important;
  color: #def7fb !important;
  border-color: #1b6675 !important;
}

body.dark-mode .card-header.bg-success,
body.dark-mode .modal-header.bg-success {
  background-color: #173f31 !important;
  color: #e6fff3 !important;
  border-color: #235646 !important;
}

body.dark-mode .card-header.bg-warning,
body.dark-mode .modal-header.bg-warning {
  background-color: #5a4718 !important;
  color: #fff0c2 !important;
  border-color: #7a6222 !important;
}

body.dark-mode .card-header.bg-danger,
body.dark-mode .modal-header.bg-danger {
  background-color: #5a2227 !important;
  color: #ffe5e7 !important;
  border-color: #7a2f36 !important;
}

body.dark-mode .card-header.bg-secondary,
body.dark-mode .modal-header.bg-secondary {
  background-color: #3c4652 !important;
  color: #edf2f7 !important;
  border-color: #566272 !important;
}

body.dark-mode .card-header.bg-dark,
body.dark-mode .modal-header.bg-dark {
  background-color: #1f2329 !important;
  color: #f4f7fb !important;
  border-color: #30363d !important;
}

body.dark-mode .card-header.bg-success-soft {
  background-color: rgba(23, 63, 49, 0.88) !important;
  color: #e6fff3 !important;
  border-color: #235646 !important;
}

body.dark-mode .card-header.bg-danger-soft {
  background-color: rgba(90, 34, 39, 0.88) !important;
  color: #ffe5e7 !important;
  border-color: #7a2f36 !important;
}

body.dark-mode .card-header.bg-warning-subtle,
body.dark-mode .modal-header.bg-warning-subtle {
  background-color: rgba(122, 98, 34, 0.22) !important;
  color: #fff0c2 !important;
  border-color: rgba(255, 240, 194, 0.2) !important;
}

body.dark-mode .card-header.bg-secondary-subtle,
body.dark-mode .modal-header.bg-secondary-subtle {
  background-color: rgba(86, 98, 114, 0.22) !important;
  color: #edf2f7 !important;
  border-color: rgba(237, 242, 247, 0.16) !important;
}

body.dark-mode .card-header.bg-success.bg-opacity-10 {
  background-color: rgba(35, 86, 70, 0.28) !important;
  color: #b9f6ca !important;
  border-color: rgba(185, 246, 202, 0.16) !important;
}

body.dark-mode .card-header.bg-danger.bg-opacity-10 {
  background-color: rgba(122, 47, 54, 0.26) !important;
  color: #ffcdd2 !important;
  border-color: rgba(255, 205, 210, 0.16) !important;
}

body.dark-mode .card-header[class*="bg-"] *:not(.btn):not(.btn *):not(.badge):not(.badge *):not(.dropdown-menu):not(.dropdown-menu *):not(.form-control):not(.form-control *):not(.form-select):not(.form-select *):not(.form-check-input):not(.form-check-label),
body.dark-mode .modal-header[class*="bg-"] *:not(.btn):not(.btn *):not(.badge):not(.badge *):not(.dropdown-menu):not(.dropdown-menu *):not(.form-control):not(.form-control *):not(.form-select):not(.form-select *):not(.form-check-input):not(.form-check-label) {
  color: inherit !important;
}

body.dark-mode .card-header[class*="bg-"] .text-dark,
body.dark-mode .modal-header[class*="bg-"] .text-dark,
body.dark-mode .card-header[class*="bg-"] .text-secondary-emphasis,
body.dark-mode .modal-header[class*="bg-"] .text-secondary-emphasis {
  color: inherit !important;
}

body.dark-mode .card-header[class*="bg-"] .badge.bg-light,
body.dark-mode .modal-header[class*="bg-"] .badge.bg-light {
  background-color: rgba(255, 255, 255, 0.12) !important;
  color: inherit !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

body.dark-mode .list-group-item {
  background-color: #1e1e1e;
  border-color: #444;
}
body.dark-mode .btn-light {
  background-color: #3a3a3a;
  color: #e0e0e0;
  border-color: #555;
}

body.dark-mode .btn-light:hover {
  background-color: #4a4a4a;
  color: #fff;
  border-color: #666;
}
body.dark-mode .page-header {
  background-color: #2a2a2a;
  border-bottom: 1px solid #444;
}

body.dark-mode .breadcrumb {
  background-color: transparent;
}

body.dark-mode .breadcrumb-item + .breadcrumb-item::before {
  color: #6c757d;
}

body.dark-mode .breadcrumb-item.active {
  color: #a0a0a0;
}

body.dark-mode .btn-outline-primary {
  color: #4dabf7;
  border-color: #4dabf7;
}

body.dark-mode .btn-outline-primary:hover {
  background-color: #4dabf7;
  border-color: #4dabf7;
  color: #fff;
}

body.dark-mode .btn-outline-secondary {
  color: #a0a0a0;
  border-color: #6c757d;
}

body.dark-mode .btn-outline-secondary:hover {
  background-color: #6c757d;
  border-color: #6c757d;
  color: #fff;
}

body.dark-mode .pagination .page-link {
  background-color: #2a2a2a;
  border-color: #444;
  color: #e0e0e0;
}

body.dark-mode .pagination .page-link:hover {
  background-color: #3a3a3a;
  border-color: #555;
  color: #fff;
}

body.dark-mode .pagination .page-item.active .page-link {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
}

body.dark-mode .pagination .page-item.disabled .page-link {
  background-color: #1e1e1e;
  border-color: #333;
  color: #6c757d;
}

html.dark-mode .alert,
body.dark-mode .alert {
  color: #e0e0e0;
}

html.dark-mode .alert-success,
body.dark-mode .alert-success {
  background-color: #1a3a1a;
  border-color: #2a5a2a;
}

html.dark-mode .alert-danger,
body.dark-mode .alert-danger {
  background-color: #3a1a1a;
  border-color: #5a2a2a;
}

html.dark-mode .alert-warning,
body.dark-mode .alert-warning {
  background-color: #3a3a1a;
  border-color: #5a5a2a;
}

html.dark-mode .alert-primary,
body.dark-mode .alert-primary {
  background-color: #1a3d5c;
  border-color: #4dabf7;
  color: #e0e0e0;
}

html.dark-mode .alert-info,
body.dark-mode .alert-info {
  background-color: #1a2a3a;
  border-color: #2a4a5a;
}

html.dark-mode .alert-secondary,
body.dark-mode .alert-secondary,
html.dark-mode .alert-light,
body.dark-mode .alert-light {
  background-color: #2a2a2a;
  border-color: #444;
  color: #e0e0e0;
}

.table-responsive {
    overflow-x: auto;
}

.table-action-column,
.table-action-cell {
    white-space: nowrap;
}

.table-action-column {
    text-align: right;
}

.table-action-cell {
    text-align: right;
}

.table-action-cell .btn-group {
    flex-wrap: nowrap;
}

@media (max-width: 768px) {
    [data-tour-step="page-header"].d-flex.justify-content-between {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    [data-tour-step="page-header"].d-flex.justify-content-between > h1,
    [data-tour-step="page-header"].d-flex.justify-content-between > h2,
    [data-tour-step="page-header"].d-flex.justify-content-between > h3 {
        flex: 1 1 auto;
        min-width: 0;
        margin-bottom: 0;
        overflow-wrap: anywhere;
    }

    [data-tour-step="page-header"].d-flex.justify-content-between > :not(h1):not(h2):not(h3) {
        flex: 0 1 auto;
        max-width: 100%;
        margin-left: auto;
    }

    [data-tour-step="page-header"].d-flex.justify-content-between > .d-flex:last-child {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}
#responsive-reload-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#responsive-reload-overlay.show {
    opacity: 1;
}

#responsive-reload-overlay .message-box {
    background-color: white;
    color: #333;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    transform: scale(0.9);
    animation: zoomIn 0.3s ease-out forwards;
}

@keyframes zoomIn {
    to {
        transform: scale(1);
    }
}

#responsive-reload-overlay .icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

#responsive-reload-overlay h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

#responsive-reload-overlay p {
    margin-bottom: 30px;
    color: #555;
}

#responsive-reload-overlay .reload-button {
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#responsive-reload-overlay .reload-button:hover {
    background-color: #0b5ed7;
}

#responsive-reload-overlay .skip-button {
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#responsive-reload-overlay .skip-button:hover {
    background-color: #5c636a;
}

#responsive-reload-overlay .button-container svg {
    width: 16px;
    height: 16px;
}
html.dark-mode #responsive-reload-overlay .message-box {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

html.dark-mode #responsive-reload-overlay p {
    color: #a0a0a0;
}
.pagination .page-link {
  color: var(--bs-pagination-color);
  background-color: var(--bs-pagination-bg);
  border-color: var(--bs-pagination-border-color);
}

.pagination .page-item.active .page-link {
  color: var(--bs-pagination-active-color);
  background-color: var(--bs-pagination-active-bg);
  border-color: var(--bs-pagination-active-border-color);
}

.pagination .page-item.disabled .page-link {
  color: var(--bs-pagination-disabled-color);
  background-color: var(--bs-pagination-disabled-bg);
  border-color: var(--bs-pagination-disabled-border-color);
}
.pagination .page-link:hover {
  color: var(--bs-pagination-hover-color) !important;
  background-color: var(--bs-pagination-hover-bg) !important;
  border-color: var(--bs-pagination-hover-border-color) !important;
}
.pagination .page-item.active .page-link:hover {
  color: var(--bs-pagination-active-color) !important;
  background-color: var(--bs-pagination-active-bg) !important;
  border-color: var(--bs-pagination-active-border-color) !important;
}
body.dark-mode .pagination .page-item.active .page-link:hover {
  background-color: #4dabf7;
  border-color: #4dabf7;
  color: #fff;
}
.hybrid-navigation-shell {
  position: relative;
  min-height: calc(100dvh - var(--app-header-height, 60px));
  padding-top: 0 !important;
}
@media (min-width: 768px) {
  main.hybrid-navigation-shell.hybrid-right-sidebar-open {
    width: calc(100% - var(--app-sidebar-width) - var(--hybrid-right-sidebar-width, 0px)) !important;
    max-width: calc(100% - var(--app-sidebar-width) - var(--hybrid-right-sidebar-width, 0px)) !important;
    margin-right: 0 !important;
  }

  #sidebar.minimal ~ main.hybrid-navigation-shell.hybrid-right-sidebar-open {
    width: calc(100% - var(--app-sidebar-mini-width) - var(--hybrid-right-sidebar-width, 0px)) !important;
    max-width: calc(100% - var(--app-sidebar-mini-width) - var(--hybrid-right-sidebar-width, 0px)) !important;
  }

  main.no-sidebar.hybrid-navigation-shell.hybrid-right-sidebar-open {
    width: calc(100% - var(--hybrid-right-sidebar-width, 0px)) !important;
    max-width: calc(100% - var(--hybrid-right-sidebar-width, 0px)) !important;
  }

  body.teacher-help-open main.hybrid-navigation-shell {
    margin-right: 0 !important;
  }
}

#hybrid-navigation-frame {
  opacity: 1;
  transition: opacity 160ms ease;
}

#hybrid-navigation-frame.hybrid-navigation-frame-loading {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

html.hybrid-frame-overlay-open,
body.hybrid-frame-overlay-open {
  overflow: hidden !important;
}
#hybrid-overlay-host {
  position: fixed;
  inset: 0;
  z-index: 10999;
  visibility: hidden;
  pointer-events: none;
}

#hybrid-overlay-host.is-active {
  visibility: visible;
  pointer-events: auto;
}

.hybrid-overlay-host-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--hybrid-frame-overlay-background, rgba(0, 0, 0, 0.4));
  opacity: var(--hybrid-frame-overlay-opacity, 1);
}

.hybrid-overlay-host-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hybrid-overlay-scope {
  display: contents !important;
}

.hybrid-overlay-host-content :is(
  .modal,
  .offcanvas,
  .swal2-container,
  dialog,
  [aria-modal="true"],
  [data-hybrid-fullscreen-overlay="true"]
) {
  pointer-events: auto;
}
body.hybrid-frame-overlay-backdrop-only > main.hybrid-navigation-shell {
  position: relative !important;
  z-index: 11000 !important;
}

#hybrid-navigation-frame.hybrid-navigation-frame-overlay-active {
  position: relative !important;
  z-index: 1 !important;
  opacity: 1 !important;
}
body.hybrid-frame.hybrid-overlay-portaled :is(
  .hybrid-overlay-source-hidden,
  .modal-backdrop,
  .offcanvas-backdrop
) {
  visibility: hidden !important;
}

body.hybrid-frame.hybrid-overlay-portaled .hybrid-overlay-source-hidden::backdrop {
  background: transparent !important;
}
body.hybrid-frame.hybrid-overlay-portaled :is(
  .ck-body-wrapper,
  .ck.ck-balloon-panel
) {
  visibility: hidden !important;
}

#hybrid-overlay-host .swal2-container.hybrid-portaled-overlay {
  background: transparent !important;
}
html body.hybrid-navigation-loading #global-loading-indicator {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

#hybrid-navigation-skeleton.hybrid-navigation-skeleton {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: none;
  min-height: calc(100dvh - var(--app-header-height, 60px));
  padding: 2rem;
  overflow-y: auto;
  pointer-events: none;
  background: var(--ui-surface-muted);
}

#hybrid-navigation-skeleton.hybrid-navigation-skeleton.is-visible {
  display: block;
}

html.dark-mode .hybrid-navigation-skeleton,
body.dark-mode .hybrid-navigation-skeleton {
  background: #121212;
}

@media (max-width: 767.98px) {
  :root {
    --app-header-height: 56px;
  }

  .hybrid-navigation-skeleton {
    padding: 1rem;
    padding-top: 0.5rem;
  }
}

.text-xs {
  font-size: 0.75rem;
}

.font-weight-bold {
  font-weight: 700 !important;
}

.text-gray-800 {
  color: #5a5c69 !important;
}

.text-gray-300 {
  color: #dddfeb !important;
}

.filters-card {
  margin-bottom: 1.5rem;
}

.table-responsive {
  border-radius: 0.375rem;
}

.calendar-container {
  min-height: 400px;
  margin-bottom: 1.5rem;
}

.status-badge {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.filter-form .form-label {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.filter-form .form-control,
.filter-form .form-select {
  border-radius: 0.375rem;
}

body.dark-mode .text-gray-800 {
  color: var(--ui-text) !important;
}

body.dark-mode .text-gray-300 {
  color: var(--ui-text-muted) !important;
}
.face-id-device-progress-modal {
  max-width: calc(100vw - 2rem);
}

.face-id-device-progress-container {
  margin: 0 !important;
}

.face-id-device-progress {
  margin-top: 0.75rem;
  text-align: left;
}

.face-id-device-progress-summary,
.face-id-device-progress-empty {
  color: var(--ui-text-muted);
  font-size: 0.875rem;
  text-align: center;
}

.face-id-device-progress-list {
  display: grid;
  gap: 0.625rem;
  max-height: min(28rem, 55vh);
  margin: 0.75rem 0 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.face-id-device-progress-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-surface-muted);
}

.face-id-device-progress-indicator {
  width: 0.75rem;
  height: 0.75rem;
  margin-top: 0.3rem;
  flex: 0 0 auto;
  border: 2px solid var(--ui-secondary);
  border-radius: 50%;
  background: transparent;
}

.face-id-device-progress-row.is-processing .face-id-device-progress-indicator {
  border-color: var(--ui-primary);
  background: var(--ui-primary);
  animation: face-id-progress-pulse 1.2s ease-in-out infinite;
}

.face-id-device-progress-row.is-success .face-id-device-progress-indicator {
  border-color: var(--ui-success);
  background: var(--ui-success);
}

.face-id-device-progress-row.is-failed .face-id-device-progress-indicator {
  border-color: var(--ui-danger);
  background: var(--ui-danger);
}

.face-id-device-progress-row.is-skipped .face-id-device-progress-indicator {
  border-color: var(--ui-warning);
  background: var(--ui-warning);
}

.face-id-device-progress-content {
  min-width: 0;
  flex: 1;
}

.face-id-device-progress-heading,
.face-id-device-progress-meta {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  justify-content: space-between;
}

.face-id-device-progress-heading strong {
  overflow-wrap: anywhere;
  color: var(--ui-text);
}

.face-id-device-progress-id,
.face-id-device-progress-meta,
.face-id-device-progress-message {
  color: var(--ui-text-muted);
  font-size: 0.8125rem;
}

.face-id-device-progress-message {
  margin-top: 0.25rem;
  overflow-wrap: anywhere;
  color: var(--ui-danger);
}

.face-id-device-progress-count {
  font-variant-numeric: tabular-nums;
}

@keyframes face-id-progress-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .face-id-device-progress-row.is-processing .face-id-device-progress-indicator {
    animation: none;
  }
}

@media (max-width: 575.98px) {
  .face-id-device-progress-heading {
    display: block;
  }

  .face-id-device-progress-id {
    display: block;
    margin-top: 0.125rem;
  }
}
.filter-bar-card {
    border-radius: 0.5rem;
}

.filter-bar-card .card-header {
    border-radius: 0.5rem 0.5rem 0 0;
}
.filter-bar-header {
    cursor: default;
}

.filter-bar-title {
    word-break: break-word;
}

.filter-bar-icon {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

.filter-bar-count {
    font-size: 0.75rem;
    vertical-align: middle;
}

.filter-bar-count.filter-bar-count--empty {
    display: none;
}
.filter-bar-toggle {
    min-width: 2.25rem;
    padding: 0.25rem 0.5rem;
}

.filter-bar-chevron {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s ease;
}
@media (min-width: 768px) {
    .filter-bar-card > .collapse,
    .filter-bar-card > .collapsing {
        display: block !important;
        height: auto !important;
        overflow: visible !important;
        transition: none !important;
    }
}
.filter-bar-form .form-label {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}
.filter-bar-field .filter-bar-field-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    opacity: 0.85;
}

.filter-bar-form .form-control,
.filter-bar-form .form-select {
    font-size: 0.875rem;
    border-radius: 0.375rem;
}
.filter-bar-form .select2-container {
    width: 100% !important;
}

.filter-bar-form .select2-container--bootstrap-5 .select2-selection {
    min-height: 31px;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    box-shadow: 0 0 0 0 transparent;
    border-radius: 0.375rem;
}

.filter-bar-form .select2-container--bootstrap-5.select2-container--focus .select2-selection,
.filter-bar-form .select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: var(--bs-primary, #0d6efd) !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.filter-bar-form .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    line-height: 1.5;
}
@media (max-width: 575.98px) {
    .filter-bar-form .col-12.col-sm-auto {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
html.dark-mode .filter-bar-card,
body.dark-mode .filter-bar-card {
    background-color: var(--bs-dark-bg, #1e1e1e);
    border-color: rgba(255, 255, 255, 0.1);
}

html.dark-mode .filter-bar-header,
body.dark-mode .filter-bar-header {
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

html.dark-mode .filter-bar-card .text-primary,
body.dark-mode .filter-bar-card .text-primary {
    color: var(--bs-primary) !important;
}

html.dark-mode .filter-bar-form .select2-container--bootstrap-5 .select2-selection,
body.dark-mode .filter-bar-form .select2-container--bootstrap-5 .select2-selection {
    background-color: #2a2a2a !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #e0e0e0 !important;
}

html.dark-mode .filter-bar-form .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered,
body.dark-mode .filter-bar-form .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    color: #e0e0e0 !important;
}

html.dark-mode .filter-bar-form .select2-container--bootstrap-5 .select2-selection__clear,
body.dark-mode .filter-bar-form .select2-container--bootstrap-5 .select2-selection__clear {
    color: #a0a0a0 !important;
}

html.dark-mode .filter-bar-form .select2-container--bootstrap-5 .select2-selection__clear:hover,
body.dark-mode .filter-bar-form .select2-container--bootstrap-5 .select2-selection__clear:hover {
    color: #fff !important;
}
.filter-bar-form [data-filter-bar-submit] .filter-bar-submit-icon[data-feather="loader"] {
    animation: filter-bar-spin 0.8s linear infinite;
}

@keyframes filter-bar-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@media print {
    .filter-bar-card {
        display: none !important;
    }
}
.filter-bar-form .filter-active {
    border-color: #dc3545 !important;
    border-width: 2px !important;
}

.filter-bar-form select.filter-active + .select2-container .select2-selection {
    border-color: #dc3545 !important;
    border-width: 2px !important;
}
@media (max-width: 768px) {
    .pagination-responsive {
        flex-wrap: wrap;
        gap: 0.2rem;
        justify-content: center;
    }

    .pagination-responsive .page-item {
        margin: 0.1rem;
    }
    .pagination-responsive .page-item.page-number:not([data-mobile-show="true"]):not(.active) {
        display: none !important;
    }
    .pagination-responsive .page-item.active.page-number {
        display: block !important;
    }
    .pagination-responsive .page-item.pagination-jump-mobile[data-mobile-only="true"] {
        display: block !important;
    }
    .pagination-responsive .page-item.pagination-jump[data-mobile-show="true"] {
        display: block !important;
    }
    .pagination-responsive .page-item.disabled.page-number:not(.pagination-jump):not(.pagination-jump-mobile) {
        display: none !important;
    }
    .pagination-responsive .page-link {
        min-width: 36px;
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.375rem;
        font-size: 0.875rem;
    }
    .pagination-responsive .page-link i {
        width: 16px !important;
        height: 16px !important;
    }
    .pagination-responsive .page-item.active .page-link {
        font-weight: 600;
        font-size: 0.9375rem;
    }
    .pagination-info-mobile {
        display: block;
        text-align: center;
        margin-top: 0.75rem;
        font-size: 0.875rem;
        color: var(--bs-secondary-color, #6c757d);
        padding: 0.5rem;
    }
}
@media (min-width: 769px) and (max-width: 992px) {
    .pagination-responsive .page-item.page-number {
        display: block;
    }
    .pagination-responsive .page-item.pagination-jump-mobile[data-mobile-only="true"] {
        display: none !important;
    }

    .pagination-responsive .page-link {
        min-width: 38px;
        min-height: 38px;
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
    }

    .pagination-info-mobile {
        display: none;
    }
}
@media (min-width: 993px) {
    .pagination-responsive .page-item.page-number {
        display: block;
    }
    .pagination-responsive .page-item.pagination-jump-mobile[data-mobile-only="true"] {
        display: none !important;
    }

    .pagination-info-mobile {
        display: none;
    }
}
body.dark-mode .pagination-info-mobile {
    color: #a0a0a0;
}
.calendar-person-list {
    display: grid;
    gap: 0.4rem;
    margin-top: 0.35rem;
}

.calendar-person-list__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.calendar-person-list__avatar-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 var(--calendar-person-avatar-size, 32px);
    width: var(--calendar-person-avatar-size, 32px);
    height: var(--calendar-person-avatar-size, 32px);
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid var(--calendar-person-avatar-color, #6c757d);
    box-sizing: border-box;
}

.calendar-person-list__avatar-frame > .calendar-person-list__avatar,
.calendar-person-list__avatar-frame > .person-picker-avatar-initial-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    object-fit: cover;
}

.calendar-person-list__avatar-frame > img,
.calendar-person-list__avatar-frame > div {
    width: 100% !important;
    height: 100% !important;
    margin: 0;
    object-fit: cover;
}

.calendar-person-list__avatar-frame > div {
    background-color: var(--calendar-person-avatar-color, #6c757d) !important;
    color: var(--calendar-person-avatar-text-color, #fff) !important;
}

.calendar-person-list__avatar,
.calendar-person-list__item > .person-picker-avatar-initial-inline {
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
}

.calendar-person-list__item > .person-picker-avatar-initial-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
}

.calendar-person-list__meta {
    display: grid;
    min-width: 0;
    line-height: 1.2;
}

.calendar-person-list__name {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.calendar-person-list__code {
    font-size: 0.72rem;
    opacity: 0.78;
}

.calendar-person-list__attendance {
    align-self: flex-start;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 0.125rem;
    padding: 0.125rem 0.375rem;
}

.calendar-person-list__attendance--present {
    background: rgba(var(--bs-success-rgb), 0.12);
    border-color: rgba(var(--bs-success-rgb), 0.28);
    color: var(--bs-success-text-emphasis);
}

.calendar-person-list__attendance--absent {
    background: rgba(var(--bs-danger-rgb), 0.1);
    border-color: rgba(var(--bs-danger-rgb), 0.24);
    color: var(--bs-danger-text-emphasis);
}

.calendar-person-list__attendance--unmarked {
    background: rgba(var(--bs-secondary-rgb), 0.1);
    border-color: rgba(var(--bs-secondary-rgb), 0.22);
    color: var(--bs-secondary-color);
}
.calendar-rich-events .fc-event {
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 6px !important;
    padding: 0 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.24) !important;
    transition: transform 0.16s ease, box-shadow 0.16s ease !important;
}

.calendar-rich-events .fc-event:hover,
.calendar-rich-events .fc-event:focus-visible {
    z-index: 8 !important;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.3) !important;
}
html.dark-mode .calendar-rich-events .fc-day-today,
body.dark-mode .calendar-rich-events .fc-day-today {
    background-color: rgba(13, 110, 253, 0.08) !important;
}

.calendar-rich-events .fc-event-main,
.calendar-rich-events .fc-event-main-frame {
    min-width: 0;
    height: 100%;
}

.calendar-event-card {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
    height: 100%;
    padding: 0.3rem 0.4rem;
    color: inherit;
    line-height: 1.18;
}

.calendar-event-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    min-width: 0;
}

.calendar-event-card__time {
    overflow: hidden;
    font-size: 0.68rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-event-card__session {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 0.05rem 0.28rem;
    background: rgba(255, 255, 255, 0.88);
    color: #1f2937;
    font-size: 0.62rem;
    font-weight: 750;
}

.calendar-event-card__title,
.calendar-event-card__meta,
.calendar-event-card__people,
.calendar-event-card__detail {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-event-card__title {
    font-size: 0.74rem;
    font-weight: 750;
}

.calendar-event-card__meta,
.calendar-event-card__people,
.calendar-event-card__detail {
    font-size: 0.64rem;
    opacity: 0.9;
}

.calendar-event-card__people {
    align-self: flex-start;
    max-width: 100%;
    border-radius: 3px;
    padding: 0.08rem 0.28rem;
    background: rgba(255, 255, 255, 0.82);
    color: #1f2937;
    font-weight: 650;
    opacity: 1;
}

.calendar-event-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin-top: 0.05rem;
}

.calendar-event-card__badge {
    display: inline-flex;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 0.07rem 0.3rem;
    background: rgba(15, 23, 42, 0.2);
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-event-card__badge--acceptance,
.calendar-event-card__badge--makeup {
    background: rgba(255, 255, 255, 0.86);
    color: #1f2937;
}

.calendar-event-card__badge--off {
    background: rgba(15, 23, 42, 0.48);
}

.calendar-rich-events .fc-daygrid-event .calendar-event-card {
    min-height: 3.2rem;
}

.calendar-rich-events .fc-timegrid-event .calendar-event-card {
    min-height: 100%;
}

.calendar-rich-events .fc-timegrid-event-harness {
    margin: 1px 0 !important;
}

.calendar-rich-events .fc-timegrid-col-events {
    margin: 0 2px !important;
}

.calendar-rich-events .fc-timegrid-event-short .calendar-event-card__meta,
.calendar-rich-events .fc-timegrid-event-short .calendar-event-card__people,
.calendar-rich-events .fc-timegrid-event-short .calendar-event-card__badges,
.calendar-rich-events .fc-timegrid-event-short .calendar-event-card__detail {
    display: none;
}
.calendar-rich-tooltip {
    --bs-tooltip-opacity: 1;
}

.calendar-rich-tooltip .tooltip-arrow {
    display: none;
}

.calendar-rich-tooltip .tooltip-inner {
    max-width: min(400px, calc(100vw - 2rem)) !important;
    overflow: hidden;
    border: 1px solid #d9dee7;
    border-radius: 9px;
    padding: 0 !important;
    background: #fff !important;
    color: #212529 !important;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.24);
    text-align: left;
}

.calendar-detail-tooltip {
    width: min(370px, calc(100vw - 2rem));
    text-align: left;
}

.calendar-rich-tooltip .calendar-detail-tooltip__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0;
    padding: 0.7rem 0.85rem;
    background: var(--calendar-tooltip-accent, #0d6efd);
    color: #fff;
}

.calendar-rich-tooltip .calendar-detail-tooltip__header > strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 0.9rem;
}

.calendar-rich-tooltip .calendar-detail-tooltip__header > span {
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 650;
    opacity: 0.92;
}

.calendar-rich-tooltip .calendar-detail-tooltip__header-identity {
    flex: 1 1 auto;
    min-width: 0;
}

.calendar-rich-tooltip .calendar-detail-tooltip__header-identity .calendar-person-list {
    margin-top: 0;
}

.calendar-rich-tooltip .calendar-detail-tooltip__header-identity .calendar-person-list__name {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 750;
}

.calendar-rich-tooltip .calendar-detail-tooltip__header-identity .calendar-person-list__code {
    color: #fff;
    opacity: 0.9;
}

.calendar-rich-tooltip .calendar-detail-tooltip__body {
    display: grid;
    gap: 0.4rem;
    padding: 0.75rem 0.85rem 0.85rem;
}

.calendar-rich-tooltip .calendar-detail-tooltip__row,
.calendar-rich-tooltip .calendar-detail-tooltip__people {
    display: grid;
    grid-template-columns: minmax(92px, 0.42fr) minmax(0, 1fr);
    gap: 0.55rem;
    margin: 0;
    color: #212529;
    font-size: 0.76rem;
}

.calendar-rich-tooltip .calendar-detail-tooltip__row > span {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.calendar-rich-tooltip .calendar-detail-tooltip__row--long {
    grid-template-columns: 1fr;
    gap: 0.12rem;
    border-top: 1px solid #e9ecef;
    padding-top: 0.45rem;
}

.calendar-rich-tooltip .calendar-detail-tooltip__people .calendar-person-list {
    margin-top: 0;
}

.calendar-rich-tooltip .calendar-detail-tooltip .calendar-session-statuses {
    border-top: 1px solid #e9ecef;
    padding-top: 0.5rem;
}

html.dark-mode .calendar-rich-tooltip .tooltip-inner,
body.dark-mode .calendar-rich-tooltip .tooltip-inner {
    border-color: #4a5568;
    background: #232b38 !important;
    color: #e2e8f0 !important;
}

html.dark-mode .calendar-rich-tooltip .calendar-detail-tooltip__row,
html.dark-mode .calendar-rich-tooltip .calendar-detail-tooltip__people,
body.dark-mode .calendar-rich-tooltip .calendar-detail-tooltip__row,
body.dark-mode .calendar-rich-tooltip .calendar-detail-tooltip__people {
    color: #e2e8f0;
}

html.dark-mode .calendar-rich-tooltip .calendar-detail-tooltip__row--long,
html.dark-mode .calendar-rich-tooltip .calendar-detail-tooltip .calendar-session-statuses,
body.dark-mode .calendar-rich-tooltip .calendar-detail-tooltip__row--long,
body.dark-mode .calendar-rich-tooltip .calendar-detail-tooltip .calendar-session-statuses {
    border-color: #4a5568;
}

@media (min-width: 768px) {
    .calendar-rich-events .fc-timeGridDay-view .calendar-event-card {
        display: grid;
        grid-template-columns: minmax(185px, 0.75fr) minmax(0, 1.25fr);
        grid-template-rows: auto auto auto;
        column-gap: 0.8rem;
    }

    .calendar-rich-events .fc-timeGridDay-view .calendar-event-card__header,
    .calendar-rich-events .fc-timeGridDay-view .calendar-event-card__title,
    .calendar-rich-events .fc-timeGridDay-view .calendar-event-card__people {
        grid-column: 1;
    }

    .calendar-rich-events .fc-timeGridDay-view .calendar-event-card__meta,
    .calendar-rich-events .fc-timeGridDay-view .calendar-event-card__badges,
    .calendar-rich-events .fc-timeGridDay-view .calendar-event-card__detail {
        grid-column: 2;
    }
}
@media (max-width: 576px) {
    .pagination-responsive {
        font-size: 0.8125rem;
        gap: 0.15rem;
    }

    .pagination-responsive .page-item {
        margin: 0.075rem;
    }

    .pagination-responsive .page-link {
        min-width: 34px;
        min-height: 34px;
        padding: 0.3rem;
        font-size: 0.8125rem;
    }

    .pagination-responsive .page-link i {
        width: 14px !important;
        height: 14px !important;
    }
}

button.time-display.header-clock-trigger,
button.header-more-status.header-clock-trigger {
    appearance: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

button.time-display.header-clock-trigger {
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

button.time-display.header-clock-trigger:hover,
button.time-display.header-clock-trigger:focus-visible,
button.header-more-status.header-clock-trigger:hover,
button.header-more-status.header-clock-trigger:focus-visible {
    border-color: rgba(37, 99, 235, 0.28);
    background: #eef6ff;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.header-clock-popover {
    position: fixed;
    z-index: 2070;
    width: min(360px, calc(100vw - 20px));
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    background: #ffffff;
    color: #1f2937;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.2);
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 transparent;
}

.header-clock-popover[hidden] {
    display: none !important;
}

.header-clock-popover__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
    border-bottom: 1px solid #e2e8f0;
}

.header-clock-popover__heading {
    display: flex;
    align-items: center;
    gap: 0.68rem;
    min-width: 0;
}

.header-clock-popover__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: 1px solid #bfdbfe;
    border-radius: 9px;
    background: #eff6ff;
    color: #2563eb;
}

.header-clock-popover__icon svg,
.header-clock-popover__close svg {
    width: 17px;
    height: 17px;
}

.header-clock-popover__heading h2 {
    margin: 0;
    color: #1e293b;
    font-size: 0.94rem;
    font-weight: 750;
    line-height: 1.25;
}

.header-clock-popover__heading p {
    margin: 0.12rem 0 0;
    color: #64748b;
    font-size: 0.7rem;
    line-height: 1.3;
}

.header-clock-popover__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}

.header-clock-popover__close:hover,
.header-clock-popover__close:focus-visible {
    border-color: #cbd5e1;
    background: #f1f5f9;
    color: #1e293b;
    outline: 0;
}

.header-clock-popover__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.05rem 1rem 0.85rem;
    background: #f8fafc;
}

.header-analog-clock {
    --clock-radius: 75px;
    position: relative;
    flex: 0 0 auto;
    width: 190px;
    height: 190px;
    border: 7px solid #ffffff;
    border-radius: 50%;
    background: #f8fafc;
    box-shadow: 0 0 0 1px #cbd5e1, 0 13px 28px rgba(15, 23, 42, 0.13);
}

.header-analog-clock::before {
    position: absolute;
    inset: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    content: '';
}

.header-analog-clock__number {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    color: #334155;
    font-size: 0.76rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    line-height: 1;
    transform: translate(-50%, -50%) rotate(calc(var(--hour-index) * 30deg)) translateY(calc(var(--clock-radius) * -1)) rotate(calc(var(--hour-index) * -30deg));
}

.header-analog-clock__hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    z-index: 2;
    display: block;
    border-radius: 999px 999px 3px 3px;
    transform: translateX(-50%) rotate(0deg);
    transform-origin: center bottom;
    will-change: transform;
}

.header-analog-clock__hand--hour {
    width: 6px;
    height: 47px;
    background: #1e293b;
}

.header-analog-clock__hand--minute {
    width: 4px;
    height: 62px;
    background: #475569;
}

.header-analog-clock__hand--second {
    width: 2px;
    height: 70px;
    background: #dc2626;
}

.header-analog-clock__center {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: 12px;
    height: 12px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: #dc2626;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.18);
    transform: translate(-50%, -50%);
}

.header-clock-live {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
    font-variant-numeric: tabular-nums;
}

.header-clock-live strong {
    color: #0f172a;
    font-size: 1.75rem;
    font-weight: 750;
    letter-spacing: 0.055em;
    line-height: 1.1;
}

.header-clock-live span {
    margin-top: 0.3rem;
    color: #64748b;
    font-size: 0.76rem;
}

.header-clock-timezone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    margin-top: 0.85rem;
    padding: 0.58rem 0.7rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.header-clock-timezone > svg {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    color: #2563eb;
}

.header-clock-timezone > span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.header-clock-timezone small {
    color: #64748b;
    font-size: 0.64rem;
    line-height: 1.15;
}

.header-clock-timezone strong {
    overflow: hidden;
    color: #334155;
    font-size: 0.74rem;
    font-weight: 650;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-clock-copy-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    padding: 0.75rem 0.85rem 0.45rem;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
}

.header-clock-copy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 36px;
    padding: 0.42rem 0.35rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #475569;
    font-size: 0.7rem;
    font-weight: 650;
    line-height: 1.15;
    cursor: pointer;
}

.header-clock-copy-button svg {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
}

.header-clock-copy-button:hover,
.header-clock-copy-button:focus-visible {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
    outline: 0;
}

.header-clock-copy-status {
    min-height: 22px;
    margin: 0;
    padding: 0.12rem 0.85rem 0.48rem;
    background: #ffffff;
    color: #15803d;
    font-size: 0.7rem;
    font-weight: 650;
    text-align: center;
}

html.dark-mode button.time-display.header-clock-trigger:hover,
html.dark-mode button.time-display.header-clock-trigger:focus-visible,
html.dark-mode button.header-more-status.header-clock-trigger:hover,
html.dark-mode button.header-more-status.header-clock-trigger:focus-visible,
body.dark-mode button.time-display.header-clock-trigger:hover,
body.dark-mode button.time-display.header-clock-trigger:focus-visible,
body.dark-mode button.header-more-status.header-clock-trigger:hover,
body.dark-mode button.header-more-status.header-clock-trigger:focus-visible {
    border-color: rgba(77, 171, 247, 0.35);
    background: rgba(77, 171, 247, 0.11);
    box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.12);
}

html.dark-mode .header-clock-popover,
body.dark-mode .header-clock-popover {
    border-color: #444;
    background: #242424;
    color: #e4e4e7;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.42);
    scrollbar-color: #71717a transparent;
}

html.dark-mode .header-clock-popover__header,
body.dark-mode .header-clock-popover__header {
    border-color: #444;
    background: #242424;
}

html.dark-mode .header-clock-popover__icon,
body.dark-mode .header-clock-popover__icon {
    border-color: rgba(96, 165, 250, 0.35);
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
}

html.dark-mode .header-clock-popover__heading h2,
html.dark-mode .header-clock-live strong,
body.dark-mode .header-clock-popover__heading h2,
body.dark-mode .header-clock-live strong {
    color: #f4f4f5;
}

html.dark-mode .header-clock-popover__heading p,
html.dark-mode .header-clock-live span,
html.dark-mode .header-clock-timezone small,
body.dark-mode .header-clock-popover__heading p,
body.dark-mode .header-clock-live span,
body.dark-mode .header-clock-timezone small {
    color: #a1a1aa;
}

html.dark-mode .header-clock-popover__close,
body.dark-mode .header-clock-popover__close {
    color: #a1a1aa;
}

html.dark-mode .header-clock-popover__close:hover,
html.dark-mode .header-clock-popover__close:focus-visible,
body.dark-mode .header-clock-popover__close:hover,
body.dark-mode .header-clock-popover__close:focus-visible {
    border-color: #52525b;
    background: #333337;
    color: #f4f4f5;
}

html.dark-mode .header-clock-popover__body,
body.dark-mode .header-clock-popover__body {
    background: #202024;
}

html.dark-mode .header-analog-clock,
body.dark-mode .header-analog-clock {
    border-color: #303034;
    background: #202024;
    box-shadow: 0 0 0 1px #52525b, 0 13px 28px rgba(0, 0, 0, 0.34);
}

html.dark-mode .header-analog-clock::before,
body.dark-mode .header-analog-clock::before {
    border-color: #3f3f46;
}

html.dark-mode .header-analog-clock__number,
html.dark-mode .header-clock-timezone strong,
body.dark-mode .header-analog-clock__number,
body.dark-mode .header-clock-timezone strong {
    color: #d4d4d8;
}

html.dark-mode .header-analog-clock__hand--hour,
body.dark-mode .header-analog-clock__hand--hour {
    background: #f4f4f5;
}

html.dark-mode .header-analog-clock__hand--minute,
body.dark-mode .header-analog-clock__hand--minute {
    background: #d4d4d8;
}

html.dark-mode .header-analog-clock__center,
body.dark-mode .header-analog-clock__center {
    border-color: #303034;
}

html.dark-mode .header-clock-timezone,
body.dark-mode .header-clock-timezone {
    border-color: #444;
    background: #2a2a2a;
}

html.dark-mode .header-clock-copy-actions,
html.dark-mode .header-clock-copy-status,
body.dark-mode .header-clock-copy-actions,
body.dark-mode .header-clock-copy-status {
    border-color: #444;
    background: #242424;
}

html.dark-mode .header-clock-copy-button,
body.dark-mode .header-clock-copy-button {
    border-color: #52525b;
    background: #2a2a2a;
    color: #d4d4d8;
}

html.dark-mode .header-clock-copy-button:hover,
html.dark-mode .header-clock-copy-button:focus-visible,
body.dark-mode .header-clock-copy-button:hover,
body.dark-mode .header-clock-copy-button:focus-visible {
    border-color: #60a5fa;
    background: rgba(59, 130, 246, 0.14);
    color: #93c5fd;
}

html.dark-mode .header-clock-copy-status,
body.dark-mode .header-clock-copy-status {
    color: #86efac;
}

@media (max-width: 575.98px) {
    .header-clock-popover {
        width: min(340px, calc(100vw - 16px));
        max-height: calc(100vh - 72px);
        max-height: calc(100dvh - 72px);
        border-radius: 10px;
    }

    .header-clock-popover__header {
        padding: 0.72rem 0.78rem;
    }

    .header-clock-popover__body {
        padding-top: 0.9rem;
    }

    .header-analog-clock {
        --clock-radius: 66px;
        width: 170px;
        height: 170px;
        border-width: 6px;
    }

    .header-analog-clock__hand--hour {
        height: 41px;
    }

    .header-analog-clock__hand--minute {
        height: 55px;
    }

    .header-analog-clock__hand--second {
        height: 62px;
    }

    .header-clock-copy-actions {
        gap: 0.35rem;
        padding-inline: 0.7rem;
    }

    .header-clock-copy-button {
        gap: 0.25rem;
        font-size: 0.67rem;
    }
}
.finance-voucher-picker__trigger {
  display: flex;
  align-items: center;
  min-width: 0;
  color: var(--ui-text);
  background: var(--ui-surface);
  border-color: var(--ui-border);
}

.finance-voucher-picker__trigger:hover:not(:disabled),
.finance-voucher-picker__trigger:focus-visible {
  color: var(--ui-text);
  background: var(--ui-surface-muted);
  border-color: var(--ui-primary);
}

.finance-voucher-picker__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.finance-voucher-picker__item {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--ui-border);
  border-radius: 0.5rem;
  background: var(--ui-surface);
}

.finance-voucher-picker__item.is-used {
  background: var(--ui-surface-muted);
  opacity: 0.78;
}

.finance-voucher-picker__money {
  color: var(--ui-success);
  font-size: 1.05rem;
  font-weight: 700;
}

.finance-voucher-picker__description {
  overflow-wrap: anywhere;
  white-space: pre-line;
}

@media (max-width: 767.98px) {
  .finance-voucher-picker__list {
    grid-template-columns: minmax(0, 1fr);
  }
}
