/* ==========================================================================
   H2E PLATFORM - MAIN STYLESHEET
   Comprehensive CSS converted from Tailwind utility classes.
   Faithfully reproduces the visual style of the H2E platform demo.
   ========================================================================== */


/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */

:root {
    /* Brand Colors */
    --navy: #2A3478;
    --navy-dark: #1A2255;
    --navy-800: #364188;
    --navy-700: #4B5699;
    --navy-50: #EAEBF4;
    --gold: #DCA122;
    --gold-dark: #B0811B;
    --gold-light: #EBC05E;

    /* Greys */
    --grey-dark: #666666;
    --grey-mid: #999999;
    --grey-light: #CCCCCC;

    /* Backgrounds */
    --bg-page: #F5F5F5;
    --bg-card: #FFFFFF;

    /* Text */
    --text-primary: #2A3478;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    /* Shadows */
    --shadow-sharp: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px 0 rgba(0,0,0,0.06);
    --shadow-soft: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-card: 0 0 0 1px rgba(42,52,120,0.05), 0 2px 8px rgba(0,0,0,0.05);
    --shadow-slide: 0 4px 20px rgba(42,52,120,0.08);
    --shadow-subtle: 0 4px 60px -15px rgba(0,0,0,0.1);
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #1e293b;
    background-color: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

ul, ol {
    list-style: none;
}


/* ==========================================================================
   2. TYPOGRAPHY
   ========================================================================== */

/* Font families */
.font-display {
    font-family: 'Inter', sans-serif;
}

.font-condensed {
    font-family: 'Roboto Condensed', sans-serif;
}

.font-roboto-light {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
}

.font-roboto-bold {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

/* Headings default to Roboto Condensed */
h1, h2, h3, h4 {
    font-family: 'Roboto Condensed', sans-serif;
}

/* Heading sizes matching Tailwind */
.text-xs {
    font-size: 0.75rem;    /* 12px */
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;   /* 14px */
    line-height: 1.25rem;
}

.text-base {
    font-size: 1rem;        /* 16px */
    line-height: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;   /* 18px */
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;    /* 20px */
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;     /* 24px */
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;   /* 30px */
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;    /* 36px */
    line-height: 2.5rem;
}

.text-5xl {
    font-size: 3rem;       /* 48px */
    line-height: 1;
}

/* Font weights */
.font-light {
    font-weight: 300;
}

.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

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

/* Letter spacing */
.tracking-tighter {
    letter-spacing: -0.05em;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.tracking-normal {
    letter-spacing: 0;
}

.tracking-wide {
    letter-spacing: 0.025em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

/* Text transforms */
.uppercase {
    text-transform: uppercase;
}

.lowercase {
    text-transform: lowercase;
}

.capitalize {
    text-transform: capitalize;
}

/* Text alignment */
.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* Font style */
.italic {
    font-style: italic;
}

/* Line height */
.leading-none {
    line-height: 1;
}

.leading-tight {
    line-height: 1.25;
}

.leading-snug {
    line-height: 1.375;
}

.leading-normal {
    line-height: 1.5;
}

.leading-relaxed {
    line-height: 1.625;
}


/* ==========================================================================
   3. LAYOUT - SIDEBAR
   ========================================================================== */

.sidebar {
    width: 256px;                   /* w-64 */
    background-color: var(--navy);
    color: #ffffff;
    flex-shrink: 0;
    display: none;                  /* hidden on mobile */
    flex-direction: column;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 20;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04); /* shadow-xl */
    overflow: hidden;
}

@media (min-width: 768px) {
    .sidebar {
        display: flex;
        position: relative;
    }
}

.sidebar-header {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 1.5rem;
    flex-shrink: 0;
    font-family: 'Roboto Condensed', sans-serif;
}

.sidebar-header-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-logo {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    object-fit: cover;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.sidebar-brand-group {
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.025em;
    color: #ffffff;
    line-height: 1;
}

.sidebar-brand-sub {
    font-size: 10px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    margin-top: 0.25rem;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 0.75rem;
}

.sidebar-nav > * + * {
    margin-top: 4px;                /* space-y-1 */
}

.sidebar-section-label {
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 10px;
    font-weight: 600;
    color: rgba(220, 161, 34, 0.8); /* text-primary/80 */
    text-transform: uppercase;
    letter-spacing: 0.05em;         /* tracking-wider */
    font-family: 'Roboto Condensed', sans-serif;
}

.sidebar-section-label:not(:first-child) {
    margin-top: 2rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;                   /* gap-3 */
    padding: 0.75rem;              /* py-3 px-3 */
    border-radius: 0.5rem;         /* rounded-lg */
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 400;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
    text-decoration: none;
}

.sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.sidebar-link:hover i,
.sidebar-link:hover .material-icons,
.sidebar-link:hover .material-symbols-outlined {
    color: var(--gold);
}

.sidebar-link i,
.sidebar-link .material-icons,
.sidebar-link .material-symbols-outlined {
    font-size: 20px;
    transition: color 0.2s ease;
}

.sidebar-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    border-left-color: var(--gold);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    color: #ffffff;
}

.sidebar-link.active i,
.sidebar-link.active .material-icons,
.sidebar-link.active .material-symbols-outlined {
    color: var(--gold);
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(54, 65, 136, 0.3); /* navy-800/30 */
    flex-shrink: 0;
}

.sidebar-footer .sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--navy);
    background-color: var(--gold);
    border: 2px solid var(--gold);
    flex-shrink: 0;
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
}

.sidebar-footer .sidebar-user img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    object-fit: cover;
    border: 2px solid var(--gold);
}

