*{
    box-sizing:border-box;
}

:root{
    --fmvs-green:#228B22;
    --fmvs-green-dark:#1c731c;
    --fmvs-dark:#000000;
    --fmvs-blue:#132534;
    --fmvs-black:#000000;
    --fmvs-light:#f4f7fb;
    --fmvs-text:#0F2537;
    --fmvs-muted:#64748b;
    --fmvs-border:#d8e0e8;
}

body{
    margin:0;
    font-family:Inter,Arial,sans-serif;
    background:var(--fmvs-light);
    color:var(--fmvs-text);
}

/* LOGIN */
.login-body{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#000000,#000000);
}

form{
    width:100%;
}

.login-card{
    width:450px;
    max-width:92vw;
    background:#fff;
    border-radius:30px;
    padding:40px;
    box-shadow:0 30px 80px rgba(0,0,0,.35);

    display:flex;
    flex-direction:column;
    align-items:center;
}

.brand-block{
    width:100%;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    margin-bottom:15px;
}

.login-logo-wrap{
    width:300px;
    background:#000;
    border-radius:25px;
    padding:20px;

    display:flex;
    justify-content:center;
    align-items:center;
}

.login-logo-wrap img{
    width:260px;
    max-width:100%;
    height:auto;
    display:block;
    object-fit:contain;
}

.system-title{
    margin-top:14px;
    color:#228B22;
    font-size:24px;
    font-weight:900;
    text-align:center;
    width:100%;
}

.login-subtitle{
    width:100%;
    text-align:center;
    color:#64748b;
    margin-bottom:25px;
}

label{
    display:block;
    color:#000000;
    font-weight:800;
    margin:14px 0 7px;
}

input{
    width:100%;
    padding:15px;
    border:1px solid var(--fmvs-border);
    border-radius:14px;
    font-size:15px;
    outline:none;
}

input:focus{
    border-color:var(--fmvs-green);
    box-shadow:0 0 0 3px rgba(34,139,34,.13);
}

form button{
    width:100%;
    margin-top:20px;
    background:var(--fmvs-green);
    color:#fff;
    border:none;
    padding:16px;
    border-radius:16px;
    font-size:17px;
    font-weight:900;
    cursor:pointer;
    transition:.25s ease;
}

form button:hover{
    background:var(--fmvs-green-dark);
    transform:translateY(-2px);
}

.error{
    background:#fff1f1;
    color:#a40018;
    border:1px solid #ffc9c9;
    padding:12px;
    border-radius:12px;
    margin-bottom:16px;
    font-weight:700;
}

/* DASHBOARD */
.layout{
    display:flex;
    min-height:100vh;
}

.sidebar{
    width:260px;
    background:var(--fmvs-dark);
    color:#fff;
    padding:24px;
    position:fixed;
    top:0;
    bottom:0;
}

.sidebar-logo{
    background:#000;
    border-radius:20px;
    padding:18px;
    text-align:center;
    margin-bottom:25px;
    box-shadow:0 12px 32px rgba(0,0,0,.35);
}

.sidebar-logo img{
    width:180px;
    max-width:100%;
    height:auto;
    object-fit:contain;
}

.sidebar h2{
    margin:0 0 24px;
    color:#fff;
}

.sidebar a{
    display:block;
    color:#cbd5df;
    text-decoration:none;
    padding:13px 14px;
    border-radius:12px;
    margin-bottom:8px;
    font-weight:700;
    transition:.2s ease;
}

.sidebar a:hover{
    background:var(--fmvs-green);
    color:#fff;
}

.logout-link{
    background:var(--fmvs-green)!important;
    color:#fff!important;
    margin-top:25px;
}

.logout-link:hover{
    background:var(--fmvs-green-dark)!important;
}

.main{
    margin-left:260px;
    padding:30px;
    width:calc(100% - 260px);
}

.topbar{
    background:#fff;
    border-radius:22px;
    padding:25px;
    box-shadow:0 10px 30px rgba(15,37,55,.08);
    margin-bottom:25px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
}

.topbar h1{
    margin:0;
}

.topbar p{
    margin:8px 0 0;
    color:#607080;
}

.logout-btn{
    background:var(--fmvs-green);
    color:#fff;
    padding:12px 22px;
    border-radius:15px;
    text-decoration:none;
    font-weight:900;
    white-space:nowrap;
    transition:.2s ease;
}

