*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    min-height:100vh;

    background:
        linear-gradient(
            135deg,
            #111827,
            #312e81,
            #2563eb
        );
}


/* LOGIN PAGE */

.login-page{
    min-height:100vh;

    display:flex;

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

    padding:25px;
}


/* LOGIN CARD */

.login-card{
    width:100%;
    max-width:420px;

    background:white;

    padding:40px 35px;

    border-radius:22px;

    box-shadow:
        0 20px 60px
        rgba(0,0,0,0.25);
}


/* BRAND */

.brand{
    text-align:center;

    margin-bottom:30px;
}

.brand h1{
    color:#2563eb;

    font-size:30px;

    margin-bottom:7px;
}

.brand p{
    color:#6b7280;

    font-size:14px;
}


/* ADMIN TITLE */

.admin-title{
    text-align:center;

    margin-bottom:30px;
}

.admin-title h2{
    font-size:25px;

    margin-bottom:7px;

    color:#111827;
}

.admin-title p{
    color:#6b7280;

    font-size:14px;
}


/* INPUT */

.input-group{
    margin-bottom:20px;
}

.input-group label{
    display:block;

    margin-bottom:8px;

    font-weight:bold;

    color:#374151;
}

.input-group input{
    width:100%;

    padding:14px 15px;

    border:
        1px solid
        #d1d5db;

    border-radius:10px;

    font-size:15px;

    outline:none;
}

.input-group input:focus{
    border-color:#2563eb;

    box-shadow:
        0 0 0 3px
        rgba(37,99,235,0.12);
}


/* PASSWORD */

.password-box{
    position:relative;
}

.password-box input{
    padding-right:70px;
}

.password-box button{
    position:absolute;

    right:10px;
    top:50%;

    transform:
        translateY(-50%);

    border:none;

    background:transparent;

    color:#2563eb;

    cursor:pointer;

    font-weight:bold;
}


/* LOGIN BUTTON */

.login-btn{
    width:100%;

    padding:14px;

    border:none;

    border-radius:10px;

    background:#2563eb;

    color:white;

    font-size:16px;

    font-weight:bold;

    cursor:pointer;

    transition:0.3s;
}

.login-btn:hover{
    transform:
        translateY(-2px);

    background:#1d4ed8;
}


/* MESSAGE */

.message{
    min-height:24px;

    text-align:center;

    margin-top:15px;

    font-weight:bold;
}


/* BACK */

.back-link{
    display:block;

    text-align:center;

    margin-top:20px;

    text-decoration:none;

    color:#4b5563;
}

.back-link:hover{
    color:#2563eb;
}


/* MOBILE */

@media(max-width:500px){

    .login-card{
        padding:30px 22px;
    }

    .brand h1{
        font-size:26px;
    }

}

/* =========================
   ADMIN DASHBOARD
========================= */

.dashboard-body{
    min-height:100vh;
    background:#f4f7fb;
}

.dashboard-layout{
    display:flex;
    min-height:100vh;
}


/* SIDEBAR */

.sidebar{
    width:250px;
    background:#111827;
    color:white;

    padding:25px 18px;

    display:flex;
    flex-direction:column;

    position:fixed;
    left:0;
    top:0;
    bottom:0;
}

.sidebar-brand{
    padding:5px 10px 25px;
}

.sidebar-brand h2{
    font-size:22px;
}

.sidebar-brand p{
    color:#9ca3af;
    font-size:13px;
    margin-top:5px;
}

.sidebar-menu{
    display:flex;
    flex-direction:column;
    gap:7px;
}

.sidebar-menu a{
    text-decoration:none;
    color:#d1d5db;

    padding:12px 14px;
    border-radius:9px;

    transition:0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active{
    background:#2563eb;
    color:white;
}

.logout-btn{
    margin-top:auto;

    text-align:center;
    text-decoration:none;

    background:#dc2626;
    color:white;

    padding:12px;

    border-radius:9px;
}


/* MAIN */

.dashboard-main{
    width:100%;
    margin-left:250px;
    padding:30px;
}


/* TOPBAR */

.dashboard-topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-bottom:30px;
}

.dashboard-topbar h1{
    font-size:30px;
    color:#111827;
}

.dashboard-topbar p{
    color:#6b7280;
    margin-top:5px;
}

.admin-profile{
    background:white;
    padding:12px 18px;
    border-radius:10px;
    font-weight:bold;

    box-shadow:0 4px 15px rgba(0,0,0,0.08);
}


/* CARDS */

.dashboard-cards{
    display:grid;

    grid-template-columns:
        repeat(4,1fr);

    gap:18px;

    margin-bottom:30px;
}

.stat-card{
    background:white;

    padding:22px;

    border-radius:16px;

    box-shadow:
        0 5px 20px rgba(0,0,0,0.07);

    transition:0.3s;
}

.stat-card:hover{
    transform:translateY(-4px);
}

.stat-card span{
    color:#6b7280;
    font-size:14px;
}

.stat-card h2{
    margin-top:10px;

    font-size:28px;

    color:#111827;
}

.profit-card{
    border-left:5px solid #16a34a;
}


/* LOWER BOXES */

.dashboard-grid{
    display:grid;

    grid-template-columns:
        repeat(2,1fr);

    gap:20px;
}

.dashboard-box{
    min-height:220px;

    background:white;

    padding:24px;

    border-radius:16px;

    box-shadow:
        0 5px 20px rgba(0,0,0,0.07);
}

.dashboard-box h3{
    margin-bottom:20px;
    color:#111827;
}

.empty-text{
    color:#9ca3af;
}


/* TABLET */

@media(max-width:1100px){

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

}


/* MOBILE */

