﻿/* Reset & Base Styles */
body {
    margin: 0;
    font-family: Arial;
    background-color: white;
    color: #333;
}

.wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 220px;
    background-color: black;
    color: black;
    padding: 20px;
}

    .sidebar h2 {
        margin-bottom: 30px;
        font-size: 1.5em;
    }

    .sidebar ul {
        list-style: none;
        padding: 0;
    }

        .sidebar ul li {
            margin: 15px 0;
        }

            .sidebar ul li a {
                color: black;
                text-decoration: none;
                font-weight: 500;
            }

                .sidebar ul li a:hover {
                    text-decoration: underline;
                }

/* Topbar */
.topbar {
    background-color: #ffffff;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-right a {
    margin-left: 20px;
    text-decoration: none;
    color: red;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color all;
}

    .topbar-right a:hover {
        color: red;
        text-decoration: underline
    }


/* Main Content */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #f9fafb;
}

.content {
    padding: 30px;
}

/* Dashboard Widgets */
.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.widget {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

    .widget h3 {
        margin-top: 0;
        color: #2c3e50;
    }

    .widget button {
        margin-top: 10px;
        padding: 10px 15px;
        background-color: #3498db;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

        .widget button:hover {
            background-color: #2980b9;
        }


/* Responsive Styles */
@media (max-width: 768px) {
    .wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        padding: 10px 20px;
        text-align: center;
    }

        .sidebar ul {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
        }

            .sidebar ul li {
                margin: 10px;
            }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 20px;
    }

    .topbar-right {
        margin-top: 10px;
    }

    .dashboard-widgets {
        grid-template-columns: 1fr;
    }

    .widget {
        margin-bottom: 20px;
    }

        .widget button {
            width: 100%;
        }
}

@media (max-width: 480px) {
    .sidebar h2 {
        font-size: 1.2em;
    }

    .topbar span {
        font-size: 0.9em;
    }

    .widget h3 {
        font-size: 1em;
    }

    .widget p {
        font-size: 0.9em;
    }
}

/* Figma-inspired ESS refresh */
:root {
    --figma-lime: #dddd28;
    --figma-bg: #f1f1f1;
    --figma-sidebar: #e7e7e7;
    --figma-text: #596166;
    --figma-muted: #737c91;
    --figma-border: #e2e6ec;
    --figma-card: #fff;
    --figma-green: #05b84f;
    --figma-blue: #2f78ff;
    --figma-red: #ff3b43;
    --figma-purple: #a52cff;
}

body {
    background: var(--figma-bg);
    color: var(--figma-text);
    font-family: Arial, Helvetica, sans-serif;
}

.wrapper {
    background: var(--figma-bg);
}

.main {
    background: var(--figma-bg);
    min-width: 0;
}

.content.container-fluid {
    max-width: 1320px;
    padding: 4rem 4.8rem;
}

.topbar {
    min-height: 86px;
    padding: 0 3.8rem;
    border-bottom: 1px solid #dde1e6;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar-left h1 {
    color: var(--figma-text);
    font-size: 2.6rem;
    font-weight: 700;
    margin: 0;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    min-width: 0;
}

.topbar-title-icon {
    color: var(--figma-text);
    font-size: 2.2rem;
    line-height: 1;
    width: 2.6rem;
    text-align: center;
}

.profile-chip {
    color: var(--figma-text) !important;
    gap: 1.4rem !important;
    text-align: right;
}

.profile-chip:hover {
    text-decoration: none !important;
}

.profile-chip span:first-child {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.profile-chip strong {
    font-size: 1.6rem;
    font-weight: 700;
}

.profile-chip small {
    color: var(--figma-muted);
    font-size: 1.4rem;
}

.profile-avatar,
.profile-avatar-lg {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--figma-lime);
    color: #111;
    font-size: 1.7rem;
    font-weight: 700;
}

.profile-avatar-lg {
    width: 116px;
    height: 116px;
    font-size: 3.4rem;
    flex: 0 0 auto;
}

.sidebar,
.fancy-sidebar {
    width: 292px;
    min-height: 100vh;
    padding: 0;
    background: var(--figma-sidebar);
    color: var(--figma-text);
    border-right: 1px solid #d5d9df;
    position: sticky;
    top: 0;
}

.sidebar-brand {
    height: 112px;
    display: flex;
    align-items: center;
    padding: 2.4rem 2.8rem;
    border-bottom: 1px solid #d5d9df;
}

.sidebar-brand img {
    max-width: 190px;
    height: auto;
}

.sidebar-nav {
    padding: 2.4rem 1.8rem !important;
    margin: 0;
}

.fancy-sidebar ul li {
    margin: .6rem 0;
}

.fancy-sidebar ul li a,
.sidebar-footer a {
    min-height: 56px;
    padding: 0 1.8rem;
    border-radius: .8rem;
    display: flex;
    align-items: center;
    gap: 1.6rem;
    color: var(--figma-text);
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
}

.fancy-sidebar ul li a i,
.sidebar-footer a i {
    width: 22px;
    color: var(--figma-text);
    font-size: 2rem;
    text-align: center;
}

.fancy-sidebar ul li a:hover,
.fancy-sidebar ul li a.active,
.sidebar-footer a:hover {
    background: var(--figma-lime);
    color: #111;
    padding-left: 1.8rem;
    text-decoration: none;
}

.fancy-sidebar ul li a.active i,
.fancy-sidebar ul li a:hover i {
    color: #111;
}

.sidebar-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem 1.8rem;
    border-top: 1px solid #d5d9df;
}

.dashboard-title {
    display: none !important;
}

