@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600&display=swap');

:root {
    /* AdaptByte Core Brand Colors */
    --color-theme: #1D68F2;
    --color-theme-hover: #1554C8;
    --color-theme-light: #EFF6FF;
    --color-theme-dark: #0E3E9E;
    
    --color-accent: #10B981;
    --color-accent-hover: #059669;
    --color-accent-light: #ECFDF5;
    
    --color-warning: #F59E0B;
    --color-warning-light: #FFFBEB;
    --color-warning-text: #B45309;
    
    --color-danger: #EF4444;
    --color-danger-light: #FEF2F2;
    --color-danger-text: #B91C1C;
    
    --color-success: #10B981;
    --color-success-light: #ECFDF5;
    --color-success-text: #047857;

    --color-info: #0EA5E9;
    --color-info-light: #F0F9FF;
    --color-info-text: #0369A1;

    /* Neutrals & Surfaces */
    --color-heading: #0F172A;
    --color-text: #334155;
    --color-muted: #64748B;
    --color-subtle: #94A3B8;
    --color-white: #FFFFFF;
    
    --border-color: #E2E8F0;
    --border-color-light: #F1F5F9;
    --border-color-dark: #CBD5E1;
    
    --bg-page: #F8FAFC;
    --bg-card: #FFFFFF;
    --grey-bg: #F1F5F9;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.1), 0 6px 12px -3px rgba(15, 23, 42, 0.05);
    --shadow-xl: 0 20px 35px -6px rgba(15, 23, 42, 0.14), 0 10px 18px -4px rgba(15, 23, 42, 0.06);
    
    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-pill: 9999px;
    
    /* Spacing Scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Layout Constraints */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-page);
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img, svg, video, canvas, audio, iframe {
    max-width: 100%;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

/* Fluid Layout Container */
.container-fluid {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(16px, 3vw, 32px);
    padding-right: clamp(16px, 3vw, 32px);
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6, .heading, .headingsm {
    font-family: "Outfit", sans-serif;
    color: var(--color-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 0;
    line-height: 1.25;
}

h1, .heading { font-size: clamp(20px, 2.5vw, 25px); }
h2, .headingsm { font-size: clamp(16px, 2vw, 20px); }
h3 { font-size: clamp(14px, 1.8vw, 17px); }

a {
    color: var(--color-theme);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-theme-hover);
}

/* ==========================================================================
   BUTTONS SYSTEM (Compact, Clean & Modern)
   ========================================================================== */
.btn {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 13px;
    font-weight: 600;
    min-height: 36px;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    background: var(--color-theme);
    color: var(--color-white) !important;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(29, 104, 242, 0.18);
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
    width: auto;
}

.btn:hover {
    background: var(--color-theme-hover);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(29, 104, 242, 0.25);
    color: var(--color-white) !important;
}

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

.btn.btnsm, .btn-sm {
    min-height: 30px;
    height: 30px;
    padding: 4px 12px;
    font-size: 12px;
    gap: 5px;
}

.btn.btn-outline {
    background: var(--color-white);
    border-color: var(--border-color);
    color: var(--color-text) !important;
    box-shadow: var(--shadow-xs);
}

.btn.btn-outline:hover {
    background: var(--grey-bg);
    border-color: var(--border-color-dark);
    color: var(--color-heading) !important;
}

.btn.btn-success {
    background: var(--color-accent);
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.2);
}

.btn.btn-danger, .btn.delete, .btn.delete_button {
    background: var(--color-danger);
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.2);
}

/* ==========================================================================
   HEADER & TOP NAVIGATION
   ========================================================================== */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 7px 0;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: var(--shadow-xs);
    width: 100%;
}

header .headerline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

header .headerline .logodiv {
    width: 155px;
    min-width: 130px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

header .headerline .logodiv a {
    display: block;
    line-height: 0;
}

header .headerline .logodiv img {
    max-height: 36px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Desktop: Hide Mobile Close Button */
header .headerline .menubar .menubarclosebtn {
    display: none;
}

/* Desktop Navigation Menu */
header .headerline .menubar .menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

header .headerline .menubar .menu .menuitem {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: -12px;
}

header .headerline .menubar .menu .menuitem > .link {
    color: var(--color-text);
    font-weight: 600;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    user-select: none;
}

header .headerline .menubar .menu .menuitem > .link i {
    font-size: 13px;
    color: var(--color-muted);
    transition: transform var(--transition-fast);
}

header .headerline .menubar .menu .menuitem:hover > .link,
header .headerline .menubar .menu .menuitem.open > .link,
header .headerline .menubar .menu .menuitem.active > .link {
    color: var(--color-theme);
    background: var(--color-theme-light);
}

header .headerline .menubar .menu .menuitem:hover > .link i,
header .headerline .menubar .menu .menuitem.open > .link i,
header .headerline .menubar .menu .menuitem.active > .link i {
    color: var(--color-theme);
}

header .headerline .menubar .menu .menuitem:hover > .link i.fa-chevron-down,
header .headerline .menubar .menu .menuitem.open > .link i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Submenu Dropdown Container */
header .headerline .menubar .menu .menuitem .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    min-width: 220px;
    display: none;
    padding: 8px;
    border-radius: var(--radius-md);
    z-index: 1050;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    margin-top: 0;
    pointer-events: auto;
}

header .headerline .menubar .menu .menuitem .submenu::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
    display: block;
}

