@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');
*{
    box-sizing:border-box
}
html,body{
    margin:0;
    padding:0;
    font-family:'Be Vietnam Pro',sans-serif;
    color:#111827;
    background:#f6f8fc;
    font-size:14px;
    height:100%;
    line-height:1.45
}
body{
    min-height:100vh;
    display:flex;
    flex-direction:column;
    overflow-x:hidden
}
a{
    text-decoration:none;
    color:inherit
}
button,input,select,textarea{
    font-family:inherit;
    font-size:14px
}
img{
    max-width:100%;
    display:block
}

.brand{
    height:62px;
    display:flex;
    align-items:center;
    gap:10px;
    padding:0 14px;
    border-bottom:1px solid #e5edf5
}
.brand-mark{
    width:34px;
    height:34px;
    border-radius:11px;
    background:#1d4ed8;
    color:#fff;
    font-weight:700;
    display:flex;
    align-items:center;
    justify-content:center
}
.brand-name{
    font-weight:700;
    font-size:16px
}
.nav{
    padding:11px 9px;
    display:grid;
    gap:5px;
    overflow:auto
}
.nav a{
    display:flex;
    align-items:center;
    gap:9px;
    padding:9px 10px;
    border-radius:10px;
    transition:all .2s ease;
    font-weight:800;
    color:#334155
}
.nav a:hover{
    background:#f3f7ff;
    transform:translateX(3px);
}

.nav a.active{
    background:#eaf2ff;
    color:#2563eb;
}
.nav-icon{
    width:24px;
    height:24px;
    border-radius:8px;
    background:#f1f5f9;
    color:#2563eb;
    font-size:11px;
    font-weight:700;
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto
}
.sidebar-footer{
    margin-top:auto;
    padding:12px 14px;
    border-top:1px solid #e5edf5;
    font-size:12px;
    color:#64748b
}
.main{
    margin-left:236px;
    min-height:100vh;
    display:flex;
    flex-direction:column;
    width:calc(100% - 236px);
    min-width:0
}
.app{
    min-height:100vh;
    display:flex
}
.sidebar{
    width:236px;
    position:fixed;
    inset:0 auto 0 0;
    background:#000000;
    border-right:1px solid #d9e2ee;
    z-index:999;
    display:flex;
    flex-direction:column

}
.sidebar-menu{

    flex:1;

    overflow-y:auto;

    overflow-x:hidden;

    padding-right:6px;

}
.topbar{
    height:56px;
    background:#fff;
    border-bottom:1px solid #d9e2ee;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 16px;
    position:sticky;
    top:0;
    z-index:30
}
.page-title h1{
    font-size:21px;
    margin:0;
    font-weight:700
}
.page-title p{
    display:none
}
.top-actions{
    display:flex;
    align-items:center;
    gap:8px;
    min-width:0
}
.content{
    flex:1;
    padding:16px;
    width:100%;
    max-width:none
}

.mobile-toggle{
    display:none
}
.card{
    background:#fff;
    border:1px solid #d9e2ee;
    border-radius:14px;
    padding:13px;
    margin-bottom:14px;
    min-width:0
}
.card-title{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:12px
}
.card-title h2,.card-title h3{
    margin:0;
    font-size:17px;
    font-weight:700
}
.card-title p{
    display:none
}
.stats-grid{
    display:grid;
    grid-template-columns:repeat(5,minmax(150px,1fr));
    gap:12px;
    margin-bottom:14px
}
.stat-card{
    background:#fff;
    border:1px solid #d9e2ee;
    border-radius:14px;
    padding:13px;
    min-width:0
}
.stat-card .label{
    font-size:12px;
    color:#64748b;
    margin-bottom:5px;
    font-weight:700
}
.stat-card .value{
    font-size:25px;
    font-weight:700;
    line-height:1.15
}
.stat-card .hint{
    font-size:12px;
    color:#64748b;
    margin-top:5px
}
.dashboard-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:14px
}
.dashboard-grid.two{
    grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr)
}
.toolbar{
    display:flex;
    gap:8px;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    margin-bottom:12px
}
.filter-form{
    display:flex;
    gap:8px;
    align-items:center;
    flex-wrap:wrap;
    min-width:0
}
.filter-form input,.filter-form select,.filter-form .select2lite{
    width:180px;
    max-width:100%
}
.filter-form input[name="q"]{
    width:260px
}
.table-wrap{
    width:100%;
    overflow:visible;
    border:1px solid #d9e2ee;
    border-radius:12px;
    background:#fff
}
.data-table{
    width:100%;
    border-collapse:collapse;
    table-layout:auto
}
.data-table th,
.data-table td{

    padding:10px 11px;
    border-bottom:1px solid #e5edf5;
    text-align:left;
    vertical-align:middle;

    overflow:hidden;
    text-overflow:ellipsis;
    word-break:normal;
    overflow-wrap:normal;

}
.data-table th{
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.02em;
    color:#64748b;
    background:#f8fafc
}
.data-table tr:last-child td{
    border-bottom:0
}
.data-table .col-actions{
    width:1%;
    white-space:nowrap
}
.data-table .money-cell{
    white-space:nowrap;
    font-weight:700
}
.btn{
    height:32px;
    min-width:0;
    padding:0 11px;
    border-radius:9px;
    border:1px solid #cbd5e1;
    background:#fff;
    color:#111827;
    font-weight:800;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    cursor:pointer;
    white-space:nowrap;
    line-height:1
}
.btn:hover{
    background:#f8fafc
}
.btn-primary{
    background:#2563eb;
    border-color:#2563eb;
    color:#fff
}
.btn-dark{
    background:#111827;
    border-color:#111827;
    color:#fff
}
.btn-danger{
    background:#fff1f2;
    border-color:#fecdd3;
    color:#be123c
}
.btn-success{
    background:#ecfdf5;
    border-color:#bbf7d0;
    color:#047857
}
.btn-small{
    height:29px;
    padding:0 9px;
    font-size:13px;
    border-radius:8px
}
.btn-icon{
    width:32px;
    padding:0
}
.actions{
    display:flex;
    gap:6px;
    align-items:center;
    flex-wrap:wrap
}
.actions form{
    display:inline-flex;
    margin:0
}
.form-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:11px
}
.form-grid.three{
    grid-template-columns:repeat(3,minmax(0,1fr))
}
.form-section{
    border:1px solid #e5edf5;
    border-radius:12px;
    padding:12px;
    background:#fbfdff;
    margin-bottom:12px
}
.section-title{
    font-size:13px;
    font-weight:700;
    margin:0 0 10px;
    color:#1f2937
}
.form-group{
    display:grid;
    gap:6px;
    min-width:0
}
.form-group.full{
    grid-column:1/-1
}
.form-group label{
    font-size:12px;
    font-weight:700;
    color:#475569;
    text-transform:uppercase;
    letter-spacing:.02em
}
.form-control,.form-select{
    width:100%;
    height:38px;
    border:1px solid #cbd5e1;
    border-radius:10px;
    background:#fff;
    padding:0 11px;
    outline:none
}
.form-control:focus,.form-select:focus,textarea:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.10)
}
textarea.form-control{
    height:auto;
    min-height:90px;
    padding:10px 11px;
    resize:vertical
}
.modal{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.38);
    display:none;
    align-items:center;
    justify-content:center;
    padding:18px;
    z-index:100
}
.modal.show{
    display:flex
}
.modal-box{
    background:#fff;
    border:1px solid #d9e2ee;
    border-radius:16px;
    max-width:900px;
    width:100%;
    max-height:92vh;
    overflow:auto
}
.modal-sm{
    max-width:560px
}
.modal-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:14px 15px;
    border-bottom:1px solid #e5edf5;
    position:sticky;
    top:0;
    background:#fff;
    z-index:2
}
.modal-head h3{
    margin:0;
    font-size:18px;
    font-weight:700
}
.modal-body{
    padding:15px
}
.modal-foot{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:8px;
    padding:13px 15px;
    border-top:1px solid #e5edf5;
    position:sticky;
    bottom:0;
    background:#fff
}
.modal-close{
    width:42px;
    height:42px;
    border:none;
    border-radius:12px;
    background:#f8fafc;
    color:#64748b;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
    transition:.2s;
}

