:root {
    /* Theme tokens */
    --font-sans: "Manrope", "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
    --font-display: "Space Grotesk", "Manrope", "Helvetica Neue", Arial, sans-serif;
    --primary-rgb: 31, 122, 140;
    --success-rgb: 47, 158, 134;
    --danger-rgb: 214, 69, 69;
    --warning-rgb: 223, 167, 55;
    --page-bg: #F6F1E9;
    --page-bg-accent: #E9E1D5;
    --surface: #FFFFFF;
    --surface-alt: #FDF9F3;
    --border-color: #E3D7C9;
    --text-color: #1B2B36;
    --text-muted: #6B6F75;
    --nav-bg: #1B2B36;
    --nav-text: #FDF9F3;
    --logo-surface: #ffffff;
    --logo-border: rgba(15, 32, 41, 0.12);
    --logo-shadow: 0 12px 24px rgba(15, 32, 41, 0.18);
    --sidebar-width: 280px;

    /* Brand colors */
    --primary-color: #1F7A8C;
    --primary-dark: #155A66;
    --primary-light: #72C7B8;
    --secondary-color: #1B2B36;
    --secondary-light: #3D4C58;
    --success-color: #2F9E86;
    --success-dark: #237565;
    --danger-color: #D64545;
    --warning-color: #DFA737;
    --info-color: #2B99A7;
    --light-bg: var(--page-bg);
    --dark-text: var(--text-color);
    --card-shadow: 0 16px 30px rgba(20, 47, 57, 0.12);
    --card-radius: 18px;
    --focus-ring: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.2);
    --tone-success-bg: rgba(var(--success-rgb), 0.14);
    --tone-success-border: rgba(var(--success-rgb), 0.38);
    --tone-success-text: #14584B;
    --tone-danger-bg: rgba(var(--danger-rgb), 0.14);
    --tone-danger-border: rgba(var(--danger-rgb), 0.38);
    --tone-danger-text: #7F2626;
    --tone-warning-bg: rgba(var(--warning-rgb), 0.18);
    --tone-warning-border: rgba(var(--warning-rgb), 0.42);
    --tone-warning-text: #6A4A0A;
    --tone-neutral-bg: rgba(var(--primary-rgb), 0.09);
    --tone-neutral-border: rgba(var(--primary-rgb), 0.22);
    --tone-neutral-text: var(--secondary-color);

    /* Bootstrap overrides */
    --bs-body-color: var(--text-color);
    --bs-body-bg: var(--page-bg);
    --bs-border-color: var(--border-color);
    --bs-secondary-color: var(--text-muted);
    --bs-link-color: var(--primary-color);
    --bs-link-hover-color: var(--primary-dark);
    --bs-card-bg: var(--surface);
}

[data-theme="dark"] {
    --primary-rgb: 103, 209, 195;
    --success-rgb: 94, 198, 142;
    --danger-rgb: 240, 124, 107;
    --warning-rgb: 241, 193, 91;
    --page-bg: #0F1519;
    --page-bg-accent: #131E24;
    --surface: #152026;
    --surface-alt: #18262D;
    --border-color: #2A3841;
    --text-color: #E6F0F2;
    --text-muted: #9AA6AD;
    --nav-bg: #0C1318;
    --nav-text: #E6F0F2;
    --logo-surface: #F7F2EA;
    --logo-border: rgba(0, 0, 0, 0.25);
    --logo-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
    --primary-color: #67D1C3;
    --primary-dark: #44B5A8;
    --primary-light: #9BE5DB;
    --secondary-color: #0C1318;
    --secondary-light: #2B3A42;
    --success-color: #5EC68E;
    --success-dark: #43A874;
    --danger-color: #F07C6B;
    --warning-color: #F1C15B;
    --info-color: #6DC9D6;
    --card-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
    --focus-ring: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.28);
    --tone-success-bg: rgba(var(--success-rgb), 0.2);
    --tone-success-border: rgba(var(--success-rgb), 0.42);
    --tone-success-text: #CFF6E1;
    --tone-danger-bg: rgba(var(--danger-rgb), 0.18);
    --tone-danger-border: rgba(var(--danger-rgb), 0.38);
    --tone-danger-text: #FFD9D3;
    --tone-warning-bg: rgba(var(--warning-rgb), 0.2);
    --tone-warning-border: rgba(var(--warning-rgb), 0.4);
    --tone-warning-text: #FFECC4;
    --tone-neutral-bg: rgba(var(--primary-rgb), 0.14);
    --tone-neutral-border: rgba(var(--primary-rgb), 0.32);
    --tone-neutral-text: var(--text-color);
}

[data-theme="light"][data-org-theme-light="sand"] {
    --font-sans: "Manrope", "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
    --font-display: "Fraunces", "Space Grotesk", "IBM Plex Sans", sans-serif;
    --primary-rgb: 193, 120, 72;
    --warning-rgb: 217, 160, 65;
    --page-bg: #F5EFE7;
    --page-bg-accent: #E9DED0;
    --surface: #FFFFFF;
    --surface-alt: #FBF6F0;
    --border-color: #E3D4C5;
    --text-color: #2E221A;
    --text-muted: #7A6A5F;
    --nav-bg: #2D2019;
    --nav-text: #FDF6EE;
    --primary-color: #C17848;
    --primary-dark: #9E5B2F;
    --primary-light: #E5B088;
    --secondary-color: #2D2019;
    --secondary-light: #4B3A2F;
    --success-color: #4F9C7A;
    --danger-color: #C6483C;
    --warning-color: #D9A441;
    --info-color: #C99A62;
    --logo-surface: #FFFFFF;
    --logo-border: rgba(45, 32, 25, 0.12);
}

[data-theme="light"][data-org-theme-light="sage"] {
    --font-sans: "Sora", "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
    --font-display: "Space Grotesk", "Sora", sans-serif;
    --primary-rgb: 74, 124, 110;
    --warning-rgb: 217, 164, 65;
    --page-bg: #F1F4F0;
    --page-bg-accent: #E4EAE2;
    --surface: #FFFFFF;
    --surface-alt: #F5F8F3;
    --border-color: #D6DED5;
    --text-color: #1E2C27;
    --text-muted: #68756F;
    --nav-bg: #1E2C27;
    --nav-text: #F4F8F6;
    --primary-color: #4A7C6E;
    --primary-dark: #365D52;
    --primary-light: #8FB9AA;
    --secondary-color: #1E2C27;
    --secondary-light: #3C4F48;
    --success-color: #4A9B7C;
    --danger-color: #CF5A54;
    --warning-color: #D9A441;
    --info-color: #5DA7A0;
    --logo-surface: #FFFFFF;
    --logo-border: rgba(30, 44, 39, 0.12);
}