header .headerline .menubar .menu .menuitem .submenu .link {
    color: var(--color-text);
    font-size: 13.5px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
}

header .headerline .menubar .menu .menuitem .submenu .link i {
    font-size: 13px;
    color: var(--color-muted);
    width: 16px;
    text-align: center;
}

header .headerline .menubar .menu .menuitem .submenu .link:hover {
    background: var(--color-theme-light);
    color: var(--color-theme);
    padding-left: 16px;
}

header .headerline .menubar .menu .menuitem .submenu .link:hover i {
    color: var(--color-theme);
}

header .headerline .menubar .menu .menuitem:hover .submenu,
header .headerline .menubar .menu .menuitem.open .submenu {
    display: block;
}

/* User Profile Dropdown */
header .headerline .profilediv {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

header .headerline .profilediv .menubaropenbtn {
    display: none;
    color: var(--color-heading);
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    background: var(--grey-bg);
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    align-items: center;
    justify-content: center;
}

header .headerline .profilediv .profile {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 8px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: var(--grey-bg);
    border: 1px solid var(--border-color);
    position: relative;
    transition: all var(--transition-fast);
    padding-bottom: 7px;
    margin-bottom: -4px;
    user-select: none;
}

header .headerline .profilediv .profile:hover,
header .headerline .profilediv .profile.open {
    background: var(--color-theme-light);
    border-color: rgba(29, 104, 242, 0.3);
}

header .headerline .profilediv .profile .imgdiv {
    width: 28px;
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--border-color);
    border: 1.5px solid var(--color-theme);
}

header .headerline .profilediv .profile .imgdiv img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

header .headerline .profilediv .profile .namediv {
    display: flex;
    gap: 5px;
    align-items: center;
    color: var(--color-heading);
    font-weight: 600;
    font-size: 13px;
}

header .headerline .profilediv .profile .namediv .name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

header .headerline .profilediv .profile .namediv i {
    font-size: 10px;
    opacity: 0.6;
}

header .headerline .profilediv .profile .submenu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--color-white);
    min-width: 200px;
    display: none;
    padding: 8px;
    border-radius: var(--radius-md);
    z-index: 1050;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    margin-top: 0;
}

header .headerline .profilediv .profile .submenu::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
    display: block;
}

header .headerline .profilediv .profile .submenu .link {
    color: var(--color-text);
    font-size: 13.5px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-fast);
    text-decoration: none;
}

header .headerline .profilediv .profile .submenu .link i {
    font-size: 13px;
    width: 16px;
    text-align: center;
}

header .headerline .profilediv .profile .submenu .link:hover {
    background: var(--color-theme-light);
    color: var(--color-theme);
}

header .headerline .profilediv .profile:hover .submenu,
header .headerline .profilediv .profile.open .submenu {
    display: block;
}

/* Mobile Off-Canvas Navigation Drawer & Backdrop */
.nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1010;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.nav-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

/* Main Workspace Container */
main {
    flex: 1;
    background-color: var(--bg-page);
    padding: clamp(14px, 2.5vw, 24px) 0 clamp(28px, 3.5vw, 40px);
    width: 100%;
}

main > .curvdiv {
    width: 100%;
}

.headingrow {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 18px;
    align-items: center;
    justify-content: space-between;
}

.headingrow .btndiv {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ==========================================================================
   PREMIUM DASHBOARD & METRIC GRIDS
   ========================================================================== */
.dashboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(12px, 1.8vw, 18px);
    margin-bottom: 22px;
    width: 100%;
}

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

.dashboard > .wrap {
    background: var(--color-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: clamp(14px, 1.8vw, 18px);
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    text-decoration: none;
    width: 100%;
}

.dashboard > .wrap:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(29, 104, 242, 0.35);
}

.dashboard > .wrap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-theme);
    border-radius: 4px 0 0 4px;
}

.dashboard > .wrap .iconwrap {
    width: 42px;
    min-width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--color-theme-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(29, 104, 242, 0.12);
}

.dashboard > .wrap .content {
    flex: 1;
    min-width: 0;
}

.dashboard > .wrap .content .title {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--color-muted);
    margin: 0 0 3px;
    line-height: 1.3;
}

.dashboard > .wrap .content .count {
    font-family: "Outfit", sans-serif;
    font-size: clamp(22px, 2.3vw, 26px);
    font-weight: 800;
    color: var(--color-heading);
    line-height: 1.1;
}

.dashboard > .wrap.status-approved::before { background: var(--color-accent); }
.dashboard > .wrap.status-pending::before { background: var(--color-warning); }
.dashboard > .wrap.status-declined::before { background: var(--color-danger); }

/* Breakdown Grid Utility */
.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* ==========================================================================
   FORMS & INPUT CONTROLS (Compact Action Buttons)
   ========================================================================== */