.modal-close:hover{
    background:#fee2e2;
    color:#dc2626;
    transform:rotate(90deg);
}
.badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:24px;
    padding:4px 9px;
    border-radius:999px;
    font-weight:700;
    font-size:12px
}
.badge.info{
    background:#dbeafe;
    color:#22c55e;
    border:1px solid #93c5fd;
}

.badge.dark{
    background:#334155;
    color:#fff;
    border:1px solid #1e293b;
}
.badge.success{
    background:#dcfce7;
    color:#166534;
    border:1px solid #86efac;
}

.badge.warning{
    background:#fff7ed;
    color:#c2410c;
    border:1px solid #fdba74;
}

.badge.danger{
    background:#fee2e2;
    color:#b91c1c;
    border:1px solid #fca5a5;
}

.badge.muted{
    background:#e2e8f0;
    color:#475569;
    border:1px solid #cbd5e1;
}
.alert{
    padding:10px 12px;
    border-radius:10px;
    margin-bottom:12px;
    font-weight:800
}
.alert-success{
    background:#ecfdf5;
    color:#047857;
    border:1px solid #bbf7d0
}
.alert-danger{
    background:#fff1f2;
    color:#be123c;
    border:1px solid #fecdd3
}
.alert-info{
    background:#eff6ff;
    color:#1d4ed8;
    border:1px solid #bfdbfe
}
.login-page{
    min-height:100vh;
    display:grid;
    place-items:center;
    padding:20px;
    background:#f5f7fb
}
.login-card{
    width:min(420px,100%);
    background:#fff;
    border:1px solid #d9e2ee;
    border-radius:18px;
    padding:22px
}
.login-card h1{
    margin:0 0 6px;
    font-size:24px
}
.login-card p{
    margin:0 0 18px;
    color:#64748b
}
.ai-box{
    border:1px solid #bfdbfe;
    background:#f8fbff;
    border-radius:12px;
    padding:11px;
    white-space:pre-wrap;
    max-height:300px;
    overflow:auto;
    color:#1f2937
}
.ai-panel{
    display:grid;
    grid-template-columns:260px minmax(0,1fr);
    gap:12px
}
.ai-tools{
    display:grid;
    gap:8px;
    align-content:start
}
.ai-tool{
    border:1px solid #d9e2ee;
    background:#fff;
    border-radius:12px;
    padding:10px;
    text-align:left;
    cursor:pointer
}
.ai-tool b{
    display:block;
    font-size:13px;
    margin-bottom:3px
}
.ai-tool span{
    display:block;
    color:#64748b;
    font-size:12px
}
.ai-tool:hover{
    border-color:#2563eb;
    background:#f8fbff
}
.select2lite{
    position:relative;
    width:100%;
    min-width:0
}
.select2lite-hidden{
    display:none!important
}
.select2lite-btn{
    height:38px;
    border:1px solid #cbd5e1;
    background:#fff;
    border-radius:10px;
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 10px;
    cursor:pointer;
    color:#111827;
    gap:10px
}
.select2lite-btn span{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap
}
.select2lite-panel{
    position:absolute;
    left:0;
    right:0;
    top:calc(100% + 5px);
    background:#fff;
    border:1px solid #cbd5e1;
    border-radius:12px;
    box-shadow:0 12px 28px rgba(15,23,42,.12);
    padding:8px;
    z-index:160;
    display:none
}
.select2lite.open .select2lite-panel{
    display:block
}
.select2lite-search{
    width:100%;
    height:32px;
    border:1px solid #d9e2ee;
    border-radius:8px;
    padding:0 9px;
    margin-bottom:6px
}
.select2lite-list{
    max-height:210px;
    overflow:auto
}
.select2lite-option{
    padding:8px 9px;
    border-radius:8px;
    cursor:pointer
}
.select2lite-option:hover,.select2lite-option.active{
    background:#eef5ff;
    color:#1d4ed8
}
.invoice-page{
    background:#eef2f7
}
.invoice-sheet{
    background:#fff;
    border:1px solid #d9e2ee;
    border-radius:18px;
    padding:28px;
    max-width:880px;
    margin:0 auto;
    color:#111827
}
.invoice-top{
    display:grid;
    grid-template-columns:1.1fr .9fr;
    gap:20px;
    align-items:start;
    padding-bottom:18px;
    border-bottom:3px solid #111827
}
.invoice-logo{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:10px
}
.invoice-logo-mark{
    width:42px;
    height:42px;
    border-radius:12px;
    background:#111827;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700
}
.invoice-company{
    font-size:21px;
    font-weight:700
}
.invoice-muted{
    color:#64748b;
    font-size:13px
}
.invoice-title{
    text-align:right
}
.invoice-title h1{
    margin:0 0 8px;
    font-size:28px;
    letter-spacing:.03em
}
.invoice-code{
    display:inline-flex;
    border:1px solid #111827;
    border-radius:999px;
    padding:6px 12px;
    font-weight:700
}
.invoice-block-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
    margin:18px 0
}
.invoice-block{
    border:1px solid #d9e2ee;
    border-radius:14px;
    padding:13px;
    background:#fbfdff
}
.invoice-block h3{
    margin:0 0 8px;
    font-size:14px;
    text-transform:uppercase
}
.invoice-lines{
    display:grid;
    gap:6px
}
.invoice-line{
    display:grid;
    grid-template-columns:120px 1fr;
    gap:8px
}
.invoice-line span:first-child{
    color:#64748b
}
.invoice-table{
    width:100%;
    border-collapse:collapse;
    margin-top:14px;
    border:1px solid #d9e2ee;
    border-radius:12px;
    overflow:hidden
}
.invoice-table th,.invoice-table td{
    padding:11px 12px;
    border-bottom:1px solid #e5edf5;
    text-align:left
}
.invoice-table th{
    background:#f8fafc;
    text-transform:uppercase;
    font-size:12px;
    color:#64748b
}
.invoice-table td:last-child,.invoice-table th:last-child{
    text-align:right;
    white-space:nowrap
}
.invoice-table tr:last-child td{
    border-bottom:0
}
.invoice-total-box{
    margin-top:14px;
    margin-left:auto;
    width:min(360px,100%);
    border:1px solid #111827;
    border-radius:14px;
    overflow:hidden
}
.invoice-total-row{
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding:10px 12px;
    border-bottom:1px solid #e5edf5
}
.invoice-total-row:last-child{
    border-bottom:0;
    background:#111827;
    color:#fff;
    font-size:17px;
    font-weight:700
}
.invoice-note{
    margin-top:18px;
    border:1px solid #d9e2ee;
    border-radius:14px;
    padding:13px;
    background:#fbfdff
}
.invoice-sign{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    margin-top:32px;
    text-align:center
}
.invoice-sign b{
    display:block;
    margin-bottom:54px
}
.print-only{
    display:none
}
@media(max-width:1280px){
    .stats-grid{
        grid-template-columns:repeat(3,minmax(150px,1fr))
    }
    .dashboard-grid.two{
        grid-template-columns:1fr
    }
}
@media(max-width:760px){
    .sidebar{
        transform:translateX(-100%);
        transition:.2s
    }
    .sidebar.open{
        transform:translateX(0)
    }
    .main{
        margin-left:0;
        width:100%
    }
    .mobile-toggle{
        display:inline-flex
    }
    .content{
        padding:12px
    }
    .topbar{
        padding:0 12px
    }
    .page-title h1{
        font-size:18px
    }
    .stats-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:8px
    }
    .stat-card{
        padding:12px
    }
    .form-grid,.form-grid.three{
        grid-template-columns:1fr
    }
    .toolbar,.filter-form{
        align-items:stretch
    }
    .filter-form input,.filter-form select,.filter-form .select2lite{
        width:100%;
        min-width:100%
    }
    .btn{
        height:31px
    }
    .data-table thead{
        display:none
    }
    .table-wrap{
        border:0;
        overflow:visible;
        background:transparent
    }
    .data-table,.data-table tbody,.data-table tr,.data-table td{
        display:block;
        width:100%
    }
    .data-table tr{
        background:#fff;
        border:1px solid #d9e2ee;
        border-radius:16px;
        margin-bottom:14px;
        padding:12px;
        box-shadow:0 4px 12px rgba(15,23,42,.05);
    }
    .data-table td{
        border:0;
        padding:8px 6px;
        display:flex;
        justify-content:space-between;
        gap:14px
    }
    .data-table td:before{
        content:attr(data-label);
        font-weight:700;
        color:#64748b;
        min-width:112px
    }
    .actions{
        justify-content:flex-end
    }
    .modal{
        padding:10px
    }
    .modal-box{
        max-height:94vh
    }
    .modal-foot{
        flex-wrap:wrap
    }
    .modal-foot .btn{
        flex:0 0 auto
    }
    .ai-panel{
        grid-template-columns:1fr
    }
    .invoice-sheet{
        padding:18px
    }
    .invoice-top,.invoice-block-grid,.invoice-sign{
        grid-template-columns:1fr
    }
    .invoice-title{
        text-align:left
    }
    .invoice-line{
        grid-template-columns:100px 1fr
    }


}
@media(max-width:480px){
    .stats-grid{
        grid-template-columns:1fr
    }
    .top-actions .badge{
        display:none
    }
    .invoice-table th,.invoice-table td{
        padding:9px 8px;
        font-size:13px
    }
}
@media print{
    body{
        background:#fff
    }
    .sidebar,.topbar,.footer,.no-print{
        display:none!important
    }
    .main{
        margin:0!important;
        width:100%!important
    }
    .content{
        padding:0!important;
        background:#fff
    }
    .invoice-sheet{
        border:0;
        border-radius:0;
        max-width:100%;
        padding:0
    }
    .print-only{
        display:block
    }
    .invoice-page{
        background:#fff
    }
    @page{
        size:A4;
        margin:12mm
    }
}
.check-line{
    height:38px;
    display:flex!important;
    align-items:center;
    gap:8px;
    text-transform:none!important;
    letter-spacing:0!important;
    color:#111827!important;
    font-weight:700!important
}
.check-line input{
    width:16px;
    height:16px;
    accent-color:#2563eb;
    flex:0 0 auto
}
.form-actions-inline{
    padding-left:0!important;
    padding-right:0!important;
    justify-content:flex-start!important;
    position:static!important;
    border-top:0!important;
    background:transparent!important
}
.ticket-actions{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.ticket-actions .btn{
    min-width:42px;
    height:34px;
    font-weight:700;
}
.data-table tbody tr{
    transition:.2s;
}

.data-table tbody tr:hover{
    background:#f8fbff;
}

.wallet-chip{
    display:flex;
    align-items:center;
    gap:8px;
    padding:8px 14px;
    border-radius:12px;
    text-decoration:none;
    background:#fff8e6;
    border:1px solid #f6d67a;
    transition:.2s;
}

.wallet-chip:hover{
    background:#fff1c7;
}

.wallet-icon{
    font-size:18px;
}

.wallet-label{
    font-size:12px;
    color:#666;
}

.wallet-money{
    font-size:15px;
    font-weight:700;
    color:#d97706;
}

.user-chip{
    padding:8px 14px;
    border-radius:12px;
    background:#f5f7fb;
    border:1px solid #e5e7eb;
    font-weight:600;
    color:#374151;
}
@media (max-width:768px){

    .topbar{
        padding:10px;
    }

    .topbar .top-actions{
        gap:6px;
    }

    .wallet-label{
        display:none;
    }

    .wallet-chip{
        padding:6px 10px;
        gap:4px;
    }

    .wallet-money{
        font-size:13px;
    }

    .user-chip{
        padding:6px 10px;
        font-size:13px;
        max-width:90px;
        overflow:hidden;
        text-overflow:ellipsis;
        white-space:nowrap;
    }

    .btn-small{
        padding:6px 10px;
        font-size:12px;
    }

    .page-title{
        display:none;
    }
}
.logout-icon{
    display:none;
}
.customer-history .data-table tbody tr:hover{
    background:#eff6ff;
}
#customerModal{
    z-index: 99999 ;
}

