/*==================================================
MDS - Material Dispatch System
Global Stylesheet
==================================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{
    width:100%;
    height:100%;
    font-family:'Poppins','Segoe UI',sans-serif;
    background:#f8fafc;
    overflow:hidden;
}

body{
    display:flex;
    justify-content:center;
    align-items:center;
}

/*=====================================
Splash Screen
=====================================*/

.welcome-page{
    width:100%;
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:30px;
    background:#f8fafc;
}

.text-center{
    width:100%;
    text-align:center;
}

/*=====================================
Logo
=====================================*/

.welcome-logo{
    width:min(75vw,340px);
    max-width:100%;
    height:auto;
    display:block;
    margin:0 auto;
    animation:zoomIn .8s ease;
    user-select:none;
    -webkit-user-drag:none;
}

/*=====================================
Processing Text
=====================================*/

.processing-text{
    margin-top:20px;
    font-size:15px;
    font-weight:600;
    color:#64748b;
    letter-spacing:.3px;
}

.processing-area{
    margin-top:3rem;
}

/*=====================================
Progress Bar
=====================================*/

.progress-track{
    width:min(280px,72vw);
    height:9px;
    margin:0 auto;
    overflow:hidden;
    background:#e2e8f0;
    border-radius:999px;
    box-shadow:inset 0 1px 2px rgba(15,23,42,.08);
}