.formwrap {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    background: var(--color-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: clamp(16px, 2.5vw, 24px);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    width: 100%;
}

.formwrap > .wrap {
    width: calc(33.333% - 11px);
    display: flex;
    flex-direction: column;
}

.formwrap > .wrap.half { width: calc(50% - 8px); }
.formwrap > .wrap.half23 { width: calc(66.666% - 6px); }
.formwrap > .wrap.quat { width: calc(25% - 12px); }
.formwrap > .wrap.full { width: 100%; }

.formwrap > .wrap.full .btn,
.formwrap .btn {
    width: auto !important;
    align-self: flex-start;
    display: inline-flex;
}

.formwrap > .wrap label,
.filters > .wrap label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 5px;
}

.formwrap > .wrap input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.formwrap > .wrap select,
.formwrap > .wrap textarea,
.filters > .wrap input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.filters > .wrap select {
    min-height: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    color: var(--color-heading);
    font-family: inherit;
    font-size: 13.5px;
    padding: 7px 12px;
    width: 100%;
    transition: all var(--transition-fast);
}

.formwrap input[type="radio"],
.formwrap input[type="checkbox"],
input[type="radio"],
input[type="checkbox"] {
    width: 17px !important;
    height: 17px !important;
    min-height: 17px !important;
    max-height: 17px !important;
    min-width: 17px !important;
    max-width: 17px !important;
    padding: 0 !important;
    margin: 0 !important;
    vertical-align: middle;
    cursor: pointer;
    accent-color: var(--color-theme);
    display: inline-block !important;
    flex-shrink: 0;
}

.inputwrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.inputwrap > label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 2px;
}

.radio-group,
.inputwrap .radio-options {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-group label,
.inputwrap label.radio-label,
.inputwrap .wrap {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    width: auto !important;
    cursor: pointer;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: var(--color-heading) !important;
    margin-bottom: 0 !important;
    user-select: none;
}

.formwrap > .wrap input:focus,
.formwrap > .wrap select:focus,
.formwrap > .wrap textarea:focus,
.filters > .wrap input:focus,
.filters > .wrap select:focus {
    outline: none;
    border-color: var(--color-theme);
    box-shadow: 0 0 0 3px rgba(29, 104, 242, 0.12);
}

.formwrap > .wrap textarea {
    padding: 9px 12px;
    min-height: 84px;
}

.formwrap > .wrap .inpgroup {
    position: relative;
    width: 100%;
}

.formwrap > .wrap .inpgroup input {
    padding-right: 40px;
}

.formwrap > .wrap .inpgroup i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-muted);
    cursor: pointer;
}

.formwrap > .wrap .halfsplit {
    display: flex;
    gap: 14px;
    width: 100%;
}

.formwrap > .wrap .halfsplit .wrap {
    width: 100%;
}

.formwrap > .wrap .errormsg,
.errormsg {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-danger);
    margin-top: 4px;
}

.formwrap > .wrap .successmsg,
.successmsg {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-accent);
    margin-top: 4px;
}

/* Filters Bar */
.filters {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 18px;
    background: var(--color-white);
    padding: clamp(14px, 2vw, 18px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    width: 100%;
}

.filters > .wrap {
    flex: 1;
    min-width: 170px;
}

.filters .btn {
    min-height: 40px;
    padding: 0 16px;
}

/* ==========================================================================
   EMPLOYEE DETAILS PAGE STYLING
   ========================================================================== */
.employeedetails {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--color-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: clamp(18px, 3vw, 26px);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    width: 100%;
}

@media (min-width: 992px) {
    .employeedetails {
        flex-direction: row;
        align-items: flex-start;
        gap: 32px;
    }
}

.employeedetails .imgdiv {
    width: 130px;
    min-width: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
}

.employeedetails .imgdiv img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-theme);
    box-shadow: var(--shadow-md);
}

.employeedetails .imgdiv .empid {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--color-theme);
    background: var(--color-theme-light);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}

.employeedetails > .content {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    width: 100%;
}

.employeedetails > .content .name {
    width: 100%;
    margin-bottom: 6px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color-light);
}

.employeedetails > .content .name .text {
    font-family: "Outfit", sans-serif;
    font-size: 21px;
    font-weight: 700;
    color: var(--color-heading);
}

.employeedetails > .content > .wrap {
    width: calc(33.333% - 10px);
    display: flex;
    flex-direction: column;
}

@media (max-width: 991px) {
    .employeedetails > .content > .wrap {
        width: calc(50% - 7px);
    }
}

@media (max-width: 575px) {
    .employeedetails > .content > .wrap {
        width: 100%;
    }
}

.employeedetails > .content > .wrap label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 3px;
}

.employeedetails > .content > .wrap input,
.employeedetails > .content > .wrap select,
.employeedetails > .content > .wrap textarea {
    min-height: 38px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #FAFAFA;
    color: var(--color-heading);
    font-family: inherit;
    font-size: 13px;
    padding: 6px 12px;
    width: 100%;
    transition: all var(--transition-fast);
}

.employeedetails > .content > .wrap input:not(:disabled),
.employeedetails > .content > .wrap select:not(:disabled) {
    background: #FFFFFF;
    border-color: var(--color-theme);
    box-shadow: 0 0 0 2px rgba(29, 104, 242, 0.1);
}

/* ==========================================================================
   EMPLOYEE & ADMIN PROFILE PAGE STYLING
   ========================================================================== */
main .profile,
.profile-page-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.profilepic {
    background: var(--color-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: clamp(18px, 2.5vw, 26px);
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.profilepic > .wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.profilepic .imgdiv {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    cursor: pointer;
}

.profilepic .imgdiv img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-theme);
    box-shadow: var(--shadow-md);
}