.figma-page,
.figma-dashboard {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.figma-section h3,
.figma-panel h3,
.figma-form-section-title {
    color: var(--figma-text);
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 2.2rem;
}

.figma-panel,
.figma-form-panel,
.figma-card,
.card,
.table-responsive {
    background: var(--figma-card);
    border: 1px solid transparent;
    border-radius: 1.4rem;
    box-shadow: none;
}

.figma-panel,
.figma-form-panel {
    padding: 3rem;
}

.card {
    padding: 0;
}

.card-body {
    padding: 2.4rem;
}

.figma-hero,
.figma-profile-hero,
.figma-gradient-hero {
    background: var(--figma-card);
    border-radius: 1.4rem;
    padding: 3.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.figma-hero {
    display: none;
}

.figma-profile-hero h2,
.figma-gradient-hero h2,
.figma-hero h2 {
    color: var(--figma-text);
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 .8rem;
}

.figma-profile-hero p,
.figma-gradient-hero p,
.figma-hero p {
    color: var(--figma-muted);
    font-size: 1.8rem;
    margin: 0;
}

.figma-contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2.2rem;
    margin-top: 2.2rem;
    color: var(--figma-muted);
    font-size: 1.6rem;
    font-weight: 700;
}

.figma-contact-row i {
    margin-right: .8rem;
}

.figma-tabs {
    display: flex;
    gap: 3.6rem;
    border-bottom: 1px solid var(--figma-border);
}

.figma-tabs a,
.figma-tabs button {
    border: 0;
    background: transparent;
    color: var(--figma-muted);
    padding: 0 1rem 1.6rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.figma-tabs .active {
    color: var(--figma-text);
    border-bottom: 3px solid var(--figma-lime);
}

.form-label {
    color: #566174;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: .8rem;
}

.form-control,
.form-select {
    min-height: 52px;
    border: 1px solid #d8dde5;
    border-radius: .9rem;
    color: #202327;
    font-size: 1.7rem;
    padding: 1.2rem 1.6rem;
}

textarea.form-control {
    min-height: 62px;
}

.btn,
.btn-primary,
.btn-success {
    min-height: 48px;
    border-radius: .8rem;
    border-color: var(--figma-lime) !important;
    background: var(--figma-lime) !important;
    color: #111 !important;
    font-size: 1.7rem;
    font-weight: 700;
    padding: 1rem 2.2rem;
}

.btn-outline-secondary,
.btn-secondary,
.btn-light {
    background: #fff !important;
    border-color: #d8dde5 !important;
    color: #111 !important;
}

.btn-outline-danger,
.btn-danger {
    background: #fff !important;
    border-color: #ffd2d7 !important;
    color: var(--figma-red) !important;
}

.figma-actions,
.figma-stat-grid,
.figma-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.figma-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.figma-action-card,
.figma-stat-card,
.figma-summary-card {
    min-height: 138px;
    background: #fff;
    border: 0;
    border-radius: 1.2rem;
    padding: 2.8rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .8rem;
    color: var(--figma-text);
    text-align: left;
    text-decoration: none;
}

.figma-action-card strong,
.figma-stat-card strong,
.figma-summary-card strong {
    color: var(--figma-text);
    font-size: 2.1rem;
    font-weight: 700;
}

.figma-stat-card strong,
.figma-summary-card strong {
    font-size: 3.6rem;
    line-height: 1;
}

.figma-action-card small,
.figma-stat-card small,
.figma-summary-card small,
.figma-stat-card em,
.figma-summary-card em {
    color: var(--figma-muted);
    font-size: 1.5rem;
    font-style: normal;
}

.figma-action-icon {
    width: 56px;
    height: 56px;
    border-radius: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
}

.figma-action-icon-blue { background: #eaf3ff; color: var(--figma-blue); }
.figma-action-icon-green { background: #ebfff1; color: var(--figma-green); }
.figma-action-icon-purple { background: #f8edff; color: var(--figma-purple); }

.figma-dashboard-grid,
.figma-two-col,
.figma-service-grid,
.figma-resource-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.4rem;
}

.figma-list,
.figma-list-clean {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.figma-list-item,
.figma-activity-item,
.figma-document-row,
.figma-task-row,
.figma-expense-row,
.figma-payslip-row,
.figma-resource {
    background: #f8f9fb;
    border: 1px solid var(--figma-border);
    border-radius: .9rem;
    padding: 1.6rem 1.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
}

.figma-list-item p {
    margin: 0;
    font-weight: 700;
}

.figma-list-item small,
.figma-activity-item small,
.figma-document-row small,
.figma-task-row small,
.figma-expense-row small,
.figma-payslip-row small {
    color: var(--figma-muted);
    font-size: 1.4rem;
}

.status-pill {
    border-radius: 999px;
    padding: .6rem 1.4rem;
    font-size: 1.4rem;
    font-style: normal;
    font-weight: 700;
    white-space: nowrap;
}

.status-pill-approved,
.status-pill-complete,
.bg-success {
    background: #d9fbe4 !important;
    color: #0b9a40 !important;
}

.status-pill-pending,
.bg-warning {
    background: #fff0ba !important;
    color: #b97800 !important;
}

.status-pill-rejected,
.bg-danger {
    background: #ffdfe2 !important;
    color: #ee171f !important;
}

.status-pill-progress,
.bg-info {
    background: #dceaff !important;
    color: #246cff !important;
}

.table-responsive {
    padding: 0;
    overflow: auto;
}

.table {
    margin: 0;
    color: var(--figma-text);
    font-size: 1.7rem;
}

.table > :not(caption) > * > * {
    padding: 1.4rem 1.8rem;
    border-bottom-color: #edf0f4;
}

.table thead th,
.table-dark th,
.table-header th {
    background: #0b0c0c !important;
    color: #fff !important;
    border: 0;
    font-size: 1.6rem;
}

.table thead th:first-child {
    border-top-left-radius: 1.2rem;
}

.table thead th:last-child {
    border-top-right-radius: 1.2rem;
}

.figma-upload-zone {
    border: 2px dashed #d3d9e2;
    border-radius: 1rem;
    padding: 4rem;
    text-align: center;
    color: var(--figma-muted);
}

.figma-upload-zone i {
    display: block;
    font-size: 3.8rem;
    margin-bottom: 1.2rem;
}

.figma-storage {
    background: #eaf3ff;
    border: 1px solid #acd1ff;
}

.progress {
    height: 10px;
    border-radius: 999px;
    background: #e2e5eb;
}

.progress-bar {
    background: var(--figma-blue);
}

.figma-gradient-hero {
    background: linear-gradient(100deg, var(--figma-lime), #fff 78%);
}

.figma-mini-stats {
    display: flex;
    gap: 1.4rem;
    margin-top: 2rem;
}

.figma-mini-stats span {
    border: 1px solid #e1ccff;
    border-radius: .9rem;
    padding: 1rem 1.8rem;
    display: flex;
    flex-direction: column;
}

.figma-illustration {
    color: var(--figma-lime);
    font-size: 9rem;
}

.figma-service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.figma-service-card {
    border: 1px solid var(--figma-border);
    border-radius: 1.2rem;
    padding: 3rem;
}

.figma-service-card h3 {
    color: var(--figma-text);
    font-size: 2.2rem;
}

.figma-service-card > i {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    font-size: 3rem;
    margin-bottom: 2rem;
}

.figma-service-card.purple { background: #fbf5ff; border-color: #e7c8ff; }
.figma-service-card.green { background: #effcf4; border-color: #b8f0cd; }
.figma-service-card.blue { background: #eef6ff; border-color: #bddcff; }

.figma-alert {
    border-radius: 1.2rem;
    padding: 2.8rem;
}

.figma-alert h3 {
    color: var(--figma-text);
    font-weight: 700;
}

.figma-alert-danger {
    background: #fff2f3;
    border: 1px solid #ffb8bf;
}

.figma-alert-info {
    background: #eaf3ff;
    border: 1px solid #acd1ff;
}

@media (max-width: 992px) {
    .wrapper {
        flex-direction: column;
    }

    .sidebar,
    .fancy-sidebar {
        width: 100%;
        min-height: auto;
        position: relative;
    }

    .sidebar-nav {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sidebar-footer {
        position: static;
    }

    .content.container-fluid {
        padding: 2.4rem;
    }

    .figma-actions,
    .figma-stat-grid,
    .figma-summary-grid,
    .figma-dashboard-grid,
    .figma-two-col,
    .figma-service-grid,
    .figma-resource-grid {
        grid-template-columns: 1fr;
    }

    .figma-profile-hero,
    .figma-gradient-hero {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Dashboard character polish */
.figma-dashboard .figma-hero {
    min-height: 236px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 3rem !important;
    padding: 3.6rem 4rem !important;
    overflow: hidden !important;
    border: 1px solid rgba(218, 221, 79, .45) !important;
    border-radius: 1.2rem !important;
    background: linear-gradient(100deg, #dadd4f 0%, #f1f3a6 48%, #ffffff 100%) !important;
}

.figma-hero-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 1.4rem;
    padding: .4rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .68);
    color: #4b5200;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.figma-dashboard .figma-hero h2 {
    max-width: 620px;
    margin-bottom: 1rem !important;
    color: #111318 !important;
    font-size: 3.2rem !important;
}

.figma-dashboard .figma-hero p {
    max-width: 660px;
    color: #35383d !important;
    font-size: 1.8rem !important;
    line-height: 1.45;
}

.figma-hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.4rem;
}

.figma-hero-metrics span {
    min-width: 118px;
    padding: 1rem 1.4rem;
    border: 1px solid rgba(17, 19, 24, .1);
    border-radius: .9rem;
    background: rgba(255, 255, 255, .74);
}

.figma-hero-metrics strong,
.figma-hero-metrics small {
    display: block;
}

.figma-hero-metrics strong {
    color: #111318;
    font-size: 2.2rem;
    line-height: 1;
}

.figma-hero-metrics small {
    margin-top: .4rem;
    color: #5d626a;
    font-size: 1.2rem;
    font-weight: 700;
}

.figma-dashboard .figma-hero-media {
    width: clamp(260px, 32vw, 430px) !important;
    height: auto !important;
    flex: 0 0 auto !important;
}

.figma-dashboard .figma-hero-media img {
    width: 100% !important;
    height: auto !important;
    max-height: 250px !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 0 !important;
    animation: figmaHeroFloat 5.2s ease-in-out infinite;
}

.figma-dashboard .figma-actions {
    align-items: stretch;
}

.figma-dashboard .figma-action-card {
    min-height: 154px;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1.8rem !important;
    justify-content: flex-start !important;
}

.figma-action-copy {
    display: grid;
    gap: .5rem;
}

.figma-dashboard .figma-stat-card {
    min-height: 152px;
    overflow: hidden;
}

.figma-dashboard .figma-stat-card img {
    width: 96px;
    height: 86px;
    object-fit: contain;
    flex: 0 0 auto;
    filter: drop-shadow(0 12px 18px rgba(15, 23, 42, .12));
}

.figma-premium-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.figma-premium-card {
    min-height: 148px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.8rem;
    padding: 2.4rem;
    border: 1px solid #dce6ff;
    border-radius: 1.2rem;
    background: #eef6ff;
}

.figma-premium-card-soft {
    border-color: #c8f0d4;
    background: #effcf4;
}

.figma-premium-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 1rem;
    background: #fff;
    color: #2f78ff;
    font-size: 2.4rem;
}

.figma-premium-card-soft .figma-premium-icon {
    color: #05b84f;
}

.figma-premium-card h3 {
    margin: 0 0 .7rem;
    color: #454850;
    font-size: 2rem;
    font-weight: 800;
}

.figma-premium-card p {
    margin: 0;
    color: #626b78;
    font-size: 1.5rem;
    line-height: 1.45;
}

.figma-premium-card a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .8rem 1.4rem;
    border-radius: .8rem;
    background: #dadd4f;
    color: #111318;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .figma-dashboard .figma-hero {
        align-items: flex-start !important;
        flex-direction: column !important;
    }

    .figma-dashboard .figma-hero-media {
        width: min(100%, 360px) !important;
    }

    .figma-premium-row {
        grid-template-columns: 1fr;
    }

    .figma-premium-card {
        grid-template-columns: auto 1fr;
    }

    .figma-premium-card a {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .figma-dashboard .figma-action-card {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .figma-dashboard .figma-stat-card img {
        width: 82px;
        height: 76px;
    }
}

/* Cross-page character polish */
.figma-page-hero {
    min-height: 198px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding: 3rem 3.4rem;
    border: 1px solid rgba(226, 230, 236, .9);
    border-radius: 1.2rem;
    background: #fff;
    overflow: hidden;
}

.figma-page-hero h2 {
    margin: 0 0 1rem;
    color: #111318;
    font-size: 3rem;
    line-height: 1.08;
    font-weight: 800;
}

.figma-page-hero p {
    max-width: 650px;
    margin: 0;
    color: #596166;
    font-size: 1.7rem;
    line-height: 1.45;
}

.figma-page-hero img,
.figma-hero-character {
    width: clamp(160px, 22vw, 260px);
    max-height: 180px;
    object-fit: contain;
    flex: 0 0 auto;
    filter: drop-shadow(0 18px 24px rgba(15, 23, 42, .12));
    animation: figmaHeroFloat 5.5s ease-in-out infinite;
}

.figma-page-hero-lime {
    background: linear-gradient(100deg, #dadd4f 0%, #f4f5b9 48%, #fff 100%);
}

.figma-page-hero-blue {
    border-color: #cfe2ff;
    background: linear-gradient(100deg, #eef6ff 0%, #fff 100%);
}

.figma-page-hero-green {
    border-color: #c8f0d4;
    background: linear-gradient(100deg, #effcf4 0%, #fff 100%);
}

.figma-page-hero-purple {
    border-color: #e7c8ff;
    background: linear-gradient(100deg, #fbf5ff 0%, #fff 100%);
}

.figma-page-hero-red {
    border-color: #ffcfd4;
    background: linear-gradient(100deg, #fff2f3 0%, #fff 100%);
}

.figma-filter-panel {
    border: 0 !important;
    border-radius: 1.2rem !important;
    background: #fff !important;
    box-shadow: none !important;
}

.figma-profile-tab-panel {
    display: none !important;
}

.figma-profile-tab-panel.active {
    display: block !important;
}

form.figma-profile-tab-panel.active {
    display: block !important;
}

.figma-tabs button {
    cursor: pointer;
}

.figma-filter-panel .card-body {
    min-height: auto !important;
    padding: 2.2rem !important;
}

.figma-table-shell {
    border: 1px solid #e4e8ef !important;
    border-radius: 1rem !important;
    background: #fff !important;
}

.figma-table-shell .table {
    margin: 0;
}

.figma-table-shell .table > :not(caption) > * > * {
    padding: 1.4rem 1.6rem;
    border-bottom-color: #edf0f4;
}

.figma-table-shell tbody tr:hover {
    background: #fafbf0;
}

.figma-page-action {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.figma-panel-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    margin-bottom: 2rem;
}

.figma-panel-title-row h3 {
    margin: 0 !important;
}

.figma-panel-title-row span {
    color: #737c91;
    font-size: 1.4rem;
    font-weight: 800;
}

.figma-summary-card {
    position: relative;
    overflow: hidden;
}

.figma-summary-card::after {
    content: "";
    position: absolute;
    right: -24px;
    top: -32px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(218, 221, 79, .28);
}

.figma-summary-card em {
    position: relative;
    z-index: 1;
}

.figma-accordion {
    border: 1px solid #e4e8ef;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: none !important;
}

.figma-accordion .accordion-button {
    min-height: 68px;
    padding: 1.6rem 2rem;
    background: #fff !important;
    color: #454850 !important;
    font-size: 1.7rem;
    font-weight: 800;
}

.figma-accordion .accordion-button:not(.collapsed) {
    background: #f9fae8 !important;
}

.figma-accordion .accordion-body {
    padding: 2.2rem;
}

.figma-onboarding-admin .card-body,
.figma-onboarding-admin .list-group-item {
    border-radius: .8rem;
}

.figma-calendar-panel #calendar {
    border: 1px solid #edf0f4;
    box-shadow: none !important;
}

.assistance-hero {
    border: 1px solid #e7c8ff;
    background: linear-gradient(100deg, #fbf5ff 0%, #eef6ff 100%) !important;
}

.assistance-hero .figma-hero-character {
    width: clamp(170px, 22vw, 250px);
}

@media (max-width: 900px) {
    .figma-page-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 2.4rem;
    }

    .figma-page-hero img,
    .figma-hero-character {
        width: min(100%, 260px);
    }

    .figma-panel-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .figma-page-action {
        justify-content: stretch;
    }

    .figma-page-action .btn {
        width: 100%;
    }
}

.sh-toast-stack {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 120000;
    display: grid;
    gap: .75rem;
    width: min(420px, calc(100vw - 2rem));
    pointer-events: none;
}

.sh-toast {
    display: grid;
    grid-template-columns: 2rem 1fr 2rem;
    align-items: start;
    gap: .75rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-left-width: 5px;
    border-radius: 14px;
    background: #fff;
    color: #1f2937;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .16);
    opacity: 0;
    transform: translateY(-8px) scale(.98);
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: auto;
}

.sh-toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.sh-toast-icon {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: #f3f4f6;
    font-size: 1rem;
}

.sh-toast-message {
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.45;
}

.sh-toast-close {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 1.35rem;
    line-height: 1;
}

.sh-toast-close:hover {
    background: #e5e7eb;
    color: #111827;
}

.sh-toast-success {
    border-left-color: #16a34a;
}

.sh-toast-success .sh-toast-icon {
    background: #dcfce7;
    color: #16a34a;
}

.sh-toast-error {
    border-left-color: #ef4444;
}

.sh-toast-error .sh-toast-icon {
    background: #fee2e2;
    color: #dc2626;
}

.sh-toast-warning {
    border-left-color: #d7db23;
}

.sh-toast-warning .sh-toast-icon {
    background: #fbfbcf;
    color: #777a00;
}

.sh-toast-info {
    border-left-color: #2563eb;
}

.sh-toast-info .sh-toast-icon {
    background: #dbeafe;
    color: #2563eb;
}

@media (max-width: 640px) {
    .sh-toast-stack {
        top: .75rem;
        right: .75rem;
        left: .75rem;
        width: auto;
    }
}

/* Final modal override. This must remain the last block in the file. */
body.modal-open {
    overflow: hidden !important;
}

.modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 100000 !important;
    pointer-events: auto !important;
}

.modal.show {
    display: block !important;
}

.modal-dialog {
    position: relative !important;
    z-index: 100001 !important;
    pointer-events: auto !important;
}

.modal-content {
    border: 1px solid #e2e6ec !important;
    border-radius: 1.2rem !important;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22) !important;
    max-height: min(88vh, 920px) !important;
    overflow: hidden !important;
}

.modal-header,
.modal-footer {
    flex-shrink: 0 !important;
    background: #fff !important;
    border-color: #edf0f4 !important;
}

.modal-body {
    max-height: calc(88vh - 150px) !important;
    overflow-y: auto !important;
    background: #fff !important;
}

.modal-backdrop {
    z-index: 99990 !important;
    pointer-events: auto !important;
}

.modal-backdrop.show {
    opacity: .46 !important;
}

.modal input,
.modal select,
.modal textarea,
.modal button,
.modal a,
.modal label,
.modal .btn,
.modal .form-control,
.modal .form-select {
    pointer-events: auto !important;
}

.btn-close,
.modal .btn-close,
.modal .btn-close-white {
    width: 38px !important;
    height: 38px !important;
    border-radius: 999px !important;
    background-color: #f3f5f7 !important;
    opacity: 1 !important;
    filter: none !important;
}

/* Modal interaction hardening. Keep this block last. */
body.modal-open {
    overflow: hidden !important;
}

.modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 100000 !important;
    pointer-events: auto !important;
}

.modal.show {
    display: block !important;
}

.modal-dialog {
    position: relative !important;
    z-index: 100001 !important;
    pointer-events: auto !important;
}

.modal-content {
    border: 1px solid #e2e6ec !important;
    border-radius: 1.2rem !important;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22) !important;
    max-height: min(88vh, 920px) !important;
    overflow: hidden !important;
}

.modal-header,
.modal-footer {
    flex-shrink: 0 !important;
    background: #fff !important;
    border-color: #edf0f4 !important;
}

.modal-body {
    max-height: calc(88vh - 150px) !important;
    overflow-y: auto !important;
    background: #fff !important;
}

.modal-backdrop {
    z-index: 99990 !important;
    pointer-events: auto !important;
}

.modal-backdrop.show {
    opacity: .46 !important;
}

.modal input,
.modal select,
.modal textarea,
.modal button,
.modal a,
.modal label,
.modal .btn,
.modal .form-control,
.modal .form-select {
    pointer-events: auto !important;
}

.btn-close,
.modal .btn-close,
.modal .btn-close-white {
    width: 38px !important;
    height: 38px !important;
    border-radius: 999px !important;
    background-color: #f3f5f7 !important;
    opacity: 1 !important;
    filter: none !important;
}

/* Page polish pass: directory/table heavy screens */
.figma-page-action {
    display: flex;
    justify-content: flex-end;
}

.figma-filter-card {
    margin-bottom: 0 !important;
}

.figma-filter-card .card-body {
    min-height: auto !important;
    padding: 2.2rem !important;
}

.figma-panel-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    margin-bottom: 2.2rem;
}

.figma-panel-title-row h3 {
    margin: 0 !important;
}

.figma-panel-title-row span {
    color: var(--figma-muted);
    font-size: 1.4rem;
    font-weight: 700;
}

.figma-table-shell {
    border: 1px solid #e7ebf0 !important;
    overflow: auto;
}

.figma-table-shell .table {
    min-width: 980px;
}

.figma-employee-table tbody td {
    vertical-align: middle;
}

.figma-employee-table tbody td strong {
    color: var(--figma-text);
    font-weight: 700;
}

.figma-employee-avatar {
    position: relative;
    width: 48px !important;
    height: 48px !important;
    border: 0 !important;
    background: #dcecff !important;
    color: #2f78ff;
    font-size: 1.6rem;
    font-weight: 800;
}

.figma-employee-avatar span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.figma-employee-avatar .avatar-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.figma-action-strip {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.1rem;
    min-width: max-content;
}

.figma-action-strip .btn {
    min-height: 44px !important;
    font-size: 1.4rem !important;
}

.figma-action-strip .btn-info {
    min-width: 112px;
    background: #45bdf0 !important;
    border-color: #45bdf0 !important;
    color: #fff !important;
}

.btn-icon-soft,
.btn-icon-danger {
    width: 42px;
    min-width: 42px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.btn-icon-soft {
    color: #256bff !important;
}

.btn-icon-danger {
    color: #ff1e2d !important;
}

.btn-benefits {
    min-width: 164px;
    background: #f1ddff !important;
    border-color: #f1ddff !important;
    color: #8a18de !important;
}

.figma-summary-card {
    border: 0 !important;
    min-height: 134px;
}

.figma-summary-card small {
    font-size: 1.6rem !important;
}

.figma-summary-card strong {
    color: var(--figma-text) !important;
}

.figma-summary-card em {
    color: #9aa1ad !important;
}

.figma-upload-zone {
    display: grid;
    gap: .7rem;
    background: #fff !important;
}

.figma-upload-zone strong {
    color: var(--figma-text);
    font-size: 1.8rem;
}

.figma-upload-zone span,
.figma-upload-zone small {
    color: var(--figma-muted);
}

.figma-alert p {
    color: #5d6674;
}

.modal-header .modal-title {
    color: var(--figma-text) !important;
}

.modal-header {
    background: #fff !important;
}

.modal-body {
    color: var(--figma-text);
}

@media (max-width: 1180px) {
    .content.container-fluid {
        padding: 3rem !important;
    }
}

@media (max-width: 760px) {
    .figma-page-action,
    .figma-panel-title-row {
        align-items: stretch;
        flex-direction: column;
    }

    .figma-page-action .btn {
        width: 100%;
    }

    .figma-action-strip {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* Modal behavior and polish: keep dialogs above the app shell/backdrop. */
.modal {
    z-index: 2055 !important;
    pointer-events: auto !important;
}

.modal-dialog {
    pointer-events: auto !important;
}

.modal-backdrop {
    z-index: 2040 !important;
    pointer-events: auto;
}

.modal-content {
    max-height: min(86vh, 920px) !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 1.2rem !important;
    box-shadow: 0 2.4rem 7rem rgba(20, 24, 31, 0.22) !important;
}

.modal-header {
    min-height: 72px;
    padding: 2rem 2.4rem !important;
    background: #fff !important;
    border-bottom: 1px solid #edf0f4 !important;
}

.modal-title,
.modal-title i {
    color: var(--figma-text) !important;
    font-size: 2rem;
    font-weight: 800;
}

.modal-body {
    max-height: calc(86vh - 150px);
    overflow-y: auto;
    padding: 2.4rem !important;
    background: #fff;
    color: var(--figma-text);
}

.modal-footer {
    gap: 1.2rem;
    padding: 1.8rem 2.4rem !important;
    background: #fafafa !important;
    border-top: 1px solid #edf0f4 !important;
}

.btn-close,
.btn-close-white {
    width: 38px;
    height: 38px;
    margin: 0 !important;
    border-radius: 50%;
    background-color: #f2f4f7;
    opacity: 1;
    filter: none !important;
}

.modal-open .modal {
    overflow-x: hidden;
    overflow-y: auto;
}

.fancy-sidebar {
    background-color: #0000006b;
    color: black;
    width: 220px;
    padding: 20px;
    font-size: 16px;
}

    .fancy-sidebar h2 {
        font-size: 1.4em;
        margin-bottom: 30px;
        display: contents;
        align-items: center;
        gap: 10px;
        color: white;
    }

    .fancy-sidebar ul {
        list-style: none;
        padding: 0;
    }

        .fancy-sidebar ul li {
            margin: 15px 0;
        }

            .fancy-sidebar ul li a {
                color: white;
                text-decoration: none;
                display: flex;
                align-items: center;
                gap: 10px;
                transition: all;
                padding: 8px;
                border-radius: 4px;
            }

                .fancy-sidebar ul li a:hover {
                    background-color: #3498db;
                    padding-left: 16px;
                }

.topbar {
    background-color: #ffffff;
    padding: 15px 25px;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
}

.topbar-left span {
    font-weight: 500;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: black;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.widget {
    background-color: black;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

    .widget:hover {
        transform: translateY(-3px);
    }

    .widget h3 {
        margin-top: 0;
        color: #34495e;
        font-size: 1.2em;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .widget p, .widget ul {
        margin: 10px 0;
        font-size: 0.95em;
        color: #555;
    }

    .widget ul {
        padding-left: 20px;
    }

    .widget button {
        margin-top: 10px;
        padding: 10px 15px;
        background-color: #3498db;
        color: white;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-weight: 500;
    }

        .widget button:hover {
            background-color: #2980b9;
        }


.card-body {
    flex: 1 1 auto;
    padding: var(--bs-card-spacer-y) var(--bs-card-spacer-x);
    color: var(--bs-card-color);
    height: 16rem;
    align-content :center;
}
.h0 {
    color: black;
    
}
.p {
    font-weight: normal;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
    color: white;
    font-size: 2rem;

}
.filter-bar {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr auto;
    gap: 16px;
    align-items: center;
}

.form-select {
    height: 48px; /* SAME height as button */
    font-size: 15px;
    padding: 0.5rem 0.75rem;
}
.form-control {
    height: 48px; 
    font-size: 15px;
    padding: 0.5rem 0.75rem;
}

.filter-btn {
    height: 48px;
    padding: 0 28px;
    font-size: 15px;
    white-space: nowrap;
}
    .filter-item {
     height: 48px;    /* forces equal height */
    font-size: 15px;
    padding: 0.5rem 0.75rem;
}
.btn {
    font-size: 1.5rem;
}

/* Button Variants - Outlined */
.btn--outline-primary {
    color: #fff;
    background-color: #0026ff;
    border-color: var(--color-primary);
}

    .btn--outline-info {
        color: var(--color-white);
        background-color: #80caff;
    }

/*Tables*/
.table {
    font-size: 15px;
}

/* Shiluvah ESS refreshed app shell */
:root {
    --ess-bg: #f3f3f2;
    --ess-surface: #ffffff;
    --ess-text: #3f4248;
    --ess-muted: #747984;
    --ess-line: #dedfdd;
    --ess-lime: #dadd4f;
    --ess-lime-soft: #f5f7ca;
    --ess-green: #39a950;
    --ess-blue: #2367b1;
    --ess-red: #bf3030;
    --ess-shadow: 0 10px 28px rgba(20, 24, 31, 0.05);
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--ess-bg);
    color: var(--ess-text);
}

.wrapper {
    min-height: 100vh;
    background: var(--ess-bg);
}

.main {
    min-width: 0;
    background: var(--ess-bg);
}

.content.container-fluid {
    padding: 32px;
    max-width: 1180px;
}

.sidebar,
.fancy-sidebar {
    position: sticky;
    top: 0;
    width: 256px;
    min-width: 256px;
    height: 100vh;
    padding: 24px 16px;
    background: #e9e9e8;
    color: var(--ess-text);
    border-right: 1px solid var(--ess-line);
    display: flex;
    flex-direction: column;
    font-size: 16px;
}

.sidebar-brand {
    display: block;
    padding: 0 8px 34px;
    text-decoration: none;
}

.sidebar-brand img {
    width: 176px;
    height: auto;
    display: block;
    filter: invert(1) grayscale(1) contrast(0.75);
}

.sidebar ul,
.fancy-sidebar ul,
.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li,
.fancy-sidebar ul li {
    margin: 6px 0;
}

.sidebar ul li a,
.fancy-sidebar ul li a,
.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 8px;
    color: #53565d;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar ul li a:hover,
.fancy-sidebar ul li a:hover,
.sidebar ul li a:focus,
.fancy-sidebar ul li a:focus {
    background: var(--ess-lime);
    color: #16181c;
    padding-left: 16px;
    text-decoration: none;
}

.sidebar ul li a i,
.sidebar-footer a i {
    width: 20px;
    color: #53565d;
    text-align: center;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #d5d5d3;
}

.topbar {
    min-height: 74px;
    padding: 16px 32px;
    background: var(--ess-surface);
    border-bottom: 1px solid var(--ess-line);
    box-shadow: none;
}

.topbar h1 {
    margin: 0;
    color: var(--ess-text);
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
}

.topbar-right a {
    color: var(--ess-text);
    text-decoration: none;
}

.profile-chip {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-left: 0;
}

.profile-chip span:first-child {
    display: grid;
    text-align: right;
    line-height: 1.25;
}

.profile-chip strong {
    color: var(--ess-text);
    font-size: 14px;
}

.profile-chip small {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--ess-muted);
    font-size: 12px;
}

.profile-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ess-lime);
    color: #121417;
    font-size: 14px;
    font-weight: 800;
}

.dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 136px;
    padding: 32px;
    border-radius: 14px;
    background: linear-gradient(90deg, var(--ess-lime) 0%, var(--ess-lime-soft) 72%, #ffffff 100%);
    overflow: hidden;
}

.dashboard-hero h2 {
    margin: 0 0 10px;
    color: #15171b;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 800;
}

.dashboard-hero p {
    margin: 0;
    color: #202328;
    font-size: 18px;
}

.dashboard-hero-figure {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.62);
    color: #65710c;
    font-size: 46px;
}

.card {
    border: 0;
    border-radius: 8px !important;
    background: var(--ess-surface);
    box-shadow: var(--ess-shadow) !important;
}

.card-body {
    min-height: 148px;
    height: auto;
    padding: 28px;
    align-content: initial;
    color: var(--ess-text);
}

.card-header {
    border: 0;
    background: var(--ess-surface) !important;
    color: var(--ess-text) !important;
    padding: 22px 28px 0;
    font-size: 20px;
}

.card h2,
.card h3,
.card h4,
.card h5,
.card h6,
.card p,
.card span,
.card li {
    color: var(--ess-text);
}

.card h2 {
    font-size: 34px;
    font-weight: 800;
}

.gradient-blue,
.gradient-green,
.gradient-orange,
.gradient-purple,
.gradient-teal {
    background: var(--ess-surface);
}

.gradient-blue .card-body,
.gradient-green .card-body,
.gradient-orange .card-body {
    position: relative;
}

.gradient-blue .card-body::before,
.gradient-green .card-body::before,
.gradient-orange .card-body::before {
    content: "";
    display: block;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 8px;
    background: #eef5ff;
}

.gradient-green .card-body::before {
    background: #ecfbf1;
}

.gradient-orange .card-body::before {
    background: #fff8d6;
}

.announcement-item,
.task-item,
.birthday-item {
    background: #f8f8f8;
    border-radius: 8px;
    color: var(--ess-text);
}

.birthday-date {
    color: var(--ess-muted);
}

.quick-action-tile {
    width: 180px !important;
    min-height: 132px !important;
    height: auto !important;
    align-items: flex-start !important;
    padding: 26px !important;
    border-radius: 8px !important;
    background: var(--ess-surface) !important;
    color: var(--ess-text) !important;
    box-shadow: var(--ess-shadow);
}

.quick-action-tile .action-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #f0f6ff;
    color: var(--ess-blue);
}

.quick-action-tile:nth-child(2) .action-icon {
    background: #effbf3;
    color: var(--ess-green);
}

.quick-action-tile:nth-child(3) .action-icon {
    background: #fbf1ff;
    color: #a033c9;
}

.quick-action-tile .action-title {
    margin-top: 18px;
    color: var(--ess-text);
    font-size: 16px;
    font-weight: 700;
}

.btn {
    font-size: 1rem;
}

.btn-primary,
.btn-info {
    border-color: var(--ess-green);
    background: var(--ess-green);
    color: #ffffff;
    border-radius: 8px;
}

.btn-primary:hover,
.btn-info:hover {
    border-color: #2f9544;
    background: #2f9544;
}

@media (max-width: 900px) {
    .wrapper {
        flex-direction: column;
    }

    .sidebar,
    .fancy-sidebar {
        position: relative;
        width: 100%;
        min-width: 0;
        height: auto;
    }

    .sidebar-nav {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 6px;
    }

    .sidebar-footer {
        margin-top: 16px;
    }

    .topbar {
        padding: 16px 20px;
    }

    .content.container-fluid {
        padding: 22px 18px;
    }

    .dashboard-hero {
        padding: 24px;
    }
}

@media (max-width: 560px) {
    .topbar {
        align-items: flex-start;
        gap: 12px;
    }

    .profile-chip span:first-child {
        text-align: left;
    }

    .dashboard-hero {
        align-items: flex-start;
        gap: 18px;
        flex-direction: column;
    }
}

/* Shared page surfaces */
.dashboard-title,
h1.dashboard-title,
h2.dashboard-title {
    margin: 0 0 24px;
    color: var(--ess-text);
    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0;
}

.dashboard-title span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ess-text);
}

.dashboard-title i {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: #eef5ff;
    color: var(--ess-blue);
    font-size: 15px;
}

.card.mb-4,
.table-responsive,
#calendar,
.page-panel {
    border: 0;
    border-radius: 8px !important;
    background: var(--ess-surface) !important;
    box-shadow: var(--ess-shadow) !important;
}

.table-responsive {
    overflow: auto;
}

.table {
    margin: 0;
    color: var(--ess-text);
    font-size: 14px;
    border-color: #ececea;
}

.table > :not(caption) > * > * {
    padding: 16px 18px;
    border-bottom-color: #ececea;
    background: transparent;
}

.table thead,
.table-dark,
.table-header {
    background: #f8f8f6 !important;
    color: var(--ess-text) !important;
}

.table thead th,
.table-dark th,
.table-header th {
    border: 0;
    color: #5c6069 !important;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
    background: #f8f8f6 !important;
}

.table tbody tr:hover {
    background: #fbfbf8;
}

.table-bordered > :not(caption) > * {
    border-width: 0;
}

.badge {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px !important;
    font-weight: 700;
}

.bg-success,
.badge.bg-success {
    background: #daf5df !important;
    color: #247336 !important;
}

.bg-warning,
.badge.bg-warning {
    background: #fff6c4 !important;
    color: #83710a !important;
}

.bg-danger,
.badge.bg-danger {
    background: #ffe2e2 !important;
    color: #a32b2b !important;
}

.form-control,
.form-select {
    min-height: 46px;
    border: 1px solid #d7d9dd;
    border-radius: 8px;
    background-color: #ffffff;
    color: #22252b;
    font-size: 14px;
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--ess-green);
    box-shadow: 0 0 0 3px rgba(57, 169, 80, 0.14);
}

textarea.form-control {
    min-height: 110px;
}

.form-label {
    color: #45484f;
    font-size: 13px;
    font-weight: 800;
}

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

.form-grid .full-width {
    grid-column: 1 / -1;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    margin: 0;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--ess-green);
}

.btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

.btn-sm {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
}

.btn-success,
.btn-primary,
.btn-info {
    border-color: var(--ess-green) !important;
    background: var(--ess-green) !important;
    color: #ffffff !important;
}

.btn-success:hover,
.btn-primary:hover,
.btn-info:hover {
    border-color: #2f9544 !important;
    background: #2f9544 !important;
}

.btn-secondary {
    border-color: #e1e1df;
    background: #f4f4f2;
    color: var(--ess-text);
}

.btn-danger {
    border-color: var(--ess-red);
    background: var(--ess-red);
    color: #ffffff;
}

.btn-outline-secondary,
.btn-outline-info,
.btn-outline-primary,
.btn-outline-danger {
    background: #ffffff !important;
    color: var(--ess-text) !important;
    border-color: #dcdedb !important;
}

.btn-outline-info i,
.btn-outline-primary i {
    color: var(--ess-blue);
}

.btn-outline-danger i {
    color: var(--ess-red);
}

.pagination {
    margin-top: 22px;
    gap: 6px;
}

.page-link {
    border: 0;
    border-radius: 8px;
    color: var(--ess-text);
    background: #ffffff;
    box-shadow: var(--ess-shadow);
}

.page-item.active .page-link {
    background: var(--ess-lime);
    color: #15171b;
}

.modal-content {
    width: auto;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(20, 24, 31, 0.18);
}

.modal-header {
    border-bottom: 1px solid #ececea;
    background: #ffffff !important;
    color: var(--ess-text) !important;
    padding: 22px 24px;
}

.modal-title,
.modal-title i {
    color: var(--ess-text);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid #ececea;
    background: #fbfbfa;
    padding: 18px 24px;
}

.btn-close-white {
    filter: none;
}

.current-file,
.border.rounded.bg-light {
    border: 1px solid #ececea !important;
    border-radius: 8px !important;
    background: #f8f8f6 !important;
    padding: 14px !important;
    margin-bottom: 12px;
}

#calendar {
    padding: 18px !important;
}

.fc .fc-button-primary {
    border-color: var(--ess-green);
    background: var(--ess-green);
}

.fc .fc-toolbar-title {
    color: var(--ess-text);
    font-size: 20px;
    font-weight: 800;
}

.alert {
    border: 0;
    border-radius: 8px;
    box-shadow: var(--ess-shadow);
}

@media (max-width: 720px) {
    .dashboard-title {
        align-items: flex-start !important;
        flex-direction: column;
        gap: 14px;
    }

    .dashboard-title .btn,
    .dashboard-title button {
        width: 100%;
    }

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

    .table > :not(caption) > * > * {
        padding: 13px 14px;
    }
}

/* Final Figma shell and dashboard pass */
html,
body {
    min-height: 100%;
    background: #eeeeed;
}

body {
    overflow-x: hidden;
}

.wrapper.d-flex {
    display: block !important;
    min-height: 100vh;
    background: #eeeeed;
}

.sidebar,
.fancy-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1030;
    width: 256px;
    min-width: 256px;
    height: 100vh;
    padding: 24px 16px 18px;
    background: #e8e8e7;
    border-right: 1px solid #dadbd9;
    overflow-y: auto;
}

.sidebar-brand {
    padding: 0 8px 36px;
}

.sidebar-brand img {
    width: 178px;
    filter: invert(1) grayscale(1) contrast(0.72);
}

.sidebar ul li,
.fancy-sidebar ul li {
    margin: 7px 0;
}

.sidebar ul li a,
.fancy-sidebar ul li a,
.sidebar-footer a {
    min-height: 49px;
    padding: 13px 16px;
    border-radius: 8px;
    color: #51545b;
    font-size: 15px;
    font-weight: 800;
}

.sidebar ul li a.active,
.fancy-sidebar ul li a.active,
.sidebar ul li a:hover,
.fancy-sidebar ul li a:hover {
    background: #dadd4f;
    color: #15171b;
}

.sidebar ul li a.active i,
.fancy-sidebar ul li a.active i {
    color: #15171b;
}

.main.flex-grow-1 {
    display: block !important;
    min-height: 100vh;
    margin-left: 256px;
    background: #eeeeed;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    min-height: 73px;
    padding: 16px 32px;
    background: #ffffff;
    border-bottom: 1px solid #dedfde;
}

.topbar h1 {
    font-size: 24px;
    color: #42454b;
}

.content.container-fluid {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 32px !important;
}

.profile-chip strong {
    color: #42454b;
}

.profile-avatar {
    width: 43px;
    height: 43px;
    background: #dadd4f;
}

.figma-dashboard {
    display: grid;
    gap: 26px;
}

.figma-hero {
    min-height: 137px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    border-radius: 14px;
    padding: 31px 32px;
    background: linear-gradient(90deg, #dadd4f 0%, #eef0a7 57%, #ffffff 100%);
}

.figma-hero h2 {
    margin: 0 0 12px;
    color: #111318;
    font-size: 30px;
    line-height: 1.12;
    font-weight: 800;
}

.figma-hero p {
    margin: 0;
    color: #1f2227;
    font-size: 18px;
}

.figma-hero-person {
    position: relative;
    width: 142px;
    height: 112px;
    flex: 0 0 auto;
}

.figma-hero-media {
    width: 170px;
    height: 136px;
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    overflow: visible;
}

.figma-hero-media img {
    width: 112px;
    height: 162px;
    object-fit: cover;
    object-position: top center;
    border-radius: 999px 999px 18px 18px;
    transform-origin: center bottom;
    animation: figmaHeroFloat 4.8s ease-in-out infinite;
    filter: drop-shadow(0 18px 22px rgba(20, 24, 31, 0.12));
}

.figma-hero-person::before {
    content: "";
    position: absolute;
    left: 52px;
    top: 8px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #d4b18c;
}

.figma-hero-person::after {
    content: "";
    position: absolute;
    left: 44px;
    top: 40px;
    width: 52px;
    height: 66px;
    border-radius: 24px 24px 10px 10px;
    background: #6d7821;
    box-shadow: -16px 54px 0 -8px #2f3338, 28px 54px 0 -8px #2f3338;
}

.figma-hero-person span::before,
.figma-hero-person span::after {
    content: "";
    position: absolute;
    top: 55px;
    width: 46px;
    height: 8px;
    border-radius: 999px;
    background: #6d7821;
}

.figma-hero-person span::before {
    left: 10px;
    transform: rotate(-32deg);
}

.figma-hero-person span::after {
    right: 8px;
    transform: rotate(25deg);
}

.figma-section h3,
.figma-panel-header h3 {
    margin: 0;
    color: #50535a;
    font-size: 18px;
    font-weight: 800;
}

.figma-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.figma-action-card {
    min-height: 161px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    border: 0;
    border-radius: 10px;
    padding: 24px;
    background: #ffffff;
    color: #454850;
    text-decoration: none;
    box-shadow: var(--ess-shadow);
    cursor: pointer;
}

.figma-action-card:hover {
    color: #15171b;
    transform: translateY(-2px);
}

.figma-action-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 8px;
    font-size: 22px;
}

.figma-action-icon-blue {
    background: #eef5ff;
    color: #2367b1;
}

.figma-action-icon-green {
    background: #eefbf2;
    color: #39a950;
}

.figma-action-icon-purple {
    background: #fbf1ff;
    color: #a832cf;
}

.figma-action-card strong {
    color: #4c5058;
    font-size: 16px;
}

.figma-action-card small {
    margin-top: 6px;
    color: #6c717c;
    font-size: 15px;
}

.figma-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

.figma-panel,
.figma-stat-card {
    border-radius: 10px;
    background: #ffffff;
    box-shadow: var(--ess-shadow);
}

.figma-panel {
    min-height: 248px;
    padding: 26px;
}

.figma-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.figma-panel-header h3 {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.figma-panel-header a {
    color: #756d08;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.figma-list {
    display: grid;
    gap: 12px;
}

.figma-list-item,
.figma-activity-item {
    min-height: 62px;
    border-radius: 8px;
    background: #fafafa;
    padding: 12px 14px;
}

.figma-list-item p,
.figma-activity-item strong {
    margin: 0;
    color: #484c54;
    font-size: 14px;
    font-weight: 700;
}

.figma-list-item small,
.figma-activity-item small {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    color: #6f7480;
    font-size: 12px;
}

.figma-activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.status-pill {
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.status-pill-approved {
    background: #daf5df;
    color: #247336;
}

.status-pill-pending {
    background: #fff6c4;
    color: #83710a;
}

.status-pill-complete {
    background: #e9f0ff;
    color: #315f9d;
}

.figma-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.figma-stat-card {
    min-height: 150px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 24px;
}

.figma-stat-card span {
    display: grid;
    gap: 3px;
}

.figma-stat-card small,
.figma-stat-card em {
    color: #6f7480;
    font-size: 14px;
    font-style: normal;
}

.figma-stat-card strong {
    color: #22252b;
    font-size: 30px;
    line-height: 1;
}

.figma-stat-card i {
    color: #bfc64a;
    font-size: 42px;
}

.figma-empty {
    min-height: 88px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #fafafa;
    color: #777b84;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .figma-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .sidebar,
    .fancy-sidebar {
        position: relative;
        width: 100%;
        min-width: 0;
        height: auto;
        max-height: none;
    }

    .main.flex-grow-1 {
        margin-left: 0;
    }

    .sidebar-nav {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 6px;
    }

    .figma-dashboard-grid,
    .figma-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .content.container-fluid {
        padding: 22px 16px !important;
    }

    .figma-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px;
    }

    .figma-stat-grid {
        grid-template-columns: 1fr;
    }
}

.main.flex-grow-1 {
    position: relative;
}

.main.flex-grow-1::after {
    display: none;
}

.main.flex-grow-1 > .topbar,
.main.flex-grow-1 > .content {
    position: relative;
    z-index: auto;
}

.figma-form-panel,
form#employeeForm,
.accordion,
.list-group,
.org-chart,
.employee-modal,
.profile-panel {
    border: 0;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: var(--ess-shadow);
}

.figma-form-panel,
form#employeeForm {
    padding: 28px;
}

.figma-form-section-title,
form#employeeForm h5,
.card h5,
.accordion-body h5 {
    margin: 22px 0 16px;
    color: #454850;
    font-size: 18px;
    font-weight: 800;
}

form#employeeForm > .figma-form-section-title:first-of-type,
form#employeeForm > h5:first-of-type {
    margin-top: 0;
}

.row.g-3,
form .row {
    --bs-gutter-x: 18px;
    --bs-gutter-y: 18px;
}

.accordion {
    overflow: hidden;
}

.accordion-item {
    border: 0;
    border-bottom: 1px solid #ececea;
}

.accordion-item:last-child {
    border-bottom: 0;
}

.accordion-button {
    min-height: 58px;
    background: #ffffff;
    color: #454850;
    font-weight: 800;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background: #f8f8f6;
    color: #15171b;
}

.accordion-body {
    background: #ffffff;
}

.list-group-item {
    border-color: #ececea;
    padding: 14px 16px;
    color: #454850;
}

.modal-lg-custom,
.modal-xl {
    max-width: min(1120px, calc(100vw - 48px));
}

.table-responsive,
.card.mb-4,
.accordion,
.figma-form-panel,
form#employeeForm {
    margin-bottom: 24px;
}