.progress-bar{
    width:0;
    height:100%;
    background:linear-gradient(90deg,#2563eb,#38bdf8);
    border-radius:inherit;
    box-shadow:0 0 12px rgba(37,99,235,.35);
}

.processing-dots{
    display:inline-flex;
    gap:3px;
    margin-left:3px;
}

.processing-dots i{
    width:4px;
    height:4px;
    background:#2563eb;
    border-radius:50%;
    animation:dotBounce 1.1s ease-in-out infinite;
}

.processing-dots i:nth-child(2){ animation-delay:.15s; }
.processing-dots i:nth-child(3){ animation-delay:.3s; }

/*=====================================
Animation
=====================================*/

@keyframes zoomIn{

    0%{
        opacity:0;
        transform:scale(.8);
    }

    100%{
        opacity:1;
        transform:scale(1);
    }

}

/*=====================================
Responsive
=====================================*/

/* Small Phones */

@media (max-width:360px){

    .welcome-logo{
        width:80vw;
    }

    .processing-text{
        font-size:14px;
    }

}

/* Tablets */

@media (min-width:768px){

    .welcome-logo{
        width:300px;
    }

}

/* Desktop */

@media (min-width:1200px){

    .welcome-logo{
        width:340px;
    }

}


/*=========================================
LOGIN PAGE
=========================================*/

.login-page{
    width:100%;
    min-height:100vh;
    background:#f8fafc;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:25px;
}

.login-box{
    width:100%;
    max-width:420px;
    background:#ffffff;
    border-radius:28px;
    padding:35px 25px;
    box-shadow:0 10px 30px rgba(15,23,42,.08);
}

.login-logo{
    width:220px;
    max-width:100%;
    display:block;
    margin:0 auto 25px;
}

.login-title{
    font-size:28px;
    font-weight:700;
    color:#0f172a;
    text-align:center;
    margin-bottom:8px;
}

.login-subtitle{
    font-size:15px;
    color:#64748b;
    text-align:center;
    margin-bottom:35px;
}

.form-group{
    margin-bottom:20px;
}

.form-label{
    font-size:14px;
    font-weight:600;
    color:#334155;
    margin-bottom:8px;
}

.input-group{
    border:1px solid #dbe4ee;
    border-radius:16px;
    overflow:hidden;
    background:#fff;
    transition:.3s;
}

.input-group:focus-within{
    border-color:#2563eb;
    box-shadow:0 0 0 4px rgba(37,99,235,.10);
}

.input-group-text{
    background:#fff;
    border:none;
    color:#64748b;
    padding:0 18px;
    font-size:18px;
}

.form-control{
    border:none !important;
    box-shadow:none !important;
    height:56px;
    font-size:16px;
    padding:0 15px;
    background:#fff;
}

.form-control::placeholder{
    color:#94a3b8;
}

.toggle-pin{
    cursor:pointer;
}

.login-btn{
    width:100%;
    height:56px;
    border:none;
    border-radius:16px;
    background:#2563eb;
    color:#fff;
    font-size:17px;
    font-weight:600;
    transition:.3s;
}

.login-btn:hover{
    background:#1d4ed8;
}

.login-btn:active{
    transform:scale(.98);
}

/*=========================================
Login Security Information
=========================================*/

.login-security{
    display:grid;
    gap:12px;
    margin-top:22px;
}

.security-status-card,
.enterprise-security-card{
    border:1px solid #e2e8f0;
    border-radius:14px;
}

.security-status-card{
    display:flex;
    align-items:center;
    gap:12px;
    padding:13px 14px;
    background:#f8fafc;
    text-align:left;
}

.security-icon{
    display:grid;
    flex:0 0 38px;
    width:38px;
    height:38px;
    place-items:center;
    color:#15803d;
    background:#dcfce7;
    border-radius:11px;
}

.security-icon svg{
    width:20px;
    height:20px;
}

.security-status-card strong{
    display:block;
    margin-bottom:2px;
    color:#1e293b;
    font-size:13px;
    font-weight:600;
}

.security-status-card span:not(.security-icon){
    display:block;
    color:#64748b;
    font-size:11px;
    line-height:1.45;
}

.enterprise-security-card{
    padding:14px;
    background:#fff;
    text-align:left;
}

.enterprise-label{
    display:inline-block;
    padding:4px 8px;
    color:#1d4ed8;
    background:#eff6ff;
    border-radius:5px;
    font-size:9px;
    font-weight:700;
    letter-spacing:.7px;
}

.enterprise-security-card p{
    margin:8px 0 0;
    color:#64748b;
    font-size:11px;
    line-height:1.5;
}

/*=========================================
Login Error Modal
=========================================*/

.login-error-modal{
    position:fixed;
    z-index:1050;
    inset:0;
    display:grid;
    padding:20px;
    place-items:center;
    background:rgba(15,23,42,.48);
    backdrop-filter:blur(6px);
}

.login-error-modal__panel{
    width:min(100%,380px);
    padding:30px;
    color:#334155;
    background:#fff;
    border:1px solid rgba(255,255,255,.7);
    border-radius:22px;
    box-shadow:0 24px 60px rgba(15,23,42,.24);
    text-align:center;
}

.login-error-modal__icon{
    display:grid;
    width:52px;
    height:52px;
    margin:0 auto 18px;
    place-items:center;
    color:#dc2626;
    background:#fef2f2;
    border:1px solid #fee2e2;
    border-radius:16px;
}

.login-error-modal__icon svg{
    width:26px;
    height:26px;
}

.login-error-modal__eyebrow{
    margin:0 0 7px;
    color:#dc2626;
    font-size:10px;
    font-weight:700;
    letter-spacing:1px;
}

.login-error-modal h3{
    margin:0;
    color:#0f172a;
    font-size:20px;
    font-weight:700;
}

.login-error-modal__panel > p:not(.login-error-modal__eyebrow){
    margin:10px 0 24px;
    color:#64748b;
    font-size:13px;
    line-height:1.55;
}

.login-error-modal__button{
    width:100%;
    min-height:46px;
    border:0;
    border-radius:11px;
    color:#fff;
    background:#2563eb;
    box-shadow:0 8px 18px rgba(37,99,235,.2);
    cursor:pointer;
    font-family:inherit;
    font-size:14px;
    font-weight:600;
}

.login-error-modal__button:hover{
    background:#1d4ed8;
}

.app-version{
    text-align:center;
    margin-top:25px;
    font-size:13px;
    color:#94a3b8;
}

/*=========================================
Responsive
=========================================*/

@media(max-width:576px){

    .login-page{
        padding:20px;
    }

    .login-box{
        border-radius:24px;
        padding:30px 20px;
        box-shadow:none;
    }

    .login-logo{
        width:190px;
    }

    .login-title{
        font-size:24px;
    }

    .form-control{
        height:54px;
    }

    .login-btn{
        height:54px;
    }

}

@media(min-width:768px){

    .login-logo{
        width:240px;
    }

}

@keyframes dotBounce{
    50%{ transform:translateY(-4px); opacity:.55; }
}

@media (prefers-reduced-motion:reduce){
    .processing-dots i{
        animation:none;
    }
}

/*==================================================
MDS DASHBOARD
==================================================*/

body{
    margin:0;
    padding:0;
    background:#f8fafc;
    font-family:'Poppins',sans-serif;
}

/*=====================================
HEADER
=====================================*/

.app-header{
    position:fixed;
    top:0;
    left:0;
    right:0;
    height:65px;
    background:#ffffff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 18px;
    box-shadow:0 2px 15px rgba(0,0,0,.08);
    z-index:1000;
}

.header-btn{
    width:42px;
    height:42px;
    border:none;
    background:#f1f5f9;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    color:#0f172a;
    transition:.3s;
}

.header-btn:hover{
    background:#e2e8f0;
}

.header-logo{
    height:42px;
    width:auto;
}

/*=====================================
PAGE TITLE
=====================================*/

.page-title{
    margin-top:65px;
    padding:18px 20px;
    background:#ffffff;
    border-bottom:1px solid #edf2f7;
}

.page-title h4{
    margin:0;
    font-size:22px;
    font-weight:600;
    color:#0f172a;
}

/*=====================================
CONTENT
=====================================*/

.app-content{
    padding:20px;
}

.dashboard-card{
    background:#ffffff;
    border-radius:20px;
    padding:22px;
    box-shadow:0 8px 25px rgba(15,23,42,.06);
}
.list-card{
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:8px;
    box-shadow:0 3px 10px rgba(15,23,42,.04);
    padding:22px;
}
.dashboard-card h5{
    font-size:20px;
    font-weight:600;
    color:#0f172a;
}

.dashboard-card p{
    margin:0;
    color:#64748b;
    line-height:1.7;
}

/*=====================================
BUTTON
=====================================*/

.btn-danger{
    border-radius:14px;
    padding:12px 20px;
    font-weight:500;
}

/*=====================================
MOBILE
=====================================*/

@media(max-width:576px){

    .app-header{
        height:60px;
        padding:0 15px;
    }

    .header-logo{
        height:36px;
    }

    .header-btn{
        width:38px;
        height:38px;
        font-size:20px;
    }

    .page-title{
        margin-top:60px;
        padding:16px;
    }

    .page-title h4{
        font-size:20px;
    }

    .app-content{
        padding:15px;
    }

    .dashboard-card{
        padding:18px;
        border-radius:18px;
    }

}

/*==================================================
MDS APPLICATION LAYOUT
==================================================*/

body:has(.app-header){
    display:block;
    min-height:100vh;
    overflow-x:hidden;
    overflow-y:auto;
    color:#1e293b;
}

body.app-page{
    display:block;
    min-height:100dvh;
    overflow-x:hidden;
    overflow-y:auto;
}

.app-header{
    height:64px;
    padding:0 20px;
    border-bottom:1px solid #e2e8f0;
    box-shadow:0 1px 4px rgba(15,23,42,.06);
}

.header-brand{
    display:flex;
    align-items:center;
    height:100%;
}

.header-logo{
    height:38px;
}

.header-btn{
    width:40px;
    height:40px;
    border:1px solid #e2e8f0;
    border-radius:7px;
    cursor:pointer;
}

.header-btn:focus-visible,
.sidebar-link:focus-visible,
.quick-action:focus-visible{
    outline:3px solid rgba(37,99,235,.3);
    outline-offset:2px;
}

.page-title{
    margin-top:64px;
    margin-left:250px;
    padding:22px 28px 12px;
    border:0;
    background:#f8fafc;
}

.page-title h4{
    font-size:21px;
}

.app-sidebar{
    position:fixed;
    z-index:990;
    top:64px;
    bottom:0;
    left:0;
    display:flex;
    flex-direction:column;
    width:250px;
    padding:22px 14px;
    background:#fff;
    border-right:1px solid #e2e8f0;
    overflow-y:auto;
}

.sidebar-nav{
    display:grid;
    gap:4px;
}

.sidebar-link{
    display:flex;
    align-items:center;
    gap:12px;
    min-height:44px;
    padding:0 12px;
    border-radius:6px;
    color:#475569;
    font-size:14px;
    font-weight:500;
    text-decoration:none;
}

.sidebar-link i{
    font-size:18px;
}

.sidebar-link:hover{
    color:#1d4ed8;
    background:#eff6ff;
}

.sidebar-link.active{
    color:#1d4ed8;
    background:#dbeafe;
}

.sidebar-group{
    border-radius:6px;
}

.sidebar-group-toggle{
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    min-height:44px;
    padding:0 12px;
    border:0;
    border-radius:6px;
    color:#475569;
    background:transparent;
    cursor:pointer;
    font:500 14px/1.2 inherit;
    text-align:left;
}

.sidebar-group-toggle > span{
    display:flex;
    align-items:center;
    gap:12px;
    white-space:nowrap;
}

.sidebar-group-toggle > span > i{
    font-size:18px;
}

.sidebar-group-toggle:hover{
    color:#1d4ed8;
    background:#eff6ff;
}

.sidebar-group-toggle:focus-visible{
    outline:3px solid rgba(37,99,235,.3);
    outline-offset:2px;
}

.sidebar-chevron{
    font-size:12px;
    transition:transform .2s;
}

.sidebar-group-toggle[aria-expanded="true"] .sidebar-chevron{
    transform:rotate(180deg);
}

.sidebar-submenu{
    display:grid;
    gap:1px;
    margin:2px 0 5px 31px;
    padding:3px 0 3px 14px;
    border-left:1px solid #dbe4ee;
}

.sidebar-submenu a{
    padding:7px 9px;
    border-radius:5px;
    color:#64748b;
    font-size:12px;
    line-height:1.3;
    text-decoration:none;
}

.sidebar-submenu a:hover{
    color:#1d4ed8;
    background:#eff6ff;
}

.sidebar-submenu .submenu-logout{
    display:flex;
    align-items:center;
    gap:7px;
    color:#b91c1c;
}

.sidebar-submenu .submenu-logout:hover{
    color:#b91c1c;
    background:#fef2f2;
}

.logout-modal__actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}