[data-theme="light"][data-org-theme-light="rose"] {
    --font-sans: "Manrope", "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
    --font-display: "DM Serif Display", "Space Grotesk", serif;
    --primary-rgb: 160, 71, 94;
    --warning-rgb: 216, 150, 95;
    --page-bg: #F7EFEF;
    --page-bg-accent: #EDE1E1;
    --surface: #FFFFFF;
    --surface-alt: #FCF5F5;
    --border-color: #E3D0D2;
    --text-color: #2C1C1F;
    --text-muted: #7C666A;
    --nav-bg: #2C1C1F;
    --nav-text: #FCEFF2;
    --primary-color: #A0475E;
    --primary-dark: #7C3346;
    --primary-light: #D08A99;
    --secondary-color: #2C1C1F;
    --secondary-light: #4A3338;
    --success-color: #5FA38A;
    --danger-color: #D85A6A;
    --warning-color: #D8965F;
    --info-color: #B37E8D;
    --logo-surface: #FFFFFF;
    --logo-border: rgba(44, 28, 31, 0.12);
}

[data-theme="dark"][data-org-theme-dark="forest"] {
    --font-sans: "Sora", "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
    --font-display: "Space Grotesk", "Sora", sans-serif;
    --primary-rgb: 108, 195, 160;
    --warning-rgb: 233, 185, 92;
    --page-bg: #0E1411;
    --page-bg-accent: #142019;
    --surface: #18241D;
    --surface-alt: #1E2E26;
    --border-color: #2A3B32;
    --text-color: #E4EFEA;
    --text-muted: #9FB0A7;
    --nav-bg: #0B120F;
    --nav-text: #E4EFEA;
    --primary-color: #6CC3A0;
    --primary-dark: #4EA985;
    --primary-light: #9ADBC1;
    --secondary-color: #0B120F;
    --secondary-light: #233128;
    --success-color: #7FC68A;
    --success-dark: #5FAA68;
    --danger-color: #E08273;
    --warning-color: #E9B95C;
    --info-color: #72B7A8;
    --logo-surface: #F5F1E9;
    --logo-border: rgba(0, 0, 0, 0.25);
}

[data-theme="dark"][data-org-theme-dark="ember"] {
    --font-sans: "Manrope", "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
    --font-display: "Fraunces", "Space Grotesk", serif;
    --primary-rgb: 224, 139, 91;
    --warning-rgb: 240, 179, 94;
    --page-bg: #14110D;
    --page-bg-accent: #1B1712;
    --surface: #201A14;
    --surface-alt: #261F18;
    --border-color: #3B3127;
    --text-color: #F3E8DC;
    --text-muted: #B9A99A;
    --nav-bg: #120E0A;
    --nav-text: #F7ECE1;
    --primary-color: #E08B5B;
    --primary-dark: #C36D3E;
    --primary-light: #F0B48B;
    --secondary-color: #120E0A;
    --secondary-light: #2F251C;
    --success-color: #7BC1A0;
    --danger-color: #E07B6C;
    --warning-color: #F0B35E;
    --info-color: #E1A96B;
    --logo-surface: #F6EFE4;
    --logo-border: rgba(0, 0, 0, 0.25);
}

[data-theme="dark"][data-org-theme-dark="indigo"] {
    --font-sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
    --font-display: "Space Grotesk", "IBM Plex Sans", sans-serif;
    --primary-rgb: 122, 155, 255;
    --warning-rgb: 241, 193, 91;
    --page-bg: #10141C;
    --page-bg-accent: #141B28;
    --surface: #182131;
    --surface-alt: #1E2A3B;
    --border-color: #2B3547;
    --text-color: #E6EDF5;
    --text-muted: #9EACBD;
    --nav-bg: #0C111A;
    --nav-text: #E6EDF5;
    --primary-color: #7A9BFF;
    --primary-dark: #5C7BE0;
    --primary-light: #A6BCFF;
    --secondary-color: #0C111A;
    --secondary-light: #273145;
    --success-color: #7BB5E0;
    --danger-color: #F07C6B;
    --warning-color: #F1C15B;
    --info-color: #8BB1FF;
    --logo-surface: #F6F3EC;
    --logo-border: rgba(0, 0, 0, 0.25);
}

body {
    background-color: var(--page-bg);
    background-image: radial-gradient(1200px 600px at -10% -10%, rgba(var(--primary-rgb), 0.18), transparent 60%),
                      radial-gradient(900px 500px at 110% -20%, rgba(var(--warning-rgb), 0.12), transparent 60%),
                      linear-gradient(180deg, var(--page-bg), var(--page-bg-accent));
    color: var(--text-color);
    font-family: var(--font-sans);
    padding-bottom: calc(98px + env(safe-area-inset-bottom)); /* Space for bottom nav + safe area */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
}

@keyframes page-fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes dashboard-fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes login-card-pop {
    0% {
        opacity: 0;
        transform: scale(0.96);
        box-shadow: 0 4px 12px rgba(15, 32, 41, 0.04);
    }
    65% {
        opacity: 1;
        transform: scale(1.01);
        box-shadow: 0 18px 34px rgba(15, 32, 41, 0.12);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: var(--card-shadow);
    }
}

@keyframes login-piece-assemble {
    0% {
        opacity: 0;
        transform: translate3d(var(--piece-x, 0), var(--piece-y, 0), 0) scale(var(--piece-scale, 0.92));
        filter: blur(10px);
    }
    72% {
        opacity: 1;
        transform: translate3d(calc(var(--piece-x, 0) * -0.08), calc(var(--piece-y, 0) * -0.08), 0) scale(1.015);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0);
    }
}