.table-responsive {
    width: 100%;
}

.dashboard-title {
    width: 100%;
}

.dashboard-title > div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

a[href*="Download"],
button[onclick*="download"],
.download-action {
    position: relative;
    overflow: hidden;
}

a[href*="Download"]::after,
button[onclick*="download"]::after,
.download-action::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 -45%;
    width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-18deg);
    animation: figmaDownloadSweep 2.6s ease-in-out infinite;
}

@keyframes figmaHeroFloat {
    0%, 100% {
        transform: translateY(0) rotate(-1deg);
    }
    50% {
        transform: translateY(-10px) rotate(1deg);
    }
}

@keyframes figmaSiteFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-18px) scale(1.015);
    }
}

@keyframes figmaDownloadSweep {
    0%, 45% {
        left: -45%;
    }
    100% {
        left: 125%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .figma-hero-media img,
    .main.flex-grow-1::after,
    a[href*="Download"]::after,
    button[onclick*="download"]::after,
    .download-action::after {
        animation: none;
    }
}

/* Final Figma parity overrides. Keep this last so older refresh blocks cannot win. */
:root {
    --figma-lime: #dddd28;
    --figma-bg: #f1f1f1;
    --figma-sidebar: #e7e7e7;
    --figma-text: #596166;
    --figma-muted: #737c91;
    --figma-border: #e2e6ec;
}

.wrapper.d-flex,
.main.flex-grow-1,
body {
    background: var(--figma-bg) !important;
}

.sidebar,
.fancy-sidebar {
    width: 292px !important;
    min-width: 292px !important;
    padding: 0 !important;
    background: var(--figma-sidebar) !important;
}

.main.flex-grow-1 {
    margin-left: 292px !important;
}

.sidebar-brand {
    height: 112px !important;
    padding: 2.4rem 2.8rem !important;
    display: flex !important;
    align-items: center !important;
    border-bottom: 1px solid #d5d9df;
}

.sidebar-brand img {
    width: 190px !important;
    max-width: 190px !important;
    filter: none !important;
}

.sidebar-nav {
    padding: 2.4rem 1.8rem !important;
}

.fancy-sidebar ul li a,
.sidebar-footer a {
    min-height: 56px !important;
    padding: 0 1.8rem !important;
    color: var(--figma-text) !important;
    font-size: 1.8rem !important;
    border-radius: .8rem !important;
}

.fancy-sidebar ul li a.active,
.fancy-sidebar ul li a:hover,
.sidebar-footer a:hover {
    background: var(--figma-lime) !important;
    color: #111 !important;
}

.topbar {
    min-height: 86px !important;
    padding: 0 3.8rem !important;
}

.topbar h1 {
    color: var(--figma-text) !important;
    font-size: 2.6rem !important;
}

.content.container-fluid {
    max-width: 1320px !important;
    padding: 4rem 4.8rem !important;
}

/* Sidebar menu final polish */
.sidebar,
.fancy-sidebar {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    overflow: hidden !important;
}

.sidebar-nav {
    flex: 1 1 auto !important;
    overflow-y: visible !important;
    margin: 0 !important;
    list-style: none !important;
}

.sidebar-nav::-webkit-scrollbar {
    width: 0;
}

.fancy-sidebar ul li a,
.sidebar-footer a,
.sidebar-signout-button {
    display: flex !important;
    align-items: center !important;
    gap: 1.4rem !important;
    width: 100% !important;
    min-height: 46px !important;
    padding: 0 1.6rem !important;
    border: 0 !important;
    border-radius: .8rem !important;
    background: transparent !important;
    color: var(--figma-text) !important;
    font-size: 1.55rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-align: left !important;
    text-decoration: none !important;
}

.sidebar-signout-form {
    width: 100% !important;
    margin: 0 !important;
}

.sidebar-footer {
    flex: 0 0 auto !important;
    margin-top: auto !important;
    padding: 1.2rem 1.8rem !important;
    border-top: 1px solid #d5d9df !important;
    background: var(--figma-sidebar) !important;
}

.fancy-sidebar ul li a.active,
.fancy-sidebar ul li a:hover,
.fancy-sidebar ul li a:focus,
.sidebar-footer a:hover,
.sidebar-footer a:focus,
.sidebar-signout-button:hover,
.sidebar-signout-button:focus {
    background: var(--figma-lime) !important;
    color: #111 !important;
}

.fancy-sidebar ul li a i,
.sidebar-footer a i,
.sidebar-signout-button i {
    width: 2.2rem !important;
    min-width: 2.2rem !important;
    color: currentColor !important;
    font-size: 1.65rem !important;
    text-align: center !important;
}

/* Keep the complete Figma menu visible with the bottom sign-out action. */
.sidebar-brand {
    height: 94px !important;
    padding: 2rem 2.4rem !important;
}

.sidebar-brand img {
    width: 178px !important;
    max-width: 178px !important;
}

.sidebar-nav {
    padding: 1.5rem 1.8rem .8rem !important;
}

.fancy-sidebar ul li {
    margin-bottom: .35rem !important;
}

@media (max-height: 820px) {
    .sidebar-brand {
        height: 82px !important;
        padding: 1.5rem 2.2rem !important;
    }

    .sidebar-brand img {
        width: 164px !important;
        max-width: 164px !important;
    }

    .sidebar-nav {
        padding: 1rem 1.6rem .6rem !important;
    }

    .fancy-sidebar ul li {
        margin-bottom: .2rem !important;
    }

    .fancy-sidebar ul li a,
    .sidebar-signout-button {
        min-height: 40px !important;
        font-size: 1.38rem !important;
        border-radius: .7rem !important;
    }

    .fancy-sidebar ul li a i,
    .sidebar-signout-button i {
        font-size: 1.48rem !important;
    }

    .sidebar-footer {
        padding: .8rem 1.6rem !important;
    }
}

.dashboard-title {
    display: none !important;
}

.figma-hero {
    display: none !important;
}

.figma-page,
.figma-dashboard {
    display: flex !important;
    flex-direction: column;
    gap: 3rem;
}

.figma-panel,
.figma-form-panel,
form#employeeForm,
.figma-summary-card,
.figma-action-card,
.figma-stat-card,
.card,
.table-responsive {
    border-radius: 1.2rem !important;
    background: #fff !important;
    box-shadow: none !important;
}

.figma-panel,
.figma-form-panel,
form#employeeForm {
    padding: 3rem !important;
}