.logout-modal .login-error-modal__button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:46px;
    text-decoration:none;
}

.logout-modal__cancel{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:46px;
    border:1px solid #dbe4ee;
    border-radius:11px;
    color:#475569;
    background:#fff;
    cursor:pointer;
    font:600 14px inherit;
}

.logout-modal__cancel:hover{ background:#f8fafc; }

.sidebar-backdrop{
    display:none;
}

.profile-menu{
    position:fixed;
    z-index:1010;
    top:56px;
    right:20px;
    min-width:150px;
    padding:6px;
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:7px;
    box-shadow:0 12px 25px rgba(15,23,42,.12);
}

.profile-menu a{
    display:flex;
    align-items:center;
    gap:9px;
    padding:10px;
    border-radius:5px;
    color:#475569;
    font-size:13px;
    text-decoration:none;
}

.profile-menu a:hover{ background:#f1f5f9; }

.app-content{
    min-height:calc(100vh - 64px);
    margin-top:64px;
    margin-left:250px;
    padding:16px 28px 30px;
}

.dashboard-shell{ max-width:none; }

.dashboard-shell > div{
    width:100%;
    max-width:none;
}

.welcome-card{
    display:flex;
    align-items:center;
    gap:14px;
    width:100%;
    padding:20px 22px;
    border:1px solid #dbeafe;
    border-radius:8px;
    background:#fff;
    box-shadow:0 3px 10px rgba(15,23,42,.04);
}

.welcome-card__avatar{
    display:grid;
    flex:0 0 48px;
    width:48px;
    height:48px;
    place-items:center;
    border-radius:50%;
    color:#1d4ed8;
    background:#dbeafe;
    font-size:24px;
}

.welcome-card__content p{
    margin:0 0 2px;
    color:#64748b;
    font-size:12px;
    font-weight:500;
}

.welcome-card__content h1{
    margin:0;
    color:#0f172a;
    font-size:19px;
    font-weight:700;
}

.welcome-card__content span{
    display:block;
    margin-top:2px;
    color:#64748b;
    font-size:12px;
}

.welcome-card__icon{
    margin-left:auto;
    color:#d97706;
    font-size:22px;
}

.dashboard-actions{
    width:100%;
    margin-top:24px;
}

.next-step-card{
    display:flex;
    align-items:center;
    gap:16px;
    width:100%;
    margin-top:24px;
    min-height:156px;
    padding:28px;
    border:1px solid #e2e8f0;
    border-radius:8px;
    color:#1e293b;
    background:#fff;
    box-shadow:0 3px 10px rgba(15,23,42,.04);
}

.next-step-card__icon{
    display:block;
    flex:0 0 62px;
    color:#1d4ed8;
    font-size:56px;
    line-height:1;
}

.next-step-card h2{
    margin:0;
    color:#0f172a;
    font-size:18px;
    font-weight:700;
}

.next-step-card p{
    margin:3px 0 0;
    color:#64748b;
    font-size:14px;
}

.dashboard-card{
    height:100%;
    padding:22px;
    border:1px solid #e2e8f0;
    border-radius:7px;
    box-shadow:none;
}

.dashboard-card h3{
    margin:11px 0 2px;
    color:#0f172a;
    font-size:28px;
    font-weight:700;
}

.dashboard-card p{
    font-size:13px;
    line-height:1.45;
}

.dashboard-icon{
    display:inline-grid;
    width:42px;
    height:42px;
    place-items:center;
    border-radius:7px;
    font-size:22px;
}

.icon-blue{ color:#1d4ed8; background:#dbeafe; }
.icon-green{ color:#15803d; background:#dcfce7; }
.icon-amber{ color:#b45309; background:#fef3c7; }
.icon-cyan{ color:#0e7490; background:#cffafe; }

.section-title{
    color:#0f172a;
    font-size:16px;
    font-weight:600;
}

.quick-action{
    display:block;
    color:inherit;
    text-decoration:none;
    transition:border-color .2s,box-shadow .2s,transform .2s;
}

.quick-action:hover{
    border-color:#93c5fd;
    box-shadow:0 5px 14px rgba(15,23,42,.08);
    transform:translateY(-2px);
}

@media(min-width:768px){
    .dashboard-shell{
        padding-top:8px;
    }

    .dashboard-shell .row{
        --bs-gutter-x:16px;
        --bs-gutter-y:16px;
    }

    .quick-action{
        min-height:154px;
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        gap:12px;
        padding:22px;
    }

    .quick-action p{
        margin:0 !important;
        color:#334155;
        font-size:14px;
        font-weight:600;
    }
}

@media(max-width:767px){
    .app-header{ height:56px; padding:0 12px; }
    .header-btn{
        width:40px;
        height:40px;
        border-color:transparent;
        background:#f1f5f9;
    }
    .header-logo{ height:31px; }
    .app-sidebar{
        z-index:1020;
        top:56px;
        width:min(86vw,310px);
        padding:16px 12px 24px;
        transform:translateX(-100%);
        transition:transform .2s ease;
        box-shadow:8px 0 20px rgba(15,23,42,.1);
    }
    .sidebar-open .app-sidebar{ transform:translateX(0); }
    .sidebar-backdrop{
        position:fixed;
        z-index:1015;
        inset:56px 0 0;
        background:rgba(15,23,42,.38);
    }
    .sidebar-open .sidebar-backdrop{ display:block; }
    .app-content{ min-height:calc(100dvh - 56px); margin-top:56px; margin-left:0; padding:16px 16px 32px; }
    .sidebar-link,
    .sidebar-group-toggle{ min-height:48px; font-size:15px; }
    .sidebar-submenu{ margin-left:33px; }
    .sidebar-submenu a{ padding:9px; font-size:13px; }
    .dashboard-shell{ max-width:480px; margin:0 auto; }
    .dashboard-shell .row{ --bs-gutter-x:12px; --bs-gutter-y:12px; }
    .dashboard-shell > div{ max-width:none; }
    .welcome-card{
        gap:12px;
        padding:16px;
        border-radius:8px;
    }
    .welcome-card__avatar{
        flex-basis:44px;
        width:44px;
        height:44px;
        font-size:16px;
    }
    .welcome-card__content h1{ font-size:17px; }
    .welcome-card__content span{ font-size:11px; }
    .welcome-card__icon{ font-size:20px; }
    .dashboard-actions{ margin-top:22px; }
    .next-step-card{ min-height:138px; gap:16px; margin-top:20px; padding:20px; }
    .next-step-card__icon{ flex-basis:52px; font-size:46px; }
    .next-step-card h2{ font-size:16px; }
    .next-step-card p{ font-size:12px; }
    .section-title{
        margin-bottom:16px !important;
        color:#334155;
        font-size:13px;
        font-weight:700;
        letter-spacing:.6px;
        text-transform:uppercase;
    }
    .dashboard-card{ padding:16px 12px; }
    .dashboard-icon{ width:48px; height:48px; border-radius:14px; font-size:23px; }
    .dashboard-card h3{ margin-top:9px; font-size:24px; }
    .dashboard-card p{ font-size:12px; }
    .quick-action{
        min-height:122px;
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        gap:12px;
        padding:16px;
        border-color:#e5eaf1;
        background:#fff;
        box-shadow:0 3px 10px rgba(15,23,42,.045);
    }
    .quick-action p{
        margin:0 !important;
        color:#1e293b;
        font-size:14px;
        font-weight:600;
    }
    .quick-action:hover{ transform:none; }
    .quick-action:active{
        border-color:#bfdbfe;
        background:#f8fbff;
        transform:scale(.98);
    }
}

@media(max-width:420px){
    .dashboard-card{ padding:17px 12px; }
    .dashboard-card h3{ font-size:24px; }
}

/*=====================================
ADD STAFF PAGE
=====================================*/
.page-grid{
    display:grid;
    gap:18px;
    grid-template-columns:1fr;
    align-items:start;
    width:100%;
    max-width:none;
    margin:0;
    padding:0;
}

.add-staff-container {
    width:100%;
    max-width:980px;
    margin:0;
    padding:0;
}

@media(max-width:992px){
    .add-staff-container {
        width:100%;
        max-width:none;
        padding:0 16px;
    }
}

.app-content{
    min-height:calc(100vh - 64px);
    margin-top:64px;
    margin-left:250px;
    padding:16px 28px 30px;
}

.form-card{
    width:100%;
    max-width:760px;
    margin:0;
}

.form-card,
.info-card{
    background:#ffffff;
    border:1px solid #e2e8f0;
    border-radius:0;
    box-shadow:none;
    padding:28px;
}

.card-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
    margin-bottom:24px;
}
.module-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:18px 22px;
    margin-bottom:22px;
    background:#f8fbff;
    border:1px solid #dbeafe;
    border-radius:12px;
}

.module-header__info{
    display:flex;
    align-items:center;
    gap:16px;
}

.module-header__icon{
    width:52px;
    height:52px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#dbeafe;
    color:#2563eb;
    border-radius:12px;
    font-size:24px;
    flex-shrink:0;
}

.module-header__content h3{
    margin:0;
    font-size:20px;
    font-weight:600;
    color:#0f172a;
}

.module-header__content p{
    margin:4px 0 0;
    font-size:13px;
    color:#64748b;
}

/*=====================================
UNIT LIST HEADER CARD
=====================================*/

.list-header-card{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin:18px 0 0;
    padding:14px 22px;
    background:#f8fbff;
    border:1px solid #dbeafe;
    border-radius:12px 12px 0 0;
    border-bottom:none;
}

.list-header-left{
    display:flex;
    align-items:center;
    gap:14px;
}

.list-header-icon{
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    background:#dbeafe;
    color:#2563eb;
    border-radius:10px;
    font-size:20px;
}

.list-header-content h3{
    margin:0;
    font-size:17px;
    font-weight:600;
    color:#0f172a;
    line-height:1.2;
}

.list-header-content p{
    margin:3px 0 0;
    font-size:13px;
    color:#64748b;
}

.list-header-content strong{
    color:#0f172a;
    font-weight:700;
}

@media(max-width:768px){

    .list-header-card{
        padding:16px;
    }

    .list-header-icon{
        width:46px;
        height:46px;
        font-size:20px;
    }

    .list-header-content h3{
        font-size:18px;
    }

}
@media(max-width:768px){

    .module-header{
        flex-direction:column;
        align-items:flex-start;
    }

    .module-header .btn{
        width:100%;
        justify-content:center;
    }

}
.eyebrow{
    margin:0 0 6px;
    color:#2563eb;
    font-size:12px;
    font-weight:700;
    letter-spacing:.12em;
    text-transform:uppercase;
}

.form-card h3,
.info-card h3{
    margin:0;
    font-size:22px;
    color:#0f172a;
    line-height:1.2;
}

.btn-flat{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    min-height:48px;
    border:1px solid #2563eb;
    background:#ffffff;
    color:#2563eb;
    border-radius:14px;
    padding:14px 20px;
    font-weight:600;
    transition:.2s;
}

.btn-flat:hover{
    background:#eff6ff;
}

.btn-flat:active{
    transform:scale(.98);
}

.badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:.65rem 1rem;
    border-radius:999px;
    font-size:13px;
    font-weight:700;
}

.badge-info{
    color:#1d4ed8;
    background:#eff6ff;
}

.role-card{
    display:grid;
    grid-template-columns:auto 1fr;
    align-items:center;
    gap:16px;
    padding:14px 18px;
    border:1px solid #d6e4ff;
    border-radius:20px;
    background:#f5f8ff;
    margin-bottom:24px;
    min-height:72px;
}

.role-card .role-icon{
    width:52px;
    height:52px;
    display:grid;
    place-items:center;
    border-radius:16px;
    background:linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color:#1e3a8a;
    font-size:1.35rem;
}

.role-card h4{
    margin:0;
    font-size:19px;
    color:#0f172a;
    letter-spacing:0.01em;
}

.role-card .role-text{
    display:flex;
    align-items:center;
    min-height:52px;
}

.badge-success{
    color:#047857;
    background:#d1fae5;
}

.status-card{
    display:grid;
    grid-template-columns:auto 1fr;
    gap:16px;
    align-items:center;
    padding:18px 20px;
    border-radius:18px;
    margin-bottom:22px;
    border:1px solid transparent;
}

.status-card--error{
    background:#fef2f2;
    border-color:#fecaca;
    color:#991b1b;
}

.status-card--success{
    background:#ecfdf5;
    border-color:#a7f3d0;
    color:#065f46;
}

.status-card__icon{
    display:grid;
    width:52px;
    height:52px;
    place-items:center;
    border-radius:16px;
    font-size:22px;
}

.status-card--error .status-card__icon{
    background:#fef2f2;
    color:#b91c1c;
}

.status-card--success .status-card__icon{
    background:#d1fae5;
    color:#047857;
}

.status-card__title{
    margin:0 0 4px;
    font-size:15px;
    font-weight:700;
}

.staff-form .form-row{
    margin-bottom:18px;
}

.staff-form .input-group{
    border:1px solid #dbe4ee;
    border-radius:12px;
    background:#fff;
    transition:.25s;
}

.staff-form .input-group:focus-within{
    border-color:#2563eb;
    box-shadow:0 0 0 4px rgba(37,99,235,.08);
}

.staff-form .form-control{
    border:none !important;
    box-shadow:none !important;
    height:52px;
    font-size:15px;
    padding:0 14px;
    background:transparent;
}

.staff-form .form-label{
    display:block;
    margin-bottom:8px;
    color:#475569;
    font-size:14px;
    font-weight:600;
}
.status-selector{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:16px;
    margin-top:10px;
}

.status-selector input{
    display:none;
}

.status-option{
    display:flex;
    align-items:center;
    gap:14px;
    padding:16px 18px;
    border:2px solid #e2e8f0;
    border-radius:12px;
    cursor:pointer;
    background:#fff;
    transition:.25s;
}

.status-option:hover{
    border-color:#2563eb;
    background:#f8fbff;
}

.status-option i{
    font-size:24px;
    color:#94a3b8;
    transition:.25s;
}

.status-option strong{
    display:block;
    color:#0f172a;
    font-size:15px;
    font-weight:600;
}

.status-option small{
    display:block;
    margin-top:2px;
    color:#64748b;
    font-size:12px;
}

#active:checked + .status-option{
    border-color:#16a34a;
    background:#f0fdf4;
}

#active:checked + .status-option i{
    color:#16a34a;
}

#inactive:checked + .status-option{
    border-color:#dc2626;
    background:#fef2f2;
}

