/* =========================================
   RESET
========================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial,sans-serif;
    background:#f1f5f9;
    color:#0f172a;
}

/* =========================================
   TOPBAR
========================================= */

.dash-topbar{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    height:70px;

    background:#ffffff;

    border-bottom:1px solid #e2e8f0;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:0 25px;

    z-index:1000;
}

.dash-topbar h2{

    font-size:24px;

    font-weight:700;
}

/* =========================================
   SIDEBAR
========================================= */

.dash-sidebar{

    position:fixed;

    top:70px;

    left:0;

    width:260px;

    height:100%;

    background:#0f172a;

    padding:20px 15px;

    overflow:auto;

    z-index:10;
}

.dash-sidebar a{

    display:flex;

    align-items:center;

    color:#cbd5e1;

    text-decoration:none;

    padding:14px 16px;

    border-radius:14px;

    margin-bottom:8px;

    transition:0.3s;

    font-weight:500;

    font-size:15px;
}

.dash-sidebar a:hover,
.dash-sidebar .active{

    background:#1e293b;

    color:#ffffff;
}

/* =========================================
   MAIN
========================================= */

.dash-main{

    margin-left:260px;

    margin-top:70px;

    padding:30px;

    min-height:100vh;
}

/* =========================================
   PAGE TITLE
========================================= */

.page-title{

    margin-bottom:30px;
}

.page-title h1{

    font-size:36px;

    margin-bottom:6px;
}

.page-title p{

    color:#64748b;

    font-size:15px;
}

/* =========================================
   DASHBOARD STATS
========================================= */

.dash-stats{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(240px,1fr));

    gap:20px;

    margin-bottom:25px;
}

.dash-card{

    background:#ffffff;

    border-radius:20px;

    padding:25px;

    box-shadow:
    0 4px 20px rgba(0,0,0,0.04);
}

.dash-card h3{

    color:#64748b;

    margin-bottom:12px;

    font-size:15px;
}

.dash-card h2{

    font-size:34px;

    margin-bottom:10px;
}

.dash-card p{
    color:#16a34a;
    font-weight:600;
}

.dash-sidebar a.active{
    background:#2563eb;
    color:#fff;
    font-weight:600;
}
/* =========================================
   GRID
========================================= */

.dash-grid{

    display:grid;

    grid-template-columns:2fr 1fr;

    gap:20px;
}

/* =========================================
   TABLE CARD
========================================= */

.dash-table-card{

    background:#ffffff;

    border-radius:20px;

    padding:25px;

    box-shadow:
    0 4px 20px rgba(0,0,0,0.04);
}

.dash-table-card h2{

    margin-bottom:20px;
}

/* =========================================
   TABLE
========================================= */

.table-responsive{

    overflow-x:auto;
}

table{

    width:100%;

    border-collapse:collapse;
}

table th{

    background:#0f172a;

    color:#ffffff;

    padding:16px;

    text-align:left;

    font-size:14px;
}

table td{

    padding:18px 16px;

    border-bottom:1px solid #f1f5f9;

    font-size:15px;
}

table tr:hover{

    background:#f8fafc;
}

/* =========================================
   BADGES
========================================= */

.badge{

    padding:8px 14px;

    border-radius:30px;

    font-size:12px;

    font-weight:600;
}

.success{

    background:#dcfce7;

    color:#166534;
}

.warning{

    background:#fef3c7;

    color:#92400e;
}

.danger{

    background:#fee2e2;

    color:#991b1b;
}

/* =========================================
   BUTTONS
========================================= */

.dash-btn{

    background:#0f172a;

    color:#ffffff;

    border:none;

    height:50px;

    padding:0 22px;

    border-radius:14px;

    cursor:pointer;

    font-size:15px;

    font-weight:600;

    transition:0.3s;
}

.dash-btn:hover{

    background:#1e293b;
}

.btn-light{

    background:#ffffff;

    color:#0f172a;

    border:none;

    padding:12px 18px;

    border-radius:12px;

    cursor:pointer;

    font-weight:600;
}

/* =========================================
   FORM GRID
========================================= */

.form-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(260px,1fr));

    gap:18px;
}

/* =========================================
   FORM
========================================= */

.form-group{

    margin-bottom:20px;
}