@media(max-width:768px){

    .dashboard-layout{
        display:block;
    }

    .sidebar{
        width:100%;
        height:auto;

        position:relative;
    }

    .sidebar-menu{
        display:grid;

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

    .logout-btn{
        margin-top:20px;
    }

    .dashboard-main{
        margin-left:0;
        padding:20px;
    }

    .dashboard-topbar{
        flex-direction:column;
        align-items:flex-start;
        gap:15px;
    }

    .dashboard-cards{
        grid-template-columns:1fr;
    }

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

}

/* =========================
   CUSTOMER MANAGEMENT
========================= */

.customer-form-box,
.customer-list-box{
    background:white;

    padding:25px;

    border-radius:16px;

    box-shadow:
        0 5px 20px
        rgba(0,0,0,0.07);

    margin-bottom:25px;
}


.customer-form-box h2,
.customer-list-box h2{
    color:#111827;
    margin-bottom:22px;
}


.form-grid{
    display:grid;

    grid-template-columns:
        repeat(2,1fr);

    gap:18px;
}


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


.input-group select{
    width:100%;

    padding:14px 15px;

    border:
        1px solid #d1d5db;

    border-radius:10px;

    font-size:15px;

    background:white;

    outline:none;
}


.input-group select:focus{
    border-color:#2563eb;

    box-shadow:
        0 0 0 3px
        rgba(37,99,235,0.12);
}


.customer-save-btn{
    margin-top:22px;

    padding:14px 25px;

    border:none;

    border-radius:10px;

    background:#2563eb;

    color:white;

    font-size:15px;

    font-weight:bold;

    cursor:pointer;
}


.customer-save-btn:hover{
    background:#1d4ed8;
}


.customer-message{
    margin-top:15px;
    font-weight:bold;
}


.customer-list-header{
    display:flex;

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

    margin-bottom:20px;
}


.customer-list-header h2{
    margin-bottom:5px;
}


.customer-list-header p{
    color:#6b7280;
}


.refresh-btn{
    border:none;

    background:#111827;
    color:white;

    padding:10px 18px;

    border-radius:9px;

    cursor:pointer;
}


.table-wrapper{
    width:100%;

    overflow-x:auto;
}


.customer-table{
    width:100%;

    border-collapse:collapse;

    min-width:700px;
}


.customer-table th,
.customer-table td{
    text-align:left;

    padding:14px;

    border-bottom:
        1px solid #e5e7eb;
}


.customer-table th{
    background:#f9fafb;

    color:#374151;
}


.customer-table td{
    color:#4b5563;
}


.customer-table tbody tr:hover{
    background:#f9fafb;
}


@media(max-width:768px){

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

    .full-input{
        grid-column:auto;
    }

    .customer-list-header{
        align-items:flex-start;
        gap:15px;
        flex-direction:column;
    }

}

/* =========================
   BOOKING MANAGEMENT
========================= */

.booking-form-box{
    background:white;

    padding:25px;

    border-radius:16px;

    box-shadow:
        0 5px 20px
        rgba(0,0,0,0.07);

    margin-bottom:25px;
}


.booking-form-box h2{
    margin-bottom:25px;
    color:#111827;
}


.form-section-title{
    margin-top:30px;
    margin-bottom:18px;

    padding-bottom:10px;

    border-bottom:
        1px solid #e5e7eb;

    color:#111827;
}


.booking-check-grid{
    display:grid;

    grid-template-columns:
        repeat(2,1fr);

    gap:15px;

    margin-bottom:20px;
}


.check-card{
    display:flex;
    align-items:center;

    gap:10px;

    padding:15px;

    border:
        1px solid #dbe2ea;

    border-radius:12px;

    background:#f9fafb;

    cursor:pointer;
}


.check-card input{
    width:18px;
    height:18px;
}


.due-preview{
    padding:14px 15px;

    border-radius:10px;

    background:#f3f4f6;

    font-size:18px;

    font-weight:bold;

    color:#dc2626;
}


@media(max-width:768px){

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

}

/* =========================
   INVENTORY MANAGEMENT
========================= */

.inventory-summary{
    display:grid;

    grid-template-columns:
        repeat(5,1fr);

    gap:15px;

    margin-bottom:25px;
}


.inventory-summary-card{
    background:white;

    padding:20px;

    border-radius:15px;

    box-shadow:
        0 5px 20px
        rgba(0,0,0,0.07);
}


.inventory-summary-card span{
    color:#6b7280;

    font-size:14px;
}


.inventory-summary-card h2{
    margin-top:10px;

    color:#111827;

    font-size:27px;
}


.inventory-form-box{
    background:white;

    padding:25px;

    border-radius:16px;

    box-shadow:
        0 5px 20px
        rgba(0,0,0,0.07);

    margin-bottom:25px;
}


.inventory-form-box h2{
    margin-bottom:25px;

    color:#111827;
}


@media(max-width:1100px){

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

}


@media(max-width:768px){

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

}


@media(max-width:480px){

    .inventory-summary{
        grid-template-columns:1fr;
    }

}

/* =========================
   LABOUR MANAGEMENT
========================= */

.labour-summary{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:15px;
    margin-bottom:25px;
}


.labour-summary-card{
    background:white;
    padding:20px;
    border-radius:15px;

    box-shadow:
        0 5px 20px
        rgba(0,0,0,0.07);
}


.labour-summary-card span{
    color:#6b7280;
    font-size:14px;
}


.labour-summary-card h2{
    margin-top:10px;
    font-size:27px;
    color:#111827;
}


.labour-form-box{
    background:white;
    padding:25px;
    border-radius:16px;

    box-shadow:
        0 5px 20px
        rgba(0,0,0,0.07);

    margin-bottom:25px;
}


.labour-form-box h2{
    margin-bottom:25px;
}


.labour-preview{
    padding:14px 15px;

    background:#f3f4f6;

    border-radius:10px;

    font-size:18px;
    font-weight:bold;

    color:#111827;
}


.due-labour-preview{
    color:#dc2626;
}


@media(max-width:900px){

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

}


@media(max-width:480px){

    .labour-summary{
        grid-template-columns:1fr;
    }

}

/* =========================
   EXPENSE MANAGEMENT
========================= */

.expense-summary{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:15px;
    margin-bottom:25px;
}


.expense-summary-card{
    background:white;
    padding:20px;
    border-radius:15px;

    box-shadow:
        0 5px 20px
        rgba(0,0,0,0.07);
}


.expense-summary-card span{
    color:#6b7280;
    font-size:14px;
}


.expense-summary-card h2{
    margin-top:10px;
    font-size:27px;
    color:#111827;
}


.expense-form-box{
    background:white;
    padding:25px;
    border-radius:16px;

    box-shadow:
        0 5px 20px
        rgba(0,0,0,0.07);

    margin-bottom:25px;
}


.expense-form-box h2{
    margin-bottom:25px;
}


@media(max-width:900px){

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

}


@media(max-width:480px){

    .expense-summary{
        grid-template-columns:1fr;
    }

}

/* =========================
   PAYMENT MANAGEMENT
========================= */

.payment-booking-box{
    background:white;

    padding:25px;

    border-radius:16px;

    box-shadow:
        0 5px 20px
        rgba(0,0,0,0.07);

    margin-bottom:20px;
}


.payment-booking-box h2{
    margin-bottom:20px;

    color:#111827;
}


.payment-summary{
    display:grid;

    grid-template-columns:
        repeat(4,1fr);

    gap:15px;

    margin-bottom:20px;
}


.payment-summary-card{
    background:white;

    padding:20px;

    border-radius:15px;

    box-shadow:
        0 5px 20px
        rgba(0,0,0,0.07);
}


.payment-summary-card span{
    color:#6b7280;

    font-size:14px;
}


.payment-summary-card h2{
    margin-top:10px;

    font-size:26px;

    color:#111827;
}


.payment-summary-card:nth-child(3) h2{
    color:#dc2626;
}


.payment-status-text{
    font-size:20px !important;
}


.payment-customer-info{
    background:#eff6ff;

    border-left:
        5px solid #2563eb;

    padding:18px 20px;

    border-radius:12px;

    margin-bottom:20px;

    color:#374151;
}


.payment-customer-info strong{
    color:#111827;
}


.payment-form-box{
    background:white;

    padding:25px;

    border-radius:16px;

    box-shadow:
        0 5px 20px
        rgba(0,0,0,0.07);

    margin-bottom:25px;
}


.payment-form-box h2{
    margin-bottom:25px;

    color:#111827;
}


@media(max-width:900px){

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

}


@media(max-width:480px){

    .payment-summary{
        grid-template-columns:1fr;
    }

}

/* =========================
   INVOICE MANAGEMENT
========================= */

.invoice-control-box{
    background:white;
    padding:25px;
    border-radius:16px;

    box-shadow:
        0 5px 20px
        rgba(0,0,0,0.07);

    margin-bottom:25px;
}


.invoice-control-box .input-group{
    max-width:600px;
}


.invoice-print-btn{
    margin-top:10px;
    margin-left:10px;

    padding:14px 25px;

    border:none;
    border-radius:10px;

    background:#16a34a;
    color:white;

    font-size:15px;
    font-weight:bold;

    cursor:pointer;
}


.invoice-print-btn:disabled{
    background:#9ca3af;
    cursor:not-allowed;
}


/* INVOICE PAPER */

.invoice-paper{
    background:white;

    max-width:950px;

    margin:0 auto;

    padding:45px;

    border-radius:10px;

    box-shadow:
        0 8px 30px
        rgba(0,0,0,0.08);
}


.invoice-business-header{
    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    gap:20px;
}


.invoice-business-header h1{
    color:#1d4ed8;

    font-size:30px;

    margin-bottom:5px;
}


.invoice-business-header p{
    color:#6b7280;
}


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


.invoice-title h2{
    font-size:30px;

    color:#111827;

    margin-bottom:10px;
}


.invoice-title p{
    margin-top:5px;
}


.invoice-line{
    height:3px;

    background:#2563eb;

    margin:25px 0;
}


/* CUSTOMER EVENT INFO */

.invoice-info-grid{
    display:grid;

    grid-template-columns:
        repeat(2,1fr);

    gap:20px;

    margin-bottom:30px;
}


.invoice-info-box{
    background:#f8fafc;

    padding:20px;

    border-radius:10px;
}


.invoice-info-box h3{
    margin-bottom:12px;

    color:#111827;
}


.invoice-info-box p{
    margin:8px 0;

    color:#4b5563;
}


/* INVOICE TABLE */

.invoice-section{
    margin-top:30px;
}


.invoice-section h3{
    margin-bottom:15px;
}


.invoice-table{
    width:100%;

    border-collapse:collapse;
}


.invoice-table th{
    background:#111827;

    color:white;

    padding:12px;

    text-align:left;
}


.invoice-table td{
    padding:12px;

    border-bottom:
        1px solid #e5e7eb;
}


/* PAYMENT AREA */

.invoice-payment-area{
    display:flex;

    justify-content:flex-end;

    margin-top:30px;
}


.invoice-payment-box{
    width:100%;

    max-width:400px;

    background:#f8fafc;

    padding:20px;

    border-radius:10px;
}


.invoice-payment-box div{
    display:flex;

    justify-content:space-between;

    padding:9px 0;

    border-bottom:
        1px solid #e5e7eb;
}


.invoice-payment-box div:last-child{
    border-bottom:none;
}


.invoice-due{
    color:#dc2626;
}


/* NOTES */

.invoice-notes{
    margin-top:30px;

    padding:15px;

    background:#f9fafb;

    border-radius:8px;
}


/* FOOTER */

.invoice-footer{
    display:flex;

    justify-content:space-between;

    align-items:flex-end;

    margin-top:60px;
}


.signature-box{
    min-width:200px;

    text-align:center;
}


.signature-line{
    border-top:
        1px solid #111827;

    margin-bottom:8px;
}


/* MOBILE */

@media(max-width:768px){

    .invoice-paper{
        padding:22px;
    }

    .invoice-business-header{
        flex-direction:column;
    }

    .invoice-title{
        text-align:left;
    }

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

    .invoice-footer{
        flex-direction:column;

        align-items:flex-start;

        gap:50px;
    }

    .invoice-print-btn{
        margin-left:0;
    }

}


/* =========================
   PRINT INVOICE
========================= */

@media print{

    body{
        background:white !important;
    }

    .no-print{
        display:none !important;
    }

    .dashboard-main{
        margin-left:0 !important;

        padding:0 !important;
    }

    .invoice-main{
        width:100%;
    }

    .invoice-paper{
        max-width:none;

        width:100%;

        margin:0;

        padding:20px;

        box-shadow:none;

        border-radius:0;
    }

    .table-wrapper{
        overflow:visible;
    }

    .invoice-table{
        min-width:0;
    }

}

/* =====================================================
   AUTHORIZED SIGNATURE UPLOAD
===================================================== */

.signature-upload-panel{

    margin-top:18px;

    padding:15px;

    border:1px solid #dbeafe;

    border-radius:12px;

    background:#f8fafc;
}


.signature-upload-info{

    margin-bottom:10px;
}


.signature-upload-info label{

    display:block;

    margin-bottom:4px;

    color:#172554;

    font-size:14px;

    font-weight:800;
}


.signature-upload-info small{

    color:#6b7280;

    font-size:12px;
}


.signature-upload-row{

    display:flex;

    align-items:center;

    gap:10px;

    flex-wrap:wrap;
}


.signature-upload-row input[type="file"]{

    flex:1;

    min-width:220px;

    min-height:42px;

    padding:8px;

    background:white;

    border:1px solid #d1d5db;

    border-radius:8px;
}


.signature-remove-btn{

    min-height:42px;

    padding:9px 14px;

    border:none;

    border-radius:8px;

    background:#fee2e2;

    color:#b91c1c;

    font-weight:700;

    cursor:pointer;
}


.signature-remove-btn:hover{

    background:#fecaca;
}


/* INVOICE SIGNATURE IMAGE */

.signature-space{

    display:flex;

    align-items:flex-end;

    justify-content:center;
}


.signature-space.has-signature{

    height:42px;
}


.authorized-signature-image{

    display:block;

    max-width:155px;

    max-height:38px;

    object-fit:contain;

    margin:0 auto 2px;
}


.authorized-signature-image[hidden]{

    display:none;
}


/* MOBILE */

@media(max-width:768px){

    .signature-upload-row{

        flex-direction:column;

        align-items:stretch;
    }


    .signature-upload-row input[type="file"]{

        width:100%;

        min-width:0;
    }


    .signature-remove-btn{

        width:100%;
    }

}


/* PRINT */

@media print{

    .signature-space.has-signature{

        height:38px !important;
    }


    .authorized-signature-image{

        max-width:150px !important;

        max-height:34px !important;
    }


    .compact-invoice
    .signature-space.has-signature{

        height:33px !important;
    }


    .compact-invoice
    .authorized-signature-image{

        max-height:29px !important;
    }


    .extra-compact-invoice
    .signature-space.has-signature{

        height:28px !important;
    }


    .extra-compact-invoice
    .authorized-signature-image{

        max-height:24px !important;
    }

}


/* =========================
   ENQUIRY MANAGEMENT
========================= */

.enquiry-summary{
    display:grid;

    grid-template-columns:
        repeat(4,1fr);

    gap:15px;

    margin-bottom:25px;
}


.enquiry-summary-card{
    background:white;

    padding:20px;

    border-radius:15px;

    box-shadow:
        0 5px 20px
        rgba(0,0,0,0.07);
}


.enquiry-summary-card span{
    color:#6b7280;

    font-size:14px;
}


.enquiry-summary-card h2{
    margin-top:10px;

    font-size:27px;

    color:#111827;
}


.enquiry-filter-box{
    background:white;

    padding:20px;

    border-radius:15px;

    margin-bottom:25px;

    box-shadow:
        0 5px 20px
        rgba(0,0,0,0.07);

    display:flex;

    justify-content:space-between;

    align-items:flex-end;

    gap:20px;
}


.enquiry-filter-box .input-group{
    width:100%;

    max-width:300px;

    margin-bottom:0;
}


/* ENQUIRY CARD */

.enquiry-card{
    border:
        1px solid #e5e7eb;

    border-radius:15px;

    padding:20px;

    margin-bottom:18px;

    background:#ffffff;
}


.enquiry-card-top{
    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    gap:15px;

    margin-bottom:15px;
}


.enquiry-card h3{
    margin-bottom:5px;

    color:#111827;
}


.enquiry-date{
    font-size:13px;

    color:#6b7280;
}


.enquiry-details{
    display:grid;

    grid-template-columns:
        repeat(2,1fr);

    gap:10px;

    margin-bottom:15px;
}


.enquiry-details p{
    color:#4b5563;
}


.enquiry-services-list{
    margin:15px 0;

    padding:12px;

    border-radius:10px;

    background:#f8fafc;
}


.enquiry-message-box{
    margin:15px 0;

    padding:14px;

    background:#eff6ff;

    border-radius:10px;
}


.enquiry-actions{
    display:grid;

    grid-template-columns:
        1fr 2fr auto;

    gap:12px;

    align-items:end;

    margin-top:18px;
}


.enquiry-actions select,
.enquiry-actions input{
    width:100%;

    padding:12px;

    border:
        1px solid #d1d5db;

    border-radius:9px;
}


.enquiry-update-btn{
    padding:12px 18px;

    border:none;

    border-radius:9px;

    background:#2563eb;

    color:white;

    font-weight:bold;

    cursor:pointer;
}


.enquiry-update-btn:hover{
    background:#1d4ed8;
}


/* STATUS */

.status-badge{
    display:inline-block;

    padding:7px 12px;

    border-radius:20px;

    font-size:13px;

    font-weight:bold;

    background:#f3f4f6;

    color:#374151;
}


@media(max-width:900px){

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

}


@media(max-width:768px){

    .enquiry-filter-box{
        flex-direction:column;

        align-items:stretch;
    }

    .enquiry-filter-box .input-group{
        max-width:none;
    }

    .enquiry-details{
        grid-template-columns:1fr;
    }

    .enquiry-actions{
        grid-template-columns:1fr;
    }

}


@media(max-width:480px){

    .enquiry-summary{
        grid-template-columns:1fr;
    }

    .enquiry-card-top{
        flex-direction:column;
    }

}
/* =========================
   ENQUIRY TO BOOKING
========================= */

.conversion-area{
    margin-top:20px;

    padding-top:18px;

    border-top:
        1px solid #e5e7eb;
}


.convert-toggle-btn{
    padding:12px 20px;

    border:none;

    border-radius:10px;

    background:#16a34a;

    color:white;

    font-weight:bold;

    cursor:pointer;
}


.convert-toggle-btn:hover{
    background:#15803d;
}


.convert-booking-form{
    display:none;

    margin-top:20px;

    padding:22px;

    background:#f8fafc;

    border:
        1px solid #dbe2ea;

    border-radius:14px;
}


.convert-booking-form h3{
    margin-bottom:20px;

    color:#111827;
}


.convert-grid{
    display:grid;

    grid-template-columns:
        repeat(2,1fr);

    gap:16px;
}


.convert-check{
    display:flex;

    align-items:center;

    gap:10px;

    padding:14px;

    background:white;

    border:
        1px solid #d1d5db;

    border-radius:10px;
}


.convert-check input{
    width:18px;

    height:18px;
}


.convert-due-preview{
    padding:14px;

    border-radius:10px;

    background:#fee2e2;

    color:#dc2626;

    font-size:18px;

    font-weight:bold;
}


.confirm-convert-btn{
    margin-top:20px;

    padding:14px 22px;

    border:none;

    border-radius:10px;

    background:#2563eb;

    color:white;

    font-weight:bold;

    cursor:pointer;
}


.confirm-convert-btn:hover{
    background:#1d4ed8;
}


.converted-box{
    padding:14px 18px;

    background:#dcfce7;

    border:
        1px solid #86efac;

    color:#166534;

    border-radius:10px;

    font-weight:bold;
}


@media(max-width:768px){

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

}

/* =========================
   REPORTS PAGE
========================= */

.report-section{
    background:white;

    border-radius:16px;

    padding:22px;

    margin-bottom:24px;

    box-shadow:
        0 5px 20px
        rgba(0,0,0,0.06);
}


.report-section-heading{
    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:20px;
}


.report-section-heading h2{
    margin:0 0 5px;

    color:#111827;
}


.report-section-heading p{
    margin:0;

    color:#6b7280;

    font-size:14px;
}


/* =========================
   SUMMARY CARDS
========================= */

.report-cards{
    display:grid;

    grid-template-columns:
        repeat(4,1fr);

    gap:15px;
}


.report-card{
    border:
        1px solid #e5e7eb;

    border-radius:14px;

    padding:18px;

    background:#f8fafc;
}


.report-card span{
    display:block;

    font-size:14px;

    color:#6b7280;

    margin-bottom:10px;
}


.report-card h2{
    margin:0;

    color:#111827;
}


/* =========================
   MONTHLY TABLE
========================= */

.report-table-wrapper{
    width:100%;

    overflow-x:auto;
}


.report-table{
    width:100%;

    border-collapse:collapse;

    min-width:650px;
}


.report-table th{
    padding:14px;

    text-align:left;

    background:#f1f5f9;

    color:#374151;

    border-bottom:
        1px solid #dbe2ea;
}


.report-table td{
    padding:14px;

    border-bottom:
        1px solid #e5e7eb;

    color:#4b5563;
}


.report-table tr:hover{
    background:#f8fafc;
}


.report-profit{
    color:#15803d !important;

    font-weight:bold;
}


.report-loss{
    color:#dc2626 !important;

    font-weight:bold;
}


/* =========================
   TWO COLUMN
========================= */

.report-two-column{
    display:grid;

    grid-template-columns:
        repeat(2,1fr);

    gap:20px;
}


/* =========================
   REPORT LIST
========================= */

.report-list-item{
    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:15px;

    padding:15px 0;

    border-bottom:
        1px solid #e5e7eb;
}


.report-list-item:last-child{
    border-bottom:none;
}


.report-list-item div{
    min-width:0;
}


.report-list-item strong{
    display:block;

    color:#111827;

    margin-bottom:5px;
}


.report-list-item span{
    display:block;

    color:#6b7280;

    font-size:13px;
}


.report-list-item b{
    white-space:nowrap;

    color:#111827;
}


.report-list-item .report-due{
    color:#dc2626;
}


/* =========================
   RESPONSIVE
========================= */

@media(max-width:1100px){

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

}


@media(max-width:800px){

    .report-two-column{
        grid-template-columns:1fr;
    }

}


@media(max-width:550px){

    .report-cards{
        grid-template-columns:1fr;
    }

    .report-section{
        padding:16px;
    }

}

/* =========================
   CUSTOMER EDIT / DELETE
========================= */

.customer-action-buttons{
    display:flex;
    gap:10px;
    margin-top:15px;
}


.edit-customer-btn,
.delete-customer-btn{
    border:none;
    border-radius:9px;
    padding:10px 18px;
    font-weight:bold;
    cursor:pointer;
}


.edit-customer-btn{
    background:#2563eb;
    color:white;
}


.delete-customer-btn{
    background:#fee2e2;
    color:#dc2626;
}


.edit-customer-btn:hover{
    background:#1d4ed8;
}


.delete-customer-btn:hover{
    background:#fecaca;
}


.customer-edit-box{
    display:none;

    margin-top:18px;
    padding:20px;

    background:#f8fafc;

    border:1px solid #dbe2ea;
    border-radius:14px;
}


.customer-edit-box h3{
    margin-bottom:18px;
}


.customer-edit-grid{
    display:grid;

    grid-template-columns:
        repeat(2,1fr);

    gap:15px;
}


.customer-edit-grid input,
.customer-edit-grid textarea{
    width:100%;

    padding:12px;

    border:1px solid #d1d5db;

    border-radius:9px;

    font-family:inherit;
}


.customer-edit-grid .full-input{
    grid-column:1 / -1;
}


.edit-form-buttons{
    display:flex;

    gap:10px;

    margin-top:18px;
}


.save-edit-btn,
.cancel-edit-btn{
    padding:11px 18px;

    border:none;
    border-radius:9px;

    font-weight:bold;
    cursor:pointer;
}


.save-edit-btn{
    background:#16a34a;
    color:white;
}


.cancel-edit-btn{
    background:#e5e7eb;
    color:#374151;
}


@media(max-width:768px){

    .customer-edit-grid{
        grid-template-columns:1fr;
    }

    .customer-edit-grid .full-input{
        grid-column:auto;
    }

}

/* CUSTOMER TABLE ACTIONS */

.customer-table-actions{
    display:flex;
    gap:8px;
}


.edit-customer-btn,
.delete-customer-btn{
    padding:8px 12px;
    border:none;
    border-radius:7px;
    font-weight:600;
    cursor:pointer;
}


.edit-customer-btn{
    background:#2563eb;
    color:white;
}


.delete-customer-btn{
    background:#fee2e2;
    color:#dc2626;
}


.edit-customer-btn:hover{
    background:#1d4ed8;
}


.delete-customer-btn:hover{
    background:#fecaca;
}

/* =========================
   BOOKING ACTIONS
========================= */

.booking-actions{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
}


.booking-edit-btn,
.booking-cancel-btn,
.booking-delete-btn{
    border:none;
    border-radius:7px;
    padding:8px 10px;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
}


.booking-edit-btn{
    background:#2563eb;
    color:white;
}


.booking-edit-btn:hover{
    background:#1d4ed8;
}


.booking-cancel-btn{
    background:#fef3c7;
    color:#92400e;
}


.booking-cancel-btn:hover{
    background:#fde68a;
}


.booking-delete-btn{
    background:#fee2e2;
    color:#dc2626;
}


.booking-delete-btn:hover{
    background:#fecaca;
}


.cancel-booking-edit-btn{
    margin-left:10px;

    padding:12px 18px;

    border:none;

    border-radius:9px;

    background:#e5e7eb;

    color:#374151;

    font-weight:600;

    cursor:pointer;
}


.booking-due-cell{
    color:#dc2626;
    font-weight:600;
}


.booking-status-badge{
    display:inline-block;

    padding:6px 9px;

    border-radius:20px;

    background:#f1f5f9;

    font-size:12px;

    font-weight:600;

    white-space:nowrap;
}


@media(max-width:768px){

    .booking-actions{
        min-width:150px;
    }

}

/* =========================
   INVENTORY EDIT / DELETE
========================= */

.inventory-actions{
    display:flex;
    gap:7px;
}


.inventory-edit-btn,
.inventory-delete-btn{
    border:none;
    border-radius:7px;

    padding:8px 11px;

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

    cursor:pointer;
}


.inventory-edit-btn{
    background:#2563eb;
    color:white;
}


.inventory-edit-btn:hover{
    background:#1d4ed8;
}


.inventory-delete-btn{
    background:#fee2e2;
    color:#dc2626;
}


.inventory-delete-btn:hover{
    background:#fecaca;
}


.cancel-inventory-edit-btn{
    margin-left:10px;

    padding:12px 18px;

    border:none;

    border-radius:9px;

    background:#e5e7eb;

    color:#374151;

    font-weight:600;

    cursor:pointer;
}

/* =========================
   LABOUR EDIT / DELETE
========================= */

.labour-actions{
    display:flex;
    gap:7px;
}


.labour-edit-btn,
.labour-delete-btn{
    border:none;
    border-radius:7px;

    padding:8px 11px;

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

    cursor:pointer;
}


.labour-edit-btn{
    background:#2563eb;
    color:white;
}


.labour-edit-btn:hover{
    background:#1d4ed8;
}


.labour-delete-btn{
    background:#fee2e2;
    color:#dc2626;
}


.labour-delete-btn:hover{
    background:#fecaca;
}


.cancel-labour-edit-btn{
    margin-left:10px;

    padding:12px 18px;

    border:none;
    border-radius:9px;

    background:#e5e7eb;

    color:#374151;

    font-weight:600;

    cursor:pointer;
}


.labour-due-cell{
    color:#dc2626;

    font-weight:600;
}


.labour-payment-badge{
    display:inline-block;

    padding:6px 9px;

    border-radius:20px;

    background:#f1f5f9;

    font-size:12px;

    font-weight:600;
}

/* =========================
   LABOUR ATTENDANCE
========================= */

.attendance-summary{
    display:grid;

    grid-template-columns:
        repeat(4,1fr);

    gap:15px;

    margin-bottom:25px;
}


.attendance-summary-card{
    background:white;

    padding:20px;

    border-radius:15px;

    box-shadow:
        0 5px 20px
        rgba(0,0,0,0.07);
}


.attendance-summary-card span{
    color:#6b7280;

    font-size:14px;
}


.attendance-summary-card h2{
    margin-top:10px;

    color:#111827;
}


.attendance-form-box{
    background:white;

    padding:25px;

    border-radius:16px;

    margin-bottom:25px;

    box-shadow:
        0 5px 20px
        rgba(0,0,0,0.07);
}


.attendance-form-box h2{
    margin-bottom:20px;
}


@media(max-width:900px){

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

}


@media(max-width:500px){

    .attendance-summary{
        grid-template-columns:1fr;
    }

}

/* =========================
   ATTENDANCE ACTIONS
========================= */

.attendance-actions{
    display:flex;
    gap:7px;
}


.attendance-edit-btn,
.attendance-delete-btn{
    border:none;
    border-radius:7px;

    padding:8px 11px;

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

    cursor:pointer;
}


.attendance-edit-btn{
    background:#2563eb;
    color:white;
}


.attendance-delete-btn{
    background:#fee2e2;
    color:#dc2626;
}


.cancel-attendance-edit-btn{
    margin-left:10px;

    padding:12px 18px;

    border:none;
    border-radius:9px;

    background:#e5e7eb;

    color:#374151;

    font-weight:600;

    cursor:pointer;
}

/* =========================
   LABOUR PAYMENTS
========================= */

.labour-payment-summary{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:15px;
    margin-bottom:25px;
}


.labour-payment-card{
    background:#ffffff;
    padding:20px;
    border-radius:15px;

    box-shadow:
        0 5px 20px
        rgba(0,0,0,0.07);
}


.labour-payment-card span{
    color:#6b7280;
    font-size:13px;
}


.labour-payment-card h2{
    margin-top:10px;
    margin-bottom:0;
    color:#111827;
}


@media(max-width:1100px){

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

}


@media(max-width:700px){

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

}


@media(max-width:450px){

    .labour-payment-summary{
        grid-template-columns:1fr;
    }

}

/* =========================
   LABOUR HISTORY / LEDGER
========================= */

.labour-history-top-actions{
    display:flex;
    gap:10px;
}


.history-back-btn,
.history-print-btn{
    border:none;
    border-radius:9px;
    padding:11px 16px;
    font-weight:700;
    cursor:pointer;
}


.history-back-btn{
    background:#e5e7eb;
    color:#374151;
}


.history-print-btn{
    background:#2563eb;
    color:white;
}


.labour-statement-header{
    display:flex;
    justify-content:space-between;
    align-items:center;

    background:white;

    padding:22px;

    border-radius:15px;

    margin-bottom:20px;

    border:1px solid #e5e7eb;
}


.labour-statement-header h1{
    margin:0;
}


.labour-statement-header p{
    margin:5px 0 0;
    color:#6b7280;
}


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


.statement-date span{
    display:block;
    color:#6b7280;
    font-size:13px;
}


.labour-history-profile{
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1fr 1fr;
    gap:15px;

    background:white;
    padding:22px;
    border-radius:15px;
    margin-bottom:20px;

    border:1px solid #e5e7eb;
}


.labour-history-profile span{
    display:block;
    font-size:12px;
    color:#6b7280;
    margin-bottom:5px;
}


.labour-history-profile h2{
    margin:0;
}


.labour-history-summary{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:15px;
    margin-bottom:25px;
}


.labour-history-summary-card{
    background:white;
    padding:20px;
    border-radius:15px;

    border:1px solid #e5e7eb;
}


.labour-history-summary-card span{
    color:#6b7280;
    font-size:13px;
}


.labour-history-summary-card h2{
    margin:8px 0 0;
}


.labour-history-summary-card.due-card h2{
    color:#dc2626;
}


.labour-history-section{
    margin-bottom:25px;
}


.labour-final-balance{
    background:#111827;
    color:white;

    display:grid;
    grid-template-columns:repeat(3,1fr);

    border-radius:15px;
    padding:22px;
    margin-bottom:20px;
}


.labour-final-balance div{
    text-align:center;
}


.labour-final-balance span{
    display:block;
    font-size:13px;
    opacity:.75;
}


.labour-final-balance strong{
    display:block;
    font-size:24px;
    margin-top:6px;
}


.labour-history-message{
    color:#dc2626;
    font-weight:600;
    margin-bottom:20px;
}


@media(max-width:1000px){

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


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

}


@media(max-width:600px){

    .labour-history-profile,
    .labour-history-summary,
    .labour-final-balance{
        grid-template-columns:1fr;
    }


    .labour-history-top-actions{
        flex-direction:column;
    }

}


/* =========================
   PRINT LABOUR STATEMENT
========================= */

@media print{

    @page{
        size:A4;
        margin:12mm;
    }


    body{
        background:white !important;
    }


    .sidebar,
    .no-print{
        display:none !important;
    }


    .dashboard-layout{
        display:block !important;
    }


    .dashboard-main{
        margin:0 !important;
        padding:0 !important;
        width:100% !important;
        max-width:none !important;
    }


    .labour-statement-header,
    .labour-history-profile,
    .labour-history-summary,
    .customer-list-box,
    .labour-final-balance{
        box-shadow:none !important;
    }


    .labour-history-section{
        break-inside:avoid;
    }


    .table-wrapper{
        overflow:visible !important;
    }


    .customer-table{
        width:100% !important;
        font-size:10px;
    }


    .customer-table th,
    .customer-table td{
        padding:7px !important;
    }


    .labour-final-balance{
        background:white !important;
        color:black !important;
        border:2px solid #111827;
    }

}

/* =========================
   LIVE LABOUR ACTION BUTTONS
========================= */

.labour-live-actions{
    display:flex;
    gap:6px;
    flex-wrap:wrap;
}


.labour-pay-btn,
.labour-history-btn,
.labour-inactivate-btn,
.labour-activate-btn{
    border:none;
    border-radius:7px;
    padding:8px 10px;
    font-size:12px;
    font-weight:700;
    cursor:pointer;
}


.labour-pay-btn{
    background:#059669;
    color:white;
}


.labour-history-btn{
    background:#2563eb;
    color:white;
}


.labour-inactivate-btn{
    background:#fee2e2;
    color:#dc2626;
}


.labour-activate-btn{
    background:#dcfce7;
    color:#15803d;
}


/* =========================================
   SIDEBAR MENU VISIBILITY FIX
========================================= */

.sidebar{
    height:100vh;
    min-height:100vh;

    display:flex;
    flex-direction:column;

    overflow:hidden;
}


.sidebar-menu{
    flex:1;

    overflow-y:auto;
    overflow-x:hidden;

    padding-bottom:20px;

    scrollbar-width:thin;
}


.sidebar-menu a{
    display:block;
    width:100%;
    flex-shrink:0;
}


/* Keep logout visible */

.logout-btn{
    flex-shrink:0;
    margin-top:auto;
}


/* Chrome / Edge scrollbar */

.sidebar-menu::-webkit-scrollbar{
    width:5px;
}

.sidebar-menu::-webkit-scrollbar-thumb{
    background:#cbd5e1;
    border-radius:10px;
}

.labour-print-btn{
    border:none;
    border-radius:7px;
    padding:8px 10px;
    font-size:12px;
    font-weight:700;
    cursor:pointer;

    background:#7c3aed;
    color:white;
}

.labour-live-edit-btn{
    border:none;

    border-radius:7px;

    padding:8px 10px;

    font-size:12px;

    font-weight:700;

    cursor:pointer;

    background:#f59e0b;

    color:white;
}

/* =========================
   WEBSITE CONTROL
========================= */

.website-control-btn{
    margin-left:auto;
    margin-right:12px;

    padding:11px 17px;

    border-radius:10px;

    background:#2563eb;

    color:white;

    text-decoration:none;

    font-size:14px;

    font-weight:bold;

    box-shadow:
        0 5px 15px
        rgba(37,99,235,0.20);
}


.website-control-btn:hover{
    background:#1d4ed8;
}


/* WEBSITE CONTROL PAGE */

.website-control-page{
    min-height:100vh;

    padding:35px;

    background:#f4f7fb;
}


.website-control-header{
    display:flex;

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

    gap:20px;

    margin-bottom:30px;
}


.website-control-header h1{
    font-size:32px;

    color:#111827;
}


.website-control-header p{
    margin-top:6px;

    color:#6b7280;
}


.website-back-btn{
    padding:11px 16px;

    border-radius:9px;

    background:#111827;

    color:white;

    text-decoration:none;

    font-weight:bold;
}


.website-control-grid{
    display:grid;

    grid-template-columns:
        repeat(3,1fr);

    gap:20px;
}


.website-control-card{
    min-height:170px;

    padding:25px;

    background:white;

    border-radius:16px;

    box-shadow:
        0 5px 20px
        rgba(0,0,0,0.07);

    transition:.25s;
}


.website-control-card:hover{
    transform:translateY(-5px);
}


.website-control-card h2{
    margin-bottom:10px;

    color:#111827;
}


.website-control-card p{
    color:#6b7280;

    line-height:1.5;
}


@media(max-width:900px){

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

}


@media(max-width:600px){

    .website-control-header{
        flex-direction:column;

        align-items:flex-start;
    }


    .website-control-grid{
        grid-template-columns:1fr;
    }


    .website-control-page{
        padding:20px;
    }

}

/* =========================
   WEBSITE GALLERY ADMIN
========================= */

.gallery-option-box{
    min-height:46px;

    display:flex;

    align-items:center;

    gap:20px;

    padding:12px 14px;

    border:1px solid #d1d5db;

    border-radius:10px;

    background:#f8fafc;
}


.gallery-option-box label{
    display:flex;

    align-items:center;

    gap:7px;

    cursor:pointer;
}


.gallery-option-box input{
    width:auto;
}


.gallery-admin-list{
    display:grid;

    grid-template-columns:
        repeat(3,1fr);

    gap:18px;
}


.gallery-admin-card{
    overflow:hidden;

    background:white;

    border:
        1px solid #e5e7eb;

    border-radius:14px;
}


.gallery-admin-card img{
    width:100%;

    height:190px;

    object-fit:cover;

    display:block;
}


.gallery-admin-card-content{
    padding:16px;
}


.gallery-admin-card-content h3{
    margin-bottom:7px;

    color:#111827;
}


.gallery-admin-card-content p{
    margin-bottom:7px;

    color:#6b7280;

    font-size:13px;
}


.gallery-admin-status{
    display:flex;

    gap:8px;

    flex-wrap:wrap;

    margin-top:10px;
}


.gallery-admin-status span{
    padding:5px 9px;

    border-radius:20px;

    background:#f1f5f9;

    font-size:11px;

    font-weight:bold;
}


@media(max-width:900px){

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

}


@media(max-width:600px){

    .gallery-admin-list{
        grid-template-columns:1fr;
    }

}

/* =========================
   GALLERY ADMIN ACTIONS
========================= */

.gallery-admin-actions{
    display:flex;

    gap:8px;

    flex-wrap:wrap;

    margin-top:15px;
}


.gallery-admin-actions button{
    border:none;

    border-radius:8px;

    padding:9px 13px;

    font-size:12px;

    font-weight:700;

    cursor:pointer;
}


.gallery-edit-btn{
    background:#2563eb;

    color:white;
}


.gallery-status-btn{
    background:#fef3c7;

    color:#92400e;
}


.gallery-delete-btn{
    background:#fee2e2;

    color:#dc2626;
}


.gallery-edit-btn:hover{
    background:#1d4ed8;
}


.gallery-status-btn:hover{
    background:#fde68a;
}


.gallery-delete-btn:hover{
    background:#fecaca;
}

/* =========================
   WEBSITE NOTIFICATIONS
========================= */

.website-notification-box{
    margin-top:30px;
}


.website-section-note{
    margin-top:-8px;
    margin-bottom:22px;
    color:#6b7280;
}


#notificationMessage{
    width:100%;
    resize:vertical;
}