#customerModal .modal-box{
    z-index: 100000 ;
}

#bookingModal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);
    z-index:99999;
    display:none;
    justify-content:center;
    align-items:center;
}

#bookingModal .modal-box{
    width:900px;
    max-width:95%;
    max-height:90vh;
    overflow:auto;
    background:#fff;
    border-radius:12px;
}

.booking-section{
    padding:20px;
}

.selected-product{
    display:flex;
    align-items:center;
    gap:15px;
    border:1px solid #ddd;
    border-radius:10px;
    padding:15px;
}

.selected-product-image{
    width:80px;
    height:80px;
    object-fit:contain;
}

.selected-product-info{
    flex:1;
}

.selected-product-name{
    font-weight:700;
    margin-bottom:5px;
}

.selected-product-price{
    color:#e60000;
    font-size:22px;
    font-weight:700;
}

.remove-product-btn{
    border:none;
    background:none;
    cursor:pointer;
    font-size:18px;
}

.btn-select-product{
    margin-top:15px;
    padding:10px 16px;
}


#productSearchModal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);
    z-index:100000;
    display:none;
    justify-content:center;
    align-items:center;
}

#productSearchModal .modal-box{
    width:900px;
    max-width:95%;
    max-height:90vh;
    overflow:auto;
    background:#fff;
    border-radius:12px;
}