.form-group label{

    display:block;

    margin-bottom:8px;

    font-weight:600;

    font-size:14px;
}

.form-group input,
.form-group select{

    width:100%;

    height:52px;

    border:1px solid #dbe2ea;

    border-radius:14px;

    padding:0 16px;

    font-size:15px;

    background:#f8fafc;

    transition:0.3s;
}

.form-group input:focus,
.form-group select:focus{

    outline:none;

    border-color:#2563eb;

    background:#ffffff;

    box-shadow:
    0 0 0 4px rgba(37,99,235,0.08);
}

/* =========================================
   LOGIN
========================================= */

.login-container{

    width:100%;

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:20px;
}

.login-box{

    width:100%;

    max-width:420px;

    background:#ffffff;

    padding:35px;

    border-radius:24px;

    box-shadow:
    0 5px 25px rgba(0,0,0,0.05);
}

.login-box h1{

    text-align:center;

    margin-bottom:10px;
}

.login-box p{

    text-align:center;

    color:#64748b;

    margin-bottom:25px;
}

.login-btn{

    width:100%;

    height:52px;

    border:none;

    border-radius:14px;

    background:#0f172a;

    color:#ffffff;

    font-size:16px;

    font-weight:600;

    cursor:pointer;
}

.error{

    background:#fee2e2;

    color:#991b1b;

    padding:12px;

    border-radius:12px;

    margin-bottom:20px;

    text-align:center;
}

/* =========================================
   MODAL
========================================= */

.modal{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    height:100%;

    background:rgba(0,0,0,0.5);

    display:none;

    justify-content:center;

    align-items:center;

    padding:20px;

    z-index:9999;
}

.modal-content{

    width:100%;

    max-width:500px;

    background:#ffffff;

    border-radius:24px;

    padding:30px;
}

/* =========================================
   RIGHT PANEL
========================================= */

.right-panel{

    display:flex;

    flex-direction:column;

    gap:20px;
}

/* =========================================
   ALERT CARD
========================================= */

.alert-card{

    background:#0f172a;

    color:#ffffff;

    padding:25px;

    border-radius:20px;
}

.alert-card p{

    margin:15px 0;

    line-height:1.6;

    color:#cbd5e1;
}

/* =========================================
   PROGRESS
========================================= */

.progress-item{

    margin-top:20px;
}

.progress-text{

    display:flex;

    justify-content:space-between;

    margin-bottom:8px;
}

.progress-bar{

    width:100%;

    height:10px;

    background:#e2e8f0;

    border-radius:30px;

    overflow:hidden;
}

.progress-fill{

    height:100%;

    background:#0f172a;
}

.w85{width:85%;}
.w62{width:62%;}
.w48{width:48%;}

/* =========================================
   INDENT MATRIX FIXES
========================================= */

.matrix-wrapper{

    background:#ffffff;

    border-radius:24px;

    padding:25px;

    overflow:hidden;

    box-shadow:
    0 4px 20px rgba(0,0,0,0.04);
}

.matrix-scroll{

    width:100%;

    overflow:auto;

    border-radius:20px;

    border:1px solid #e2e8f0;
}

.matrix-table{

    min-width:100%;

    width:max-content;

    border-collapse:collapse;
}

.matrix-table th,
.matrix-table td{

    white-space:nowrap;
}

.item-column{

    position:sticky;

    left:0;

    background:#ffffff !important;

    min-width:220px;

    max-width:220px;

    z-index:5;

    font-weight:700;
}

.total-column{

    min-width:120px;

    background:#eff6ff;
}

.customer-header{

    min-width:140px;
}

.filter-bar{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:20px;

    flex-wrap:wrap;

    margin-bottom:25px;
}

.filter-form{

    display:flex;

    gap:12px;

    flex-wrap:wrap;

    align-items:center;
}

.filter-input{

    min-width:180px;
}

/* =========================================
   INDENT MODAL
========================================= */

.indent-modal{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    height:100%;

    background:rgba(0,0,0,0.55);

    display:none;

    justify-content:center;

    align-items:flex-start;

    overflow:auto;

    padding:40px;

    z-index:999999;
}

.indent-modal-content{

    width:100%;

    max-width:1100px;

    background:#ffffff;

    border-radius:24px;

    padding:30px;

    position:relative;

    margin:auto;

    animation:modalFade 0.2s ease;
}