.sidebar-footer .sidebar-user-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Roboto Condensed', sans-serif;
}

.sidebar-footer .sidebar-user-role {
    font-size: 0.75rem;
    color: rgba(220, 161, 34, 0.9);
}


/* ==========================================================================
   4. LAYOUT - HEADER
   ========================================================================== */

.header {
    height: 80px;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    flex-shrink: 0;
    z-index: 10;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}

.header-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.025em;       /* tracking-tight */
    line-height: 1.2;
}

.gold-divider {
    height: 2px;
    width: 40px;
    background: linear-gradient(90deg, var(--gold) 0%, rgba(220, 161, 34, 0.2) 100%);
    margin-top: 4px;
}

.header-search {
    position: relative;
    display: none;
}

@media (min-width: 640px) {
    .header-search {
        display: block;
    }
}

.header-search input {
    padding-left: 2.5rem;
    padding-right: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    width: 320px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: #334155;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}

.header-search input::placeholder {
    color: #9ca3af;
}

.header-search input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 1px var(--gold);
}

.header-search .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 1.125rem;
}

.header-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    border-left: 1px solid #e5e7eb;
    padding-left: 1.5rem;
}

.notification-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background-color: var(--gold);
    border-radius: 9999px;
    border: 2px solid #ffffff;
}

/* Header left side */
.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-title-group {
    display: flex;
    flex-direction: column;
}

/* Mobile hamburger button -- hidden on desktop */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.mobile-menu-btn:hover {
    color: var(--gold);
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Header icon buttons (bell, settings) */
.header-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--navy);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.header-icon-btn:hover {
    color: var(--gold);
}

.header-icon-btn i,
.header-icon-btn svg {
    width: 20px;
    height: 20px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

.breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--navy);
}

.breadcrumb span {
    color: #94a3b8;
}

.breadcrumb .current {
    color: var(--navy);
    font-weight: 500;
}

/* Sidebar separator */
.sidebar-separator {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 1rem 0.75rem;
}


/* ==========================================================================
   5. LAYOUT - MAIN
   ========================================================================== */

.app-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--bg-page);
    position: relative;
}

.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.content-container {
    max-width: 80rem;              /* max-w-7xl = 1280px */
    margin-left: auto;
    margin-right: auto;
}

.content-container > * + * {
    margin-top: 2rem;               /* space-y-8 */
}


/* ==========================================================================
   6. CARDS & KPI
   ========================================================================== */

.card {
    background-color: #ffffff;
    border-radius: 0.25rem;
    box-shadow: var(--shadow-sharp);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(249, 250, 251, 0.5); /* bg-gray-50/50 */
}

.card-header-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body {
    padding: 1.5rem;
}

.kpi-card {
    background-color: #ffffff;
    border-radius: 0.25rem;
    box-shadow: var(--shadow-sharp);
    overflow: hidden;
    border-top: 3px solid var(--gold);
    transition: all 0.3s ease;
    position: relative;
}

.kpi-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

.kpi-card .kpi-body {
    padding: 1.5rem;
}

.kpi-card .kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.kpi-card .kpi-number,
.kpi-number {
    font-size: 3rem;                /* text-5xl */
    font-weight: 700;
    color: var(--navy);
    font-family: 'Roboto Condensed', sans-serif;
    line-height: 1;
    margin-top: 0.5rem;
}

.kpi-card .kpi-label {
    font-size: 0.75rem;            /* text-xs */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;          /* tracking-widest */
    color: #94a3b8;
    font-family: 'Roboto Condensed', sans-serif;
}