.search-product-item{
    display:flex;
    gap:15px;
    padding:12px;
    border-bottom:1px solid #eee;
    cursor:pointer;
}

.search-product-item:hover{
    background:#f8f8f8;
}

.search-product-image{
    width:70px;
    height:70px;
    object-fit:contain;
}

.search-product-name{
    font-weight:600;
}

.search-product-price{
    color:#e60000;
    margin-top:5px;
}
.booking-error{
    background:#fff3cd;
    border:1px solid #ffe69c;
    color:#856404;
    padding:12px;
    border-radius:8px;
    margin-bottom:15px;
}
.booking-body{
    padding:25px;
}

.booking-service{
    display:flex;
    align-items:center;
    gap:18px;
    padding:18px;
    border:1px solid #eee;
    border-radius:12px;
    background:#fafafa;
    margin-bottom:25px;
}

.booking-service-icon{
    width:70px;
    height:70px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:34px;
    border-radius:12px;
    background:#fff;
}

.booking-service-label{
    font-size:12px;
    color:#888;
    margin-bottom:6px;
}

.booking-service-title{
    font-size:20px;
    font-weight:700;
}

.booking-section{
    margin-bottom:25px;
}

.booking-section-title{
    font-size:20px;
    font-weight:700;
    margin-bottom:15px;
}