#inactive:checked + .status-option i{
    color:#dc2626;
}

@media(max-width:576px){

    .status-selector{
        grid-template-columns:1fr;
    }

}

.staff-form .form-actions{
    margin-top:12px;
}

.staff-form .btn-primary{
    padding:.375rem .75rem;
    font-size:1rem;
    font-weight:500;
    border-radius:.375rem;
}

.staff-search-form{
    width:100%;
}

.staff-search-form .input-group{
    display:flex;
    gap:10px;
    align-items:center;
    width:100%;
    border:1px solid #dbe4ee;
    border-radius:12px;
    background:#fff;
    overflow:hidden;
    transition:.25s;
}

.staff-search-form .input-group:focus-within{
    border-color:#2563eb;
    box-shadow:0 0 0 4px rgba(37,99,235,.08);
}

.staff-search-form .input-group-text{
    border:0;
    background:#fff;
}

.staff-search-form .form-control{
    border:0 !important;
    box-shadow:none !important;
    background:transparent;
}

.staff-search-form .form-control{
    flex:1;
    min-width:0;
}

    /*=====================================
UNIT TABLE
=====================================*/

.table-responsive{
    border:1px solid #dbeafe;
    border-top:1px solid #dbeafe;
    border-radius:0 0 12px 12px;   /* sirf niche rounded */
    overflow:hidden;
}

