/* Checklist Durian. Direction: DESIGN.md (ledger paper, no shadows, borders only). */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: #fbf8f0;
    color: #1f2a20;
    font: 14px/1.45 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    -webkit-text-size-adjust: 100%;
}

a { color: #2f5d3a; }
a:hover { color: #1f2a20; }
h1 { font-size: 18px; font-weight: 600; margin: 0 0 16px; }
.muted { color: #5b6357; font-size: 13px; }
.inline { display: inline; }
:focus-visible { outline: 2px solid #2f5d3a; outline-offset: 1px; }

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid #ded5c0;
    padding: 0 20px;
    min-height: 50px;
}
.topbar-masthead {
    display: flex;
    align-items: center;
    gap: 20px;
}
.brand {
    font-size: 15px;
    font-weight: 600;
    color: #1f2a20;
    text-decoration: none;
    letter-spacing: .01em;
}
.brand:hover {
    color: #2f5d3a;
}
.topbar-nav {
    display: flex;
    align-items: stretch;
    gap: 4px;
    margin-left: 28px;
    margin-right: auto;
}
.nav-tab {
    display: inline-flex;
    align-items: center;
    padding: 14px 14px;
    font-size: 13px;
    color: #5b6357;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: background-color 120ms ease, color 120ms ease;
}
.nav-tab:hover {
    color: #1f2a20;
    background: #fdfbf3;
}
.nav-tab.active {
    color: #2f5d3a;
    font-weight: 600;
    border-bottom-color: #2f5d3a;
    background: #fff;
}
.topbar-logout {
    margin-left: auto;
    display: flex;
    align-items: center;
}
.topbar-cabang {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
}
.topbar-cabang select {
    border: 1px solid #ded5c0;
    background: #fff;
    color: #1f2a20;
    padding: 4px 6px;
    font: inherit;
    font-size: 13px;
    max-width: 190px;
}
.topbar-cabang .muted { font-size: 12px; }
.btn-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ded5c0;
    background: #fff;
    color: #5b6357;
    padding: 5px 11px;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 120ms ease, color 120ms ease;
}
.btn-logout:hover {
    background: #f2ecdc;
    color: #1f2a20;
}

.wrap { padding: 20px; }
.guest { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.card { width: 100%; max-width: 380px; background: #fff; border: 1px solid #ded5c0; padding: 24px; }
.card h1 { margin-bottom: 4px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar-date { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar input[type="date"], .toolbar input[type="text"] { border: 1px solid #ded5c0; background: #fff; padding: 6px 8px; font: inherit; color: #1f2a20; }

.view-switch {
    display: none;
    align-items: center;
    border: 1px solid #ded5c0;
    background: #fff;
}
.btn-view {
    border: 0;
    background: #fff;
    color: #5b6357;
    padding: 6px 14px;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 120ms ease, color 120ms ease;
}
.btn-view:first-child {
    border-right: 1px solid #ded5c0;
}
.btn-view.active {
    background: #2f5d3a;
    color: #fff;
    font-weight: 600;
}
.btn-view:hover:not(.active) {
    background: #f2ecdc;
    color: #1f2a20;
}

.add-card {
    background: #fff;
    border: 1px solid #ded5c0;
    padding: 8px 12px;
    margin-bottom: 12px;
}
.add-card-header {
    font-size: 12px;
    font-weight: 600;
    color: #414b3d;
    margin-bottom: 6px;
}
.add-card-grid {
    display: flex;
    gap: 8px;
    align-items: center;
}
.add-card-grid select {
    flex: 2 1 180px;
    height: 32px;
    padding: 4px 6px;
    font: inherit;
    font-size: 13px;
    border: 1px solid #ded5c0;
    background: #fff;
    box-sizing: border-box;
}
.add-card-grid input[name="kode_harian"] {
    flex: 1 1 120px;
    height: 32px;
    padding: 4px 6px;
    font: inherit;
    font-size: 13px;
    border: 1px solid #ded5c0;
    background: #fff;
    box-sizing: border-box;
}
.add-card-grid .input-unit {
    flex: 1 1 110px;
    max-width: 140px;
    height: 32px;
}
.add-card-grid .input-unit input {
    height: 32px;
    padding: 4px 6px;
    font: inherit;
    font-size: 13px;
    border: 1px solid #ded5c0;
    background: #fff;
    box-sizing: border-box;
}
.add-card-grid .btn-add {
    flex: 0 0 auto;
    height: 32px;
    padding: 0 14px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.input-unit {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 100%;
}
.input-unit input {
    width: 100%;
    /* Satuan g/kg tidak lagi ditulis di dalam input: glyph-nya menutupi digit di layar HP. */
    padding-right: 8px !important;
}

.btn, button {
    display: inline-block;
    border: 1px solid #ded5c0;
    background: #fff;
    color: #1f2a20;
    padding: 6px 11px;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}
.btn:hover, button:hover { background: #f2ecdc; text-decoration: none; }
.btn.primary { background: #2f5d3a; border-color: #2f5d3a; color: #fff; }
.btn.primary:hover { background: #24492e; }
.btn.today { border-color: #c8901a; color: #6b4a0c; }

.table-wrap { overflow-x: auto; border: 1px solid #ded5c0; background: #fff; }

table.sheet { width: 100%; border-collapse: collapse; min-width: 860px; }
.sheet th, .sheet td { border: 1px solid #ded5c0; padding: 3px 8px; height: 34px; text-align: left; vertical-align: middle; }
.sheet th { font-weight: 600; font-size: 12px; color: #414b3d; background: #f7f2e4; white-space: nowrap; }
.sheet th.no, .sheet td.no { width: 56px; text-align: center; color: #5b6357; font-variant-numeric: tabular-nums; }
.sheet th.jenis, .sheet td.jenis { width: 190px; }
.sheet th.kode, .sheet td.kode { width: 95px; }
.sheet th.berat, .sheet td.berat { width: 105px; min-width: 95px; }
.sheet th.check, .sheet td.check { width: 68px; text-align: center; }
.sheet th.num, .sheet td.num { width: 125px; min-width: 110px; }
.sheet td.kode, .sheet td.berat, .sheet td.num { font-variant-numeric: tabular-nums; }
.sheet td.empty { text-align: center; color: #5b6357; padding: 20px; }
.sheet th.aksi, .sheet td.aksi { width: 84px; }
.sheet tr:target td { background: #fdf3d8; }

.sheet tfoot {
    background: #f7f2e4;
    border-top: 2px solid #ded5c0;
}
.sheet tfoot td {
    border: 1px solid #ded5c0;
    padding: 4px 8px;
    height: 36px;
    font-weight: 600;
    vertical-align: middle;
}
.sheet tfoot .summary-label {
    color: #414b3d;
    text-align: right;
    padding-right: 14px;
}
.sheet tfoot .summary-value {
    color: #1f2a20;
    font-variant-numeric: tabular-nums;
}

tr:not(.is-retur) .durpas-cell input:disabled,
tr:not(.is-retur) .chorral-cell input:disabled {
    background: #f7f2e4;
    color: #8a8f84;
    border-color: transparent;
    cursor: not-allowed;
}
.sheet input[type="text"], .sheet select {
    width: 100%;
    border: 1px solid transparent;
    background: #fdfbf3;
    padding: 3px 5px;
    font: inherit;
    color: inherit;
}
.sheet input[type="text"]:hover, .sheet select:hover { border-color: #ded5c0; }
.sheet input[type="text"]:focus, .sheet select:focus { border-color: #2f5d3a; background: #fff; outline: none; }
.sheet input[type="checkbox"] { width: 17px; height: 17px; cursor: pointer; accent-color: #2f5d3a; }
.sheet label.tap { display: inline-flex; align-items: center; cursor: pointer; }

.add-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.add-row input[type="text"], .add-row input[type="date"], .add-row select { width: auto; flex: 1 1 170px; border: 1px solid #ded5c0; padding: 6px 8px; font: inherit; background: #fff; }
.add-row button { flex: 0 0 auto; }
.add-row input[type="text"]::placeholder { color: #8a8f84; }

.stack { display: flex; flex-direction: column; gap: 12px; }
.stack label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #414b3d; }
.stack input[type="email"], .stack input[type="password"] { border: 1px solid #ded5c0; padding: 8px 9px; font: inherit; background: #fff; }
.row-check { flex-direction: row; align-items: center; gap: 6px; }

.alert { border: 1px solid #b45309; background: #fff5e6; color: #7a3d06; padding: 8px 12px; margin-bottom: 14px; font-size: 13px; }
.alert ul { margin: 0; padding-left: 18px; }
.alert.ok { border-color: #2f5d3a; background: #eef5ee; color: #24492e; }
.muted { color: #5b6357; font-size: 12px; }
tr.is-batal td { color: #8a8f84; }
tr.is-batal td.kode,
tr.is-batal td.num { text-decoration: line-through; }

/* Durpas: angka rata kanan seperti buku kas. */
.durpas-sheet th.num, .durpas-sheet td.num { text-align: right; }
.durpas-sheet td.num input[type="text"] { text-align: right; }
.durpas-sheet td.num .input-unit { justify-content: flex-end; }

.status { font-size: 12px; color: #5b6357; }
.status.on { color: #2f5d3a; }
.status.off { color: #8a8f84; }
.badge { font-size: 12px; }
.badge.on { color: #2f5d3a; font-weight: 600; }
.badge.off { color: #8a8f84; }

.copy { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.copy input { width: 100%; max-width: 340px; border: 1px solid #ded5c0; padding: 5px 7px; font: inherit; font-size: 12px; background: #fff; color: #414b3d; }

/* ---------- Phone: one card per row, no horizontal scrolling ---------- */
@media (max-width: 720px) {
    .wrap { padding: 12px; }
    .topbar {
        display: flex;
        flex-direction: column;
        padding: 0;
        background: #fff;
        border-bottom: 1px solid #ded5c0;
        min-height: 0;
    }
    .topbar-masthead {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 6px 12px;
        min-height: 48px;
        width: 100%;
        box-sizing: border-box;
    }
    .topbar-masthead:not(:last-child) {
        border-bottom: 1px solid #ded5c0;
    }
    .topbar-masthead .brand {
        font-size: 15px;
    }
    .topbar-logout {
        margin-left: auto;
    }
    .btn-logout {
        min-height: 44px;
        min-width: 44px;
        padding: 6px 12px;
        font-size: 13px;
        background: #fbf8f0;
        border: 1px solid #ded5c0;
        color: #414b3d;
    }
    .btn-logout:active {
        background: #e8dec8;
    }
    .topbar-cabang {
        width: 100%;
        margin: 0;
        padding: 6px 12px;
        border-bottom: 1px solid #ded5c0;
        background: #fff;
        box-sizing: border-box;
    }
    .topbar-cabang select {
        flex: 1 1 auto;
        min-height: 40px;
        font-size: 16px;
        max-width: none;
    }
    .topbar-nav {
        display: flex;
        width: 100%;
        margin: 0;
        padding: 0;
        background: #f7f2e4;
        box-sizing: border-box;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav-tab {
        flex: 1 0 auto;
        white-space: nowrap;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 8px 4px;
        font-size: 13px;
        font-weight: 500;
        color: #5b6357;
        text-decoration: none;
        border-right: 1px solid #ded5c0;
        border-bottom: 2px solid transparent;
        background: #f7f2e4;
        transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
    }
    .nav-tab:last-child {
        border-right: 0;
    }
    .nav-tab:hover,
    .nav-tab:focus-visible {
        background-color: #f0e9d8;
        color: #1f2a20;
    }
    .nav-tab:active {
        background-color: #e8dec8;
    }
    .nav-tab.active {
        background-color: #ffffff;
        color: #2f5d3a;
        font-weight: 600;
        border-bottom: 2px solid #2f5d3a;
    }
    h1 { font-size: 17px; margin-bottom: 12px; }

    .toolbar {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        margin-bottom: 8px;
        flex-wrap: wrap;
    }
    .toolbar-date {
        display: flex;
        align-items: center;
        gap: 4px;
        flex: 1 1 auto;
        min-width: 0;
    }
    .toolbar-date input[type="date"] {
        flex: 1 1 auto;
        min-width: 0;
        height: 36px;
        font-size: 13px;
        padding: 4px 6px;
    }
    .toolbar-date input[type="text"] {
        flex: 1 1 auto;
        min-width: 0;
        height: 36px;
        font-size: 16px;
        padding: 4px 8px;
    }
    .toolbar-date .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 13px;
    }

    .view-switch {
        display: inline-flex;
        flex: 0 0 auto;
        height: 36px;
        margin: 0;
        border: 1px solid #ded5c0;
        background: #fff;
    }
    .view-switch .btn-view {
        min-width: 48px;
        height: 36px;
        padding: 0 10px;
        font-size: 12px;
        font-weight: 500;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .add-card {
        padding: 8px 10px;
        margin-bottom: 10px;
        background: #fff;
        border: 1px solid #ded5c0;
    }
    .add-card-header {
        font-size: 12px;
        margin-bottom: 6px;
    }
    .add-card-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .add-card-grid select {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        height: 36px;
        font-size: 14px;
        padding: 4px 8px;
        box-sizing: border-box;
        border: 1px solid #ded5c0;
        background: #fff;
        flex: none;
    }
    .add-card-grid input[name="kode_harian"] {
        width: 100%;
        max-width: 100%;
        height: 36px;
        font-size: 14px;
        padding: 4px 8px;
        box-sizing: border-box;
        border: 1px solid #ded5c0;
        background: #fff;
        flex: none;
    }
    .add-card-grid .input-unit {
        width: 100%;
        max-width: 100%;
        height: 36px;
        flex: none;
    }
    .add-card-grid .input-unit input {
        width: 100%;
        height: 36px;
        font-size: 14px;
        padding: 4px 8px;
        padding-right: 8px !important;
        box-sizing: border-box;
        border: 1px solid #ded5c0;
        background: #fff;
    }
    .add-card-grid .btn-add {
        grid-column: 1 / -1;
        width: 100%;
        height: 36px;
        font-size: 13px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: none;
    }

    .table-wrap { border: 0; background: transparent; overflow: visible; }
    table.sheet { display: block; min-width: 0; }
    .sheet thead { display: none; }
    .sheet tbody { display: block; }
    .sheet tr { display: block; background: #fff; border: 1px solid #ded5c0; margin-bottom: 10px; }
    .sheet td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: auto;
        height: auto;
        min-height: 46px;
        border: 0;
        border-bottom: 1px solid #f0e9d8;
        padding: 8px 12px;
        font-size: 15px;
        font-variant-numeric: tabular-nums;
    }
    .sheet td:last-child { border-bottom: 0; }
    .table-wrap:not(.mode-table) .sheet td,
    .sheet td.no, .sheet td.jenis, .sheet td.kode, .sheet td.berat, .sheet td.check, .sheet td.num, .sheet td.aksi { width: auto; }
    .sheet td.no { background: #f7f2e4; font-weight: 600; color: #414b3d; justify-content: flex-start; }
    .sheet td.no::before { content: none; }
    .sheet td::before { content: attr(data-label); flex: 0 0 40%; font-size: 12px; color: #5b6357; }
    .sheet td.empty { display: block; text-align: center; }
    .sheet td.empty::before { content: none; }

    .sheet td > input[type="text"], .sheet td > select, .sheet td > .input-unit { flex: 1 1 60%; max-width: 60%; font-size: 16px; }
    .sheet td > input[type="text"], .sheet td > select { padding: 8px; text-align: right; }
    .sheet td > .input-unit input { font-size: 16px; padding: 8px; text-align: right; padding-right: 8px !important; }
    /* Kode dibaca dari kiri supaya seluruh kode kelihatan, tidak terpotong. */
    .sheet td.kode > input[type="text"] { text-align: left; }
    .sheet td > select { text-align: left; }
    .sheet td.check { text-align: left; }
    .sheet td.check label.tap { flex: 1 1 auto; justify-content: flex-end; min-height: 44px; }
    .sheet td.check input[type="checkbox"] { flex: 0 0 24px; width: 24px; min-width: 24px; height: 24px; margin-left: auto; }
    .sheet td.aksi button { width: 100%; min-height: 44px; }
    .sheet tr:target { border-color: #c8901a; background: #fdf3d8; }
    .sheet tr:target td { background: transparent; }

    /* Card view: hide durpas and chorral if not retur */
    .table-wrap:not(.mode-table) tr:not(.is-retur) .durpas-cell,
    .table-wrap:not(.mode-table) tr:not(.is-retur) .chorral-cell {
        display: none;
    }

    /* Card view: tfoot summary card */
    .table-wrap:not(.mode-table) .sheet tfoot {
        display: block;
        margin-top: 10px;
        background: transparent;
        border: 0;
    }
    .table-wrap:not(.mode-table) .sheet tfoot tr.summary-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #f7f2e4;
        border: 1px solid #ded5c0;
        padding: 12px 14px;
        min-height: 46px;
    }
    .table-wrap:not(.mode-table) .sheet tfoot td {
        border: 0 !important;
        background: transparent !important;
        height: auto !important;
        min-height: 0 !important;
    }
    .table-wrap:not(.mode-table) .sheet tfoot .summary-label {
        text-align: left;
        padding: 0;
        font-size: 15px;
        color: #414b3d;
    }
    .table-wrap:not(.mode-table) .sheet tfoot .summary-label::before {
        content: none;
    }
    .table-wrap:not(.mode-table) .sheet tfoot .summary-value {
        padding: 0;
        font-size: 16px;
        color: #1f2a20;
    }
    .table-wrap:not(.mode-table) .sheet tfoot .summary-value::before {
        content: none;
    }
    .table-wrap:not(.mode-table) .sheet tfoot .summary-empty {
        display: none;
    }

    /* Mobile Table Mode: restore horizontal scrolling table */
    .table-wrap.mode-table {
        border: 1px solid #ded5c0 !important;
        background: #fff !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .table-wrap.mode-table table.sheet {
        display: table !important;
        min-width: 860px !important;
        width: 100% !important;
    }
    .table-wrap.mode-table .sheet thead {
        display: table-header-group !important;
    }
    .table-wrap.mode-table .sheet tbody {
        display: table-row-group !important;
    }
    .table-wrap.mode-table .sheet tfoot {
        display: table-footer-group !important;
        background: #f7f2e4 !important;
        border-top: 2px solid #ded5c0 !important;
    }
    .table-wrap.mode-table .sheet tr {
        display: table-row !important;
        background: #fff !important;
        border: 0 !important;
        margin-bottom: 0 !important;
    }
    .table-wrap.mode-table .sheet th,
    .table-wrap.mode-table .sheet td {
        display: table-cell !important;
        border: 1px solid #ded5c0 !important;
        padding: 3px 8px !important;
        height: 34px !important;
        min-height: 0 !important;
        width: auto !important;
        vertical-align: middle !important;
    }
    .table-wrap.mode-table .sheet td::before {
        display: none !important;
    }
    .table-wrap.mode-table .sheet th.no, .table-wrap.mode-table .sheet td.no {
        width: 56px !important;
        text-align: center !important;
        background: #f7f2e4 !important;
        font-weight: normal !important;
    }
    .table-wrap.mode-table .sheet th.jenis, .table-wrap.mode-table .sheet td.jenis {
        width: 220px !important;
        min-width: 220px !important;
    }
    .table-wrap.mode-table .sheet th.kode, .table-wrap.mode-table .sheet td.kode {
        width: 120px !important;
        min-width: 120px !important;
    }
    /* Kolom angka juga tidak boleh mengkerut sampai inputnya terpotong. */
    .table-wrap.mode-table .sheet th.berat, .table-wrap.mode-table .sheet td.berat {
        width: 105px !important;
        min-width: 105px !important;
    }
    .table-wrap.mode-table .sheet th.num, .table-wrap.mode-table .sheet td.num {
        width: 125px !important;
        min-width: 125px !important;
    }
    .table-wrap.mode-table .sheet td.kode > input[type="text"] {
        width: 100% !important;
        min-width: 0 !important;
        text-overflow: clip;
    }
    .table-wrap.mode-table:not(.kartu-stok) .sheet td .input-unit input {
        padding: 3px 5px !important;
    }
    .table-wrap.mode-table .sheet th.berat, .table-wrap.mode-table .sheet td.berat {
        width: 105px !important;
    }
    .table-wrap.mode-table .sheet th.check, .table-wrap.mode-table .sheet td.check {
        width: 68px !important;
        text-align: center !important;
    }
    .table-wrap.mode-table .sheet th.num, .table-wrap.mode-table .sheet td.num {
        width: 125px !important;
    }
    .table-wrap.mode-table .sheet th.aksi, .table-wrap.mode-table .sheet td.aksi {
        width: 84px !important;
    }
    .table-wrap.mode-table .sheet td.check label.tap {
        justify-content: center !important;
        min-height: 0 !important;
    }
    .table-wrap.mode-table .sheet td.check input[type="checkbox"] {
        margin: 0 auto !important;
        width: 17px !important;
        min-width: 17px !important;
        height: 17px !important;
        flex: none !important;
    }
    .table-wrap.mode-table .sheet td > input[type="text"],
    .table-wrap.mode-table .sheet td > select,
    .table-wrap.mode-table .sheet td .input-unit {
        flex: none !important;
        max-width: 100% !important;
        font-size: 14px !important;
        text-align: left !important;
    }
    .table-wrap.mode-table .sheet td > input[type="text"],
    .table-wrap.mode-table .sheet td > select,
    .table-wrap.mode-table .sheet td .input-unit input {
        padding: 3px 5px !important;
        height: 28px !important;
        font-size: 14px !important;
    }
    .table-wrap.mode-table .sheet td.aksi {
        width: 84px !important;
    }
    .table-wrap.mode-table .sheet td.aksi button {
        width: auto !important;
        min-height: 28px !important;
        font-size: 13px !important;
    }
    .table-wrap.mode-table tr:not(.is-retur) .durpas-cell,
    .table-wrap.mode-table tr:not(.is-retur) .chorral-cell {
        display: table-cell !important;
    }
    .table-wrap.mode-table .sheet tfoot .summary-empty {
        display: table-cell !important;
    }
    .table-wrap.mode-table .sheet tfoot tr.summary-row {
        display: table-row !important;
        padding: 0 !important;
    }
    .table-wrap.mode-table .sheet tfoot .summary-label {
        text-align: right !important;
        padding-right: 14px !important;
        font-size: 13px !important;
    }
    .table-wrap.mode-table .sheet tfoot .summary-value {
        font-size: 13px !important;
    }

    .add-row { gap: 10px; }
    .add-row select, .add-row input[type="text"], .add-row input[type="date"] { flex: 1 1 100%; max-width: 100%; min-height: 44px; font-size: 16px; text-align: left; }
    .add-row button { flex: 1 1 100%; min-height: 44px; font-size: 15px; }

    .card { padding: 18px; }
    .stack input[type="email"], .stack input[type="password"] { min-height: 44px; font-size: 16px; }
    .stack button { min-height: 44px; font-size: 15px; }
    .row-check { min-height: 44px; }
    .row-check input { width: 22px; height: 22px; }
    .copy input { max-width: 100%; min-height: 40px; }
}

@media (max-width: 360px) {
    .sheet td::before { flex-basis: 34%; font-size: 11px; }
    .nav-tab { font-size: 12px; padding: 8px 2px; }
    .topbar-masthead .brand { font-size: 14px; }
}