.logout-btn:hover{
    background:var(--fmvs-green-dark);
    transform:translateY(-1px);
}

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:18px;
}

.card{
    background:#fff;
    border:1px solid #e5edf3;
    border-radius:20px;
    padding:24px;
    box-shadow:0 12px 30px rgba(15,37,55,.08);
}

.card span{
    display:block;
    color:#607080;
    font-weight:800;
    text-transform:uppercase;
    font-size:13px;
    margin-bottom:10px;
}

.card strong{
    font-size:36px;
    color:var(--fmvs-green);
}

/* RESPONSIVE */
@media(max-width:800px){
    .sidebar{
        position:relative;
        width:100%;
        height:auto;
    }

    .layout{
        display:block;
    }

    .main{
        margin-left:0;
        width:100%;
        padding:18px;
    }

    .topbar{
        flex-direction:column;
        align-items:flex-start;
    }

    .logout-btn{
        width:100%;
        text-align:center;
    }

    .system-title{
        font-size:21px;
    }
}


.sidebar a i{
    width:22px;
    margin-right:10px;
    color:#228B22;
}

.sidebar a:hover i{
    color:#fff;
}

.top-right{
    display:flex;
    align-items:center;
    gap:14px;
}

.notification-btn{
    width:46px;
    height:46px;
    margin:0;
    border-radius:50%;
    background:#f1f5f9;
    color:#228B22;
    padding:0;
    font-size:18px;
}

.notification-btn:hover{
    background:#228B22;
    color:#fff;
}

.profile-avatar{
    width:46px;
    height:46px;
    border-radius:50%;
    background:#228B22;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
}

.logout-btn{
    background:#228B22;
    color:#fff;
    padding:12px 22px;
    border-radius:15px;
    text-decoration:none;
    font-weight:900;
    white-space:nowrap;
}

.logout-btn:hover{
    background:#1c731c;
}

@media(max-width:800px){
    .top-right{
        width:100%;
        justify-content:space-between;
    }
}


.panel{
    background:#fff;
    border:1px solid #e5edf3;
    border-radius:22px;
    padding:24px;
    box-shadow:0 12px 30px rgba(15,37,55,.08);
    margin-bottom:24px;
}

.panel h2{
    margin-top:0;
}

.fmvs-form-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
}

.fmvs-form-grid input,
.fmvs-form-grid select{
    width:100%;
    padding:14px;
    border:1px solid #d8e0e8;
    border-radius:14px;
    font-size:15px;
}

.fmvs-form-grid button{
    margin-top:0;
}

.panel-head{
    display:flex;
    justify-content:space-between;
    gap:15px;
    align-items:center;
}

.table-search{
    max-width:320px;
}

.fmvs-table{
    width:100%;
    border-collapse:collapse;
}

.fmvs-table th{
    background:#0f1720;
    color:#fff;
    padding:13px;
    text-align:left;
}

.fmvs-table td{
    padding:13px;
    border-bottom:1px solid #edf2f7;
}

@media(max-width:900px){
    .fmvs-form-grid{
        grid-template-columns:1fr;
    }

    .panel-head{
        display:block;
    }

    .table-search{
        max-width:100%;
        margin-bottom:15px;
    }

    .fmvs-table,
    .fmvs-table thead,
    .fmvs-table tbody,
    .fmvs-table th,
    .fmvs-table td,
    .fmvs-table tr{
        display:block;
        width:100%;
    }

    .fmvs-table thead{
        display:none;
    }

    .fmvs-table tr{
        background:#fff;
        border:1px solid #e5edf3;
        border-radius:16px;
        padding:12px;
        margin-bottom:14px;
    }

    .fmvs-table td{
        display:flex;
        justify-content:space-between;
        gap:15px;
    }

    .fmvs-table td::before{
        content:attr(data-label);
        font-weight:900;
        color:#0f1720;
    }
}

.table-link{
    color:#228B22;
    text-decoration:none;
}

.table-link:hover{
    text-decoration:underline;
}

.mini-btn{
    background:#228B22;
    color:#fff;
    padding:11px 16px;
    border-radius:12px;
    text-decoration:none;
    font-weight:900;
    display:inline-flex;
    align-items:center;
    gap:8px;
}

.status-pill{
    background:#e8f7e8;
    color:#228B22;
    padding:7px 12px;
    border-radius:999px;
    font-weight:900;
    font-size:12px;
}