.btn,
.btn-primary,
.btn-success,
.btn-info {
    min-height: 48px !important;
    border-color: var(--figma-lime) !important;
    background: var(--figma-lime) !important;
    color: #111 !important;
    border-radius: .8rem !important;
    font-size: 1.7rem !important;
    font-weight: 700 !important;
}

.btn-outline-secondary,
.btn-secondary,
.btn-light {
    background: #fff !important;
    border-color: #d8dde5 !important;
    color: #111 !important;
}

.profile-avatar,
.profile-avatar-lg {
    background: var(--figma-lime) !important;
    color: #111 !important;
}

.profile-avatar-lg {
    width: 116px !important;
    height: 116px !important;
    font-size: 3.4rem !important;
}

.table thead th,
.table-dark th,
.table-header th {
    background: #0b0c0c !important;
    color: #fff !important;
    text-transform: none !important;
    font-size: 1.6rem !important;
}

.form-control,
.form-select {
    min-height: 52px !important;
    border-radius: .9rem !important;
    font-size: 1.7rem !important;
}

.figma-summary-grid,
.figma-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.figma-dashboard-grid,
.figma-two-col,
.figma-resource-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.4rem;
}

.figma-stat-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
}

.figma-service-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
}

.figma-dashboard .figma-stat-grid {
    align-items: stretch;
}