.profilepic .imgdiv i.fa-edit {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: var(--color-theme);
    color: #FFF;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2px solid #FFF;
    box-shadow: var(--shadow-sm);
}

.profilepic .imgdiv .menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #FFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    z-index: 100;
    display: none;
    min-width: 150px;
    padding: 6px;
}

.profilepic .imgdiv .menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.profilepic .imgdiv .menu ul li {
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.profilepic .imgdiv .menu ul li:hover {
    background: var(--color-theme-light);
    color: var(--color-theme);
}

.profilepic .content .name {
    font-family: "Outfit", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 2px;
}

.profilepic .content .designation {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-theme);
}

.about {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

.empinfo {
    background: var(--color-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: clamp(16px, 2.2vw, 24px);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    width: 100%;
}

.empinfo > .title {
    width: 100%;
    font-family: "Outfit", sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--color-heading);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color-light);
    margin-bottom: 2px;
}

.empinfo > .wrap {
    width: calc(33.333% - 10px);
    display: flex;
    flex-direction: column;
}

@media (max-width: 991px) {
    .empinfo > .wrap { width: calc(50% - 7px); }
}

@media (max-width: 575px) {
    .empinfo > .wrap { width: 100%; }
}

.empinfo > .wrap.full { width: 100%; }

.empinfo > .wrap .title {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 3px;
}

.empinfo > .wrap .content {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-heading);
}

.updtpwd {
    background: var(--color-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: clamp(14px, 2vw, 20px);
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.updtpwd summary {
    font-family: "Outfit", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-theme);
    cursor: pointer;
    user-select: none;
    margin-bottom: 10px;
}

/* ==========================================================================
   MODAL & HOLIDAY POPUP STYLING
   ========================================================================== */
.modal.holidaypop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}

.modal.holidaypop .modal-body {
    width: 100%;
    max-width: 680px;
    margin: auto;
    padding: 0;
}

.modal.holidaypop .modal-content {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    padding: clamp(20px, 3vw, 30px);
    position: relative;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
}

.modal.holidaypop .clsbtn,
.modal.holidaypop .close,
.modal.holidaypop .addclose {
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-muted);
    cursor: pointer;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--grey-bg);
    transition: all var(--transition-fast);
}

.modal.holidaypop .clsbtn:hover {
    color: var(--color-danger);
    background: var(--color-danger-light);
}

.holidaylistadmin,
.holidaylist {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 4px;
}