@keyframes page-piece-assemble {
    0% {
        opacity: 0;
        transform: translate3d(var(--page-piece-x, 0), var(--page-piece-y, 0), 0) scale(var(--page-piece-scale, 0.97));
        filter: blur(8px);
    }
    72% {
        opacity: 1;
        transform: translate3d(calc(var(--page-piece-x, 0) * -0.08), calc(var(--page-piece-y, 0) * -0.08), 0) scale(1.01);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    body,
    .dashboard-grid .grid-stack-item {
        animation: none;
    }
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

/* Navbar */
.navbar-dark.bg-primary {
    background-color: var(--nav-bg) !important;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.2);
    backdrop-filter: blur(8px);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-dark .navbar-nav .nav-link,
.navbar-dark .navbar-brand,
.navbar-dark .navbar-toggler {
    color: var(--nav-text);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link.active {
    color: #ffffff;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

/* Sidebar */
.app-shell {
    min-height: 100vh;
}

.app-main {
    padding: 24px 0 calc(104px + env(safe-area-inset-bottom));
}

.app-sidebar {
    background-color: var(--page-bg);
    color: var(--text-color);
    border-right: 1px solid var(--border-color);
}

@media (min-width: 992px) {
    .app-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: var(--sidebar-width);
        height: 100vh;
        padding: 24px 20px;
        z-index: 1030;
        transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.32s ease;
    }

    .app-main {
        margin-left: var(--sidebar-width);
        padding-top: 36px;
        padding-bottom: 64px;
        transition: margin-left 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    }

    html[data-sidebar-state="hidden"] .app-sidebar {
        transform: translateX(calc(-100% - 28px));
        opacity: 0;
        pointer-events: none;
    }

    html[data-sidebar-state="hidden"] .app-main {
        margin-left: 0;
    }
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 20px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-color);
    text-decoration: none;
}

.sidebar-brand:hover {
    color: var(--text-color);
}

.sidebar-logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 16px;
    background: var(--logo-surface);
    border: 1px solid var(--logo-border);
    box-shadow: var(--logo-shadow);
}

.sidebar-logo-badge img {
    height: 34px;
    width: auto;
    display: block;
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-org-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.sidebar-org-tag {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sidebar-sections {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.sidebar-section {
    margin-bottom: 18px;
}

.sidebar-section-title {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.sidebar-section-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
}

.sidebar-section-toggle:hover,
.sidebar-section-toggle:focus {
    color: var(--text-color);
}

.sidebar-section-chevron {
    transition: transform 0.2s ease;
}

.sidebar-section-toggle[aria-expanded="true"] .sidebar-section-chevron {
    transform: rotate(180deg);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    color: var(--text-color);
    text-decoration: none;
    margin-bottom: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-link i {
    font-size: 1.1rem;
}

.sidebar-link:hover,
.sidebar-link:focus {
    background-color: rgba(var(--primary-rgb), 0.12);
    color: var(--text-color);
}

.sidebar-link.active {
    background-color: rgba(var(--primary-rgb), 0.18);
    color: var(--text-color);
    font-weight: 600;
}

.nav-badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #ff4d6d;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
}

.nav-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-badge-dot {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ff4d6d;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.sidebar-submenu-toggle {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
}

.sidebar-submenu-chevron {
    margin-left: auto;
    transition: transform 0.2s ease;
}

.sidebar-submenu-toggle[aria-expanded="true"] .sidebar-submenu-chevron {
    transform: rotate(180deg);
}

.sidebar-submenu {
    margin-left: 12px;
    padding-left: 10px;
    border-left: 1px solid var(--border-color);
}

.sidebar-sublink {
    font-size: 0.9rem;
    padding-left: 18px;
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.sidebar-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px 12px;
    background: transparent;
}

.sidebar-action:hover,
.sidebar-action:focus {
    color: var(--text-color);
    border-color: rgba(var(--primary-rgb), 0.4);
    background-color: rgba(var(--primary-rgb), 0.12);
}

.sidebar-locale-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.sidebar-locale-option {
    justify-content: center;
    text-decoration: none;
}

.sidebar-locale-option.active {
    background-color: rgba(var(--primary-rgb), 0.18);
    border-color: rgba(var(--primary-rgb), 0.46);
    font-weight: 600;
}

.sidebar-user {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-user-name {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.sidebar-visibility-toggle {
    position: fixed;
    top: 20px;
    left: calc(var(--sidebar-width) - 18px);
    z-index: 1045;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--text-color);
    box-shadow: 0 10px 18px rgba(15, 32, 41, 0.12);
    align-items: center;
    justify-content: center;
    transition: left 0.42s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(10px);
}

.sidebar-visibility-toggle:hover,
.sidebar-visibility-toggle:focus {
    background: var(--surface);
    color: var(--text-color);
    border-color: rgba(var(--primary-rgb), 0.34);
    transform: translateY(-1px);
}

html[data-sidebar-state="hidden"] .sidebar-visibility-toggle {
    left: 18px;
}

[data-theme="dark"] .sidebar-visibility-toggle {
    background: rgba(21, 32, 38, 0.88);
}

.app-sidebar.sidebar-assembling .sidebar-piece-animate {
    opacity: 0;
    animation: login-piece-assemble 0.84s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.app-sidebar.sidebar-assembling .sidebar-piece-top {
    --piece-x: 0px;
    --piece-y: -70px;
    --piece-scale: 0.9;
    animation-delay: 0.08s;
}

.app-sidebar.sidebar-assembling .sidebar-piece-left {
    --piece-x: -60px;
    --piece-y: 0px;
    --piece-scale: 0.94;
    animation-delay: 0.18s;
}

.app-sidebar.sidebar-assembling .sidebar-piece-bottom {
    --piece-x: 0px;
    --piece-y: 54px;
    --piece-scale: 0.96;
    animation-delay: 0.3s;
}

/* Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    margin-bottom: 1rem;
    background-color: var(--surface);
}

.card-header {
    background-color: var(--surface-alt);
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.card-header.text-white,
.card-header.text-dark {
    color: var(--text-color) !important;
}

.card-header.bg-primary {
    background-color: rgba(var(--primary-rgb), 0.14) !important;
}

.card-header.bg-info {
    background-color: rgba(var(--primary-rgb), 0.12) !important;
}

.card-header.bg-success {
    background-color: rgba(var(--primary-rgb), 0.12) !important;
}

.card-header.bg-warning {
    background-color: rgba(var(--warning-rgb), 0.16) !important;
}

.card-header.bg-secondary,
.card-header.bg-dark {
    background-color: rgba(var(--primary-rgb), 0.08) !important;
}

.card-header.bg-light {
    background-color: var(--surface-alt) !important;
}

.card .list-group-item {
    background-color: var(--surface);
    color: var(--text-color);
    border-color: var(--border-color);
}

.dashboard-card .widget-header {
    background-color: var(--surface-alt);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.dashboard-card .widget-header i {
    color: var(--primary-color);
}

.dashboard-card .list-group-item {
    background-color: var(--surface);
    color: var(--text-color);
    border-color: var(--border-color);
}

.card:hover {
    box-shadow: 0 14px 24px rgba(15, 32, 41, 0.14);
    border-color: rgba(var(--primary-rgb), 0.3);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 10px 18px rgba(var(--primary-rgb), 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 12px 20px rgba(var(--primary-rgb), 0.3);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: #ffffff;
}

.btn-success:hover {
    background-color: var(--success-dark);
    border-color: var(--success-dark);
    color: #ffffff;
}

.btn-lg {
    padding: 1rem 2rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

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

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Dropdowns */
.dropdown-menu {
    background-color: var(--surface);
    border-color: var(--border-color);
    box-shadow: var(--card-shadow);
}

.dropdown-item {
    color: var(--text-color);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(var(--primary-rgb), 0.12);
    color: var(--text-color);
}

/* Status Badges */
.badge {
    padding: 0.5em 0.8em;
    border-radius: 8px;
    font-weight: 500;
}

.badge.bg-primary { 
    background-color: var(--primary-color) !important; 
    color: white !important;
}

.badge.bg-info { 
    background-color: var(--info-color) !important; 
    color: white !important; 
}

.badge.bg-danger { 
    background-color: var(--danger-color) !important; 
}

.badge.bg-success {
    background-color: var(--success-color) !important;
}

.badge.bg-warning { 
    background-color: var(--warning-color) !important; 
    color: #000 !important; 
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 12px;
    right: 12px;
    width: auto;
    background: var(--surface);
    box-shadow: 0 14px 28px rgba(15, 32, 41, 0.16);
    z-index: 1000;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    gap: 0.5rem;
    overflow: hidden;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.bottom-nav-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    transition: color 0.2s, transform 0.2s;
    padding: 8px 6px;
    min-width: 56px;
    min-height: 56px;
    background: transparent;
    border: none;
    border-radius: 12px;
}

.bottom-nav-item i {
    font-size: 1.35rem;
    margin-bottom: 2px;
}

.bottom-nav-item.active {
    color: var(--primary-color);
    font-weight: 600;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 12px;
}

.bottom-nav-item:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.bottom-nav .theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
}

.bottom-nav .theme-toggle .theme-toggle-icon {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.mobile-menu {
    --mobile-menu-offset: 0px;
    background: var(--surface);
    color: var(--text-color);
    border-top-left-radius: 26px;
    border-top-right-radius: 26px;
    box-shadow: 0 -20px 36px rgba(15, 32, 41, 0.24);
    touch-action: pan-y;
}

.mobile-menu.offcanvas-bottom {
    --bs-offcanvas-height: calc(100vh - env(safe-area-inset-top));
    --bs-offcanvas-height: calc(100dvh - env(safe-area-inset-top));
    top: env(safe-area-inset-top);
    bottom: 0;
    height: var(--bs-offcanvas-height);
    max-height: var(--bs-offcanvas-height);
    transform: translateY(calc(100% + 24px));
}

.mobile-menu.offcanvas-bottom.show,
.mobile-menu.offcanvas-bottom.showing {
    transform: translateY(var(--mobile-menu-offset)) !important;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu.is-dragging {
    transition: none !important;
}

.mobile-menu .offcanvas-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--surface);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-color);
    padding: calc(0.8rem + (env(safe-area-inset-top) * 0.28)) 1rem 0.85rem;
}

.mobile-menu-header-content {
    flex: 1 1 auto;
    display: grid;
    justify-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.mobile-menu-drag-handle {
    width: 52px;
    height: 5px;
    border-radius: 999px;
    background: rgba(var(--primary-rgb), 0.22);
}

.mobile-menu-heading {
    text-align: center;
}

.mobile-menu-hint {
    font-size: 0.76rem;
    color: var(--text-muted);
}

.mobile-menu .offcanvas-body {
    padding: 0.85rem 1rem calc(1rem + env(safe-area-inset-bottom));
    overscroll-behavior: contain;
}

.mobile-menu-section {
    margin-bottom: 18px;
}

.mobile-menu-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.mobile-section-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
}

.mobile-section-toggle i {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.mobile-section-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.mobile-section-toggle + .mobile-group-collapse {
    margin-top: 0.25rem;
}

.mobile-submenu-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin: 6px 0;
}

.mobile-submenu .list-group-item {
    padding-left: 2.25rem;
}

.mobile-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.mobile-group-toggle i {
    transition: transform 0.2s ease;
}

.mobile-group-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.mobile-group-collapse .mobile-submenu {
    margin-top: 0.4rem;
}

.mobile-menu .list-group-item {
    background: var(--surface);
    color: var(--text-color);
    border-color: var(--border-color);
    border-radius: 12px !important;
    margin-bottom: 0.4rem;
}

.mobile-menu .list-group-item-action:hover,
.mobile-menu .list-group-item-action:focus {
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--text-color);
}

.mobile-menu .theme-toggle {
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

/* Alert customization */
.alert-info {
    background-color: rgba(var(--primary-rgb), 0.12);
    border-color: var(--primary-color);
    color: var(--text-color);
}

.alert-warning {
    background-color: rgba(var(--warning-rgb), 0.16);
    border-color: var(--warning-color);
}

/* Modals */
.modal-content {
    background-color: var(--surface);
    color: var(--text-color);
    border-color: var(--border-color);
}

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

/* Login page branding */
.login-logo-wrap {
    width: 100%;
    overflow: hidden;
}

.login-logo {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto;
    display: block;
    object-fit: contain;
}

.auth-container {
    width: 100%;
    max-width: none;
    padding-left: 18px;
    padding-right: 18px;
}

.route-app-login {
    min-height: 100vh;
    padding-bottom: 0;
}

.route-app-login .auth-scene {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
}

.auth-single-card {
    width: min(100%, 420px);
    margin: 0 auto;
    border-radius: 24px;
    transform-origin: center;
}

html[data-first-visit="1"] .route-app-login .auth-single-card {
    animation: login-card-pop 1.15s cubic-bezier(0.2, 0.9, 0.22, 1.05);
}

.auth-form-shell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

.auth-form-copy {
    margin: 0 0 1.1rem;
}

.auth-form-copy p {
    margin-bottom: 0;
    color: var(--text-muted);
}

.auth-form .form-label {
    font-weight: 600;
}

.auth-form .form-control {
    border-radius: 18px;
    padding-left: 1rem;
    padding-right: 1rem;
    min-height: 56px;
}

.auth-form-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.auth-submit {
    min-height: 58px;
}

html[data-first-visit="1"] body:not(.route-app-login) {
    animation: page-fade 0.32s ease-out;
}

html[data-first-visit="1"] body:not(.route-app-login) .page-enter-root > * {
    opacity: 0;
    animation: page-piece-assemble 0.88s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    will-change: transform, opacity, filter;
}

html[data-first-visit="1"] body:not(.route-app-login) .page-enter-root > *:nth-child(4n + 1) {
    --page-piece-x: 0px;
    --page-piece-y: -60px;
    --page-piece-scale: 0.96;
    animation-delay: 0.06s;
}

html[data-first-visit="1"] body:not(.route-app-login) .page-enter-root > *:nth-child(4n + 2) {
    --page-piece-x: -56px;
    --page-piece-y: 0px;
    --page-piece-scale: 0.97;
    animation-delay: 0.14s;
}

html[data-first-visit="1"] body:not(.route-app-login) .page-enter-root > *:nth-child(4n + 3) {
    --page-piece-x: 56px;
    --page-piece-y: 0px;
    --page-piece-scale: 0.97;
    animation-delay: 0.22s;
}

html[data-first-visit="1"] body:not(.route-app-login) .page-enter-root > *:nth-child(4n) {
    --page-piece-x: 0px;
    --page-piece-y: 48px;
    --page-piece-scale: 0.98;
    animation-delay: 0.3s;
}

html[data-first-visit="1"] .route-app-login .auth-piece,
html[data-first-visit="1"] .route-app-login .auth-fragment {
    opacity: 0;
    animation: login-piece-assemble 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

html[data-first-visit="1"] .route-app-login .auth-piece-top {
    --piece-x: 0px;
    --piece-y: -82px;
    --piece-scale: 0.88;
    animation-delay: 0.18s;
}

html[data-first-visit="1"] .route-app-login .auth-piece-left {
    --piece-x: -72px;
    --piece-y: 0px;
    --piece-scale: 0.92;
    animation-delay: 0.28s;
}

html[data-first-visit="1"] .route-app-login .auth-piece-right {
    --piece-x: 84px;
    --piece-y: 0px;
    --piece-scale: 0.92;
    animation-delay: 0.38s;
}

html[data-first-visit="1"] .route-app-login .auth-piece-bottom {
    --piece-x: 0px;
    --piece-y: 66px;
    --piece-scale: 0.94;
    animation-delay: 0.68s;
}

html[data-first-visit="1"] .route-app-login .auth-fragment-left {
    --piece-x: -48px;
    --piece-y: 0px;
    --piece-scale: 0.95;
    animation-delay: 0.48s;
}

html[data-first-visit="1"] .route-app-login .auth-fragment-right {
    --piece-x: 48px;
    --piece-y: 0px;
    --piece-scale: 0.95;
    animation-delay: 0.6s;
}

html[data-first-visit="1"] .route-app-login .auth-fragment-left-soft {
    --piece-x: -28px;
    --piece-y: 18px;
    --piece-scale: 0.98;
    animation-delay: 0.72s;
}

html[data-first-visit="1"] .route-app-login .auth-fragment-bottom {
    --piece-x: 0px;
    --piece-y: 34px;
    --piece-scale: 0.96;
    animation-delay: 0.84s;
}


@media (max-width: 576px) {
    .login-card-body {
        padding: 1.5rem !important;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .auth-container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    h1.display-4 {
        font-size: 2rem;
        font-weight: 700;
        color: var(--text-color);
    }
    
    .bottom-nav {
        left: 10px;
        right: 10px;
    }
}

@media (max-width: 991px) {
    .auth-single-card {
        width: min(100%, 460px);
    }
}

@media (max-width: 767px) {
    .auth-form-meta {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-single-card,
    html[data-first-visit="1"] body:not(.route-app-login) .page-enter-root > *,
    .route-app-login .auth-piece,
    .route-app-login .auth-fragment,
    .app-sidebar.sidebar-assembling .sidebar-piece-animate {
        animation: none;
        opacity: 1;
        transform: none;
        filter: none;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .container {
        max-width: min(920px, 100%);
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* Accent elements */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Form elements */
.form-control,
.form-select,
.form-check-input {
    background-color: var(--surface);
    border-color: var(--border-color);
    color: var(--text-color);
}

.member-checkboxes {
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 0.75rem 1rem;
    background-color: var(--surface);
}

.member-checkboxes .form-check {
    margin-bottom: 0.35rem;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control[type="file"] {
    color: var(--text-color);
}

.form-control[type="file"]::file-selector-button {
    color: var(--text-color);
    background-color: var(--surface-alt);
    border: 1px solid var(--border-color);
}

.form-control[type="file"]::-webkit-file-upload-button {
    color: var(--text-color);
    background-color: var(--surface-alt);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .form-control[type="file"]::file-selector-button {
    color: var(--text-color);
    background-color: rgba(var(--primary-rgb), 0.2);
    border-color: rgba(var(--primary-rgb), 0.36);
}

[data-theme="dark"] .form-control[type="file"]::-webkit-file-upload-button {
    color: var(--text-color);
    background-color: rgba(var(--primary-rgb), 0.2);
    border-color: rgba(var(--primary-rgb), 0.36);
}

.monthly-calendar {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.monthly-calendar-header,
.monthly-calendar-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.35rem;
}

.monthly-calendar-header span {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.monthly-calendar-day {
    border-radius: 10px;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    position: relative;
    font-weight: 600;
    color: var(--text-color);
}

.monthly-calendar-day.is-empty {
    background: transparent;
    border: none;
}

.monthly-calendar-day.status-ok {
    background: rgba(25, 135, 84, 0.15);
    border-color: rgba(25, 135, 84, 0.4);
    color: #1b5e3b;
}

.monthly-calendar-day.status-leave {
    background: rgba(255, 193, 7, 0.18);
    border-color: rgba(255, 193, 7, 0.45);
    color: #7a5a00;
}

.monthly-calendar-day.status-error {
    background: rgba(220, 53, 69, 0.16);
    border-color: rgba(220, 53, 69, 0.45);
    color: #7a1e2b;
}

.monthly-calendar-day.status-off {
    background: rgba(108, 117, 125, 0.12);
    border-color: rgba(108, 117, 125, 0.2);
    color: var(--text-muted);
}

.monthly-calendar-day.status-future {
    background: rgba(13, 110, 253, 0.08);
    border-color: rgba(13, 110, 253, 0.2);
    color: var(--text-muted);
}

.monthly-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.monthly-calendar-legend .legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.monthly-calendar-legend .legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.monthly-calendar-legend .legend-dot.status-ok {
    background: rgba(25, 135, 84, 0.7);
}

.monthly-calendar-legend .legend-dot.status-leave {
    background: rgba(255, 193, 7, 0.8);
}

.monthly-calendar-legend .legend-dot.status-error {
    background: rgba(220, 53, 69, 0.7);
}

.monthly-calendar-legend .legend-dot.status-off {
    background: rgba(108, 117, 125, 0.5);
}

/* Form focus states */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: var(--focus-ring);
}

.navbar .theme-toggle {
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.navbar .theme-toggle:hover,
.navbar .theme-toggle:focus {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* Links */
a {
    color: var(--primary-color);
}

a:hover {
    color: var(--primary-dark);
}

/* Custom User Colors */
.bg-pink {
    background-color: #e83e8c !important;
    color: white !important;
}

.bg-purple {
    background-color: #6f42c1 !important;
    color: white !important;
}

/* Dashboard grid layout */
.dashboard-grid {
    margin-bottom: 2rem;
    min-height: 200px;
}

html[data-first-visit="1"] .dashboard-grid .grid-stack-item {
    animation: dashboard-fade 0.4s ease-out both;
}

html[data-first-visit="1"] .dashboard-grid .grid-stack-item:nth-child(1) { animation-delay: 0.05s; }
html[data-first-visit="1"] .dashboard-grid .grid-stack-item:nth-child(2) { animation-delay: 0.1s; }
html[data-first-visit="1"] .dashboard-grid .grid-stack-item:nth-child(3) { animation-delay: 0.15s; }
html[data-first-visit="1"] .dashboard-grid .grid-stack-item:nth-child(4) { animation-delay: 0.2s; }
html[data-first-visit="1"] .dashboard-grid .grid-stack-item:nth-child(5) { animation-delay: 0.25s; }
html[data-first-visit="1"] .dashboard-grid .grid-stack-item:nth-child(6) { animation-delay: 0.3s; }

.dashboard-grid .grid-stack-item-content {
    background: transparent;
    overflow: hidden;
    border-radius: var(--card-radius);
}

.dashboard-widget {
    height: 100%;
}

.dashboard-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.dashboard-card-body {
    flex: 1;
    overflow: auto;
    gap: 0.75rem;
}

.dashboard-grid--mobile {
    display: grid;
    gap: 0.9rem;
    min-height: 0;
}

.dashboard-grid--mobile.grid-stack {
    height: auto !important;
}

.dashboard-grid--mobile.grid-stack > .grid-stack-item {
    position: relative !important;
    width: 100% !important;
    left: auto !important;
    top: auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
}

.dashboard-grid--mobile.grid-stack > .grid-stack-item > .grid-stack-item-content {
    position: relative !important;
    inset: auto !important;
    height: auto !important;
    overflow: visible !important;
}

.dashboard-grid--mobile .dashboard-widget,
.dashboard-grid--mobile .dashboard-card,
.dashboard-grid--mobile .dashboard-card-body {
    height: auto !important;
}

.dashboard-grid--mobile .dashboard-card-body {
    overflow: visible;
}

.dashboard-grid--mobile .ui-resizable-handle,
.dashboard-grid--mobile .grid-stack-placeholder {
    display: none !important;
}

.dashboard-card-header {
    background-color: var(--surface-alt);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.dashboard-card-header .btn {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.dashboard-card-header .btn-outline-secondary {
    border-color: var(--border-color);
    color: var(--text-muted);
}

.dashboard-card-header .btn-outline-secondary:hover,
.dashboard-card-header .btn-outline-secondary:focus {
    background-color: rgba(var(--primary-rgb), 0.12);
    color: var(--text-color);
}

.dashboard-card .card-title {
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.9rem;
}

.dashboard-request-list {
    --bs-list-group-bg: transparent;
    --bs-list-group-border-color: transparent;
    --bs-list-group-item-padding-x: 0;
    --bs-list-group-item-padding-y: 0;
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.dashboard-request {
    background: var(--surface-alt);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.dashboard-request-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.dashboard-request-actions form {
    margin: 0;
}

.grid-stack-placeholder > .placeholder-content {
    border: 2px dashed var(--primary-color);
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: var(--card-radius);
}

.dashboard-widget-options {
    display: grid;
    gap: 0.75rem 1.5rem;
}

@media (min-width: 768px) {
    .dashboard-widget-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ops-hero {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
}

.ops-title {
    margin: 0;
    font-size: clamp(1.6rem, 2.8vw, 2.25rem);
}

.ops-subtitle {
    color: var(--text-muted);
    margin: 0;
}

.ops-line {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.4rem;
}

.ops-line-item {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 0.8rem 0.9rem;
    background: var(--surface-alt);
}

.ops-line-label {
    margin: 0;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.ops-line-value {
    margin-top: 0.2rem;
    font-weight: 700;
    color: var(--text-color);
}

.ops-line-meta {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.status-panel {
    border-radius: 14px;
    border: 1px solid var(--tone-neutral-border);
    background: var(--tone-neutral-bg);
    color: var(--tone-neutral-text);
    padding: 0.9rem 1rem;
    display: grid;
    gap: 0.2rem;
}

.status-panel strong {
    font-weight: 700;
}

.status-panel.status-success {
    background: var(--tone-success-bg);
    border-color: var(--tone-success-border);
    color: var(--tone-success-text);
}

.status-panel.status-danger {
    background: var(--tone-danger-bg);
    border-color: var(--tone-danger-border);
    color: var(--tone-danger-text);
}

.status-panel.status-warning {
    background: var(--tone-warning-bg);
    border-color: var(--tone-warning-border);
    color: var(--tone-warning-text);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.metric-tile {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--surface);
    padding: 1rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.8rem;
    align-items: center;
}

.metric-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.14);
    color: var(--primary-color);
    font-size: 1.2rem;
}

.metric-value {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1;
}

.metric-label {
    margin: 0.2rem 0 0;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.workflow-stack {
    display: grid;
    gap: 0.9rem;
}

.workflow-card {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--surface);
    padding: 1rem;
}

.workflow-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.workflow-meta {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.filter-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    background: var(--surface-alt);
    color: var(--text-color);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.8rem;
}

.records-table tbody tr {
    background: transparent !important;
}

.records-table tbody tr td {
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.records-row-state {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
}

.records-row-state.state-in {
    color: var(--success-color);
}

.records-row-state.state-out {
    color: var(--danger-color);
}

.request-reason-row {
    background-color: rgba(var(--primary-rgb), 0.1) !important;
    border-top: 1px solid rgba(var(--primary-rgb), 0.2);
}

.request-reason-row small,
.request-reason-row strong {
    color: var(--text-color);
}

[data-theme="dark"] .request-reason-row {
    background-color: rgba(255, 255, 255, 0.06) !important;
    border-top-color: rgba(255, 255, 255, 0.14);
}

@media (max-width: 991px) {
    .table-responsive {
        border-radius: 14px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        border: 1px solid var(--border-color);
        background: var(--surface);
    }

    .table-responsive > .table {
        margin-bottom: 0;
        min-width: 620px;
    }

    .table-responsive > .table.records-table--fit {
        min-width: 100%;
        width: 100%;
        table-layout: fixed;
    }

    .table-responsive > .table.records-table--fit th,
    .table-responsive > .table.records-table--fit td {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .table-responsive > .table.records-table--fit th:first-child,
    .table-responsive > .table.records-table--fit td:first-child {
        width: 35%;
    }

    .table-responsive > .table.records-table--fit th:last-child,
    .table-responsive > .table.records-table--fit td:last-child {
        width: 65%;
        font-variant-numeric: tabular-nums;
    }

    .table-responsive > .table.table-mobile-fit {
        min-width: 100%;
        width: 100%;
        table-layout: fixed;
    }

    .table-responsive > .table.table-mobile-fit th,
    .table-responsive > .table.table-mobile-fit td {
        white-space: normal;
        overflow-wrap: anywhere;
        padding: 0.55rem 0.5rem;
        font-size: 0.9rem;
    }

    .table-responsive > .table.table-mobile-fit--docs th:last-child,
    .table-responsive > .table.table-mobile-fit--docs td:last-child {
        width: 42%;
    }

    .table-responsive > .table.table-mobile-fit--vacation-calendar th:first-child,
    .table-responsive > .table.table-mobile-fit--vacation-calendar td:first-child {
        width: 38%;
        white-space: nowrap;
    }

    .table-responsive > .table.table-mobile-fit--vacation-calendar th:last-child,
    .table-responsive > .table.table-mobile-fit--vacation-calendar td:last-child {
        width: 62%;
    }

    .table-responsive > .table.table-mobile-fit--vacation-calendar td .badge {
        display: inline-flex;
        align-items: center;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: left;
        line-height: 1.2;
        margin-bottom: 0.25rem;
    }

    .table-responsive > .table.table-mobile-fit--docs .justification-upload-form .input-group {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
    }

    .table-responsive > .table.table-mobile-fit--docs .justification-upload-form .input-group > .form-control,
    .table-responsive > .table.table-mobile-fit--docs .justification-upload-form .input-group > .btn {
        width: 100%;
        border-radius: 10px !important;
    }

    .table-responsive > .table.table-mobile-fit--docs .justification-upload-form .btn {
        white-space: nowrap;
    }

    .records-table--fit .records-row-state {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .ops-line,
    .metric-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .table-responsive > .table.records-table--fit {
        font-size: 0.93rem;
    }

    .table-responsive > .table.table-mobile-fit {
        font-size: 0.86rem;
    }

    .table-responsive > .table.records-table--fit th {
        font-size: 0.92rem;
        line-height: 1.2;
    }

    .table-responsive > .table.table-mobile-fit th {
        font-size: 0.84rem;
        line-height: 1.2;
    }
}

/* 2026 refresh layer: clearer hierarchy, stronger affordances, mobile ergonomics */
:root {
    --font-sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
    --font-display: "Fraunces", "IBM Plex Sans", serif;
    --page-bg: #f4f1eb;
    --page-bg-accent: #f4f1eb;
    --surface: #ffffff;
    --surface-alt: #fbfaf7;
    --border-color: #d8d1c8;
    --text-color: #161412;
    --text-muted: #756d64;
    --primary-rgb: 33, 93, 98;
    --primary-color: #215d62;
    --primary-dark: #173f42;
    --warning-rgb: 178, 132, 55;
    --card-shadow: 0 14px 28px rgba(22, 20, 18, 0.05);
}

html[data-theme] {
    --font-sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
    --font-display: "Fraunces", "IBM Plex Sans", serif;
}

[data-theme="dark"] {
    --page-bg: #121110;
    --page-bg-accent: #121110;
    --surface: #1a1817;
    --surface-alt: #211f1d;
    --border-color: #332f2a;
    --text-color: #f3eee7;
    --text-muted: #b2a89c;
    --primary-rgb: 122, 174, 177;
    --primary-color: #7aaeb1;
    --primary-dark: #628f92;
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
}

body {
    background-image: none;
    background-color: var(--page-bg);
}

.container {
    max-width: 1380px;
}

.app-sidebar {
    background: var(--surface);
    backdrop-filter: none;
}

.sidebar-brand {
    gap: 16px;
}

.sidebar-logo-badge {
    border-radius: 14px;
    box-shadow: 0 10px 18px rgba(22, 20, 18, 0.05);
}

.sidebar-org-name {
    letter-spacing: 0;
}

.sidebar-org-tag {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
}

.sidebar-link {
    position: relative;
    transition: background-color 0.24s ease, color 0.24s ease, border-color 0.24s ease, opacity 0.24s ease;
}

.sidebar-link:hover,
.sidebar-link:focus {
    transform: none;
    background-color: var(--surface-alt);
    color: var(--text-color);
}

.sidebar-link.active {
    background-color: transparent;
    color: var(--text-color);
    font-weight: 700;
}

.sidebar-link.active::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--text-color);
    border-radius: 999px;
}

.card,
.dashboard-request,
.ops-line-item,
.mobile-menu .list-group-item {
    border-color: color-mix(in srgb, var(--border-color) 88%, transparent);
}

.card {
    background: var(--surface);
    box-shadow: 0 12px 24px rgba(22, 20, 18, 0.04);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(22, 20, 18, 0.06);
}

.btn-primary {
    background-color: var(--text-color);
    border-color: var(--text-color);
    color: var(--surface);
    box-shadow: none;
    transition: background-color 0.24s ease, border-color 0.24s ease, color 0.24s ease, transform 0.24s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #2b2723;
    border-color: #2b2723;
    color: var(--surface);
    box-shadow: none;
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--text-color);
    border-color: var(--border-color);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--surface-alt);
    border-color: var(--text-color);
    color: var(--text-color);
}

.sidebar-visibility-toggle {
    background: var(--surface);
    border-color: var(--border-color);
    color: var(--text-color);
    box-shadow: 0 10px 20px rgba(22, 20, 18, 0.06);
    backdrop-filter: none;
}

.sidebar-visibility-toggle:hover,
.sidebar-visibility-toggle:focus {
    background: var(--surface-alt);
    border-color: var(--text-color);
    color: var(--text-color);
}

.ops-hero {
    padding: 1.1rem 1.2rem;
    border-radius: 22px;
    border: 1px solid var(--border-color);
    background: var(--surface);
    box-shadow: var(--card-shadow);
}

.ops-title {
    font-size: clamp(1.65rem, 3.2vw, 2.45rem);
    letter-spacing: 0.01em;
}

.ops-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.ops-line-item {
    border-radius: 18px;
    padding: 0.95rem 1rem;
    background: var(--surface);
    box-shadow: 0 10px 20px rgba(22, 20, 18, 0.04);
}

.ops-line-label {
    letter-spacing: 0.11em;
}

.ops-line-value {
    font-size: clamp(1.05rem, 2vw, 1.32rem);
    font-variant-numeric: tabular-nums;
}

.ops-shortcuts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
    gap: 0.7rem;
    margin: 0 0 1.35rem;
}

.ops-shortcut {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--surface);
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
    min-height: 46px;
    padding: 0.55rem 0.7rem;
    transition: border-color 0.24s ease, background-color 0.24s ease, color 0.24s ease, transform 0.24s ease, opacity 0.24s ease;
}

.ops-shortcut i {
    color: var(--primary-color);
}

.ops-shortcut:hover,
.ops-shortcut:focus {
    color: var(--text-color);
    border-color: rgba(var(--primary-rgb), 0.32);
    background: var(--surface-alt);
    transform: translateY(-2px);
}

.dashboard-card-header {
    position: sticky;
    top: 0;
    z-index: 1;
}

.notification-card {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 0.8rem 0.85rem;
    display: grid;
    gap: 0.7rem;
    background: var(--surface);
    box-shadow: 0 12px 22px rgba(22, 20, 18, 0.04);
    margin-bottom: 0.7rem;
}

.notification-main {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.7rem;
    align-items: flex-start;
}

.notification-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-alt);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
}

.notification-title-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

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

.notification-lock {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(var(--danger-rgb), 0.12);
    color: var(--danger-color);
    border: 1px solid rgba(var(--danger-rgb), 0.3);
}

.notification-message {
    margin: 0.2rem 0 0;
    color: var(--text-color);
    font-size: 0.9rem;
}

.notification-meta {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.notification-actions {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.notification-success .notification-icon {
    background: rgba(var(--success-rgb), 0.16);
    color: var(--success-color);
}

.notification-warning .notification-icon {
    background: rgba(var(--warning-rgb), 0.18);
    color: #a96d09;
}

.notification-danger .notification-icon {
    background: rgba(var(--danger-rgb), 0.16);
    color: var(--danger-color);
}

.bottom-nav {
    border: 1px solid var(--border-color);
    box-shadow: 0 14px 26px rgba(22, 20, 18, 0.08);
}

.mobile-menu {
    border: 1px solid var(--border-color);
    box-shadow: 0 -18px 32px rgba(22, 20, 18, 0.1);
}

[data-platform="ios"] .bottom-nav {
    bottom: env(safe-area-inset-bottom);
}

[data-platform="android"] .bottom-nav {
    bottom: calc(6px + env(safe-area-inset-bottom));
}

@media (max-width: 768px) {
    .bottom-nav {
        left: 0;
        right: 0;
        bottom: 0.1rem;
        width: 100%;
        border-radius: 18px 18px 0 0;
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }

    [data-platform="ios"] .bottom-nav,
    [data-platform="android"] .bottom-nav {
        bottom: 0;
    }
}

@media (max-width: 991px) {
    .ops-hero {
        border-radius: 14px;
        padding: 0.95rem;
    }

    .ops-shortcuts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .ops-shortcut {
        min-height: 44px;
        font-size: 0.86rem;
    }
}

@media (max-width: 560px) {
    .ops-shortcuts {
        grid-template-columns: 1fr;
    }

    .notification-actions .btn {
        flex: 1 1 100%;
    }
}

/* Dashboard home bento layer */
.dashboard-shell {
    margin-bottom: 2rem;
    padding: 1.25rem;
    border-radius: 28px;
    border: 1px solid var(--border-color);
    background: var(--surface);
    box-shadow: 0 20px 34px rgba(22, 20, 18, 0.04);
}

.dashboard-shell-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.dashboard-shell-kicker {
    margin: 0 0 0.3rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.dashboard-shell-title {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 700;
    color: var(--text-color);
}

.dashboard-shell-meta {
    margin: 0.25rem 0 0;
    max-width: 56ch;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.dashboard-shell-actions {
    display: grid;
    gap: 0.45rem;
    justify-items: end;
    max-width: 28rem;
}

.dashboard-edit-button {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0.6rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--surface-alt);
    color: var(--text-color);
    font-weight: 700;
    box-shadow: none;
    transition: border-color 0.24s ease, background-color 0.24s ease, color 0.24s ease, transform 0.24s ease;
}

.dashboard-edit-button:hover,
.dashboard-edit-button:focus {
    border-color: rgba(var(--primary-rgb), 0.34);
    background: var(--surface);
    color: var(--text-color);
    transform: translateY(-1px);
}

.dashboard-edit-button.is-active {
    background: var(--text-color);
    border-color: var(--text-color);
    color: var(--surface);
}

.dashboard-edit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.dashboard-edit-hint {
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--text-muted);
    text-align: right;
}

.dashboard-grid {
    position: relative;
    margin-bottom: 0;
    min-height: 520px;
    padding: 0.15rem;
    border-radius: 24px;
}

.dashboard-grid::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    background-image:
        linear-gradient(rgba(22, 20, 18, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 20, 18, 0.06) 1px, transparent 1px);
    background-size: calc((100% - 2rem) / 12) 84px;
    background-position: 0.1rem 0.1rem;
}

.dashboard-grid--editing::before {
    opacity: 1;
}

.dashboard-grid .grid-stack-item {
    --widget-accent: var(--primary-color);
    --widget-accent-glow: rgba(var(--primary-rgb), 0.15);
}

.dashboard-grid .grid-stack-item[gs-id="status"] {
    --widget-accent: #2f9e86;
    --widget-accent-glow: rgba(47, 158, 134, 0.18);
}

.dashboard-grid .grid-stack-item[gs-id="notifications"] {
    --widget-accent: #c97849;
    --widget-accent-glow: rgba(201, 120, 73, 0.16);
}

.dashboard-grid .grid-stack-item[gs-id="monthly_calendar"] {
    --widget-accent: #4d78b9;
    --widget-accent-glow: rgba(77, 120, 185, 0.15);
}

.dashboard-grid .grid-stack-item[gs-id="today_records"],
.dashboard-grid .grid-stack-item[gs-id="weekly"] {
    --widget-accent: #7a5dd1;
    --widget-accent-glow: rgba(122, 93, 209, 0.14);
}

.dashboard-grid .grid-stack-item[gs-id*="vacations"],
.dashboard-grid .grid-stack-item[gs-id*="teleworking"],
.dashboard-grid .grid-stack-item[gs-id*="corrections"] {
    --widget-accent: #1d8b98;
    --widget-accent-glow: rgba(var(--primary-rgb), 0.15);
}

.dashboard-grid .grid-stack-item-content {
    background: transparent;
    overflow: visible;
    border-radius: 24px;
}

.dashboard-grid .dashboard-widget,
.dashboard-grid .dashboard-card,
.dashboard-grid .calendar-card {
    height: 100%;
}

.dashboard-card,
.calendar-card,
.status-panel {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow:
        0 16px 28px rgba(22, 20, 18, 0.04),
        0 1px 0 rgba(255, 255, 255, 0.72) inset;
}

.dashboard-card,
.calendar-card {
    background: var(--surface);
}

.dashboard-card::before,
.calendar-card::before,
.status-panel::before {
    content: none;
}

#attendance-status-content,
#attendance-status-content .status-panel {
    height: 100%;
}

.status-panel {
    padding: 1.15rem 1.25rem 1.2rem;
    gap: 0.35rem;
    background: var(--surface);
    border-left: 3px solid rgba(var(--primary-rgb), 0.34);
}

.status-panel strong {
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

.status-panel span {
    max-width: 58ch;
}

.dashboard-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.dashboard-card-header,
.dashboard-card .widget-header {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 1rem 1.05rem 0.85rem;
    background: var(--surface);
    backdrop-filter: none;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-card-header h5,
.dashboard-card .widget-header h5,
.dashboard-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
}

.dashboard-card .card-title {
    padding-bottom: 0.7rem;
    margin-bottom: 1rem;
    border-bottom-color: var(--border-color);
}

.dashboard-card-header .btn,
.dashboard-card .btn,
.notification-actions .btn,
.dashboard-request-actions .btn {
    border-radius: 999px;
    font-weight: 600;
}

.dashboard-card-body {
    flex: 1;
    overflow: auto;
    padding: 1rem 1.05rem 1.1rem;
    gap: 0.8rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--primary-rgb), 0.26) transparent;
}

.dashboard-card-body::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.dashboard-card-body::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb), 0.22);
    border-radius: 999px;
}

.dashboard-request-list {
    gap: 0.8rem;
}

.dashboard-request {
    border-radius: 18px;
    padding: 0.9rem 1rem;
    background: var(--surface-alt);
    border: 1px solid var(--border-color);
    box-shadow: none;
}

.dashboard-request-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.notification-card {
    border-radius: 18px;
    padding: 0.95rem;
    background: var(--surface-alt);
    border: 1px solid var(--border-color);
    box-shadow: none;
}

.notification-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
}

.notification-message {
    line-height: 1.45;
}

.dashboard-grid .ui-resizable-handle {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.dashboard-grid .ui-resizable-se {
    width: 18px;
    height: 18px;
    right: 10px;
    bottom: 10px;
    border-radius: 999px;
    border: 1px solid rgba(var(--primary-rgb), 0.22);
    background: rgba(var(--primary-rgb), 0.16);
}

.dashboard-grid--editing .ui-resizable-handle {
    opacity: 1;
    pointer-events: auto;
}

.dashboard-grid--editing .grid-stack-item-content::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    border: 1px dashed rgba(var(--primary-rgb), 0.28);
    pointer-events: none;
}

.dashboard-grid--editing .dashboard-card-header,
.dashboard-grid--editing .dashboard-card .card-title,
.dashboard-grid--editing .dashboard-card .widget-header,
.dashboard-grid--editing .calendar-header,
.dashboard-grid--editing .status-panel {
    cursor: grab;
}

.dashboard-grid.grid-stack-static .ui-resizable-handle {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 991px) {
    .dashboard-shell {
        padding: 1rem;
        border-radius: 22px;
    }

    .dashboard-shell-header {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-shell-actions {
        justify-items: stretch;
        max-width: none;
    }

    .dashboard-edit-hint {
        text-align: left;
    }

    .dashboard-grid {
        min-height: 0;
        padding: 0;
    }

    .dashboard-grid--mobile {
        gap: 1rem;
    }

    .dashboard-grid--mobile .dashboard-card-body {
        overflow: visible;
    }
}

@media (max-width: 560px) {
    .dashboard-shell-title {
        font-size: 1.2rem;
    }

    .dashboard-card-header,
    .dashboard-card .widget-header,
    .dashboard-card-body,
    .calendar-card,
    .status-panel {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }
}