.booking-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;
}

.booking-grid .form-group{
    margin:0;
}

.booking-grid label,
.booking-section label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
}

#bookingModal .modal-box{
    width:900px;
    max-width:95%;
    border-radius:18px;
}

#bookingModal .modal-foot{
    padding:20px;
}

#bookingModal .btn-book{
    width:100%;
    height:52px;
    font-size:18px;
    border-radius:12px;
}
.booking-success{
    background:#d1fae5;
    border:1px solid #10b981;
    color:#065f46;
    padding:12px;
    border-radius:8px;
    margin-bottom:15px;
}




.lookup-form .form-control{
    flex:1;
}

.empty-box{
    padding:30px;
    text-align:center;
}
.booking-modal{
    position:fixed;
    left:0;
    top:0;
    right:0;
    bottom:0;

    display:none;

    justify-content:center;
    align-items:center;

    width:100vw;
    height:100vh;

    z-index:99999;
}
.booking-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.7);
}
.booking-box{
    position:relative;

    width:min(760px,95vw);

    max-height:90vh;

    overflow:auto;

    background:#fff;

    border-radius:24px;

    padding:20px;

    z-index:2;

    margin:0;
}
.booking-close{
    position:absolute;
    right:15px;
    top:15px;
    width:42px;
    height:42px;
    border:none;
    border-radius:50%;
    background:#f3f4f6;
    cursor:pointer;
}


.booking-service{
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:16px;
    padding:15px;
    margin-bottom:20px;
}

.booking-service-label{
    font-size:12px;
    color:#64748b;
}

.booking-service-title{
    font-weight:700;
    margin-top:5px;
}

.booking-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;
}

.booking-section,
.form-group{
    margin-bottom:10px;
}

.booking-submit{
    width:100%;
    height:52px;
    border:none;
    border-radius:12px;
    background:#ef4444;
    color:#fff;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
}

.booking-success{
    padding:12px;
    background:#dcfce7;
    color:#166534;
    border-radius:10px;
    margin-bottom:15px;
}

.booking-error{
    padding:12px;
    background:#fee2e2;
    color:#991b1b;
    border-radius:10px;
    margin-bottom:15px;
}

@media(max-width:768px){

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

}

@media(max-width:768px){

    .lookup-form{
        flex-direction:column;
    }

}
.ticket-info-row{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:15px;
    margin-bottom:20px;
}

.info-item{
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:12px;
    padding:14px;
}

.info-item span{
    display:block;
    font-size:12px;
    color:#64748b;
    margin-bottom:6px;
}

.info-item strong{
    display:block;
    font-size:15px;
    color:#111827;
}

.money-small{
    color:#dc2626;
    font-size:18px !important;
}

.ticket-symptom{
    border:1px solid #e5e7eb;
    border-radius:12px;
    overflow:hidden;
}

.symptom-title{
    background:#f8fafc;
    padding:12px 15px;
    font-weight:600;
    border-bottom:1px solid #e5e7eb;
}

.symptom-content{
    padding:15px;
    white-space:pre-line;
    line-height:1.7;
}

@media(max-width:768px){

    .ticket-info-row{
        grid-template-columns:1fr 1fr;
    }

}
.ticket-timeline{
    display:flex;
    align-items:center;
    margin:30px 0;
}

.timeline-step{
    display:flex;
    flex-direction:column;
    align-items:center;
    min-width:120px;
}

.timeline-circle{
    width:44px;
    height:44px;
    border-radius:50%;
    background:#e5e7eb;
    color:#64748b;
    font-weight:700;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:16px;
    transition:.2s;
}

.timeline-text{
    margin-top:8px;
    font-size:13px;
    color:#64748b;
    text-align:center;
}

.timeline-line{
    flex:1;
    height:4px;
    background:#e5e7eb;
    margin:0 10px;
    margin-bottom:24px;
}

.timeline-step.done .timeline-circle{
    background:#10b981;
    color:#fff;
}

.timeline-step.done .timeline-text{
    color:#111827;
    font-weight:600;
}

.timeline-line.done{
    background:#10b981;
}
.lookup-hero{
    background:#fff;
    border-radius:24px;
    padding:40px;
    text-align:center;
    margin-bottom:30px;

    border:1px solid #e5e7eb;

    box-shadow:
            0 10px 30px rgba(0,0,0,.04);
}

.lookup-icon{
    width:80px;
    height:80px;
    margin:auto;

    border-radius:50%;

    background:linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
    );

    color:#fff;

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

    font-size:32px;

    margin-bottom:20px;
}

.lookup-hero h1{
    margin:0;
    font-size:38px;
    font-weight:800;
    color:#0f172a;
}

.lookup-hero p{
    margin:10px 0 25px;
    color:#64748b;
    font-size:16px;
}

.lookup-search{
    max-width:700px;
    margin:auto;

    display:flex;

    background:#fff;

    border:2px solid #dbeafe;

    border-radius:60px;

    overflow:hidden;
}

.lookup-search input{
    flex:1;
    border:none;
    padding:18px 25px;
    font-size:16px;
    outline:none;
}

.lookup-search button{
    border:none;

    padding:0 28px;

    background:#2563eb;
    color:#fff;

    font-weight:700;

    cursor:pointer;
}