.figma-dashboard .figma-stat-card {
    position: relative;
    min-height: 8.8rem;
    overflow: hidden;
    align-items: center;
    padding: 1.6rem 2rem !important;
    border: 1px solid #eef0f4;
    border-radius: 1.2rem !important;
    background: #fff !important;
}

.figma-dashboard .figma-stat-card::after {
    content: "";
    position: absolute;
    right: -2.6rem;
    bottom: -4.2rem;
    width: 9.6rem;
    height: 9.6rem;
    border-radius: 50%;
    background: #f6f7f8;
    z-index: 0;
}

.figma-dashboard .figma-stat-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: auto auto;
    grid-template-areas:
        "label value"
        "caption value";
    align-items: center;
    column-gap: 1rem;
    row-gap: .2rem;
}

.figma-dashboard .figma-stat-card small {
    grid-area: label;
    color: #6f7787;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.figma-dashboard .figma-stat-card strong {
    grid-area: value;
    color: #555b62;
    font-size: clamp(2.8rem, 2.4vw, 3.6rem);
    font-weight: 500;
    line-height: .95;
    letter-spacing: 0;
}

.figma-dashboard .figma-stat-card em {
    grid-area: caption;
    color: #9aa2b1;
    font-size: 1.2rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
}

.figma-dashboard .figma-stat-card img {
    position: relative;
    z-index: 1;
    width: clamp(4rem, 3.8vw, 5.6rem);
    height: clamp(4rem, 3.8vw, 5.6rem);
    object-fit: contain;
    margin-left: .8rem;
    align-self: center;
}

