.stock-ledger-page {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.stock-ledger-header h2 {
    margin-bottom: 6px;
}

.stock-ledger-filters {
    display: grid;
    grid-template-columns: 1.4fr 1.2fr 1fr auto auto;
    gap: 12px;
    align-items: center;
}

.stock-ledger-filters select,
.stock-ledger-filters input {
    width: 100%;
    height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 0 14px;
    background: #ffffff;
    color: #1f2937;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.stock-ledger-filters select:focus,
.stock-ledger-filters input:focus {
    border-color: #004c78;
    box-shadow: 0 0 0 3px rgba(0, 76, 120, 0.10);
}

.stock-ledger-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.stock-ledger-table {
    width: 100%;
    min-width: 900px;
    table-layout: auto;
}

.stock-ledger-table th,
.stock-ledger-table td {
    vertical-align: middle;
    white-space: nowrap;
}

.ledger-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .3px;
    white-space: nowrap;
    background: #eef2f7;
    color: #344054;
}

.ledger-badge.purchase {
    background: #e8f7ef;
    color: #067647;
}

.ledger-badge.purchase_reversal {
    background: #fff4e5;
    color: #b54708;
}

.ledger-badge.waste {
    background: #fdecec;
    color: #b42318;
}

.ledger-badge.waste_reversal {
    background: #eef4ff;
    color: #3538cd;
}

.ledger-badge.sale {
    background: #eafaf5;
    color: #027a48;
}

.ledger-badge.sale_reversal {
    background: #fff6ed;
    color: #c4320a;
}

.ledger-badge.adjustment {
    background: #f4f3ff;
    color: #5925dc;
}

.ledger-badge.transfer {
    background: #eff8ff;
    color: #175cd3;
}

.ledger-badge.central_kitchen_receipt {
    background: #fdf2fa;
    color: #c11574;
}

.ledger-qty {
    font-weight: 800;
    white-space: nowrap;
}

.ledger-qty.positive {
    color: #067647;
}

.ledger-qty.negative {
    color: #b42318;
}

.ledger-notes {
    max-width: 220px;
    white-space: normal !important;
    color: #667085;
}

@media (max-width: 1100px) {
    .stock-ledger-filters {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .stock-ledger-filters {
        grid-template-columns: 1fr;
    }
}

.stock-ledger-meta {
    margin-top: 14px;
    font-size: 13px;
    color: #667085;
}

.stock-ledger-pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.stock-ledger-pagination a {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.stock-ledger-pagination a.active {
    background: #004c78;
    color: #ffffff;
}