.holidaylistadmin .wrap,
.holidaylist .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: var(--grey-bg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.holidaylistadmin .wrap:hover,
.holidaylist .wrap:hover {
    background: var(--color-theme-light);
    border-color: rgba(29, 104, 242, 0.2);
}

.holidaylistadmin .wrap .date,
.holidaylist .wrap .date {
    font-weight: 700;
    font-size: 12.5px;
    color: var(--color-theme);
    background: var(--color-white);
    padding: 3px 9px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    border: 1px solid var(--border-color);
}

.holidaylistadmin .wrap .hname,
.holidaylist .wrap .name {
    font-weight: 600;
    color: var(--color-heading);
    font-size: 13.5px;
    flex: 1;
}

.holidaylistadmin .wrap .hdesc {
    font-size: 13px;
    color: var(--color-muted);
    flex: 1;
}

.holidaylistadmin .wrap .btns {
    display: flex;
    gap: 6px;
}

.holidaylistadmin .wrap .btns button,
.holidaylistadmin .wrap button.edit-btn,
.holidaylistadmin .wrap button.delete-btn,
.holidaylistadmin .wrap button.save-btn,
.holidaylistadmin .wrap button.cancel-btn {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--color-white);
    color: var(--color-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all var(--transition-fast);
}

.holidaylistadmin .wrap button.edit-btn:hover {
    color: var(--color-theme);
    border-color: var(--color-theme);
    background: var(--color-theme-light);
}

.holidaylistadmin .wrap button.delete-btn:hover {
    color: var(--color-danger);
    border-color: var(--color-danger);
    background: var(--color-danger-light);
}

.holidaylistadmin .wrap input {
    min-height: 30px;
    padding: 3px 8px;
    font-size: 12.5px;
    border: 1px solid var(--color-theme);
    border-radius: var(--radius-sm);
    background: #FFF;
}

/* ==========================================================================
   DATA TABLES & DATATABLES CONTROLS
   ========================================================================== */
.tabledes, .normdestab, .table-responsive {
    background: var(--color-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: clamp(14px, 2vw, 20px);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.tabledes table, .normdestab table {
    width: 100% !important;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
}

.tabledes table thead tr th,
.normdestab table thead tr th,
.normdestab table tr th {
    background: var(--grey-bg);
    color: var(--color-heading);
    font-family: "Outfit", sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 11px 13px;
    border: 0;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.tabledes table thead tr th:first-child,
.normdestab table thead tr th:first-child {
    border-top-left-radius: var(--radius-sm);
    border-bottom-left-radius: var(--radius-sm);
}

.tabledes table thead tr th:last-child,
.normdestab table thead tr th:last-child {
    border-top-right-radius: var(--radius-sm);
    border-bottom-right-radius: var(--radius-sm);
}

.tabledes table tbody tr td,
.normdestab table tbody tr td {
    padding: 11px 13px;
    border-bottom: 1px solid var(--border-color-light);
    color: var(--color-text);
    font-size: 13.5px;
    vertical-align: middle;
    transition: background var(--transition-fast);
}

.tabledes table tbody tr:hover td,
.normdestab table tbody tr:hover td {
    background-color: var(--color-theme-light);
}

.tabledes table tbody tr:last-child td,
.normdestab table tbody tr:last-child td {
    border-bottom: 0;
}

/* Table Employee Profile Avatars */
.tabledes td.profileimg,
.normdestab td.profileimg,
table td.profileimg,
th.profileimg {
    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    text-align: center !important;
    padding: 6px 8px !important;
}

.tabledes td.profileimg .imgdiv,
.normdestab td.profileimg .imgdiv,
table td.profileimg .imgdiv {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    margin: 0 auto !important;
    border: 1.5px solid var(--border-color) !important;
    box-shadow: var(--shadow-xs) !important;
    background: var(--grey-bg) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.tabledes td.profileimg .imgdiv img,
.normdestab td.profileimg .imgdiv img,
table td.profileimg .imgdiv img {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
    cursor: pointer !important;
    transition: transform var(--transition-fast) !important;
}

.tabledes td.profileimg .imgdiv img:hover,
.normdestab td.profileimg .imgdiv img:hover,
table td.profileimg .imgdiv img:hover {
    transform: scale(1.08) !important;
}

.profilemodal .profimg {
    max-width: 240px;
    max-height: 240px;
    width: auto;
    height: auto;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

/* DataTables Global Styling Overrides */
.dataTables_wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    font-size: 13px;
    color: var(--color-muted);
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 3px 8px;
    margin: 0 4px;
    background: #FFF;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 5px 11px;
    margin-left: 8px;
    background: #FFF;
    min-width: 200px;
}

.dataTables_wrapper .dataTables_filter input:focus {
    outline: none;
    border-color: var(--color-theme);
}

.dataTables_wrapper .dataTables_info {
    font-size: 13px;
    color: var(--color-muted);
    padding-top: 8px;
}

.dataTables_wrapper .dataTables_paginate {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-top: 8px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: #FFF;
    color: var(--color-text) !important;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--color-theme) !important;
    border-color: var(--color-theme) !important;
    color: #FFF !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--grey-bg) !important;
}

/* Status Badges & Pills */
.status span, .status_name, .badge-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: var(--radius-pill);
    text-transform: capitalize;
    line-height: 1.4;
    white-space: nowrap;
}

.status .approved, .status span.approved, .approved {
    background: var(--color-accent-light) !important;
    color: var(--color-success-text) !important;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status .pending, .status span.pending, .pending {
    background: var(--color-warning-light) !important;
    color: var(--color-warning-text) !important;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status .declined, .status .rejected, .status span.declined, .status span.rejected, .declined, .rejected {
    background: var(--color-danger-light) !important;
    color: var(--color-danger-text) !important;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Details Card */
.details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    background: var(--color-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: clamp(16px, 2.5vw, 24px);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    width: 100%;
}

.details > .wrap {
    width: calc(25% - 12px);
    display: flex;
    flex-direction: column;
}

.details > .wrap.half { width: calc(50% - 8px); }
.details > .wrap.full { width: 100%; }

.details > .wrap .title {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.details > .wrap .content {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-heading);
}

/* ==========================================================================
   UNIFIED LOGIN CARD
   ========================================================================== */
/* ==========================================================================
   ENTERPRISE AUTHENTICATION CARD & VISUAL MOTION
   ========================================================================== */
.login-wrapper {
    min-height: calc(100vh - 120px);
    padding: clamp(16px, 3vw, 36px) 12px;
    width: 100%;
}

.auth-card {
    display: flex;
    background: var(--color-white);
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.03);
    overflow: hidden;
    min-height: 520px;
    width: 100%;
    margin: clamp(12px, 3vw, 36px) auto;
    max-width: 960px;
}

.auth-visual-panel {
    width: 48%;
    background: #060B14;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 32px;
}

.auth-brand-badge {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 2px solid transparent;
    background-image: linear-gradient(rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94)), linear-gradient(135deg, #10B981 0%, #1D68F2 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border-radius: 18px;
    padding: clamp(20px, 3vw, 28px) clamp(24px, 3.5vw, 34px);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.45), 0 0 35px rgba(29, 104, 242, 0.28), 0 0 25px rgba(16, 185, 129, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatEmblem 4.5s ease-in-out infinite alternate;
}

.auth-brand-logo {
    max-width: 210px;
    max-height: 54px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(15, 23, 42, 0.08));
}

@keyframes floatEmblem {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-7px); }
}

.auth-form-panel {
    width: 52%;
    padding: clamp(28px, 4.5vw, 48px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #FFFFFF;
}

.auth-header .auth-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0F172A;
    margin: 0 0 4px;
}

.auth-header .auth-subtitle {
    color: #64748B;
    font-size: 13.5px;
    line-height: 1.45;
    margin: 0;
}

.auth-field-group {
    display: flex;
    flex-direction: column;
}

.auth-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.auth-forgot-link {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--color-theme);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.auth-forgot-link:hover {
    color: #1450C2;
    text-decoration: underline;
}

.auth-input-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.auth-box-icon {
    position: absolute;
    left: 14px;
    color: #94A3B8;
    font-size: 14px;
    pointer-events: none;
    transition: color var(--transition-fast);
}

.auth-input {
    width: 100%;
    min-height: 42px;
    padding: 8px 14px 8px 40px !important;
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: #0F172A;
    transition: all var(--transition-fast);
}

.auth-input:focus {
    background: #FFFFFF;
    border-color: var(--color-theme);
    outline: none;
    box-shadow: 0 0 0 3px rgba(29, 104, 242, 0.14);
}

.auth-input-box:focus-within .auth-box-icon {
    color: var(--color-theme);
}

.auth-eye-btn {
    position: absolute;
    right: 10px;
    background: transparent;
    border: 0;
    padding: 6px;
    color: #94A3B8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 4px;
    transition: color var(--transition-fast);
}

.auth-eye-btn:hover {
    color: #334155;
}

.auth-submit-btn {
    min-height: 42px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(29, 104, 242, 0.22);
    transition: all var(--transition-fast);
}

.auth-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 6px 16px rgba(29, 104, 242, 0.3);
}

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

.auth-footer-note {
    font-size: 12px;
    color: #94A3B8;
}

.auth-form-panel .errormsg {
    color: #EF4444;
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    background: var(--color-white);
    padding: 14px 0;
    margin-top: auto;
    width: 100%;
}

footer .footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    color: var(--color-muted);
    text-align: center;
    flex-wrap: wrap;
    gap: 12px;
}