.notification-admin-list{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:18px;
}


.notification-admin-card{
    padding:20px;

    background:white;

    border:1px solid #e5e7eb;

    border-radius:14px;

    box-shadow:
        0 4px 14px
        rgba(0,0,0,0.05);
}


.notification-card-top{
    display:flex;

    justify-content:
        space-between;

    align-items:flex-start;

    gap:15px;

    margin-bottom:12px;
}


.notification-card-top h3{
    color:#111827;
    font-size:18px;
}


.notification-card-top span{
    padding:6px 10px;

    border-radius:20px;

    background:#eff6ff;

    color:#2563eb;

    font-size:11px;

    font-weight:bold;
}


.notification-card-message{
    color:#4b5563;

    line-height:1.6;

    margin-bottom:14px;
}


.notification-card-details{
    display:flex;

    flex-wrap:wrap;

    gap:8px;

    margin-bottom:8px;
}


.notification-card-details span{
    padding:5px 9px;

    border-radius:20px;

    background:#f1f5f9;

    font-size:11px;

    font-weight:bold;
}


.notification-date-text{
    margin-top:5px;

    color:#6b7280;

    font-size:12px;
}


@media(max-width:700px){

    .notification-admin-list{
        grid-template-columns:1fr;
    }

}

/* =========================
   NOTIFICATION ACTION BUTTONS
========================= */