.lookup-search button:hover{
    background:#1d4ed8;
}

.lookup-note{
    margin-top:15px;
    color:#64748b;
    font-size:14px;
}

.lookup-note i{
    color:#10b981;
    margin-right:5px;
}

.ticket-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:16px;
    padding:24px;
    margin-bottom:20px;
}

.ticket-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-bottom:25px;
}

.ticket-code{
    font-size:24px;
    font-weight:700;
}

.ticket-customer{
    color:#666;
    margin-top:5px;
}

.ticket-progress{
    display:flex;
    gap:10px;
    margin-bottom:25px;
}

.ticket-progress .step{
    flex:1;
    text-align:center;
    padding:12px;
    background:#f3f4f6;
    border-radius:10px;
    font-size:14px;
}

.ticket-progress .step.active{
    background:#10b981;
    color:#fff;
    font-weight:600;
}

.ticket-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}

.ticket-grid .full{
    grid-column:1 / -1;
}

.ticket-grid label{
    display:block;
    font-size:13px;
    color:#666;
    margin-bottom:6px;
}

.ticket-grid p{
    margin:0;
}

.money{
    color:#e53935;
    font-size:22px;
    font-weight:700;
}

.empty-box{
    padding:40px;
    text-align:center;
}

@media(max-width:768px){

    .lookup-form{
        flex-direction:column;
    }

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

    .ticket-progress{
        flex-direction:column;
    }

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

}
.header-actions a i,
.top-actions a i,
.header-right a i{
    font-size:25px;
    margin-right:8px;
}

.booking-success-popup{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.6);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:999999;
}

.booking-success-card{
    width:420px;
    max-width:90vw;
    background:#fff;
    border-radius:20px;
    padding:30px;
    text-align:center;
    box-shadow:0 20px 60px rgba(0,0,0,.2);
}

.success-icon{
    font-size:70px;
    margin-bottom:15px;
}

.booking-success-card h3{
    margin:0 0 10px;
    font-size:24px;
}

.booking-success-card p{
    color:#666;
    margin-bottom:20px;
}
.success-popup{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.65);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:999999;
}

.success-popup-box{
    width:420px;
    max-width:90vw;
    background:#fff;
    border-radius:20px;
    padding:30px;
    text-align:center;
    box-shadow:0 20px 60px rgba(0,0,0,.2);
}

.success-popup-icon{
    font-size:70px;
    margin-bottom:15px;
}

.success-popup-box h3{
    margin:0 0 10px;
}

.success-popup-box p{
    color:#666;
    margin-bottom:20px;
}
@media(max-width:768px){

    #bookingModal .modal-box{
        width:100%;
        max-width:100%;
        max-height:100vh;
        border-radius:0;
    }

    .booking-body{
        padding:15px;
    }

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

    .booking-service{
        padding:12px;
        gap:10px;
    }

    .booking-service-title{
        font-size:16px;
    }

    .booking-section-title{
        font-size:16px;
    }

}
@media(max-width:768px){

    .ticket-timeline{
        flex-direction:column;
        align-items:stretch;
        gap:10px;
    }

    .timeline-line{
        width:4px;
        height:30px;
        margin:auto;
    }

    .timeline-step{
        min-width:auto;
    }

}
@media(max-width:768px){

    .ticket-info-row{
        grid-template-columns:1fr;
    }

}
@media(max-width:768px){

    .header-actions a i,
    .top-actions a i,
    .header-right a i{
        font-size:18px;
        margin-right:4px;
    }

}
@media(max-width:768px){

    .booking-success-card,
    .success-popup-box{
        width:92vw;
        padding:20px;
    }

}
@media(max-width:768px){

    body{
        overflow-x:hidden;
    }

    .container,
    .content,
    .card,
    .modal-box{
        min-width:0;
    }

    .booking-grid,
    .form-grid,
    .form-grid.three{
        grid-template-columns:1fr !important;
    }

    .ticket-info-row{
        grid-template-columns:1fr !important;
    }

    .ticket-grid{
        grid-template-columns:1fr !important;
    }

    .booking-body{
        padding:15px;
    }

    .booking-section{
        margin-bottom:15px;
    }

    .booking-section-title{
        font-size:16px;
    }

    .ticket-code{
        font-size:18px;
    }

    .timeline-step{
        min-width:auto;
    }

    .ticket-progress{
        flex-direction:column;
    }


}
@media(max-width:768px){

    .lookup-hero{
        padding:25px 15px;
    }

    .lookup-hero h1{
        font-size:28px;
    }

    .lookup-search{
        flex-direction:column;
        border-radius:16px;
    }

    .lookup-search button{
        height:50px;
    }

}
.issue-cell{
    width:350px;
    max-width:350px;
}

.issue-text{
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    line-height:1.35;
    max-height:38px;
    color:#374151;
}
.device-cell{
    width:260px;
    max-width:260px;
}

.device-text{
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;

    overflow:hidden;

    line-height:1.4;
    max-height:40px;

    color:#374151;
}
.data-table{
    border-collapse:separate;
    border-spacing:0 8px;
}
.data-table tbody tr{

    background:#fff;

    box-shadow:
            0 1px 3px rgba(0,0,0,.05);

    transition:.2s;

}
.data-table tbody tr:hover{

    background:#f8fbff;

    box-shadow:
            0 4px 12px rgba(37,99,235,.12);

}
.data-table tbody tr td:first-child{

    border-left:1px solid #eef2f7;

    border-radius:12px 0 0 12px;
}