footer .footer-content a {
    font-weight: 600;
    color: var(--color-theme);
}

/* ==========================================================================
   BREAKPOINTS: Tablet (768px - 1199px)
   ========================================================================== */
@media (max-width: 1199px) {
    .dashboard {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard.three {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .formwrap > .wrap {
        width: calc(50% - 8px);
    }
    
    .formwrap > .wrap.quat {
        width: calc(50% - 8px);
    }
}

/* Mobile & Small Tablet Drawer (< 992px) */
@media (max-width: 991px) {
    header .headerline .menubar {
        position: fixed;
        height: 100vh;
        left: 0;
        top: 0;
        z-index: 1050;
        background: #FFFFFF !important;
        width: 82%;
        max-width: 290px;
        padding: 16px 14px 28px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
    }
    
    header .headerline .menubar.show {
        transform: translateX(0);
    }

    .drawer-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 14px;
        margin-bottom: 12px;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }

    .drawer-logo {
        max-height: 30px;
        width: auto;
        object-fit: contain;
    }
    
    header .headerline .menubar .menubarclosebtn {
        display: flex !important;
        width: 32px;
        height: 32px;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius-sm);
        background: #F1F5F9;
        color: var(--color-heading);
        cursor: pointer;
        font-size: 14px;
        margin-bottom: 0 !important;
        border: 1px solid var(--border-color);
        transition: all var(--transition-fast);
    }

    header .headerline .menubar .menubarclosebtn:hover {
        background: #E2E8F0;
        color: var(--color-danger);
    }
    
    header .headerline .menubar .menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
        width: 100%;
    }
    
    header .headerline .menubar .menu .menuitem {
        padding-bottom: 0;
        margin-bottom: 0;
        width: 100%;
    }
    
    header .headerline .menubar .menu .menuitem > .link {
        font-size: 13.5px;
        padding: 9px 12px;
        min-height: 40px;
        border-radius: var(--radius-sm);
        display: flex;
        align-items: center;
        color: #1E293B !important;
        background: transparent;
        transition: all var(--transition-fast);
        width: 100%;
    }

    header .headerline .menubar .menu .menuitem > .link i:first-child {
        width: 22px;
        font-size: 14px;
        text-align: left;
        color: var(--color-muted);
        flex-shrink: 0;
    }

    header .headerline .menubar .menu .menuitem > .link i.fa-chevron-down {
        margin-left: auto;
        font-size: 11px;
        color: var(--color-muted);
    }

    header .headerline .menubar .menu .menuitem > .link:hover,
    header .headerline .menubar .menu .menuitem.open > .link {
        background: var(--color-theme-light) !important;
        color: var(--color-theme) !important;
    }

    header .headerline .menubar .menu .menuitem > .link:hover i,
    header .headerline .menubar .menu .menuitem.open > .link i {
        color: var(--color-theme) !important;
    }
    
    header .headerline .menubar .menu .menuitem .submenu {
        position: static;
        display: none;
        box-shadow: none;
        border: 0;
        padding: 4px 0 4px 10px;
        background: transparent;
        border-left: 2px solid var(--color-theme);
        margin: 3px 0 6px 14px;
        border-radius: 0;
    }

    header .headerline .menubar .menu .menuitem.open .submenu {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    
    header .headerline .menubar .menu .menuitem .submenu::before {
        display: none;
    }
    
    header .headerline .menubar .menu .menuitem .submenu .link {
        padding: 7px 10px;
        min-height: 34px;
        font-size: 13px;
        border-radius: var(--radius-sm);
        color: #475569 !important;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    header .headerline .menubar .menu .menuitem .submenu .link:hover {
        background: var(--color-theme-light) !important;
        color: var(--color-theme) !important;
    }
    
    header .headerline .profilediv .menubaropenbtn {
        display: flex;
    }
    
    .auth-card,
    .logindiv > .content {
        flex-direction: column;
        min-height: auto;
    }
    
    .auth-visual-panel,
    .auth-form-panel,
    .logindiv .hero-panel,
    .logindiv .form-panel {
        width: 100%;
        padding: clamp(20px, 3.5vw, 32px);
    }
    
    .details > .wrap {
        width: calc(50% - 8px) !important;
    }
}