.notification-admin-actions{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-top:15px;
}


.notification-admin-actions button{
    border:none;
    padding:9px 13px;
    border-radius:8px;
    font-size:12px;
    font-weight:700;
    cursor:pointer;
}


.notification-edit-btn{
    background:#2563eb;
    color:white;
}


.notification-status-btn{
    background:#fef3c7;
    color:#92400e;
}


.notification-delete-btn{
    background:#fee2e2;
    color:#dc2626;
}


.notification-edit-btn:hover{
    background:#1d4ed8;
}


.notification-status-btn:hover{
    background:#fde68a;
}


.notification-delete-btn:hover{
    background:#fecaca;
}

/* =========================
   HERO / BANNER MANAGEMENT
========================= */

.website-hero-box{
    margin-top:30px;
}


#heroDescription{
    width:100%;
    resize:vertical;
}


.website-hero-box input,
.website-hero-box textarea{
    transition:
        border-color .2s,
        box-shadow .2s;
}


.website-hero-box input:focus,
.website-hero-box textarea:focus{
    outline:none;

    border-color:#2563eb;

    box-shadow:
        0 0 0 3px
        rgba(37,99,235,0.10);
}

/* =========================
   WEBSITE CONTROL SIDEBAR
   Same visual style as Admin sidebar
========================= */