.data-table tbody tr td:last-child{

    border-right:1px solid #eef2f7;

    border-radius:0 12px 12px 0;
}
.data-table thead th{

    position:sticky;
    top:55px; /* dưới toolbar */

    z-index:50;

    background:#2563eb;

    color:#fff;

    font-size:12px;

    text-transform:uppercase;

    letter-spacing:.5px;

    border-bottom:2px solid #e5e7eb;
}
.ticket-mobile-list{
    display:none;
}
.mobile-claim-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;

    min-width:110px;
    height:38px;
    padding:0 16px;

    border:none;
    border-radius:10px;

    background:linear-gradient(135deg,#2563eb,#1d4ed8);
    color:#fff;

    font-size:14px;
    font-weight:700;

    cursor:pointer;
    transition:.25s;

    box-shadow:0 4px 12px rgba(37,99,235,.25);
}

.mobile-claim-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 18px rgba(37,99,235,.35);
}

.mobile-claim-btn:active{
    transform:translateY(0);
    box-shadow:0 2px 8px rgba(37,99,235,.25);
}
@media(max-width:768px){
    .card{

        padding:0;
        margin:0;
        border:none;
        border-radius:0;
        background:transparent;
        box-shadow:none;

    }

    .toolbar{

        margin-bottom:10px;

    }

    .ticket-table-wrap{
        display:none;
    }

    .ticket-mobile-list{
        display:block;
        padding:0px;
        background:#f3f6fb;
    }

    .mobile-ticket-card{

        background:#fff;

        border-radius:18px;

        overflow:hidden;

        margin-bottom:14px;

        box-shadow:
                0 3px 12px rgba(0,0,0,.08);

        border:0px solid #e5e7eb;
    }

    .mobile-ticket-header{

        display:flex;

        justify-content:space-between;

        align-items:center;

        padding:10px 14px;

        color:#fff;

        font-size:14px;

        font-weight:600;
    }

    .mobile-ticket-header strong{
        font-size:15px;
        font-weight:700;
    }

    /* Chờ tiếp nhận */
    .status-pending{
        background:#2563eb;
        color:#fff;
    }

    /* Đang xử lý */
    .status-processing{
        background:#f59e0b;
        color:#fff;
    }

    /* Hoàn thành */
    .status-completed{
        background:#22c55e;
        color:#fff;
    }

    /* Đã thanh toán */
    .status-paid{
        background:#15803d;
        color:#fff;
    }

    /* Đã hủy */
    .status-cancelled{
        background:#dc2626;
        color:#fff;
    }
    .mobile-ticket-title{

        padding:16px 20px;

        font-size:15px;

        line-height:1.55;

        font-weight:700;

        color:#111827;
    }

    .mobile-divider{

        height:1px;

        background:#e5e7eb;

        margin:0 20px;
    }

    .customer-name{

        padding:16px 20px 0;

        font-size:15px;

        color:#64748b;

        font-weight:500;
    }

    .customer-phone{

        padding:2px 20px 12px;

        font-size:16px;

        font-weight:700;

        color:#0f172a;
    }

    .customer-meta{

        padding:0 20px;

        font-size:14px;

        color:#475569;

        line-height:1.8;
    }

    .customer-meta div{
        margin-bottom:3px;
    }

    .mobile-price-row{

        display:flex;

        align-items:center;

        justify-content:space-between;

        padding:0 20px 16px;

        gap:10px;
    }

    .mobile-price{

        font-size:26px;

        font-weight:800;

        color:#dc2626;

        line-height:1;
    }

    .mobile-status-badge{

        display:inline-flex;
        align-items:center;
        gap:6px;

        padding:0;

        border:none;

        border-radius:0;

        background:transparent;

        font-size:14px;

        font-weight:700;

    }
    .mobile-status-badge.status-pending{
        color:#2563eb;
    }

    .mobile-status-badge.status-processing{
        color:#f59e0b;
    }

    .mobile-status-badge.status-completed{
        color:#22c55e;
    }

    .mobile-status-badge.status-paid{
        color:#15803d;
    }

    .mobile-status-badge.status-cancelled{
        color:#dc2626;
    }

    .mobile-status-box{

        margin:0 20px 16px;

        background:#f8fafc;

        border-radius:14px;

        padding:12px 14px;
    }

    .mobile-status-row{

        display:flex;

        align-items:center;

        justify-content:space-between;
    }

    .mobile-status-row span{

        font-size:14px;

        color:#64748b;

        font-weight:600;
    }


    .mobile-actions{

        display:flex;

        justify-content:flex-end;

        gap:8px;

        padding:0 20px 18px;

    }

    .mobile-actions .btn{

        flex:1;

        height:42px;

        display:flex;

        align-items:center;

        justify-content:center;

        font-size:14px;

        font-weight:600;

        border-radius:10px;
    }
    .mobile-bottom-row{

        display:flex;
        justify-content:space-between;
        align-items:center;

        margin-top:14px;

    }

    .mobile-bottom-row{

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

        padding:12px 16px 6px;

    }

    .mobile-claim-btn{

        display:inline-flex;
        align-items:center;
        justify-content:center;
        gap:6px;

        height:36px;

        padding:0 18px;

        border:none;
        border-radius:8px;

        background:#2563eb;

        color:#fff;

        font-size:14px;
        font-weight:600;

        cursor:pointer;

        transition:.2s;

        box-shadow:0 2px 8px rgba(37,99,235,.2);

    }

    .mobile-claim-btn:hover{

        background:#1d4ed8;

        transform:translateY(-1px);

    }
}
.part-name{
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;

    overflow:hidden;
    text-overflow:ellipsis;

    line-height:1.45;
    max-width:280px;

    font-weight:600;
}