.kpi-card .kpi-icon {
    padding: 0.5rem;
    background-color: var(--navy-50);
    border-radius: 0.25rem;
    color: var(--navy);
}

.kpi-card .kpi-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}


/* ==========================================================================
   7. TABLES
   ========================================================================== */

.data-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table thead tr {
    background-color: #ffffff;
    font-size: 0.6875rem;          /* ~11px */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 2px solid rgba(220, 161, 34, 0.2);
}

.data-table th {
    padding: 1rem 1.5rem;
    font-weight: 700;
    font-family: 'Roboto Condensed', sans-serif;
    color: var(--navy);
}

.data-table td {
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
}

.data-table tbody tr {
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.data-table tbody tr:hover {
    background-color: rgba(220, 161, 34, 0.05);
}

.data-table tbody tr:nth-child(even) {
    background-color: rgba(250, 250, 250, 0.5);
}

.data-table tbody tr:nth-child(even):hover {
    background-color: rgba(220, 161, 34, 0.05);
}

/* Bold name/amount cells */
.data-table td.cell-name,
.data-table td.cell-amount {
    font-weight: 700;
    color: var(--navy);
}

.data-table td.cell-amount-gold {
    font-weight: 700;
    color: var(--gold);
}


/* ==========================================================================
   8. BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    font-size: 0.75rem;            /* 12px */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    line-height: 1.5;
    white-space: nowrap;
}

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

.btn-gold:hover {
    background-color: var(--gold-dark);
}

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

.btn-navy:hover {
    background-color: var(--navy-800);
}

.btn-outline {
    background-color: #ffffff;
    border: 1px solid var(--navy);
    color: var(--navy);
}

.btn-outline:hover {
    background-color: var(--navy);
    color: #ffffff;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.6875rem;          /* 11px */
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;           /* 14px */
}


/* ==========================================================================
   9. BADGES
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 0.25rem;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-gold {
    background-color: rgba(220, 161, 34, 0.2);
    color: var(--gold-dark);
    border: 1px solid rgba(220, 161, 34, 0.3);
}

.badge-navy {
    background-color: var(--navy-50);
    color: var(--navy);
}

.badge-blue {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-grey {
    background-color: #f1f5f9;
    color: #64748b;
}

.badge-green {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.badge-red {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.badge-pill {
    border-radius: 9999px;
    padding: 0.25rem 0.625rem;
}


/* ==========================================================================
   10. FORMS & FILTERS
   ========================================================================== */

.form-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 0.75rem;
    font-size: 0.875rem;
    font-weight: 300;
    color: #334155;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.form-input::placeholder {
    color: #94a3b8;
}

.form-input:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 1px var(--navy);
}

.form-input-icon {
    padding-left: 2.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.5rem;
}

.form-label-xs {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
}

.filter-bar {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-select {
    appearance: none;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.5rem 2rem 0.5rem 2.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}

.filter-select:hover {
    border-color: rgba(220, 161, 34, 0.5);
}

.filter-select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 1px var(--gold);
}


/* ==========================================================================
   11. TABS
   ========================================================================== */

.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    overflow-x: auto;
}

.tab {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    background: none;
    font-family: inherit;
}

.tab:hover {
    color: var(--navy);
    border-bottom-color: #d1d5db;
}

.tab.active {
    color: var(--navy);
    border-bottom-color: var(--gold);
    font-weight: 700;
}


/* ==========================================================================
   12. TIMELINE
   ========================================================================== */

.timeline {
    position: relative;
    padding-left: 0.5rem;
}

.timeline-line {
    position: absolute;
    left: 1.5rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 1px;
    background-color: #e5e7eb;
}

.timeline-item {
    display: flex;
    gap: 1rem;
    position: relative;
}

.timeline-item + .timeline-item {
    margin-top: 1.5rem;
}

.timeline-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    z-index: 10;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    flex-shrink: 0;
    object-fit: cover;
}

.timeline-avatar-img {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    object-fit: cover;
    border: 2px solid #ffffff;
    z-index: 10;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    flex-shrink: 0;
    background-color: #e5e7eb;
}

.timeline-content {
    flex: 1;
    background-color: #f8fafc;
    padding: 0.75rem;
    border-left: 2px solid var(--gold);
    border-radius: 0 4px 4px 0;
}

.timeline-content-muted {
    flex: 1;
    background-color: #f8fafc;
    padding: 0.75rem;
    border-left: 2px solid #d1d5db;
    border-radius: 0 4px 4px 0;
}