.website-sidebar{
    width:250px;
    height:100vh;

    position:fixed;
    left:0;
    top:0;
    bottom:0;

    padding:25px 18px;

    display:flex;
    flex-direction:column;

    background:#111827;
    color:white;

    z-index:1000;
}


.website-sidebar-brand{
    padding:5px 10px 25px;
}


.website-sidebar-brand h2{
    font-size:22px;
    color:white;
}


.website-sidebar-brand p{
    margin-top:5px;

    color:#9ca3af;

    font-size:13px;
}


.website-sidebar-menu{
    display:flex;
    flex-direction:column;

    gap:7px;

    flex:1;

    overflow-y:auto;

    padding-bottom:20px;
}


.website-sidebar-menu a{
    display:block;

    width:100%;

    padding:12px 14px;

    border-radius:9px;

    text-decoration:none;

    color:#d1d5db;

    transition:0.3s;
}


.website-sidebar-menu a:hover,
.website-sidebar-menu a:focus{
    background:#2563eb;
    color:white;
}


/* Keep the existing Website Control content design.
   Only move it to the right of the sidebar. */

.website-control-page{
    width:calc(100% - 250px);

    margin-left:250px;
}


/* Correct position when clicking sidebar links */

#galleryManagement,
#notificationManagement,
#heroManagement{
    scroll-margin-top:25px;
}


/* Thin scrollbar inside Website Control menu */

.website-sidebar-menu{
    scrollbar-width:thin;
}


.website-sidebar-menu::-webkit-scrollbar{
    width:5px;
}


.website-sidebar-menu::-webkit-scrollbar-thumb{
    background:#4b5563;

    border-radius:10px;
}