/* ==========================================================================
   BREAKPOINTS: Mobile (320px - 767px)
   ========================================================================== */
@media (max-width: 767px) {
    .dashboard,
    .dashboard.three {
        grid-template-columns: 1fr;
    }
    
    .breakdown-grid {
        grid-template-columns: 1fr;
    }
    
    .formwrap > .wrap,
    .formwrap > .wrap.half,
    .formwrap > .wrap.half23,
    .formwrap > .wrap.quat {
        width: 100% !important;
    }
    
    .formwrap > .wrap .halfsplit {
        flex-direction: column;
    }
    
    .details > .wrap {
        width: 100% !important;
    }
    
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filters > .wrap {
        width: 100%;
        min-width: 100%;
    }
    
    .headingrow {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .headingrow .btndiv,
    .headingrow .btn {
        width: 100%;
    }
    
    footer .footer-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        justify-content: center;
    }
}

/* ==========================================================================
   BIRTHDAY CELEBRATION MODAL & ANIMATIONS
   ========================================================================== */
.birthday-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(9, 13, 22, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 1;
    transition: opacity 0.35s ease;
}

.birthday-confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.birthday-card-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    animation: popInModal 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes popInModal {
    0% { transform: scale(0.7) translateY(30px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.birthday-close-btn {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-white);
    border: 2px solid var(--border-color);
    color: var(--color-heading);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    box-shadow: var(--shadow-lg);
    z-index: 10;
    transition: all var(--transition-fast);
}

.birthday-close-btn:hover {
    background: var(--color-danger);
    color: #FFF;
    border-color: var(--color-danger);
    transform: rotate(90deg) scale(1.1);
}

.birthday-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    border: 2px solid transparent;
    padding: clamp(24px, 3.5vw, 36px) clamp(20px, 3vw, 28px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card-gold-glow {
    background-image: linear-gradient(var(--color-white), var(--color-white)), linear-gradient(135deg, #FFD700 0%, #F59E0B 50%, #10B981 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.35), 0 0 45px rgba(255, 215, 0, 0.35);
}

.card-brand-glow {
    background-image: linear-gradient(var(--color-white), var(--color-white)), linear-gradient(135deg, #10B981 0%, #1D68F2 50%, #8B5CF6 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.35), 0 0 40px rgba(29, 104, 242, 0.28);
}

.birthday-header-banner {
    position: relative;
    margin-bottom: 20px;
}

.celebration-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-xs);
    animation: shimmerBadge 2.5s infinite;
}

.badge-vip {
    color: #92400E;
    background: #FEF3C7;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-family {
    color: #1D68F2;
    background: #EFF6FF;
    border: 1px solid rgba(29, 104, 242, 0.3);
}

@keyframes shimmerBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

.sparkle {
    position: absolute;
    font-size: 20px;
    animation: floatSparkle 2s ease-in-out infinite alternate;
}

.sparkle-1 { top: -10px; left: 15px; animation-delay: 0.2s; }
.sparkle-2 { top: -14px; right: 20px; font-size: 24px; animation-delay: 0.5s; }
.sparkle-3 { bottom: -12px; right: 40px; animation-delay: 0.8s; }

@keyframes floatSparkle {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-8px) rotate(15deg); }
}

/* Glowing Profile Avatar with Spinning Ring */
.celebrant-avatar-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
}

.celebrant-crown {
    position: absolute;
    top: -18px;
    right: 6px;
    font-size: 32px;
    z-index: 5;
    animation: bounceCrown 2s infinite ease-in-out;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
}

.team-hat {
    animation: wobbleHat 2.5s infinite ease-in-out;
}

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

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

.avatar-glow-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring-gold {
    background: conic-gradient(from 0deg, #FFD700, #F59E0B, #10B981, #FFD700);
    box-shadow: 0 0 28px rgba(255, 215, 0, 0.55);
    animation: spinAura 4s linear infinite;
}

.ring-brand {
    background: conic-gradient(from 0deg, #10B981, #1D68F2, #0EA5E9, #10B981);
    box-shadow: 0 0 25px rgba(29, 104, 242, 0.45);
    animation: spinAura 5s linear infinite;
}

@keyframes spinAura {
    100% { transform: rotate(360deg); }
}

.celebrant-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-white);
    background: var(--grey-bg);
    animation: unspinAvatar 4s linear infinite;
}

.ring-brand .celebrant-avatar-img {
    animation: unspinAvatar 5s linear infinite;
}

@keyframes unspinAvatar {
    100% { transform: rotate(-360deg); }
}

.celebrant-name {
    font-family: "Outfit", sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--color-heading);
    margin: 0 0 6px;
}