.staff-table{
    width:100%;
    margin:0;
    border-collapse:collapse;
}

.staff-table thead th{
    padding:14px 24px;
    background:#f2f7ff;
    border-bottom:1px solid #dbeafe;
    color:#0f172a;
    font-size:12px;
    font-weight:700;
    letter-spacing:.03em;
    text-transform:uppercase;
    white-space:nowrap;
}
.staff-table tbody td{
    padding:14px 24px;
    height:58px;
    border-bottom:1px solid #edf2f7;
    vertical-align:middle;
    background:#fff;
    font-size:15px;
}

.staff-table tbody tr:last-child td{
    border-bottom:none;
}

.staff-table tbody tr:hover td{
    background:#fcfdff;
}

    /*=====================================
STATUS CHIP
=====================================*/

.status-chip{
    display:inline-flex;
    align-items:center;
    gap:8px;

    min-width:122px;
    height:34px;

    padding:0 12px;

    border:1px solid #dbeafe;
    border-radius:10px;

    background:#ffffff;

    color:#334155;

    font-size:12px;
    font-weight:600;

    cursor:pointer;

    transition:.2s;

    font-family:inherit;
}

.status-chip:hover{
    background:#f8fbff;
    border-color:#93c5fd;
}

.status-chip i:first-child{
    font-size:13px;
}