.row-actions{
    display:flex;
    align-items:center;
    gap:8px;
}

.row-actions form{
    margin:0;
}

.icon-action{
    width:36px;
    height:36px;
    border-radius:10px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    border:none;
    cursor:pointer;
    font-size:14px;
    margin:0;
    padding:0;
}

.icon-action.edit{
    background:#eef7ee;
    color:#228B22;
}

.icon-action.delete{
    background:#fff1f1;
    color:#b00020;
}

.icon-action.disabled{
    background:#f1f5f9;
    color:#94a3b8;
    cursor:not-allowed;
}

.row-actions small{
    color:#64748b;
    font-weight:700;
}

.mini-btn.disabled{
    background:#94a3b8;
    cursor:not-allowed;
}

.customer-form-card{
    width:760px;
    max-width:94vw;
    background:#fff;
    border-radius:30px;
    padding:40px;
    box-shadow:0 30px 80px rgba(0,0,0,.35);
}

.customer-form-card textarea,
.customer-form-card select{
    width:100%;
    padding:15px;
    border:1px solid #d8e0e8;
    border-radius:14px;
    font-size:15px;
}

.customer-form-card h2{
    margin-top:0;
    color:#0f1720;
}

.send-pack-form{
    display:flex;
    gap:8px;
    align-items:center;
    flex-wrap:wrap;
}

.send-pack-form label{
    margin:0;
    font-size:12px;
    font-weight:800;
    display:flex;
    align-items:center;
    gap:4px;
}

.send-pack-form input[type="checkbox"]{
    width:auto;
}

.small-send-btn{
    width:auto;
    margin:0;
    padding:8px 12px;
    border-radius:10px;
    font-size:12px;
}

.radio-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:10px;
    margin:10px 0 18px;
}

.radio-grid label{
    background:#f8fafc;
    border:1px solid #d8e0e8;
    border-radius:12px;
    padding:12px;
    margin:0;
}

.radio-grid input{
    width:auto;
    margin-right:8px;
}

.form-page-body{
    min-height:100vh;
    background:#eef3f8;
    padding:30px 15px;
    font-family:Inter,Arial,sans-serif;
}

.jf-card{
    max-width:760px;
    margin:0 auto;
    background:#fff;
    border-radius:18px;
    box-shadow:0 18px 60px rgba(15,37,55,.18);
    overflow:hidden;
}

.jf-header{
    background:#0f1720;
    color:#fff;
    padding:26px 34px;
    text-align:center;
}

.jf-header img{
    max-width:220px;
    background:#000;
    border-radius:16px;
    padding:14px;
    margin-bottom:14px;
}

.jf-header h1{
    margin:0 0 8px;
    color:#fff;
    font-size:28px;
}

.jf-header p{
    margin:0;
    color:#dbe5ef;
}

.jf-section{
    padding:22px 34px;
    border-bottom:1px solid #e7edf4;
}

.jf-section h2{
    margin:0 0 18px;
    color:#0f1720;
    font-size:21px;
}

.jf-section h3{
    margin:18px 0 10px;
    color:#0f1720;
    font-size:16px;
}

.jf-note{
    color:#64748b;
    font-size:13px;
    margin-top:-8px;
}

.jf-grid-2,
.jf-grid-3,
.jf-grid-4{
    display:grid;
    gap:14px;
    margin-bottom:14px;
}

.jf-grid-2{grid-template-columns:1fr 1fr;}
.jf-grid-3{grid-template-columns:1fr 1fr 1fr;}
.jf-grid-4{grid-template-columns:1fr 1fr 1fr 1fr;}

.jf-card label{
    display:block;
    margin:0 0 6px;
    font-size:13px;
    font-weight:800;
    color:#334155;
}

.jf-card input,
.jf-card select,
.jf-card textarea{
    width:100%;
    padding:12px 13px;
    border:1px solid #cfd8e3;
    border-radius:8px;
    font-size:14px;
    background:#fff;
    outline:none;
}

.jf-card input:focus,
.jf-card select:focus,
.jf-card textarea:focus{
    border-color:#228B22;
    box-shadow:0 0 0 3px rgba(34,139,34,.12);
}

.jf-hidden-box{
    display:none;
    background:#f8fafc;
    border:1px dashed #cbd5e1;
    border-radius:14px;
    padding:18px;
    margin:16px 0;
}