.vip-name {
    background: linear-gradient(135deg, #B45309 0%, #D97706 40%, #10B981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.celebrant-wishes {
    font-size: 13.5px;
    color: var(--color-muted);
    line-height: 1.5;
    margin: 0 0 16px;
}

.family-message strong {
    color: var(--color-heading);
    font-weight: 700;
}

.cake-container {
    margin: 8px auto 6px;
    display: flex;
    justify-content: center;
}

.birthday-cake-illustration {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
    animation: bounceCake 3s infinite ease-in-out;
}

@keyframes bounceCake {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px) scale(1.03); }
}

/* ==========================================================================
   TICKET MANAGEMENT & HELPDESK MODULE STYLES (Clean, Classy & Responsive)
   ========================================================================== */

/* 5-Column Grid on XL screens */
@media (min-width: 1200px) {
    .col-xl-2-4 {
        flex: 0 0 auto;
        width: 20%;
    }
}

.ticket-kpi-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-xs);
    transition: all var(--transition-base);
    height: 100%;
}

.ticket-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(29, 104, 242, 0.35);
}

.ticket-kpi-card.kpi-alert {
    border-color: rgba(239, 68, 68, 0.35);
    background: #FFFBFB;
}

.ticket-kpi-card .kpi-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.ticket-kpi-card .kpi-info .kpi-num {
    font-family: "Outfit", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-heading);
    line-height: 1.15;
}

.ticket-kpi-card .kpi-info .kpi-label {
    font-size: 12px;
    color: var(--color-muted);
    font-weight: 500;
    margin-top: 2px;
}

.ticket-mini-kpi {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-xs);
    transition: all var(--transition-fast);
}

.ticket-mini-kpi:hover {
    transform: translateY(-1px);
    border-color: rgba(29, 104, 242, 0.3);
}

.mini-kpi-num {
    font-family: "Outfit", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-heading);
}

/* Status Badges */
.ticket-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: capitalize;
}

.ticket-status-badge.badge-open {
    background: #EFF6FF;
    color: #1D68F2;
    border: 1px solid rgba(29, 104, 242, 0.2);
}

.ticket-status-badge.badge-assigned {
    background: #F0FDF4;
    color: #15803D;
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.ticket-status-badge.badge-progress {
    background: #FEF3C7;
    color: #B45309;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.ticket-status-badge.badge-pending {
    background: #F1F5F9;
    color: #475569;
    border: 1px solid rgba(100, 116, 139, 0.2);
}

.ticket-status-badge.badge-resolved {
    background: #ECFDF5;
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.ticket-status-badge.badge-closed {
    background: #1E293B;
    color: #F8FAFC;
}

.ticket-status-badge.badge-reopened {
    background: #FDF2F8;
    color: #BE185D;
    border: 1px solid rgba(236, 72, 153, 0.25);
}

.ticket-status-badge.badge-cancelled {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Priority Tags */
.ticket-priority-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 11.5px;
    font-weight: 600;
}

.ticket-priority-tag .dot,
.dot-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

/* Category Stat Pill */
.category-stat-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    transition: all var(--transition-fast);
}

.category-stat-pill:hover {
    background: var(--grey-bg);
    border-color: rgba(29, 104, 242, 0.3);
    transform: translateY(-1px);
}

.cat-pill-bar {
    width: 3px;
    height: 26px;
    border-radius: var(--radius-pill);
    flex-shrink: 0;
}

.cat-pill-content .cat-pill-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--color-heading);
}

.cat-pill-content .cat-pill-count {
    font-size: 11px;
    color: var(--color-muted);
}

/* Table styling */
.custom-ticket-table thead th {
    background: #F8FAFC;
    color: var(--color-heading);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
}

.custom-ticket-table tbody td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

/* Attachment Chips */
.attachment-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--grey-bg);
    border: 1px solid var(--border-color);
    padding: 5px 11px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    color: var(--color-heading);
    transition: all var(--transition-fast);
}

.attachment-chip:hover {
    background: var(--color-theme-light);
    border-color: rgba(29, 104, 242, 0.3);
    color: var(--color-theme);
}

.attachment-chip-sm {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--grey-bg);
    border: 1px solid var(--border-color);
    padding: 3px 7px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    color: var(--color-heading);
}

/* Comments & Thread */
.comment-card {
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    border: 1px solid var(--border-color);
}

.public-comment-card {
    background: #FFFFFF;
}

.internal-note-card {
    background: #FFFBEB;
    border-color: rgba(245, 158, 11, 0.35);
}

/* Activity Timeline */
.activity-timeline {
    position: relative;
    padding-left: 18px;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 5px;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 14px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -18px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-white);
    border: 2.5px solid var(--color-theme);
}

.timeline-content {
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 7px 11px;
}

/* Responsive Overrides (< 768px) */
@media (max-width: 767px) {
    .ticket-kpi-card {
        padding: 12px 10px;
        gap: 10px;
    }

    .ticket-kpi-card .kpi-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 15px;
    }

    .ticket-kpi-card .kpi-info .kpi-num {
        font-size: 17px;
    }

    .ticket-kpi-card .kpi-info .kpi-label {
        font-size: 11px;
    }

    .custom-ticket-table thead th,
    .custom-ticket-table tbody td {
        padding: 8px 10px;
        font-size: 12px;
    }
}