/* =========================
   WEBSITE CONTROL SIDEBAR
   MOBILE
========================= */

@media(max-width:768px){

    .website-sidebar{
        width:100%;
        height:auto;

        position:relative;

        padding:20px 18px;
    }


    .website-sidebar-brand{
        padding:5px 10px 18px;
    }


    .website-sidebar-menu{
        display:grid;

        grid-template-columns:
            repeat(2,1fr);

        overflow:visible;

        padding-bottom:0;
    }


    .website-control-page{
        width:100%;

        margin-left:0;

        padding:20px;
    }

}


@media(max-width:480px){

    .website-sidebar-menu{
        grid-template-columns:1fr;
    }

}

/* =========================
   WEBSITE SERVICES
========================= */

.website-services-box{
    margin-top:30px;
}


#serviceDescription{
    width:100%;
    resize:vertical;
}


.service-admin-list{
    display:grid;

    grid-template-columns:
        repeat(3,1fr);

    gap:18px;
}


.service-admin-card{
    overflow:hidden;

    background:white;

    border:
        1px solid #e5e7eb;

    border-radius:14px;

    box-shadow:
        0 4px 14px
        rgba(0,0,0,0.05);
}


.service-admin-card img{
    display:block;

    width:100%;

    height:170px;

    object-fit:cover;
}


.service-admin-card-content{
    padding:18px;
}


.service-admin-icon{
    width:42px;

    height:42px;

    display:flex;

    align-items:center;

    justify-content:center;

    margin-bottom:12px;

    border-radius:10px;

    background:#eff6ff;

    font-size:20px;
}


.service-admin-card h3{
    margin-bottom:8px;

    color:#111827;
}


.service-admin-card p{
    margin-bottom:12px;

    color:#6b7280;

    font-size:13px;

    line-height:1.5;
}


.service-admin-status{
    display:flex;

    gap:7px;

    flex-wrap:wrap;
}


.service-admin-status span{
    padding:5px 9px;

    border-radius:20px;

    background:#f1f5f9;

    font-size:11px;

    font-weight:bold;
}


#servicesManagement{
    scroll-margin-top:25px;
}


@media(max-width:1000px){

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

}


@media(max-width:600px){

    .service-admin-list{
        grid-template-columns:1fr;
    }

}

/* =========================
   SERVICE ACTION BUTTONS
========================= */

.service-admin-actions{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-top:15px;
}


.service-admin-actions button{
    border:none;

    padding:9px 13px;

    border-radius:8px;

    font-size:12px;

    font-weight:700;

    cursor:pointer;
}


.service-edit-btn{
    background:#2563eb;
    color:white;
}


.service-status-btn{
    background:#fef3c7;
    color:#92400e;
}


.service-delete-btn{
    background:#fee2e2;
    color:#dc2626;
}


.service-edit-btn:hover{
    background:#1d4ed8;
}


.service-status-btn:hover{
    background:#fde68a;
}


.service-delete-btn:hover{
    background:#fecaca;
}

/* =========================
   CONTACT INFORMATION
========================= */

.website-contact-box{
    margin-top:30px;
}


#contactAddress{
    width:100%;
    resize:vertical;
}


#contactManagement{
    scroll-margin-top:25px;
}


.website-contact-box input,
.website-contact-box textarea{
    transition:
        border-color .2s,
        box-shadow .2s;
}


.website-contact-box input:focus,
.website-contact-box textarea:focus{
    outline:none;

    border-color:#2563eb;

    box-shadow:
        0 0 0 3px
        rgba(37,99,235,0.10);
}

/* =========================================
   FINAL ADMIN MOBILE UI
========================================= */


/* Desktop-এ mobile controls hidden */

.mobile-admin-bar,
.mobile-sidebar-overlay,
.mobile-sidebar-close{
    display:none;
}


/* =========================================
   MOBILE
========================================= */