.jf-submit{
    width:calc(100% - 68px);
    margin:24px 34px 34px;
    background:#228B22;
    color:#fff;
    border:none;
    border-radius:10px;
    padding:15px;
    font-size:16px;
    font-weight:900;
}

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

    .jf-section{
        padding:20px;
    }

    .jf-submit{
        width:calc(100% - 40px);
        margin:20px;
    }
}

.status-click{
    text-decoration:none;
    cursor:pointer;
}

.status-click:hover{
    background:#228B22;
    color:#fff;
}

.status-click{
    text-decoration:none;
    cursor:pointer;
}

.status-click:hover{
    transform:translateY(-2px);
}

.status-success{
    background:#16a34a!important;
    color:#fff!important;
}

.small-send-btn:disabled{
    background:#94a3b8!important;
    cursor:not-allowed;
    opacity:.7;
    transform:none!important;
}

/* ===========================
   Application Tabs
=========================== */

.app-tabs{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin:25px 0;
}

button.tab-btn{
    width:auto !important;
    min-width:140px;
    margin:0 !important;
    padding:12px 22px;
    border-radius:12px;
    border:1px solid #d8e0e8;
    background:#ffffff;
    color:#0f1720;
    font-weight:700;
    font-size:15px;
    cursor:pointer;
    transition:.25s;
    box-shadow:0 4px 10px rgba(0,0,0,.05);
}

button.tab-btn:hover{
    background:#228B22;
    color:#fff;
}

button.tab-btn.active{
    background:#228B22;
    color:#fff;
}

.tab-page{
    display:none;
    width:100%;
}

.tab-page.active{
    display:block;
}

.vehicle-panel{
    background:#fff;
    border:1px solid #e5edf3;
    border-radius:24px;
    padding:28px;
    box-shadow:0 14px 35px rgba(15,37,55,.08);
}

.vehicle-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
    margin-bottom:24px;
}

.vehicle-head h2{
    margin:0;
    color:#0f1720;
    font-size:28px;
}

.vehicle-head p{
    margin:7px 0 0;
    color:#64748b;
}

.vehicle-badge{
    background:#e8f7e8;
    color:#228B22;
    padding:9px 14px;
    border-radius:999px;
    font-size:12px;
    font-weight:900;
    white-space:nowrap;
}

.vehicle-lookup-row{
    display:grid;
    grid-template-columns:1fr 260px;
    gap:16px;
    align-items:end;
    margin-bottom:22px;
    background:#f8fafc;
    border:1px solid #edf2f7;
    border-radius:18px;
    padding:18px;
}

.vehicle-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px;
}

.vehicle-field label{
    display:block;
    margin:0 0 7px;
    font-size:13px;
    font-weight:900;
    color:#334155;
}

.vehicle-field input{
    width:100%;
    height:54px;
    padding:0 15px;
    border:1px solid #d8e0e8;
    border-radius:14px;
    font-size:15px;
    background:#fff;
}

.vehicle-field input:focus{
    border-color:#228B22;
    box-shadow:0 0 0 3px rgba(34,139,34,.12);
}

.vehicle-reg-field input{
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.5px;
    background:#eef5ff;
}

.lookup-stock-btn{
    width:100%!important;
    margin:0!important;
    height:54px;
    border-radius:14px;
    background:#0f1720!important;
    color:#fff!important;
    font-weight:900;
}

.lookup-stock-btn:hover{
    background:#228B22!important;
}

.vehicle-actions{
    margin-top:24px;
    display:flex;
    justify-content:flex-end;
}

.save-vehicle-btn{
    width:auto!important;
    min-width:230px;
    margin:0!important;
    padding:14px 22px!important;
    border-radius:14px!important;
    background:#228B22!important;
    color:#fff!important;
    font-weight:900;
}

@media(max-width:900px){
    .vehicle-head{
        display:block;
    }

    .vehicle-badge{
        display:inline-block;
        margin-top:12px;
    }

    .vehicle-lookup-row,
    .vehicle-grid{
        grid-template-columns:1fr;
    }

    .vehicle-actions{
        display:block;
    }

    .save-vehicle-btn{
        width:100%!important;
    }
}

.price-input{
    display:flex;
    align-items:center;
    border:1px solid #d8e0e8;
    border-radius:14px;
    overflow:hidden;
    height:54px;
    background:#fff;
}

