/* =========================================
   LEDGER FILTER — COMPACT HEIGHT FIX
========================================= */

.snc-section.snc-ledger-filter {
    padding: 0 !important;
    margin-bottom: 16px !important;
}

.snc-section.snc-ledger-filter .snc-section-header {
    padding: 10px 20px !important;
}

.snc-section.snc-ledger-filter .snc-section-body {
    padding: 12px 20px !important;
}

.snc-section.snc-ledger-filter .snc-row {
    margin-bottom: 0 !important;
    row-gap: 10px !important;
}

.snc-section.snc-ledger-filter input,
.snc-section.snc-ledger-filter button {
    height: 44px !important;
    margin: 0 !important;
}

.snc-section.snc-ledger-filter form {
    margin: 0 !important;
}


/* =========================================
   LEDGER CARDS — FULL RESTORED (FIXED)
========================================= */

.snc-ledger-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin: 24px 0 10px;
}

.snc-ledger-card {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 26px 26px 26px 80px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    transition: all 0.25s ease;
}

.snc-ledger-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.08);
}

.snc-ledger-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 6px;
    border-radius: 6px;
    background: #2563eb;
}

.snc-ledger-card::after {
    content: "";
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2563eb;
    opacity: 0.15;
}

/* TEXT */
.snc-ledger-card div {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    margin-bottom: 6px !important;
    letter-spacing: 0.2px;
    text-align: left;
}

.snc-ledger-card strong {
    font-size: 30px !important;
    font-weight: 700 !important;
    color: #4b5563 !important;
    line-height: 1.1;
    text-align: left;
}

/* COLORS */
.snc-ledger-card:nth-child(1)::before,
.snc-ledger-card:nth-child(1)::after { background: #2563eb; }

.snc-ledger-card:nth-child(2)::before,
.snc-ledger-card:nth-child(2)::after { background: #16a34a; }

.snc-ledger-card:nth-child(3)::before,
.snc-ledger-card:nth-child(3)::after { background: #f97316; }

.snc-ledger-card:nth-child(4)::before,
.snc-ledger-card:nth-child(4)::after { background: #7c3aed; }

/* ICONS (IMPORTANT FIX) */
.snc-ledger-card::after {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    opacity: 1 !important;
    transform: translateY(-50%) scale(1.15);
}

.snc-ledger-card:nth-child(1)::after { content: "📦"; color: #1d4ed8; }
.snc-ledger-card:nth-child(2)::after { content: "💰"; color: #15803d; }
.snc-ledger-card:nth-child(3)::after { content: "⏳"; color: #ea580c; }
.snc-ledger-card:nth-child(4)::after { content: "💳"; color: #6d28d9; }

@media (max-width: 768px) {
    .snc-ledger-card {
        padding: 22px 22px 22px 72px;
    }
    .snc-ledger-card strong {
        font-size: 28px !important;
    }
}


/* =========================================
   LEDGER TABLE — FINAL ZOOM FIX
========================================= */

.snc-ledger-scroll{
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling: touch;
}

/* 🔥 MAIN FIX */
.snc-ledger-table{
    border-collapse:collapse;
    table-layout:fixed;
    width:1200px !important;
    min-width:1200px !important;
}

.snc-ledger-table th,
.snc-ledger-table td{
    padding:12px 10px !important;
    text-align:center;
    vertical-align:middle;
    white-space:nowrap !important;
}

.snc-ledger-table th{
    color:#000 !important;
    font-weight:600 !important;
}

/* COLUMN WIDTHS */
.snc-ledger-table th:nth-child(1),
.snc-ledger-table td:nth-child(1){ width:90px; }

.snc-ledger-table th:nth-child(2),
.snc-ledger-table td:nth-child(2){ width:130px; }

.snc-ledger-table th:nth-child(3),
.snc-ledger-table td:nth-child(3){ width:120px; }

.snc-ledger-table th:nth-child(4),
.snc-ledger-table td:nth-child(4){ width:140px; }

.snc-ledger-table th:nth-child(5),
.snc-ledger-table td:nth-child(5){ width:200px; }

.snc-ledger-table th:nth-child(6),
.snc-ledger-table td:nth-child(6){ width:260px; }

.snc-ledger-table th:nth-child(7),
.snc-ledger-table td:nth-child(7){ width:100px; }

.snc-ledger-table th:nth-child(8),
.snc-ledger-table td:nth-child(8){ width:110px; }

.snc-ledger-table th:last-child,
.snc-ledger-table td:last-child{
    width:240px;
}


/* =========================================
   CHARGES FORM
========================================= */

.snc-ledger-charges-form{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
}

.snc-ledger-charge-input{
    width:90px;
    height:36px;
    text-align:center;
}

.snc-ledger-table input.snc-inline-pkgs,
.snc-ledger-table input.snc-inline-weight{
    width:70px;
    height:36px;
    text-align:center;
}

.snc-ledger-save-btn{
    height:36px;
    padding:0 14px;
    display:inline-block;
}


/* =========================================
   PAGINATION
========================================= */

.snc-pagination {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.snc-pagination .snc-save-btn {
    padding: 6px 12px;
    font-size: 14px;
}

.snc-pagination .snc-save-btn.active {
    background: #2563eb;
    color: #fff;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px){

    .snc-ledger-scroll{
        overflow-x:auto;
    }

    .snc-ledger-table{
        min-width:1200px;
    }

    .snc-ledger-table th,
    .snc-ledger-table td{
        font-size:14px;
        padding:10px;
        white-space:nowrap;
    }

    .snc-ledger-table input{
        min-width:70px;
    }
}

/* =========================================
   CARD CONTENT ALIGN FIX (FINAL)
========================================= */

/* Force left alignment properly */
.snc-ledger-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Title */
.snc-ledger-card div {
    text-align: left !important;
    margin-left: 0 !important;
}

/* Number FIX */
.snc-ledger-card strong {
    text-align: left !important;
    margin-left: 0 !important;
    display: block;
}

/* Prevent accidental center alignment from parent */
.snc-ledger-card * {
    text-align: left !important;
}