.close-modal{

    position:absolute;

    top:20px;

    right:20px;

    width:40px;

    height:40px;

    border:none;

    border-radius:50%;

    background:#ef4444;

    color:#fff;

    cursor:pointer;

    font-size:18px;
}

@keyframes modalFade{

    from{

        transform:translateY(20px);
        opacity:0;

    }

    to{

        transform:translateY(0);
        opacity:1;

    }

}

/* =========================================
   MOBILE RESPONSIVE
========================================= */

.mobile-menu-btn{
    display:none;
}

@media(max-width:768px){

    /* MENU BUTTON */

    .mobile-menu-btn{
        display:flex;
        position:fixed;
        top:10px;
        left:10px;
        width:42px;
        height:42px;
        align-items:center;
        justify-content:center;
        background:#0f172a;
        color:#fff;
        border:none;
        border-radius:10px;
        font-size:22px;
        cursor:pointer;
        z-index:9999;
    }

    /* TOPBAR */

    .dash-topbar{

        height:60px;

        padding:0 15px 0 60px;

        display:flex;

        justify-content:space-between;

        align-items:center;
    }

    .dash-topbar h2{

        font-size:20px;
    }

    /* SIDEBAR */

    .dash-sidebar{

        position:fixed;

        top:60px;

        left:-190px;

        width:180px;

        height:auto;

        background:#0f172a;

        padding:8px;

        border-radius:0 0 12px 0;

        transition:0.3s;

        overflow:hidden;

        z-index:9998;
    }

    .dash-sidebar.show{
        left:0;
    }

    .dash-sidebar a{

        display:block;

        width:100%;

        padding:10px 12px;

        margin-bottom:4px;

        font-size:14px;

        text-align:left;
    }

    /* MAIN */

    .dash-main{

        margin-left:0;

        margin-top:60px;

        padding:10px;
    }

    /* PAGE TITLE */

    .page-title{

        margin-bottom:15px;
    }

    .page-title h1{

        font-size:28px;
    }

    .page-title p{

        font-size:14px;
    }

    /* STATS */

    .dash-stats{

        display:grid;

        grid-template-columns:1fr;

        gap:12px;
    }

    .dash-card{

        padding:15px;

        border-radius:15px;
    }

    .dash-card h2{

        font-size:32px;

        margin-bottom:5px;
    }

    .dash-card h3{

        font-size:14px;

        margin-bottom:8px;
    }

    .dash-card p{

        font-size:13px;
    }

    /* GRID */

    .dash-grid{

        display:flex;

        flex-direction:column;
    }

    /* QUICK ACTIONS ON TOP */

    .right-panel{

        order:-1;
    }

    /* BUTTONS */

    .dash-btn{

        width:100%;
    }

    /* TABLE CARD */

    .dash-table-card{

        padding:15px;

        border-radius:15px;
    }

    /* RECENT INDENTS HEADER */

    .dash-table-card > div:first-child{

        display:flex;

        flex-direction:column;

        gap:10px;

        align-items:stretch;
    }

    /* TABLE */

    .table-responsive{

        overflow-x:auto;

        -webkit-overflow-scrolling:touch;
    }

    table{

        min-width:650px;
    }

    table th{

        font-size:13px;

        padding:12px;
    }

    table td{

        font-size:13px;

        padding:12px;
    }

    /* PERFORMANCE */

    .progress-item{

        margin-top:15px;
    }

    /* ALERT */

    .alert-card{

        padding:18px;

        border-radius:15px;
    }

    /* FORM GRID */

    .form-grid{

        grid-template-columns:1fr;
    }

    /* MATRIX */

    .matrix-table{

        min-width:900px;
    }

    .item-column{

        min-width:180px;

        max-width:180px;
    }

}
@media(max-width:768px){

.dash-grid{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.right-panel{
    display:none;
}

.dash-stats{
    grid-template-columns:repeat(2,1fr);
    gap:10px;
}

.dash-card{
    padding:15px;
}

.dash-card h2{
    font-size:28px;
}

.dash-table-card{
    padding:15px;
}
}

<style>

.container{
    max-width:none;
    margin:0;
}

@media(max-width:768px){

    .container{
        padding:15px;
    }

}

</style>