.price-input span{
    width:55px;
    height:54px;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#f5f7fb;
    border-right:1px solid #d8e0e8;
    font-weight:900;
    color:#228B22;
    font-size:18px;
}

.price-input input{
    border:none!important;
    box-shadow:none!important;
    height:54px;
    flex:1;
}

.document-panel{
    background:#fff;
    border:1px solid #e5edf3;
    border-radius:24px;
    padding:28px;
    box-shadow:0 14px 35px rgba(15,37,55,.08);
}

.document-upload-form{
    display:grid;
    grid-template-columns:220px 1fr 1fr 180px;
    gap:14px;
    align-items:end;
    background:#f8fafc;
    border:1px solid #edf2f7;
    border-radius:18px;
    padding:18px;
    margin-bottom:24px;
}

.document-upload-form select,
.document-upload-form input{
    height:52px;
    border:1px solid #d8e0e8;
    border-radius:14px;
    padding:0 14px;
    background:#fff;
}

.document-upload-form button{
    width:100%!important;
    margin:0!important;
    height:52px;
    border-radius:14px;
    background:#228B22!important;
    color:#fff!important;
    font-weight:900;
}

.document-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:16px;
}

.document-card{
    border:1px solid #e5edf3;
    border-radius:18px;
    padding:18px;
    background:#fff;
    box-shadow:0 8px 20px rgba(15,37,55,.06);
}

.document-card span{
    display:inline-block;
    background:#e8f7e8;
    color:#228B22;
    padding:6px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:900;
}

.document-card h3{
    margin:12px 0 6px;
    color:#0f1720;
}

.document-card p{
    color:#64748b;
    margin:0 0 8px;
    word-break:break-word;
}

.document-card small{
    display:block;
    color:#94a3b8;
    margin-bottom:14px;
}

@media(max-width:1000px){
    .document-upload-form{
        grid-template-columns:1fr;
    }
}

.doc-category-section{
    margin-top:24px;
    border-radius:22px;
    padding:18px;
    border:1px solid #e5edf3;
}

.doc-category-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:16px;
}

.doc-category-head h3{
    margin:0;
    color:#0f1720;
}

.doc-category-head span{
    font-size:12px;
    font-weight:900;
    padding:7px 11px;
    border-radius:999px;
}

.doc-cat-customer{
    background:#f0fdf4;
}

.doc-cat-customer .doc-category-head span,
.doc-card-customer .doc-card-top span{
    background:#16a34a;
    color:#fff;
}

.doc-cat-vehicle{
    background:#eff6ff;
}

.doc-cat-vehicle .doc-category-head span,
.doc-card-vehicle .doc-card-top span{
    background:#2563eb;
    color:#fff;
}

.doc-cat-finance{
    background:#fff7ed;
}

.doc-cat-finance .doc-category-head span,
.doc-card-finance .doc-card-top span{
    background:#ea580c;
    color:#fff;
}

.doc-card-top{
    display:flex;
    justify-content:space-between;
    gap:10px;
    align-items:center;
}

.doc-card-top span{
    padding:6px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:900;
}

.doc-actions{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-top:14px;
}

.doc-actions form{
    width:auto;
}