.timeline-meta {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* ==========================================================================
   13. ACTIVITY FEED (Dashboard Alerts)
   ========================================================================== */

.alert-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    border-radius: 0.25rem;
    gap: 0.75rem;
}

.alert-item + .alert-item {
    margin-top: 1rem;
}

.alert-title {
    font-size: 0.875rem;
    font-weight: 700;
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    color: var(--navy);
}

.alert-desc {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 4px;
}


/* ==========================================================================
   14. AVATARS
   ========================================================================== */

.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    color: #ffffff;
    background-color: var(--navy);
    flex-shrink: 0;
}

.avatar-sm {
    width: 2rem;
    height: 2rem;
    font-size: 10px;
}

.avatar-md {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.75rem;
}

.avatar-lg {
    width: 5rem;
    height: 5rem;
    font-size: 1.25rem;
}

.avatar-xl {
    width: 7rem;
    height: 7rem;
    font-size: 1.5rem;
    border: 4px solid #f8fafc;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

.avatar-gold {
    background-color: var(--gold);
    color: var(--navy);
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    object-fit: cover;
}


/* ==========================================================================
   15. PROGRESS BAR
   ========================================================================== */

.progress-bar {
    width: 100%;
    background-color: #e5e7eb;
    border-radius: 9999px;
    height: 6px;
    overflow: hidden;
}

.progress-bar-sm {
    height: 4px;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 9999px;
    background-color: var(--gold);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar-fill-navy {
    height: 100%;
    border-radius: 9999px;
    background-color: var(--navy);
}

.progress-bar-fill-green {
    height: 100%;
    border-radius: 9999px;
    background-color: #22c55e;
}

.progress-bar-fill-red {
    height: 100%;
    border-radius: 9999px;
    background-color: #f87171;
}

/* ---- CSS Bar Chart ---- */
.chart-bar-group {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    height: 200px;
}

.chart-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.chart-bar-track {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
}

.chart-bar {
    width: 100%;
    border-radius: 0.125rem 0.125rem 0 0;
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-bar-label {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #94a3b8;
    flex-shrink: 0;
}

.chart-bar-label-active {
    color: var(--navy);
    font-weight: 700;
}

/* ---- Line Chart ---- */
.line-chart {
    width: 100%;
    min-height: 180px;
}

.line-chart svg {
    display: block;
}

.lc-dot {
    transition: r 0.15s ease;
}

.lc-hover {
    cursor: pointer;
}


/* ==========================================================================
   16. GRID UTILITIES
   ========================================================================== */

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-cols-12 {
    grid-template-columns: repeat(12, 1fr);
}

.col-span-2 {
    grid-column: span 2 / span 2;
}

.col-span-3 {
    grid-column: span 3 / span 3;
}

.col-span-4 {
    grid-column: span 4 / span 4;
}

.col-span-8 {
    grid-column: span 8 / span 8;
}

.col-span-9 {
    grid-column: span 9 / span 9;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-5 {
    gap: 1.25rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}


/* ==========================================================================
   17. FLEXBOX UTILITIES
   ========================================================================== */

.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.flex-grow {
    flex-grow: 1;
}

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

.items-center {
    align-items: center;
}

.items-end {
    align-items: flex-end;
}

.justify-start {
    justify-content: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-end {
    justify-content: flex-end;
}

.justify-between {
    justify-content: space-between;
}

.self-center {
    align-self: center;
}

.self-start {
    align-self: flex-start;
}

.self-end {
    align-self: flex-end;
}


/* ==========================================================================
   18. SPACING UTILITIES
   ========================================================================== */

/* Space-y (vertical spacing between children) */
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* Space-x */
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-x-8 > * + * { margin-left: 2rem; }

/* Padding */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }

.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }

.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }

.pb-2 { padding-bottom: 0.5rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-6 { padding-bottom: 1.5rem; }

.pl-2 { padding-left: 0.5rem; }
.pl-3 { padding-left: 0.75rem; }
.pl-4 { padding-left: 1rem; }
.pl-6 { padding-left: 1.5rem; }
.pl-10 { padding-left: 2.5rem; }
.pl-16 { padding-left: 4rem; }

.pr-4 { padding-right: 1rem; }
.pr-8 { padding-right: 2rem; }

/* Margins */
.m-0 { margin: 0; }
.m-auto { margin: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-auto { margin-top: auto; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.ml-4 { margin-left: 1rem; }
.ml-8 { margin-left: 2rem; }
.ml-auto { margin-left: auto; }

.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }


/* ==========================================================================
   19. LOGIN PAGE
   ========================================================================== */

/* Full-screen navy background  --  matches: body.bg-navy-brand / min-h-screen flex col center */
.login-page {
    min-height: 100vh;
    width: 100%;
    background-color: var(--navy);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Flex centering container */
.login-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

/* Dot pattern overlay  --  matches: absolute inset-0 opacity-10 radial-gradient */
.login-dots {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    pointer-events: none;
    background-image: radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 32px 32px;
}

/* ---- Logo area ---- */
.login-logo-area {
    width: 100%;
    max-width: 32rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    z-index: 10;
}

.login-logo-img {
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
    border-radius: 50%;
}

/* "GROUPE H2E"  --  matches: text-3xl font-bold text-white tracking-wider */
.login-brand-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

/* "Holding d'Entreprises Europeennes"  --  matches: font-roboto-light text-white text-lg tracking-wide */
.login-brand-subtitle {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    color: #ffffff;
    font-size: 1.125rem;
    letter-spacing: 0.025em;
    text-align: center;
}

/* ---- White login card ---- */
/* matches: max-w-[420px] bg-white rounded-lg shadow-subtle z-10 */
.login-card {
    width: 100%;
    max-width: 420px;
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 60px -15px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* matches: p-8 sm:p-12 */
.login-card-body {
    padding: 2rem;
}

@media (min-width: 640px) {
    .login-card-body {
        padding: 3rem;
    }
}

/* Card header  --  matches: mb-8 text-center */
.login-card-header {
    margin-bottom: 2rem;
    text-align: center;
}

/* "Connexion"  --  matches: text-navy-brand text-2xl font-bold mb-2 */
.login-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

/* "Accedez a votre espace..."  --  matches: text-slate-400 text-sm font-light */
.login-card-subtitle {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 300;
}

/* Form  --  matches: space-y-6 */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Each field group  --  matches: .group */
.login-field {
    display: flex;
    flex-direction: column;
}

/* Label  --  matches: text-sm font-medium text-slate-700 mb-2 */
.login-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.5rem;
}

/* Input wrapper  --  matches: relative rounded-md shadow-sm */
.login-input-wrapper {
    position: relative;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Icon  --  matches: absolute inset-y-0 left-0 flex items-center pl-3 */
.login-input-icon {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding-left: 0.75rem;
    pointer-events: none;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.login-input-icon i,
.login-input-icon svg {
    width: 20px;
    height: 20px;
}

/* When input inside wrapper is focused, change icon color */
.login-input-wrapper:focus-within .login-input-icon {
    color: var(--navy);
}

/* Input  --  matches: w-full rounded-[4px] border border-slate-300 py-3 pl-10 text-sm font-light */
.login-input {
    display: block;
    width: 100%;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    color: #334155;
    font-size: 0.875rem;
    line-height: 1.5;
    font-weight: 300;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.login-input::placeholder {
    color: #94a3b8;
}

/* Focus  --  matches: focus:border-navy-brand focus:ring-1 focus:ring-navy-brand */
.login-input:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 1px var(--navy);
}

/* Forgot password  --  matches: flex items-center justify-end pt-1 */
.login-forgot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 0.25rem;
    margin-top: -0.5rem;
}

/* matches: text-sm text-navy-secondary hover:text-navy-brand */
.login-forgot-link {
    font-size: 0.875rem;
    color: var(--navy-700);
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-forgot-link:hover {
    color: var(--navy);
}

/* Submit wrapper  --  matches: pt-2 */
.login-submit-wrapper {
    padding-top: 0.5rem;
}

/* Submit button  --  matches: w-full rounded-[4px] bg-primary py-4 text-sm font-roboto-bold text-white uppercase tracking-wider */
.login-submit {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    background-color: var(--gold);
    padding: 1rem 0.75rem;
    font-size: 0.875rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: #ffffff;
    border: none;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    cursor: pointer;
}

.login-submit:hover {
    background-color: #c8921f;
}

.login-submit:active {
    transform: scale(0.99);
}

/* ---- Separator ---- */
.login-separator {
    text-align: center;
    margin: 1.5rem 0;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 300;
}

/* ---- Demo role buttons ---- */
.demo-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.demo-buttons form {
    width: 100%;
}

.demo-btn {
    display: flex;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    color: var(--navy);
    background-color: #ffffff;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

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

/* ---- Card footer ---- */
/* matches: bg-[#F9FAFB] px-8 py-5 border-t border-slate-100 rounded-b-lg text-center */
.login-card-footer {
    background-color: #f9fafb;
    padding: 1.25rem 2rem;
    border-top: 1px solid #f1f5f9;
    border-radius: 0 0 0.5rem 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
}

.login-card-footer p {
    margin: 0;
}

/* matches: text-navy-brand font-medium hover:underline */
.login-support-link {
    color: var(--navy);
    font-weight: 500;
    text-decoration: none;
}

.login-support-link:hover {
    text-decoration: underline;
}

/* ---- Bottom copyright ---- */
/* matches: absolute bottom-6 w-full text-center z-10  /  text-xs text-white/40 font-light */
.login-copyright {
    position: absolute;
    bottom: 1.5rem;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.login-copyright p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
    margin: 0;
}


/* ==========================================================================
   20. DOCUMENT TREE VIEW
   ========================================================================== */

.tree-view {
    width: 250px;
    background-color: #ffffff;
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
    padding: 1rem;
    flex-shrink: 0;
}

.tree-folder {
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #475569;
}

.tree-folder:hover {
    background-color: #f1f5f9;
}

.tree-folder.active {
    background-color: var(--navy-700);
    color: #ffffff;
}

.tree-subfolder {
    padding-left: 1.5rem;
}

.tree-subfolder-item {
    padding: 0.375rem 0.5rem;
    font-size: 0.8125rem;          /* 13px */
    color: #64748b;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tree-subfolder-item:hover {
    background-color: #f1f5f9;
}

.tree-subfolder-item.active {
    background-color: rgba(84, 91, 147, 0.15);
    color: var(--navy);
    font-weight: 600;
}


/* ==========================================================================
   21. CALENDAR (Conges)
   ========================================================================== */

.calendar-grid {
    display: grid;
    overflow-x: auto;
}

.calendar-header-cell {
    padding: 0.25rem;
    text-align: center;
    font-size: 0.6875rem;          /* 11px */
    font-weight: 700;
    color: #64748b;
    border-bottom: 2px solid #e5e7eb;
}

.calendar-header-cell.weekend {
    background-color: rgba(254, 243, 199, 0.3);
}

.calendar-cell {
    padding: 0.25rem;
    min-height: 2rem;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}

.calendar-cell.weekend {
    background-color: #fef9e7;
}

.calendar-bar {
    position: absolute;
    height: 60%;
    top: 20%;
    border-radius: 4px;
}

.calendar-bar.cp {
    background-color: var(--navy);
}

.calendar-bar.rtt {
    background-color: var(--navy-700);
}

.calendar-bar.maladie {
    background-color: var(--gold);
}


/* ==========================================================================
   22. TIMELINE HORIZONTAL (Fiche Commerciale / Step Timeline)
   ========================================================================== */

.step-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 1rem 0;
}

.step-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e5e7eb;
    z-index: 0;
    transform: translateY(-50%);
}

.step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.step-dot {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    border: 2px solid #cbd5e1;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.step-dot.done {
    background-color: var(--navy);
    border-color: var(--navy);
}

.step-dot.active {
    background-color: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(220, 161, 34, 0.2);
}

.step-dot.pending {
    border-color: #cbd5e1;
    background-color: #ffffff;
}

.step-label {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    text-align: center;
    color: #64748b;
    white-space: nowrap;
}

.step-label.done {
    color: var(--navy);
    font-weight: 600;
}

.step-label.active {
    color: var(--gold-dark);
    font-weight: 700;
}


/* ==========================================================================
   23. SCROLLBAR
   ========================================================================== */

.content-area::-webkit-scrollbar,
.custom-scrollbar::-webkit-scrollbar,
.scrollbar-thin::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.content-area::-webkit-scrollbar-track,
.custom-scrollbar::-webkit-scrollbar-track,
.scrollbar-thin::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.content-area::-webkit-scrollbar-thumb,
.custom-scrollbar::-webkit-scrollbar-thumb,
.scrollbar-thin::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.content-area::-webkit-scrollbar-thumb:hover,
.custom-scrollbar::-webkit-scrollbar-thumb:hover,
.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Hide scrollbar variant */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


/* ==========================================================================
   24. RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .sidebar.open {
        display: flex;
        position: fixed;
        z-index: 50;
    }

    .mobile-overlay.active {
        display: block;
    }

    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-cols-3 {
        grid-template-columns: 1fr;
    }

    .header-search {
        display: none;
    }

    .content-area {
        padding: 1rem;
    }

    .header {
        padding: 0 1rem;
    }

    .col-span-3,
    .col-span-9 {
        grid-column: span 1 / span 1;
    }

    .grid-cols-12 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .grid-cols-4,
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .login-card-body {
        padding: 1.5rem;
    }

    .header-actions {
        gap: 0.75rem;
        padding-left: 0.75rem;
    }
}

/* Responsive grid breakpoints (md and up) */
@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .md\:flex {
        display: flex;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .lg\:grid-cols-12 {
        grid-template-columns: repeat(12, 1fr);
    }

    .lg\:col-span-2 {
        grid-column: span 2 / span 2;
    }

    .lg\:col-span-3 {
        grid-column: span 3 / span 3;
    }

    .lg\:col-span-4 {
        grid-column: span 4 / span 4;
    }

    .lg\:col-span-8 {
        grid-column: span 8 / span 8;
    }

    .lg\:col-span-9 {
        grid-column: span 9 / span 9;
    }
}

@media (min-width: 1280px) {
    .xl\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* ==========================================================================
   25. MISC HELPERS
   ========================================================================== */

/* Color utilities */
.text-navy { color: var(--navy); }
.text-navy-dark { color: var(--navy-dark); }
.text-navy-700 { color: var(--navy-700); }
.text-gold { color: var(--gold); }
.text-gold-dark { color: var(--gold-dark); }
.text-muted { color: #94a3b8; }
.text-secondary { color: #64748b; }
.text-white { color: #ffffff; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }
.text-red-500 { color: #ef4444; }
.text-red-600 { color: #dc2626; }
.text-red-700 { color: #b91c1c; }
.text-green-500 { color: #22c55e; }
.text-green-600 { color: #16a34a; }
.text-green-800 { color: #166534; }
.text-primary { color: var(--gold); }

/* Background utilities */
.bg-white { background-color: #ffffff; }
.bg-navy { background-color: var(--navy); }
.bg-navy-dark { background-color: var(--navy-dark); }
.bg-navy-50 { background-color: var(--navy-50); }
.bg-gold { background-color: var(--gold); }
.bg-gold-dark { background-color: var(--gold-dark); }
.bg-page { background-color: var(--bg-page); }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-red-50 { background-color: #fef2f2; }
.bg-red-100 { background-color: #fee2e2; }
.bg-green-100 { background-color: #dcfce7; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-primary { background-color: var(--gold); }

.bg-corporate-gradient {
    background: linear-gradient(135deg, #2A3478 0%, #1A2255 100%);
}

/* Border utilities */
.border { border: 1px solid #e5e7eb; }
.border-0 { border: 0; }
.border-t { border-top: 1px solid #e5e7eb; }
.border-b { border-bottom: 1px solid #e5e7eb; }
.border-l { border-left: 1px solid #e5e7eb; }
.border-r { border-right: 1px solid #e5e7eb; }
.border-l-2 { border-left: 2px solid #e5e7eb; }
.border-l-4 { border-left: 4px solid #e5e7eb; }
.border-t-2 { border-top: 2px solid #e5e7eb; }
.border-t-3 { border-top: 3px solid #e5e7eb; }
.border-t-4 { border-top: 4px solid #e5e7eb; }
.border-b-2 { border-bottom: 2px solid #e5e7eb; }
.border-b-3 { border-bottom: 3px solid #e5e7eb; }

.border-navy { border-color: var(--navy); }
.border-gold { border-color: var(--gold); }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-slate-100 { border-color: #f1f5f9; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-300 { border-color: #cbd5e1; }
.border-white-10 { border-color: rgba(255, 255, 255, 0.1); }
.border-primary { border-color: var(--gold); }

/* Border radius */
.rounded-none { border-radius: 0; }
.rounded-sm { border-radius: 0.125rem; }
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-t-lg { border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; }
.rounded-b-lg { border-bottom-left-radius: 0.5rem; border-bottom-right-radius: 0.5rem; }
.rounded-r { border-top-right-radius: 0.25rem; border-bottom-right-radius: 0.25rem; }
.rounded-t-sm { border-top-left-radius: 0.125rem; border-top-right-radius: 0.125rem; }

/* Shadows */
.shadow-none { box-shadow: none; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); }
.shadow { box-shadow: var(--shadow-sharp); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04); }
.shadow-sharp { box-shadow: var(--shadow-sharp); }
.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-card { box-shadow: var(--shadow-card); }
.shadow-slide { box-shadow: var(--shadow-slide); }
.shadow-subtle { box-shadow: var(--shadow-subtle); }
.shadow-inner { box-shadow: inset 0 2px 4px 0 rgba(0,0,0,0.06); }

/* Width & Height */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-1 { width: 0.25rem; }
.w-2 { width: 0.5rem; }
.w-3 { width: 0.75rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }
.w-28 { width: 7rem; }
.w-64 { width: 16rem; }
.w-72 { width: 18rem; }
.w-80 { width: 20rem; }

.h-full { height: 100%; }
.h-auto { height: auto; }
.h-1 { height: 0.25rem; }
.h-2 { height: 0.5rem; }
.h-3 { height: 0.75rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-24 { height: 6rem; }
.h-28 { height: 7rem; }
.h-screen { height: 100vh; }

.min-h-screen { min-height: 100vh; }
.min-w-0 { min-width: 0; }
.max-w-7xl { max-width: 80rem; }
.max-w-lg { max-width: 32rem; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.left-3 { left: 0.75rem; }
.top-1\/2 { top: 50%; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

/* Z-index */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* Object fit */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* Truncate */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.whitespace-nowrap { white-space: nowrap; }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* Pointer events */
.pointer-events-none { pointer-events: none; }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-5 { opacity: 0.05; }
.opacity-10 { opacity: 0.1; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* Transition */
.transition {
    transition: all 0.2s ease;
}

.transition-colors {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.transition-all {
    transition: all 0.2s ease;
}

.transition-opacity {
    transition: opacity 0.2s ease;
}

.transition-transform {
    transition: transform 0.2s ease;
}

.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

/* Transform */
.transform { transform: translateZ(0); }
.scale-100 { transform: scale(1); }
.scale-105 { transform: scale(1.05); }
.translate-y-0 { transform: translateY(0); }
.-translate-y-half { transform: translateY(-50%); }
.-translate-x-half { transform: translateX(-50%); }

/* Divide utilities */
.divide-y > * + * { border-top: 1px solid #e5e7eb; }
.divide-gray-100 > * + * { border-color: #f3f4f6; }
.divide-gray-200 > * + * { border-color: #e5e7eb; }
.divide-slate-100 > * + * { border-color: #f1f5f9; }

/* Mobile overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10;
    display: none;
}

.mobile-overlay.active {
    display: block;
}

/* Focus utilities */
.focus\:outline-none:focus { outline: none; }
.focus\:ring-1:focus { box-shadow: 0 0 0 1px var(--navy); }
.focus\:ring-primary:focus { box-shadow: 0 0 0 2px rgba(220, 161, 34, 0.5); }
.focus\:border-navy:focus { border-color: var(--navy); }
.focus\:border-primary:focus { border-color: var(--gold); }

/* Hover utilities */
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:bg-white:hover { background-color: #ffffff; }
.hover\:text-navy:hover { color: var(--navy); }
.hover\:text-gold:hover { color: var(--gold); }
.hover\:text-white:hover { color: #ffffff; }
.hover\:text-primary:hover { color: var(--gold); }
.hover\:underline:hover { text-decoration: underline; }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); }

/* Group hover (parent group hover triggers child styles) */
.group:hover .group-hover\:text-gold { color: var(--gold); }
.group:hover .group-hover\:text-navy { color: var(--navy); }
.group:hover .group-hover\:text-white { color: #ffffff; }
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:opacity-20 { opacity: 0.2; }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:bg-navy { background-color: var(--navy); }

/* SR only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Antialiased text */
.antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Gradient bar at top (used in HR page) */
.top-gradient-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(to right, var(--navy), var(--gold), var(--navy));
    z-index: 50;
}

/* Dot pattern (used in employee detail) */
.pattern-dots {
    background-image: radial-gradient(var(--gold) 1px, transparent 1px);
    background-size: 10px 10px;
}

/* Star list style (used in billing) */
.list-star::before {
    content: "\2605";
    color: var(--gold);
    margin-right: 0.5rem;
}

/* Font mono */
.font-mono {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* Dashed border for add-card placeholders */
.border-dashed {
    border-style: dashed;
}

.border-2 {
    border-width: 2px;
}

/* Disabled state */
.disabled\:opacity-50:disabled {
    opacity: 0.5;
}

button:disabled {
    cursor: not-allowed;
}

/* Selection colors */
::selection {
    background-color: rgba(220, 161, 34, 0.2);
    color: var(--navy);
}

/* Print styles */
@media print {
    .sidebar,
    .header-actions,
    .header-search,
    .mobile-overlay {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .content-area {
        overflow: visible !important;
        padding: 0 !important;
    }

    body {
        background-color: #ffffff !important;
    }
}