@media(max-width:768px){


    /* BODY */

    body.dashboard-body{
        padding-top:64px;
        overflow-x:hidden;
    }


    body.mobile-menu-open{
        overflow:hidden;
    }


    /* =====================================
       MOBILE TOP BAR
    ===================================== */

    .mobile-admin-bar{
        position:fixed;

        top:0;
        left:0;
        right:0;

        height:64px;

        display:flex;

        align-items:center;

        gap:13px;

        padding:0 16px;

        background:#111827;

        color:white;

        z-index:2200;

        box-shadow:
            0 3px 15px
            rgba(0,0,0,.16);
    }


    .mobile-menu-btn{
        width:42px;
        height:42px;

        display:flex;

        flex-direction:column;

        justify-content:center;

        align-items:center;

        gap:5px;

        flex-shrink:0;

        border:none;

        border-radius:10px;

        background:#1f2937;

        cursor:pointer;
    }


    .mobile-menu-btn span{
        display:block;

        width:20px;
        height:2px;

        background:white;

        border-radius:5px;
    }


    .mobile-admin-brand{
        display:flex;

        flex-direction:column;

        min-width:0;
    }


    .mobile-admin-brand strong{
        color:white;

        font-size:16px;

        line-height:1.2;
    }


    .mobile-admin-brand small{
        margin-top:2px;

        color:#9ca3af;

        font-size:11px;
    }


    /* =====================================
       ADMIN SIDEBAR DRAWER
    ===================================== */

    .sidebar,
    .website-sidebar{

        position:fixed;

        top:0;
        left:0;
        bottom:0;

        width:min(82vw, 290px);

        height:100dvh;
        min-height:100dvh;

        padding:22px 16px;

        display:flex;

        flex-direction:column;

        background:#111827;

        z-index:2400;

        overflow:hidden;

        transform:
            translateX(-105%);

        transition:
            transform .28s ease;

        box-shadow:
            15px 0 40px
            rgba(0,0,0,.20);
    }


    .sidebar.mobile-open,
    .website-sidebar.mobile-open{
        transform:
            translateX(0);
    }


    /* CLOSE BUTTON */

    .mobile-sidebar-close{
        position:absolute;

        top:15px;
        right:14px;

        width:38px;
        height:38px;

        display:flex;

        align-items:center;

        justify-content:center;

        border:none;

        border-radius:9px;

        background:#1f2937;

        color:white;

        font-size:27px;

        line-height:1;

        cursor:pointer;

        z-index:5;
    }


    /* =====================================
       SIDEBAR BRAND
    ===================================== */

    .sidebar-brand,
    .website-sidebar-brand{
        padding:
            5px 48px
            20px 8px;
    }


    .sidebar-brand h2,
    .website-sidebar-brand h2{
        font-size:20px;
    }


    /* =====================================
       SIDEBAR MENU
    ===================================== */

    .sidebar-menu,
    .website-sidebar-menu{

        display:flex;

        flex-direction:column;

        grid-template-columns:none;

        gap:6px;

        flex:1;

        overflow-y:auto;

        overflow-x:hidden;

        padding:5px 2px 18px;
    }


    .sidebar-menu a,
    .website-sidebar-menu a{

        display:block;

        width:100%;

        padding:12px 13px;

        border-radius:9px;

        font-size:14px;

        text-align:left;
    }


    .logout-btn{
        width:100%;

        margin-top:10px;

        flex-shrink:0;
    }


    /* =====================================
       DARK OVERLAY
    ===================================== */

    .mobile-sidebar-overlay{

        position:fixed;

        inset:0;

        display:block;

        background:
            rgba(15,23,42,.56);

        backdrop-filter:
            blur(2px);

        z-index:2300;

        opacity:0;

        visibility:hidden;

        pointer-events:none;

        transition:
            opacity .25s ease,
            visibility .25s ease;
    }


    body.mobile-menu-open
    .mobile-sidebar-overlay{

        opacity:1;

        visibility:visible;

        pointer-events:auto;
    }


    /* =====================================
       NORMAL ADMIN CONTENT
    ===================================== */

    .dashboard-layout{
        display:block;
        min-height:auto;
    }


    .dashboard-main{

        width:100%;

        margin-left:0;

        padding:18px;

        min-width:0;
    }


    /* =====================================
       WEBSITE CONTROL CONTENT
    ===================================== */

    .website-control-page{

        width:100%;

        margin-left:0;

        padding:18px;
    }


    /* =====================================
       DASHBOARD HEADER
    ===================================== */

    .dashboard-topbar{

        display:flex;

        flex-direction:row;

        align-items:center;

        justify-content:flex-start;

        flex-wrap:wrap;

        gap:10px;

        margin-bottom:22px;
    }


    .dashboard-topbar > div:first-child{
        flex:
            1 1 100%;
    }


    .dashboard-topbar h1{
        font-size:26px;
    }


    .dashboard-topbar p{
        font-size:14px;
        line-height:1.5;
    }


    .admin-profile{
        padding:10px 14px;

        font-size:13px;
    }


    .website-control-btn{

        width:auto;

        padding:10px 14px;

        font-size:13px;
    }


    /* =====================================
       DASHBOARD CARDS
    ===================================== */

    .dashboard-cards{
        grid-template-columns:1fr;

        gap:14px;
    }


    .stat-card{
        padding:19px;

        border-radius:14px;
    }


    .stat-card h2{
        font-size:25px;
    }


    .dashboard-grid{
        grid-template-columns:1fr;

        gap:15px;
    }


    .dashboard-box{
        min-height:auto;

        padding:19px;

        border-radius:14px;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media(max-width:480px){


    body.dashboard-body{
        padding-top:58px;
    }


    .mobile-admin-bar{
        height:58px;

        padding:0 12px;
    }


    .mobile-menu-btn{
        width:38px;
        height:38px;
    }


    .mobile-admin-brand strong{
        font-size:15px;
    }


    .dashboard-main,
    .website-control-page{
        padding:14px;
    }


    .dashboard-topbar h1{
        font-size:24px;
    }


    .stat-card{
        padding:17px;
    }

}

/* ============================================================
   STEP 11D-3
   FINAL ADMIN MOBILE UI POLISH
   S D DECORATORS
============================================================ */


/* ============================================================
   TABLET
============================================================ */

@media(max-width:1100px){

    /* SUMMARY CARDS */

    .inventory-summary,
    .labour-summary,
    .expense-summary,
    .payment-summary,
    .enquiry-summary,
    .report-cards{

        grid-template-columns:
            repeat(2,minmax(0,1fr)) !important;
    }


    /* WEBSITE CONTROL */

    .website-control-grid{

        grid-template-columns:
            repeat(2,minmax(0,1fr)) !important;
    }

}


/* ============================================================
   MOBILE
============================================================ */

@media(max-width:768px){


    /* ========================================================
       GENERAL PAGE
    ======================================================== */

    html,
    body{

        max-width:100%;

        overflow-x:hidden;
    }


    .dashboard-main{

        width:100% !important;

        max-width:100% !important;

        margin-left:0 !important;

        padding:
            18px 14px 30px !important;
    }


    .website-control-page{

        width:100% !important;

        max-width:100% !important;

        margin-left:0 !important;

        padding:
            18px 14px 30px !important;
    }


    /* ========================================================
       PAGE HEADER
    ======================================================== */

    .dashboard-topbar{

        width:100%;

        margin-bottom:20px !important;

        gap:10px !important;
    }


    .dashboard-topbar h1{

        font-size:
            clamp(
                23px,
                7vw,
                28px
            ) !important;

        line-height:1.15;
    }


    .dashboard-topbar p{

        margin-top:5px;

        font-size:13px !important;

        line-height:1.5;
    }


    .admin-profile{

        padding:9px 13px !important;

        border-radius:9px !important;

        font-size:12px !important;
    }


    /* ========================================================
       ALL MAIN WHITE BOXES
    ======================================================== */

    .customer-form-box,
    .customer-list-box,
    .booking-form-box,
    .inventory-form-box,
    .labour-form-box,
    .expense-form-box,
    .payment-booking-box,
    .payment-form-box,
    .report-section,
    .convert-booking-form{

        width:100%;

        max-width:100%;

        padding:18px !important;

        margin-bottom:18px !important;

        border-radius:14px !important;
    }


    .customer-form-box h2,
    .customer-list-box h2,
    .booking-form-box h2,
    .inventory-form-box h2,
    .labour-form-box h2,
    .expense-form-box h2,
    .payment-booking-box h2,
    .payment-form-box h2{

        margin-bottom:18px !important;

        font-size:21px !important;

        line-height:1.25;
    }


    /* ========================================================
       FORMS
    ======================================================== */

    .form-grid,
    .customer-edit-grid,
    .convert-grid,
    .invoice-gst-grid{

        grid-template-columns:
            minmax(0,1fr) !important;

        gap:14px !important;
    }


    .full-input{

        grid-column:auto !important;
    }


    .input-group{

        width:100%;

        min-width:0;

        margin-bottom:12px;
    }


    .input-group label{

        margin-bottom:7px;

        font-size:13px;
    }


    .input-group input,
    .input-group select,
    .input-group textarea,
    .customer-edit-grid input,
    .customer-edit-grid select,
    .customer-edit-grid textarea{

        width:100% !important;

        max-width:100% !important;

        min-width:0 !important;

        min-height:46px;

        padding:12px 13px !important;

        border-radius:9px !important;

        font-size:16px !important;
    }


    .input-group textarea,
    .customer-edit-grid textarea{

        min-height:100px;

        resize:vertical;
    }


    /*
       16px avoids unwanted browser zoom
       when tapping fields on mobile.
    */


    /* ========================================================
       PRIMARY FORM BUTTONS
    ======================================================== */

    .customer-save-btn,
    .confirm-convert-btn{

        width:100%;

        min-height:46px;

        margin-top:14px !important;

        padding:12px 16px !important;

        font-size:14px !important;
    }


    .cancel-booking-edit-btn,
    .cancel-inventory-edit-btn{

        width:100%;

        min-height:44px;

        margin:
            9px 0 0 !important;
    }


    /* ========================================================
       SUMMARY CARDS
    ======================================================== */

    .dashboard-cards,
    .inventory-summary,
    .labour-summary,
    .expense-summary,
    .payment-summary,
    .enquiry-summary,
    .report-cards{

        grid-template-columns:
            repeat(2,minmax(0,1fr))
            !important;

        gap:10px !important;

        margin-bottom:18px !important;
    }


    .stat-card,
    .inventory-summary-card,
    .labour-summary-card,
    .expense-summary-card,
    .payment-summary-card,
    .enquiry-summary-card,
    .report-card{

        min-width:0;

        padding:15px !important;

        border-radius:12px !important;
    }


    .stat-card span,
    .inventory-summary-card span,
    .labour-summary-card span,
    .expense-summary-card span,
    .payment-summary-card span,
    .enquiry-summary-card span,
    .report-card span{

        font-size:11px !important;

        line-height:1.4;
    }


    .stat-card h2,
    .inventory-summary-card h2,
    .labour-summary-card h2,
    .expense-summary-card h2,
    .payment-summary-card h2,
    .enquiry-summary-card h2,
    .report-card h2{

        margin-top:7px !important;

        font-size:21px !important;

        line-height:1.2;
    }


    /* ========================================================
       LIST HEADERS / REFRESH BUTTON
    ======================================================== */

    .customer-list-header,
    .report-section-heading{

        display:flex;

        flex-direction:column;

        align-items:stretch !important;

        gap:12px;

        margin-bottom:16px;
    }


    .refresh-btn{

        width:100%;

        min-height:42px;

        padding:10px 14px !important;
    }


    /* ========================================================
       TABLES
    ======================================================== */

    .table-wrapper,
    .report-table-wrapper,
    .invoice-table-wrapper{

        width:100%;

        max-width:100%;

        overflow-x:auto !important;

        overflow-y:hidden;

        -webkit-overflow-scrolling:
            touch;

        border-radius:10px;
    }


    .customer-table,
    .report-table{

        width:max-content;

        min-width:700px !important;
    }


    .customer-table th,
    .customer-table td,
    .report-table th,
    .report-table td{

        padding:
            10px 11px !important;

        font-size:12px !important;

        white-space:nowrap;

        vertical-align:middle;
    }


    /* Make scrolling obvious */

    .table-wrapper::after,
    .report-table-wrapper::after{

        content:
            "← Swipe table →";

        display:block;

        padding:8px 3px 2px;

        color:#9ca3af;

        font-size:10px;

        text-align:right;
    }


    /* ========================================================
       ACTION BUTTON GROUPS
    ======================================================== */

    .customer-table-actions,
    .customer-action-buttons,
    .booking-actions,
    .inventory-actions,
    .labour-live-actions,
    .notification-admin-actions,
    .service-admin-actions,
    .gallery-admin-actions,
    .edit-form-buttons{

        display:flex !important;

        flex-wrap:wrap !important;

        gap:6px !important;

        min-width:140px;
    }


    .customer-table-actions button,
    .customer-action-buttons button,
    .booking-actions button,
    .inventory-actions button,
    .labour-live-actions button,
    .notification-admin-actions button,
    .service-admin-actions button,
    .gallery-admin-actions button{

        min-height:36px;

        padding:
            7px 10px !important;

        border-radius:7px !important;

        font-size:11px !important;

        white-space:nowrap;
    }


    /* ========================================================
       BOOKING CHECKBOX CARDS
    ======================================================== */

    .booking-check-grid{

        grid-template-columns:
            minmax(0,1fr)
            !important;

        gap:10px !important;
    }


    .check-card{

        min-height:50px;

        padding:12px !important;
    }


    /* ========================================================
       ENQUIRIES
    ======================================================== */

    .enquiry-filter-box{

        padding:16px !important;

        gap:12px !important;

        flex-direction:column !important;

        align-items:stretch !important;
    }


    .enquiry-filter-box
    .input-group{

        max-width:none !important;

        margin:0 !important;
    }


    .enquiry-card{

        padding:16px !important;

        border-radius:12px !important;
    }


    .enquiry-card-top{

        gap:8px !important;
    }


    .enquiry-details{

        grid-template-columns:
            minmax(0,1fr)
            !important;
    }


    .enquiry-actions{

        grid-template-columns:
            minmax(0,1fr)
            !important;

        gap:9px !important;
    }


    .enquiry-actions select,
    .enquiry-actions input,
    .enquiry-update-btn{

        width:100%;

        min-height:44px;

        font-size:14px;
    }


    /* ========================================================
       PAYMENT CUSTOMER INFO
    ======================================================== */

    .payment-customer-info{

        padding:15px !important;

        border-radius:10px !important;

        font-size:13px;

        line-height:1.6;
    }


    /* ========================================================
       REPORTS
    ======================================================== */

    .report-two-column{

        grid-template-columns:
            minmax(0,1fr)
            !important;

        gap:14px !important;
    }


    .report-list-item{

        align-items:flex-start;

        padding:12px 0;

        gap:10px;
    }


    .report-list-item strong{

        font-size:13px;
    }


    .report-list-item span{

        font-size:11px;
    }


    .report-list-item b{

        font-size:12px;
    }


    /* ========================================================
       WEBSITE CONTROL
    ======================================================== */

    .website-control-header{

        display:flex;

        flex-direction:column;

        align-items:stretch !important;

        gap:14px !important;

        margin-bottom:20px !important;
    }


    .website-control-header h1{

        font-size:26px !important;
    }


    .website-back-btn{

        width:100%;

        padding:11px 14px;

        text-align:center;
    }


    .website-control-grid{

        grid-template-columns:
            minmax(0,1fr)
            !important;

        gap:12px !important;
    }


    .website-control-card{

        min-height:auto !important;

        padding:18px !important;

        border-radius:13px !important;
    }


    .notification-admin-list{

        grid-template-columns:
            minmax(0,1fr)
            !important;
    }


    .notification-admin-card{

        padding:16px !important;
    }


    .notification-card-top{

        flex-direction:column;

        gap:8px !important;
    }


    /* ========================================================
       PREVENT LONG TEXT BREAKING SCREEN
    ======================================================== */

    .dashboard-main *,
    .website-control-page *{

        overflow-wrap:
            break-word;
    }


    a,
    button,
    input,
    select,
    textarea{

        max-width:100%;
    }

}


/* ============================================================
   SMALL MOBILE
============================================================ */

@media(max-width:480px){


    .dashboard-main,
    .website-control-page{

        padding:
            14px 10px 25px
            !important;
    }


    /* HEADER */

    .dashboard-topbar h1{

        font-size:23px !important;
    }


    .dashboard-topbar p{

        font-size:12px !important;
    }


    /* WHITE BOX */

    .customer-form-box,
    .customer-list-box,
    .booking-form-box,
    .inventory-form-box,
    .labour-form-box,
    .expense-form-box,
    .payment-booking-box,
    .payment-form-box,
    .report-section,
    .convert-booking-form{

        padding:15px !important;

        border-radius:12px !important;
    }


    /* ONE SUMMARY CARD PER ROW */

    .dashboard-cards,
    .inventory-summary,
    .labour-summary,
    .expense-summary,
    .payment-summary,
    .enquiry-summary,
    .report-cards{

        grid-template-columns:
            minmax(0,1fr)
            !important;
    }


    /* FULL WIDTH ACTION BUTTONS */

    .edit-form-buttons{

        flex-direction:column;
    }


    .edit-form-buttons button{

        width:100%;
    }


    /* REPORT ITEMS */

    .report-list-item{

        flex-direction:column;
    }


    .report-list-item b{

        white-space:normal;
    }


    /* ENQUIRY */

    .enquiry-card-top{

        flex-direction:column;
    }

}

/* ============================================================
   STEP 11D-4
   REMAINING ADMIN MOBILE FINAL POLISH
============================================================ */

@media(max-width:768px){


    /* ========================================================
       ATTENDANCE / LABOUR PAYMENT LISTS
    ======================================================== */

    .attendance-box,
    .attendance-list-box,
    .labour-payment-box,
    .labour-payment-list-box,
    .labour-history-box{

        width:100% !important;

        max-width:100% !important;

        padding:18px !important;

        border-radius:14px !important;

        overflow:hidden;
    }


    .attendance-table-wrapper,
    .labour-payment-table-wrapper,
    .labour-history-table-wrapper{

        width:100% !important;

        overflow-x:auto !important;

        -webkit-overflow-scrolling:touch;
    }


    .attendance-table,
    .labour-payment-table,
    .labour-history-table{

        min-width:720px !important;

        width:max-content !important;
    }


    .attendance-table th,
    .attendance-table td,
    .labour-payment-table th,
    .labour-payment-table td,
    .labour-history-table th,
    .labour-history-table td{

        padding:10px !important;

        font-size:12px !important;

        white-space:nowrap;
    }



    /* ========================================================
       INVOICE PAGE
    ======================================================== */

    .invoice-page-container{

        width:100% !important;

        max-width:100% !important;

        margin:0 !important;
    }


    .invoice-control-panel{

        width:100% !important;

        padding:16px !important;

        border-radius:14px !important;
    }


    .invoice-control-row{

        display:grid !important;

        grid-template-columns:1fr !important;

        gap:10px !important;
    }


    .invoice-control-row button{

        width:100% !important;

        min-height:45px;
    }


    .invoice-gst-grid{

        grid-template-columns:1fr !important;
    }


    .signature-upload-row{

        flex-direction:column !important;

        align-items:stretch !important;
    }


    .signature-upload-row input,
    .signature-remove-btn{

        width:100% !important;
    }


    /*
       Invoice paper itself should not be squeezed.
       Mobile user can scroll horizontally.
    */

    .invoice-paper{

        width:760px !important;

        max-width:none !important;

        padding:24px !important;

        margin:0 0 25px !important;
    }


    .invoice-page-container{

        overflow-x:auto !important;

        -webkit-overflow-scrolling:touch;
    }


    /*
       Control Panel remains mobile width,
       invoice paper can scroll horizontally.
    */

    .invoice-control-panel,
    .dashboard-topbar{

        position:sticky;

        left:0;
    }



    /* ========================================================
       REPORTS
    ======================================================== */

    .report-filter-box,
    .report-section{

        width:100% !important;

        max-width:100% !important;

        padding:16px !important;

        border-radius:14px !important;
    }


    .report-filter-grid{

        grid-template-columns:1fr !important;

        gap:12px !important;
    }


    .report-filter-grid input,
    .report-filter-grid select,
    .report-filter-grid button{

        width:100% !important;

        min-height:44px;

        font-size:15px;
    }


    .report-table-wrapper{

        width:100% !important;

        overflow-x:auto !important;

        -webkit-overflow-scrolling:touch;
    }


    .report-table{

        min-width:700px !important;
    }



    /* ========================================================
       WEBSITE CONTROL
    ======================================================== */

    .website-control-page{

        width:100% !important;

        max-width:100% !important;

        margin:0 !important;
    }


    .website-control-header{

        flex-direction:column !important;

        align-items:stretch !important;

        gap:12px !important;
    }


    .website-control-header h1{

        font-size:24px !important;

        line-height:1.2;
    }


    .website-control-header p{

        font-size:13px !important;

        line-height:1.5;
    }


    .website-back-btn{

        width:100% !important;

        text-align:center;
    }


    .website-control-grid{

        grid-template-columns:1fr !important;
    }


    /*
       Gallery / Notification / Hero / Services / Contact forms
    */

    #galleryManagement,
    #notificationManagement,
    #heroManagement,
    #servicesManagement,
    #contactManagement{

        width:100% !important;

        max-width:100% !important;

        padding:17px !important;

        border-radius:14px !important;

        scroll-margin-top:75px;
    }


    #galleryManagement .form-grid,
    #notificationManagement .form-grid,
    #heroManagement .form-grid,
    #servicesManagement .form-grid,
    #contactManagement .form-grid{

        grid-template-columns:1fr !important;
    }


    #galleryManagement input,
    #galleryManagement select,
    #galleryManagement textarea,

    #notificationManagement input,
    #notificationManagement select,
    #notificationManagement textarea,

    #heroManagement input,
    #heroManagement select,
    #heroManagement textarea,

    #servicesManagement input,
    #servicesManagement select,
    #servicesManagement textarea,

    #contactManagement input,
    #contactManagement select,
    #contactManagement textarea{

        width:100% !important;

        min-width:0 !important;

        max-width:100% !important;

        font-size:16px !important;
    }



    /* ========================================================
       ALL MOBILE ACTION BUTTONS
    ======================================================== */

    .attendance-actions,
    .labour-payment-actions,
    .report-actions{

        display:flex !important;

        flex-wrap:wrap !important;

        gap:6px !important;
    }


    .attendance-actions button,
    .labour-payment-actions button,
    .report-actions button{

        min-height:36px;

        padding:7px 10px !important;

        font-size:11px !important;
    }

}



