/* =====================================================
   PAGE LAYOUT
===================================================== */

/*dashboard.php*/

.page-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}

.page-header h2{
    margin:0;
    font-size:28px;
    color:#1d3557;
}

.page-header p{
    margin:5px 0 0;
    color:#777;
}

.page-date{
    background:#fff;
    padding:10px 18px;
    border-radius:8px;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
    color:#555;
}


/* =====================================================
   KPI CARDS
===================================================== */

.dashboard-grid{

    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:20px;
    margin-bottom:30px;

}

.dashboard-card{

    background:#fff;
    border-radius:12px;
    padding:22px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-shadow:0 3px 10px rgba(0,0,0,.08);
    transition:.25s;

}

.dashboard-card:hover{

    transform:translateY(-4px);
    box-shadow:0 10px 25px rgba(0,0,0,.15);

}

.dashboard-card span{

    color:#666;
    font-size:14px;

}

.dashboard-card h2{

    margin-top:10px;
    margin-bottom:0;
    font-size:32px;

}

.dashboard-card i{

    font-size:42px;
    opacity:.20;

}

.total{
border-left:5px solid #1d3557;
}

.pending{
border-left:5px solid #f0ad4e;
}

.approved{
border-left:5px solid #28a745;
}

.issued{
border-left:5px solid #007bff;
}

.rejected{
border-left:5px solid #dc3545;
}


/* =====================================================
   CARDS
===================================================== */

.card{

    background:#fff;
    border-radius:12px;
    padding:20px;
    margin-bottom:25px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);

}

.card-header{

    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;

}

.card-header h3{

    margin:0;
    color:#1d3557;

}


/* =====================================================
   BUTTONS
===================================================== */

.btn-view{

    background:#1d3557;
    color:#fff;
    text-decoration:none;
    padding:8px 18px;
    border-radius:6px;
    font-size:14px;

}

.btn-view:hover{

    background:#16304d;

}

.btn-primary{

    display:inline-block;
    background:#1d3557;
    color:#fff;
    padding:10px 20px;
    border-radius:6px;
    text-decoration:none;

}

.btn-primary:hover{

    background:#16304d;

}


/* =====================================================
   TABLE
===================================================== */

.table-responsive{

    overflow:auto;

}

.erp-table{

    width:100%;
    border-collapse:collapse;

}

.erp-table thead{

    background:#1d3557;
    color:#fff;

}

.erp-table th{

    padding:14px;
    text-align:left;
    font-size:14px;

}

.erp-table td{

    padding:14px;
    border-bottom:1px solid #eee;
    vertical-align:middle;

}

.erp-table tbody tr:nth-child(even){

    background:#fafafa;

}

.erp-table tbody tr:hover{

    background:#f5f8fc;

}

.text-right{

    text-align:right;

}

.text-center{

    text-align:center;

}


/* =====================================================
   STATUS BADGES
===================================================== */

.badge-success{

    background:#28a745;
    color:#fff;
    padding:6px 12px;
    border-radius:20px;
    font-size:12px;

}

.badge-warning{

    background:#ffc107;
    color:#222;
    padding:6px 12px;
    border-radius:20px;
    font-size:12px;

}

.badge-primary{

    background:#007bff;
    color:#fff;
    padding:6px 12px;
    border-radius:20px;
    font-size:12px;

}

.badge-danger{

    background:#dc3545;
    color:#fff;
    padding:6px 12px;
    border-radius:20px;
    font-size:12px;

}

.badge-secondary{

    background:#6c757d;
    color:#fff;
    padding:6px 12px;
    border-radius:20px;
    font-size:12px;

}


/* =====================================================
   EMPTY TABLE
===================================================== */

.empty-table{

    text-align:center;
    padding:60px 20px;

}

.empty-table i{

    font-size:60px;
    color:#ccc;
    margin-bottom:15px;

}

.empty-table h4{

    margin-bottom:10px;

}

.empty-table p{

    color:#777;
    margin-bottom:20px;

}


/* =====================================================
   SUMMARY CARDS
===================================================== */

.summary-row{

    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin-top:25px;

}

.summary-card{

    background:#fff;
    border-radius:12px;
    padding:20px;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
    text-align:center;

}

.summary-card h4{

    margin:0;
    color:#666;

}