.part-category{

    margin-top:4px;

    color:#64748b;

    font-size:13px;

    display:-webkit-box;
    -webkit-line-clamp:1;
    -webkit-box-orient:vertical;

    overflow:hidden;
    text-overflow:ellipsis;

}
.pagination{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    margin:20px 0;
    flex-wrap:wrap;
}

.page-btn{
    padding:8px 14px;
    border:1px solid #ddd;
    border-radius:6px;
    text-decoration:none;
    color:#333;
    background:#fff;
}

.page-btn:hover{
    background:#f3f3f3;
}

.page-btn.active{
    background:#0d6efd;
    color:#fff;
    border-color:#0d6efd;
}

/* ===== Footer ===== */

.site-footer{
    margin-top:auto;
    background:#202124;
    color:#ccc;
    padding:12px 0;
    font-size:14px;
}

.site-footer .container{
    display:flex;
    flex-direction:column;
    align-items:center;
}

.footer-links{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:8px;
}

.footer-links span{
    color:#666;
}

.footer-links a{
    color:#ddd;
    text-decoration:none;
    transition:.2s;
}

.footer-links a:hover{
    color:#fff;
}

.footer-copy{
    color:#aaa;
    text-align:center;
    line-height:1.5;
}

.footer-copy strong{
    color:#fff;
}

@media (max-width:768px){

    .site-footer{
        padding:10px 0;
    }

    .footer-links{
        gap:6px;
    }

}
/* ===============================
   SIDEBAR NEW
==================================*/


.sidebar-user{

    display:flex;
    align-items:center;
    gap:14px;

    padding:14px;

    background:#1d1d1d;

    border-radius:18px;

    margin-bottom:18px;

}

.sidebar-avatar{

    width:58px;
    height:58px;

    border-radius:50%;

    overflow:hidden;

    flex-shrink:0;

    background:#2d2d2d;

}

.sidebar-avatar img{

    width:100%;
    height:100%;

    object-fit:cover;

}

.avatar-default{

    width:100%;
    height:100%;

    display:flex;

    align-items:center;
    justify-content:center;

    font-size:24px;
    font-weight:700;

    color:#fff;

}

.sidebar-user-info{

    flex:1;
    min-width:0;

}

.sidebar-name{

    font-size:17px;

    font-weight:700;

    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;

}

.sidebar-role{

    margin-top:4px;

    color:#8f8f8f;

    font-size:13px;

}

.sidebar-menu{

    flex:1;

}

.sidebar-item{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:16px 18px;

    color:#fff;

    text-decoration:none;

    border-radius:16px;

    margin-bottom:10px;

    transition:.2s;

}

.sidebar-item:hover{

    background:#1d1d1d;

    transform:translateX(3px);

}

.sidebar-item.active{

    background:#2d2d2d;

}

.sidebar-left{

    display:flex;

    align-items:center;

    gap:16px;

}

.sidebar-left i{

    width:22px;

    text-align:center;

    font-size:18px;

}

.sidebar-item .fa-chevron-right{

    color:#7a7a7a;

    font-size:13px;

}

.sidebar-bottom{

    margin-top:25px;

    border-top:1px solid rgba(255,255,255,.08);

    padding-top:20px;

}

.logout-btn{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    height:52px;

    border-radius:1px;

    background:#ff2d68;

    color:#fff;

    font-size:16px;

    font-weight:700;

    text-decoration:none;

    transition:.2s;

}

.logout-btn:hover{

    background:#ff4b7d;

    color:#fff;

}
.mobile-nav{
    display:none;
}

@media (max-width:768px){

    body{
        padding-bottom:70px;
    }

    .mobile-nav{
        position:fixed;
        left:0;
        right:0;
        bottom:0;
        z-index:99;

        height:68px;

        background:#fff;

        display:flex;

        border-top:1px solid #e6e6e6;

        box-shadow:0 -4px 18px rgba(0,0,0,.08);
    }

    .mobile-nav a{

        flex:1;

        display:flex;
        flex-direction:column;
        justify-content:center;
        align-items:center;

        text-decoration:none;

        color:#666;

        transition:.2s;

        position:relative;

    }

    .mobile-nav a i{

        font-size:22px;

        margin-bottom:4px;

    }

    .mobile-nav a span{

        font-size:11px;

        font-weight:600;

    }

    .mobile-nav a.active{

        color:#e53935;

    }

    .mobile-nav a.active::before{

        content:"";

        position:absolute;

        top:0;

        left:18%;

        width:64%;

        height:3px;

        border-radius:20px;

        background:#e53935;

    }

    .mobile-nav a:active{

        background:#f5f5f5;

    }
}
/* Floating Contact */

.floating-contact{
    position:fixed;
    right:20px;
    bottom:90px;
    display:flex;
    flex-direction:column;
    gap:12px;
    z-index:9999;
}

.fc-btn{
    width:58px;
    height:58px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    color:#fff;
    font-size:28px;
    box-shadow:0 8px 24px rgba(0,0,0,.2);
    transition:.25s;
}

.fc-btn:hover{
    transform:translateY(-4px) scale(1.08);
}

.fc-btn.zalo{
    background:#0084ff;
    font-weight:700;
    font-size:24px;
    font-family:Arial,sans-serif;
}

.fc-btn.messenger{
    background:linear-gradient(135deg,#00B2FF,#006AFF,#A033FF);
    font-size:30px;
}

.fc-btn{
    animation:floatBtn 2.8s infinite;
}

.fc-btn:nth-child(2){
    animation-delay:.8s;
}

@keyframes floatBtn{
    0%,100%{
        transform:translateY(0);
    }
    50%{
        transform:translateY(-5px);
    }
}
.back-top{
    background:#ff0000;
    opacity:0;
    visibility:hidden;
    transform:translateY(20px);
    transition:.3s;
}

.back-top.show{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}