.inventory-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:16px;
}
.inventory-header h2{
    font-size:18px;
    font-weight:700;
    color:#204028;
    margin:0;
}
.page-content{
    padding:10px;
}
.page-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:4px;
}
.page-header h2{
    margin:0;
    font-size:18px;
    font-weight:700;
    line-height:1.2;
    color:#204028;
}
.page-header small{
    color:#6b7280;
    font-size:12px;
}
/* KPI ROW */
.stats-row{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:6px;
    margin-bottom:6px;
}
.stat-box{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:12px;
    padding:2px 6px;
    text-align:center;
    min-height:48px;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
    transition:.18s;
}
.stat-box:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 18px rgba(0,0,0,.12);
}
.stat-box h4{
    margin:0;
    font-size:20px;
    font-weight:700;
    color:#204028;
    line-height:1;
}
.stat-box p{
    margin-top:2px;
    font-size:11px;
    margin-bottom:0;
    color:#6b7280;
}
.accounts-card{
    background:linear-gradient(135deg,#dbeafe,#ffffff);
    border-left:5px solid #2563eb;
}
.active-card{
    background:linear-gradient(135deg,#dcfce7,#ffffff);
    border-left:5px solid #16a34a;
}
.contacts-card{
    background:linear-gradient(135deg,#fef3c7,#ffffff);
    border-left:5px solid #f59e0b;
}
.opportunity-card{
    background:linear-gradient(135deg,#fee2e2,#ffffff);
    border-left:5px solid #ef4444;
}
/* KPI Cards */
.inventory-kpi{
    border-radius:12px;
    border:1px solid #e5e7eb;
    overflow:hidden;
    height:100%;
    cursor:pointer;
    transition:.25s;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
}
.inventory-kpi:hover{
    transform:translateY(-5px);
    box-shadow:0 12px 24px rgba(0,0,0,.015);
}
.inventory-kpi .card-body{
    padding:3px 6px;
    min-height:50px;
}
.inventory-kpi h6{
    color:#000;
    font-size:11px;
    font-weight:600;
    margin-bottom:2px;
}
.inventory-kpi h3{
    font-size:20px;
    font-weight:700;
    color:#000;
    margin:0;
}
/* Action Buttons */
.inventory-actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin:12px 0 16px;
}
.inventory-actions .btn{
    border-radius:7px;
    flex:0 0 auto;
    padding:6px 14px;
    font-size:13px;
    font-weight:600;
}
/* Low Stock Alert */
.low-stock-box{
    border-left:4px solid #dc3545;
    padding:10px 14px;
    margin-bottom:16px;
    border-radius:8px;
}
.low-stock-box ul{
    margin-bottom:0;
}
/* Charts */
.chart-card{
    background:#fff;
    border-radius:14px;
    box-shadow:0 4px 16px rgba(0,0,0,.05);
    padding:14px;
    margin-bottom:18px;
}
.chart-card canvas{
    height:260px !important;
}
/* INVENTORY TABLE Same Style as Accounts */
.inventory-table{
    border-radius:14px;
    overflow:hidden;
    border:1px solid #e5e7eb;
    box-shadow:0 4px 15px rgba(0,0,0,.08);
}
.inventory-table table{
    width:100%;
    border-collapse:collapse;
    font-size:10.5px;
    margin:0;
}
.inventory-table th{
    padding:4px 8px;
    font-size:10.5px;
    line-height:1.2;
    background:#1e293b;
    color:#fff;
    white-space:nowrap;
    font-weight:600;
}
.inventory-table td{
    padding:4px 8px;
    font-size:10.5px;
    line-height:1.2;
    vertical-align:middle;
    border-top:1px solid #edf2f7;
}
.inventory-table tbody tr{
    height:11px;
    cursor:pointer;
    transition:.18s;
}
.inventory-table tbody tr:hover{
    background:#f8fafc;
}
.inventory-table tbody tr:hover td{
    background:#f8fafc;
}
.inventory-table td,
.inventory-table th{
    cursor:pointer;
}
.inventory-table a{
    color:#2563eb;
    text-decoration:none;
    font-weight:600;
}
.inventory-table a:hover{
    text-decoration:underline;
}
/* Low Stock */
.table-danger td{
    font-weight:600;
}
/* Pagination */
.pagination{
    display:flex;
    justify-content:center;
    gap:10px;
    margin-top:25px;
}
.pagination a{
    text-decoration:none;
    padding:8px 15px;
    border-radius:8px;
    background:#204028;
    color:#fff;
}
.pagination span{
    padding:8px 15px;
}
/* Responsive */
@media(max-width:991px){
.inventory-header{
    flex-direction:column;
    align-items:flex-start;
    gap:15px;
}
.inventory-actions{
    width:100%;
}
}
/* Movement Filter */
.movement-filter{
margin-bottom:20px;
padding:16px;
background:#fff;
border-radius:12px;
box-shadow:0 4px 14px rgba(0,0,0,.06);
}
.movement-filter select,
.movement-filter input{
height:38px;
font-size:12px;
border-radius:6px;
width:100%;
padding:6px 8px;
min-width:0;
}
.movement-filter .form-control,
.movement-filter .form-select{
width:100%;
max-width:100%;
font-size:12px;
}
.movement-filter label{
font-size:11px;
margin-bottom:4px;
}
.movement-filter .btn{
height:38px;
}
.movement-filter .row{
row-gap:12px;
}
.movement-filter .btn{
padding:8px 18px;
border-radius:8px;
font-weight:600;
}
/* Blue */
.row>.col-md-3:nth-child(1) .inventory-kpi{
background:linear-gradient(135deg,#dbeafe,#ffffff);
border-left:5px solid #2563eb;
}
/* Green */
.row>.col-md-3:nth-child(2) .inventory-kpi{
background:linear-gradient(135deg,#dcfce7,#ffffff);
border-left:5px solid #16a34a;
}
/* Yellow */
.row>.col-md-3:nth-child(3) .inventory-kpi{
background:linear-gradient(135deg,#fef9c3,#ffffff);
border-left:5px solid #eab308;
}
/* Red */
.row>.col-md-3:nth-child(4) .inventory-kpi{
background:linear-gradient(135deg,#fee2e2,#ffffff);
border-left:5px solid #dc2626;
}
.inventory-kpi:hover h3{
transform:scale(1.08);
transition:.2s;
}
.inventory-kpi h3{
transition:.2s;
}
.inventory-kpi:active{
transform:scale(.97);
}
.inventory-kpi a{
text-decoration:none;
color:inherit;
display:block;
}
.movement-filter select{
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
.movement-filter{
overflow-x:auto;
}
.table-responsive{
overflow-x:auto;
}
.table-responsive table{
min-width:1700px;
}
/* Stock Movement Table Same as Accounts */
.table-responsive{
    border-radius:14px;
    overflow:auto;
    border:1px solid #e5e7eb;
    box-shadow:0 4px 15px rgba(0,0,0,.08);
}
.table-responsive table{
    min-width:1700px;
    width:100%;
    border-collapse:collapse;
    font-size:10.5px;
}
.table-responsive th{
    background:#1e293b;
    color:#fff;
    padding:4px 8px;
    font-size:10.5px;
    white-space:nowrap;
    line-height:1.2;
}
.table-responsive td{
    padding:4px 8px;
    font-size:10.5px;
    border-top:1px solid #edf2f7;
    line-height:1.2;
    vertical-align:middle;
}
.table-responsive tbody tr{
    height:11px;
    transition:.18s;
}
.table-responsive tbody tr:hover{
    background:#f8fafc;
}
.table-responsive tbody tr:hover td{
    background:#f8fafc;
}
/* Inventory Report Export Cards */
.inventory-export-row{
    max-width:700px;
    margin:18px auto 0;
}
.inventory-export-row .col-md-6{
    margin-bottom:8px;
}
.inventory-export-row .btn{
    height:36px;
    font-size:12px;
    font-weight:600;
    border-radius:8px;
    padding:6px 10px;
}