.summary-card h2{

    margin-top:15px;
    color:#1d3557;
    font-size:30px;

}


/* =====================================================
   RESPONSIVE
===================================================== */

@media(max-width:1200px){

.dashboard-grid{

grid-template-columns:repeat(3,1fr);

}

.summary-row{

grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:768px){

.dashboard-grid{

grid-template-columns:1fr;

}

.summary-row{

grid-template-columns:1fr;

}

.page-header{

flex-direction:column;
align-items:flex-start;
gap:15px;

}

.erp-table{

font-size:13px;

}

}




/*navigatiom.php*/

/* ===========================
   ERP HEADER
=========================== */

.erp-header{

    width:100%;

    background:linear-gradient(120deg,#1C012C,#2F1368,#400887);

    box-shadow:0 4px 15px rgba(0,0,0,.18);

}





.header-container{

    width:100%;

    max-width:none;

    margin:0;

    padding:0 30px;

}



.erp-header-top{

    height:72px;

    display:flex;

    align-items:center;

}

.erp-header-top .header-container{

    display:flex;

    justify-content:space-between;

    align-items:center;

    width:100%;

}

.erp-logo{

    display:flex;

    align-items:center;

    gap:15px;

}

.erp-logo img{

    height:42px;

}

.erp-logo h2{

    margin:0;

    color:#fff;

    font-size:22px;

    font-weight:700;

}

.erp-logo small{

    color:#d8c8f2;

    font-size:12px;

}

.erp-user{

    display:flex;

    align-items:center;

    gap:22px;

    color:#fff;

}

.erp-user a{

    color:#fff;

    text-decoration:none;

}

.erp-user span{

    font-size:14px;

}

.erp-user i{

    margin-right:6px;

}

.erp-nav{

    border-top:1px solid rgba(255,255,255,.10);

}

.erp-nav nav{

    display:flex;

    align-items:center;

    gap:4px;

}

.erp-nav nav>a,

.nav-dropdown button{

    color:#ddd;

    text-decoration:none;

    background:none;

    border:none;

    cursor:pointer;

    padding:14px 18px;

    font-size:14px;

    font-weight:600;

    transition:.25s;

    border-radius:8px 8px 0 0;

}

.erp-nav nav>a:hover,

.nav-dropdown button:hover{

    background:rgba(255,255,255,.12);

    color:#fff;

}

.erp-nav nav>a.active{

    background:#fff;

    color:#1C012C;

}

.nav-dropdown{

    position:relative;

}

.nav-dropdown-menu{

    position:absolute;

    top:100%;

    left:0;

    background:#fff;

    min-width:220px;

    border-radius:10px;

    box-shadow:0 10px 30px rgba(0,0,0,.18);

    display:none;

    overflow:hidden;

    z-index:999;

}

.nav-dropdown:hover .nav-dropdown-menu{

    display:block;

}

.nav-dropdown-menu a{

    display:block;

    padding:12px 16px;

    text-decoration:none;

    color:#333;

    font-size:14px;

}

.nav-dropdown-menu a:hover{

    background:#f5f5f5;

}

.page-container{

    width:100%;

    max-width:1400px;

    margin:0 auto;

    padding:25px;

}






/* =====================================================
   CREDIT NOTE DASHBOARD STYLE
===================================================== */


.page-container{

    padding:25px;

    background:#ffffff;

    min-height:100vh;

}



/* HEADER */

.dashboard-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:25px;

}


.dashboard-header h1{

    margin:0;

    font-size:28px;

    font-weight:700;

    color:#252525;

}


.dashboard-header p{

    margin-top:8px;

    color:#777;

}


.dashboard-date{

    background:white;

    padding:12px 18px;

    border-radius:12px;

    box-shadow:0 4px 15px rgba(0,0,0,.06);

    color:#555;

}





/* KPI CARDS */


.dashboard-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:20px;

}



.kpi-card{

    background:white;

    padding:22px;

    border-radius:18px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    box-shadow:0 8px 25px rgba(0,0,0,.06);

    transition:.3s;

}


.kpi-card:hover{

    transform:translateY(-5px);

}



.kpi-card span{

    color:#777;

    font-size:14px;

}


.kpi-card h2{

    margin:8px 0;

    font-size:32px;

}


.kpi-card small{

    color:#999;

}


.kpi-card i{

    font-size:38px;

    opacity:.25;

}