.status-chip span{
    white-space:nowrap;
}

.status-chip__arrow{
    margin-left:auto;
    font-size:8px;
    color:#94a3b8;
}

.status-chip--active{
    background:#f0fdf4;
    border-color:#bbf7d0;
    color:#16a34a;
}

.status-chip--inactive{
    background:#fef2f2;
    border-color:#fecaca;
    color:#dc2626;
}
.unit-name{
    font-size:15px;
    font-weight:600;
    color:#0f172a;
}

.status-action-form,
.delete-action-form{
    margin:0;
}

.btn-delete{
    min-width:62px;
    height:32px;
    padding:0;
    border-radius:8px;
    font-size:12px;
}

.info-card p{
    color:#475569;
    line-height:1.8;
    margin-bottom:18px;
}

.info-list{
    display:grid;
    gap:12px;
}

.info-list div{
    display:flex;
    align-items:center;
    gap:12px;
    color:#334155;
    font-size:14px;
}

.info-list i{
    font-size:18px;
}

@media(max-width:992px){
    .page-grid{
        grid-template-columns:1fr;
    }
    .app-content{
        margin-left:0;
        padding:16px 16px 32px;
    }
    .form-card{
        padding:22px;
    }
}

@media(max-width:767px){
    .app-content{
        margin-left:0;
        padding:16px 14px 28px;
    }
    .form-card,
    .info-card{
        padding:18px;
        border-radius:0;
    }
    .card-header{
        gap:12px;
    }
}

@media(max-width:576px){
    .form-card,
    .info-card{
        padding:16px;
        border-radius:0;
    }
    .card-header{
        gap:12px;
    }
}