/* ============================================================
   VERY SMALL MOBILE
============================================================ */

@media(max-width:480px){


    .invoice-control-panel,
    .report-section,
    .report-filter-box,
    #galleryManagement,
    #notificationManagement,
    #heroManagement,
    #servicesManagement,
    #contactManagement{

        padding:14px !important;
    }


    .invoice-main-btn,
    .invoice-print-btn,
    .signature-remove-btn{

        width:100% !important;
    }


    .website-control-header h1{

        font-size:22px !important;
    }

}

/* ============================================================
   ADMIN SETTINGS PAGE
============================================================ */

.admin-settings-box{
    max-width:780px;
    margin:30px auto;
    padding:28px;
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    box-shadow:0 10px 30px rgba(15,23,42,0.07);
}


/* HEADING */

.admin-settings-heading{
    margin-bottom:24px;
    padding-bottom:18px;
    border-bottom:1px solid #e5e7eb;
}

.admin-settings-heading h2{
    margin:0 0 6px;
    font-size:22px;
    color:#172033;
}

.admin-settings-heading p{
    margin:0;
    font-size:14px;
    color:#64748b;
}


/* FORM */

.admin-settings-box .input-group{
    margin-bottom:18px;
}

.admin-settings-box .input-group label{
    display:block;
    margin-bottom:7px;
    font-size:14px;
    font-weight:600;
    color:#25324a;
}

.admin-settings-box .input-group input{
    width:100%;
    min-height:46px;
    padding:11px 14px;
    border:1px solid #d6dce6;
    border-radius:10px;
    background:#ffffff;
    font-size:14px;
    outline:none;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.admin-settings-box .input-group input:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.10);
}


/* READ ONLY USERNAME */

.admin-settings-box input[readonly]{
    background:#f5f7fb;
    color:#64748b;
    cursor:not-allowed;
}


/* SECURITY NOTICE */

.admin-settings-note{
    margin:22px 0;
    padding:15px 17px;
    border:1px solid #dbe4f0;
    border-radius:12px;
    background:#f8fafc;
}

.admin-settings-note strong{
    display:block;
    margin-bottom:5px;
    font-size:14px;
    color:#1e293b;
}

.admin-settings-note p{
    margin:0;
    font-size:13px;
    line-height:1.55;
    color:#64748b;
}


/* MESSAGE */

#adminSettingsMessage{
    min-height:20px;
    margin:8px 0 14px;
    font-size:13px;
    font-weight:600;
}


/* UPDATE BUTTON */

#updateCredentialsButton{
    width:100%;
    min-height:48px;
    padding:12px 18px;
    border:none;
    border-radius:11px;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
}

#updateCredentialsButton:disabled{
    opacity:.65;
    cursor:not-allowed;
}


/* ============================================================
   ADMIN SETTINGS - MOBILE
============================================================ */

@media(max-width:768px){

    .admin-settings-box{
        width:100%;
        max-width:none;
        margin:15px 0;
        padding:18px 15px;
        border-radius:14px;
    }

    .admin-settings-heading{
        margin-bottom:20px;
        padding-bottom:15px;
    }

    .admin-settings-heading h2{
        font-size:19px;
    }

    .admin-settings-heading p{
        font-size:13px;
    }

    .admin-settings-box .input-group{
        margin-bottom:15px;
    }

    .admin-settings-box .input-group input{
        min-height:45px;
        font-size:14px;
    }

    .admin-settings-note{
        margin:18px 0;
        padding:13px;
    }

    #updateCredentialsButton{
        min-height:46px;
        font-size:14px;
    }
}