.figma-dashboard .figma-stat-card-leave::after {
    background: #f4f7d7;
}

.figma-dashboard .figma-stat-card-tasks::after {
    background: #edf4ff;
}

.figma-dashboard .figma-stat-card-requests::after {
    background: #eef9ef;
}

.figma-dashboard .figma-stat-card-birthdays::after {
    background: #f8efff;
}

@media (max-width: 992px) {
    .sidebar,
    .fancy-sidebar {
        position: relative !important;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
    }

    .main.flex-grow-1 {
        margin-left: 0 !important;
    }

    .figma-summary-grid,
    .figma-actions,
    .figma-dashboard-grid,
    .figma-two-col,
    .figma-resource-grid,
    .figma-service-grid,
    .figma-stat-grid {
        grid-template-columns: 1fr !important;
    }

    .figma-dashboard .figma-stat-card {
        min-height: 8.8rem;
    }
}

/* Final modal override. This must remain the last block in the file. */
body.modal-open {
    overflow: hidden !important;
}

.modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 100000 !important;
    pointer-events: auto !important;
}

.modal.show {
    display: block !important;
}

.modal-dialog {
    position: relative !important;
    z-index: 100001 !important;
    pointer-events: auto !important;
}

.modal-content {
    border: 1px solid #e2e6ec !important;
    border-radius: 1.2rem !important;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22) !important;
    max-height: min(88vh, 920px) !important;
    overflow: hidden !important;
}

.modal-header,
.modal-footer {
    flex-shrink: 0 !important;
    background: #fff !important;
    border-color: #edf0f4 !important;
}

.modal-body {
    max-height: calc(88vh - 150px) !important;
    overflow-y: auto !important;
    background: #fff !important;
}

.modal-backdrop {
    z-index: 99990 !important;
    pointer-events: auto !important;
}

.modal-backdrop.show {
    opacity: .46 !important;
}

.modal input,
.modal select,
.modal textarea,
.modal button,
.modal a,
.modal label,
.modal .btn,
.modal .form-control,
.modal .form-select {
    pointer-events: auto !important;
}

.btn-close,
.modal .btn-close,
.modal .btn-close-white {
    width: 38px !important;
    height: 38px !important;
    border-radius: 999px !important;
    background-color: #f3f5f7 !important;
    opacity: 1 !important;
    filter: none !important;
}