/* COLORS */


.kpi-card.total{

    border-left:5px solid #6c5ce7;

}


.kpi-card.pending{

    border-left:5px solid #f39c12;

}


.kpi-card.approved{

    border-left:5px solid #27ae60;

}


.kpi-card.issued{

    border-left:5px solid #0984e3;

}


.kpi-card.rejected{

    border-left:5px solid #e74c3c;

}





/* SUMMARY */


.summary-grid{

    margin-top:25px;

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:20px;

}



.summary-box{

    background:white;

    padding:20px;

    border-radius:16px;

    box-shadow:0 5px 20px rgba(0,0,0,.05);

}


.summary-box h4{

    color:#777;

    margin-bottom:10px;

}


.summary-box h2{

    margin:0;

    color:#333;

}





/* QUICK ACTION */


.quick-actions{

    margin:25px 0;

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:18px;

}



.action-btn{

    padding:18px;

    color:white;

    border-radius:15px;

    display:flex;

    align-items:center;

    gap:12px;

    text-decoration:none;

    font-weight:600;

    transition:.3s;

}



.action-btn:hover{

    transform:translateY(-4px);

    color:white;

}



.action-btn i{

    font-size:25px;

}



.purple{

    background:#6c5ce7;

}


.blue{

    background:#0984e3;

}


.green{

    background:#27ae60;

}


.orange{

    background:#e67e22;

}





/* TABLE */


.dashboard-section{

    background:white;

    padding:25px;

    border-radius:18px;

    box-shadow:0 8px 25px rgba(0,0,0,.05);

}



.section-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:20px;

}


.section-header a{

    text-decoration:none;

    color:#6c5ce7;

}




.dashboard-table{

    width:100%;

    border-collapse:collapse;

}



.dashboard-table th{

    background:#f7f7f7;

    padding:14px;

    text-align:left;

    font-size:13px;

}



.dashboard-table td{

    padding:14px;

    border-bottom:1px solid #eee;

}



.dashboard-table tr:hover{

    background:#fafafa;

}





/* STATUS BADGE */


.status-badge{

    padding:6px 12px;

    border-radius:20px;

    font-size:12px;

    font-weight:600;

}



.status-badge.pending{

    background:#fff3cd;

    color:#856404;

}


.status-badge.approved{

    background:#d4edda;

    color:#155724;

}


.status-badge.issued{

    background:#d1ecf1;

    color:#0c5460;

}


.status-badge.rejected{

    background:#f8d7da;

    color:#721c24;

}





/* BOTTOM SECTION */


.dashboard-bottom{

    display:grid;

    grid-template-columns:2fr 1fr;

    gap:20px;

    margin-top:25px;

}


.status-card,
.system-card{

    background:white;

    padding:25px;

    border-radius:18px;

    box-shadow:0 8px 25px rgba(0,0,0,.05);

}



.progress-item{

    margin-top:20px;

}


.progress-label{

    display:flex;

    justify-content:space-between;

    margin-bottom:8px;

}



.progress-bar{

    height:10px;

    background:#eee;

    border-radius:20px;

    overflow:hidden;

}


.bar{

    height:100%;

}


.pending-bar{

    background:#f39c12;

}


.approved-bar{

    background:#27ae60;

}


.issued-bar{

    background:#0984e3;

}


.rejected-bar{

    background:#e74c3c;

}




.system-card ul{

    list-style:none;

    padding:0;

}


.system-card li{

    display:flex;

    justify-content:space-between;

    padding:14px 0;

    border-bottom:1px solid #eee;

}




.dashboard-footer{

    margin-top:25px;

    text-align:center;

    padding:18px;

    color:#777;

}




/* RESPONSIVE */


@media(max-width:900px){


.dashboard-grid,
.summary-grid,
.quick-actions,
.dashboard-bottom{

    grid-template-columns:1fr;

}


.dashboard-header{

    flex-direction:column;

    align-items:flex-start;

    gap:15px;

}


}


/*--header full*/

html,
body {
    margin:0;
    padding:0;
    width:100%;
}


/* Main wrapper */

.wrapper {

    width:100%;

    margin:0;

    padding:0;

}


/* Top header */

.top-header,
.header,
.navbar {

    margin-top:0;

    margin-left:0;

    margin-right:0;

    width:100%;

}