.doc-btn{
    border:none;
    border-radius:10px;
    padding:9px 12px;
    font-size:12px;
    font-weight:900;
    text-decoration:none;
    cursor:pointer;
    width:auto!important;
    margin:0!important;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.doc-btn.view{
    background:#0f1720;
    color:#fff;
}

.doc-btn.edit{
    background:#2563eb;
    color:#fff;
}

.doc-btn.delete{
    background:#dc2626;
    color:#fff;
}

.doc-btn.save{
    background:#228B22;
    color:#fff;
}

.doc-edit-form{
    display:none;
    grid-template-columns:1fr;
    gap:10px;
    margin-top:16px;
    padding-top:16px;
    border-top:1px dashed #cbd5e1;
}

.doc-edit-form input,
.doc-edit-form select{
    height:44px;
    border:1px solid #d8e0e8;
    border-radius:12px;
    padding:0 12px;
}

.replace-label{
    margin:0;
    font-size:12px;
    color:#64748b;
}

.doc-empty{
    color:#64748b;
    margin:0;
}

.note-form textarea{
    width:100%;
    border:1px solid #d8e0e8;
    border-radius:16px;
    padding:15px;
    font-size:15px;
    resize:vertical;
}

.note-list{
    margin-top:24px;
    display:grid;
    gap:14px;
}

.note-card{
    background:#f8fafc;
    border:1px solid #e5edf3;
    border-radius:16px;
    padding:16px;
}

.note-card p{
    margin:0 0 10px;
    color:#0f1720;
}

.note-card small{
    color:#64748b;
    font-weight:700;
}

.timeline-list{
    display:grid;
    gap:16px;
}

.timeline-item{
    display:grid;
    grid-template-columns:22px 1fr;
    gap:14px;
    align-items:start;
    background:#f8fafc;
    border:1px solid #e5edf3;
    border-radius:16px;
    padding:16px;
}

.timeline-dot{
    width:14px;
    height:14px;
    border-radius:50%;
    background:#228B22;
    margin-top:4px;
    box-shadow:0 0 0 5px rgba(34,139,34,.12);
}

.timeline-item strong{
    color:#0f1720;
}

.timeline-item p{
    margin:6px 0 0;
    color:#64748b;
    font-weight:700;
}

.status-update-form{
    display:grid;
    grid-template-columns:1fr 180px;
    gap:14px;
    align-items:end;
    background:#f8fafc;
    border:1px solid #edf2f7;
    border-radius:16px;
    padding:16px;
    margin-bottom:20px;
}

.status-update-form label{
    grid-column:1 / -1;
    margin:0;
}

.status-update-form select{
    height:50px;
    border:1px solid #d8e0e8;
    border-radius:12px;
    padding:0 12px;
}

.status-update-form button{
    width:auto!important;
    margin:0!important;
    height:50px;
    border-radius:12px;
}

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

.dash-card{
    background:linear-gradient(135deg,#ffffff,#f8fafc);
    border:1px solid #e5edf3;
    border-radius:24px;
    padding:24px;
    text-decoration:none;
    color:#0f1720;
    display:flex;
    align-items:center;
    gap:18px;
    box-shadow:0 14px 35px rgba(15,37,55,.08);
    transition:.25s ease;
}

.dash-card:hover{
    transform:translateY(-5px);
    border-color:#228B22;
    box-shadow:0 20px 45px rgba(34,139,34,.16);
}

.dash-icon{
    width:58px;
    height:58px;
    border-radius:18px;
    background:#e8f7e8;
    color:#228B22;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:26px;
    flex-shrink:0;
}

.dash-icon i{
    font-size:26px;
    color:#228B22;
}

.dash-card span{
    display:block;
    color:#64748b;
    font-size:13px;
    font-weight:900;
    text-transform:uppercase;
    margin-bottom:7px;
}

.dash-card strong{
    font-size:34px;
    color:#228B22;
}

.vehicle-field select{
    width:100%;
    height:54px;
    padding:0 15px;
    border:1px solid #d8e0e8;
    border-radius:14px;
    font-size:15px;
    background:#fff;
    outline:none;
}

.vehicle-field select:focus{
    border-color:#228B22;
    box-shadow:0 0 0 3px rgba(34,139,34,.12);
}

.unread-card{
    border-left:5px solid #228B22;
    background:#f0fdf4;
}

.notification-btn{
    position:relative;
    width:46px;
    height:46px;
    border:2px solid #1f2937;
    border-radius:50%;
    background:#fff;
    color:#228B22;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    transition:.25s;
}

.notification-btn:hover{
    background:#228B22;
    color:#fff;
    border-color:#228B22;
    transform:translateY(-2px);
}

.notification-btn i{
    font-size:18px;
}

.notification-badge{
    position:absolute;
    top:-6px;
    right:-6px;
    min-width:20px;
    height:20px;
    padding:0 5px;
    border-radius:50%;
    background:#dc2626;
    color:#fff;
    font-size:11px;
    font-weight:700;
    display:flex;
    align-items:center;
    justify-content:center;
    border:2px solid #fff;
}

.page-wrap {
  padding: 24px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.page-header h1 {
  margin: 0;
  color: #0f172a;
}

.page-header p {
  margin: 6px 0 0;
  color: #64748b;
}

.global-search-form {
  display: flex;
  gap: 10px;
  min-width: 420px;
}

.global-search-form input {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
}

.global-search-form button {
  border: 0;
  background: #228B22;
  color: #fff;
  border-radius: 12px;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
}

.search-summary {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 20px;
}

.search-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.search-section h2 {
  font-size: 18px;
  margin: 0 0 14px;
  color: #0f172a;
}

.search-result-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid #f1f5f9;
  color: inherit;
  text-decoration: none;
}

.search-result-card:first-of-type {
  border-top: 0;
}

.search-result-card strong {
  display: block;
  font-size: 15px;
  color: #111827;
}

.search-result-card span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
}

.search-result-card small {
  background: #f1f5f9;
  color: #334155;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 12px;
}

.empty-state,
.empty-text {
  color: #64748b;
  font-size: 14px;
}

@media (max-width: 800px) {
  .page-header {
    display: block;
  }

  .global-search-form {
    min-width: 0;
    margin-top: 16px;
  }
}

/* ===========================
   Dashboard Smart Search
=========================== */

.smart-search-card {
    width:100%;
    max-width:100%;
    background:#ffffff;
    border:1px solid #e5edf3;
    border-radius:24px;
    padding:24px;
    margin:22px 0 28px;
    box-shadow:0 14px 35px rgba(15,37,55,.08);
    position:relative;
    z-index:50;
}

.smart-search-header {
    margin-bottom:18px;
}

.smart-search-header span {
    display:block;
    color:#228B22;
    font-size:12px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.12em;
    margin-bottom:6px;
}

.smart-search-header h2 {
    margin:0;
    color:#0f1720;
    font-size:24px;
    font-weight:900;
}

.smart-search-header p {
    margin:7px 0 0;
    color:#64748b;
    font-size:14px;
}

.smart-search-form {
    width:100%;
    display:grid;
    grid-template-columns:1fr 170px;
    gap:14px;
    align-items:center;
}

.smart-search-input-wrap {
    width:100%;
    height:58px;
    display:flex;
    align-items:center;
    gap:12px;
    background:#f8fafc;
    border:1px solid #d8e0e8;
    border-radius:16px;
    padding:0 16px;
}

.smart-search-input-wrap i {
    color:#228B22;
    font-size:17px;
    flex-shrink:0;
}

.smart-search-input-wrap input,
.smart-search-input-wrap input[type="text"] {
    width:100% !important;
    min-width:0 !important;
    height:56px !important;
    border:0 !important;
    outline:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    padding:0 !important;
    margin:0 !important;
    color:#0f172a !important;
    font-size:15px !important;
    line-height:56px !important;
}

.smart-search-input-wrap:focus-within {
    border-color:#228B22;
    background:#ffffff;
    box-shadow:0 0 0 4px rgba(34,139,34,.12);
}

.smart-search-form button,
.smart-search-form button[type="submit"] {
    width:100% !important;
    height:58px !important;
    margin:0 !important;
    padding:0 22px !important;
    border:0 !important;
    border-radius:16px !important;
    background:#228B22 !important;
    color:#ffffff !important;
    font-size:16px !important;
    font-weight:900 !important;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
}

.smart-search-form button:hover {
    background:#1c731c !important;
    transform:none !important;
}

.smart-search-results {
    display:none;
    position:absolute;
    left:24px;
    right:24px;
    top:calc(100% - 18px);
    background:#ffffff;
    border:1px solid #e5edf3;
    border-radius:18px;
    box-shadow:0 24px 55px rgba(15,37,55,.20);
    overflow:hidden;
    z-index:9999;
}

.smart-search-results.active {
    display:block;
}

.smart-search-item {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:15px 18px;
    border-bottom:1px solid #eef2f7;
    color:#0f1720;
    text-decoration:none;
}

.smart-search-item:hover {
    background:#f8fafc;
}

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

.smart-search-item strong {
    display:block;
    color:#0f1720;
    font-size:14px;
    font-weight:900;
}

.smart-search-item span {
    display:block;
    color:#64748b;
    font-size:13px;
    margin-top:4px;
}

.smart-search-item small {
    background:#e8f7e8;
    color:#228B22;
    padding:6px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:900;
    white-space:nowrap;
}

.smart-search-empty {
    padding:18px;
    color:#64748b;
    font-size:14px;
}

@media(max-width:900px) {
    .smart-search-form {
        grid-template-columns:1fr;
    }

    .smart-search-form button {
        width:100% !important;
    }

    .smart-search-results {
        left:16px;
        right:16px;
    }
}