/* ============================================================
   ИП Учёт — адаптивные стили (мобильный + десктоп + печать)
   Бизнес-минимализм: тёмно-синий #0f3557, доход зелёный, расход красный
   ============================================================ */

:root {
    --blue: #0f3557;
    --blue-dark: #0a2740;
    --blue-soft: #e8eef5;
    --income: #16a34a;
    --income-soft: #e7f6ec;
    --expense: #dc2626;
    --expense-soft: #fdeaea;
    --bg: #f4f6f9;
    --card: #ffffff;
    --border: #e2e8f0;
    --text: #1f2937;
    --muted: #6b7280;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(15, 53, 87, .08);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.45;
    -webkit-text-size-adjust: 100%;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { margin: .3em 0; }

.ic { width: 18px; height: 18px; flex: 0 0 auto; }

.muted { color: var(--muted); font-size: 13px; }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: filter .15s, background .15s;
    text-decoration: none !important;
    min-height: 44px;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { filter: brightness(1.12); }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--border); }
.btn-outline:hover { background: var(--blue-soft); }
.btn-sm { padding: 7px 12px; min-height: 38px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fff;
    color: var(--blue);
    cursor: pointer;
    font-size: 16px;
    text-decoration: none !important;
}
.icon-btn:hover { background: var(--blue-soft); }
.icon-btn.is-disabled { opacity: .35; pointer-events: none; }
.icon-danger { color: var(--expense); }
.icon-danger:hover { background: var(--expense-soft); }
.icon-income { color: var(--income); }
.icon-income:hover { background: var(--income-soft); }

/* ---------- Карточки ---------- */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    margin-bottom: 16px;
}
.card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 12px;
    color: var(--blue-dark);
}
.card-title .ic { color: var(--blue); }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.cards .card { margin-bottom: 0; }
.cards-compact { grid-template-columns: 1fr 1fr; }

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-label { font-size: 12.5px; color: var(--muted); }
.stat-value { font-size: 21px; font-weight: 700; white-space: nowrap; }
.stat-value.income { color: var(--income); }
.stat-value.expense { color: var(--expense); }
.stat-note { font-size: 12px; color: var(--muted); }
.byr { font-size: 12px; font-weight: 500; color: var(--muted); }

/* ---------- Шапка страницы ---------- */
.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.month-nav { display: flex; align-items: center; gap: 8px; }
.month-label { font-weight: 600; font-size: 17px; min-width: 130px; text-align: center; }

/* ---------- Напоминания ---------- */
.remind-list { list-style: none; margin: 0 0 8px; padding: 0; }
.remind-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
}
.remind-item:last-child { border-bottom: none; }
.remind-name { font-weight: 600; }
.remind-sum { font-weight: 600; color: var(--expense); }
.remind-date { color: var(--muted); font-size: 13px; }

.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.badge-paid, .badge.later { background: var(--income-soft); color: var(--income); }
.badge-issued, .badge.later { }
.badge.issued { background: var(--blue-soft); color: var(--blue); }
.badge-issued { background: var(--blue-soft); color: var(--blue); }
.badge-soon { background: #fef3c7; color: #b45309; }
.badge-overdue { background: var(--expense-soft); color: var(--expense); }
.badge-later { background: var(--blue-soft); color: var(--blue); }

/* ---------- Флеш-сообщения ---------- */
.flash {
    padding: 11px 14px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 14px;
}
.flash-ok { background: var(--income-soft); color: #14532d; border: 1px solid #b7e4c7; }
.flash-error { background: var(--expense-soft); color: #7f1d1d; border: 1px solid #f5b8b8; }

/* ---------- Формы ---------- */
.form { display: flex; flex-direction: column; gap: 12px; }
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}
.field { display: flex; flex-direction: column; gap: 5px; }
.field-label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="date"], input[type="tel"], input[type="search"], input[type="color"], select, textarea {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: var(--text);
    width: 100%;
    min-height: 44px;
}
input:focus, select:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
input[type="color"] { padding: 4px; height: 44px; width: 70px; }
.field-check { flex-direction: row; align-items: center; gap: 10px; font-size: 14.5px; }
.field-check input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Раскрывающиеся панели */
.collapse { margin-bottom: 16px; }
.collapse > summary { list-style: none; }
.collapse > summary::-webkit-details-marker { display: none; }
.collapse > .form, .collapse > .form-tx { margin-top: 12px; }
.collapse-inner > summary { list-style: none; display: inline-flex; }
.collapse-inner > summary::-webkit-details-marker { display: none; }
.collapse-inner > .form { margin-top: 12px; padding: 14px; background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; }

/* Фильтры */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: end;
    margin-bottom: 16px;
}
.field-inline { flex: 1 1 130px; max-width: 220px; }
.field-search { flex: 1 1 180px; max-width: 320px; }

/* ---------- Таблицы ---------- */
.table-wrap { overflow-x: auto; }
.tx-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tx-table th {
    text-align: left;
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 8px 10px;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}
.tx-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.tx-table tr:last-child td { border-bottom: none; }
.th-right, .td-right { text-align: right; }
.td-actions { text-align: right; white-space: nowrap; }
.td-actions .icon-btn, .td-actions .inline-form { display: inline-flex; vertical-align: middle; }
.inline-form { display: inline-flex; margin-left: 4px; }
.income { color: var(--income); font-weight: 600; }
.expense { color: var(--expense); font-weight: 600; }
.tx-desc-main { font-weight: 500; }
.tx-cp { display: block; color: var(--muted); font-size: 12.5px; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--chip, #6b7280) 12%, white);
    color: #374151;
    font-size: 12.5px;
    white-space: nowrap;
}
.chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--chip, #6b7280); }
.tag { display: inline-block; margin-left: 6px; font-size: 11px; color: var(--muted); background: var(--bg); border-radius: 6px; padding: 2px 6px; }
.tx-total { margin: 10px 2px 0; text-align: right; }

.simple-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.simple-table th, .simple-table td { padding: 8px 6px; border-bottom: 1px solid var(--border); text-align: left; }
.simple-table th { font-size: 12px; color: var(--muted); text-transform: uppercase; }
.simple-table tr:last-child td { border-bottom: none; }

/* ---------- Список операций (дашборд) ---------- */
.tx-list { list-style: none; margin: 0; padding: 0; }
.tx-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
}
.tx-item:last-child { border-bottom: none; }
.tx-date { color: var(--muted); font-size: 12.5px; flex: 0 0 auto; }
.tx-desc { flex: 1 1 auto; min-width: 0; }
.tx-sum { flex: 0 0 auto; font-weight: 600; }

/* ---------- Графики ---------- */
.chart-svg { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; gap: 18px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.chart-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.dot-income { background: var(--income); }
.dot-expense { background: var(--expense); }
.chart-empty { color: var(--muted); padding: 24px 0; text-align: center; }

.donut-wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.legend { list-style: none; margin: 0; padding: 0; flex: 1 1 220px; min-width: 200px; }
.legend li { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; }
.legend-dot { width: 11px; height: 11px; border-radius: 3px; flex: 0 0 auto; }
.legend-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.legend-val { color: var(--muted); white-space: nowrap; font-size: 12.5px; }

/* ---------- Налоговый калькулятор ---------- */
.tax-result { margin-top: 14px; border-top: 2px solid var(--border); padding-top: 10px; }
.tax-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 7px 0;
    font-size: 14.5px;
}
.tax-row b { white-space: nowrap; }
.tax-off { color: var(--muted); }
.tax-off b { color: var(--muted); font-weight: 400; }
.tax-total { border-top: 2px solid var(--border); margin-top: 6px; font-weight: 600; font-size: 16px; }
.tax-total b { color: var(--blue-dark); }

/* ---------- Позиции счёта ---------- */
.items-table { margin: 4px 0 10px; }
.items-head, .items-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 60px 72px 100px 84px 38px;
    gap: 6px;
    align-items: center;
}
.items-head { font-size: 12px; color: var(--muted); padding: 0 0 6px; }
.items-row { margin-bottom: 6px; }
.items-row input { min-height: 40px; padding: 7px 9px; font-size: 14px; }
.items-sum { text-align: right; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.items-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    padding: 10px 0;
    border-top: 2px solid var(--border);
}

/* ---------- Категории в настройках ---------- */
.cat-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.cat-list { list-style: none; margin: 6px 0 0; padding: 0; }
.cat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
}
.cat-item:last-child { border-bottom: none; }
.cat-name { flex: 1 1 auto; min-width: 0; }
.cat-actions { display: inline-flex; gap: 4px; }
.cat-actions .icon-btn { width: 32px; height: 32px; }
.cat-actions .icon-btn .ic { width: 15px; height: 15px; }
.cat-actions .inline-form { margin-left: 0; }

/* ---------- Сетка ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-2 .card { margin-bottom: 0; }

/* ============================================================
   АВТОРИЗАЦИЯ
   ============================================================ */
.auth-body {
    min-height: 100vh;
    background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    padding: 28px 24px;
    width: 100%;
    max-width: 420px;
}
.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.auth-logo-mark, .side-logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--blue);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    flex: 0 0 auto;
}
.auth-logo-name, .side-logo-name { font-weight: 700; font-size: 19px; color: var(--blue-dark); }
.auth-title { font-size: 20px; margin: 4px 0 12px; color: var(--blue-dark); }
.auth-alt { text-align: center; color: var(--muted); font-size: 14px; margin-top: 16px; }
.auth-note { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; }

.check-list { list-style: none; padding: 0; margin: 0 0 10px; }
.check-list li { padding: 7px 0; border-bottom: 1px solid var(--border); }
.check-list li.ok::before, .check-list li.fail::before { content: '✔ '; color: var(--income); }
.check-list li.fail::before { content: '✘ '; color: var(--expense); }
.check-line { padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.check-line.ok { background: var(--income-soft); color: #14532d; }
.check-line.fail { background: var(--expense-soft); color: #7f1d1d; }
.muted a { color: var(--blue); }

/* ============================================================
   МАКЕТ ПРИЛОЖЕНИЯ
   ============================================================ */
.main { padding: 16px 14px 86px; }

/* ---------- Мобильный: шапка, нижняя навигация, меню ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--blue);
    color: #fff;
    padding: 10px 12px;
}
.topbar-title { font-weight: 600; font-size: 16.5px; flex: 1 1 auto; text-align: center; }
.topbar .icon-btn { background: rgba(255, 255, 255, .12); border-color: transparent; color: #fff; }
.topbar .icon-btn:hover { background: rgba(255, 255, 255, .22); }

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 30;
    display: flex;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 4px 2px calc(4px + env(safe-area-inset-bottom));
}
.bnav-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 2px;
    font-size: 10.5px;
    color: var(--muted);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    min-height: 52px;
    font-family: inherit;
}
.bnav-item .ic { width: 21px; height: 21px; }
.bnav-item.active { color: var(--blue); font-weight: 600; }
.bnav-more { color: var(--muted); }

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(10, 39, 64, .55);
    display: none;
}
.mobile-menu.open { display: block; }
.mmenu-inner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 14px 14px calc(18px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.mmenu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 12px;
    border-radius: 10px;
    font-weight: 500;
    color: var(--text);
}
.mmenu-link:hover { background: var(--blue-soft); text-decoration: none; }
.mmenu-link.active { background: var(--blue-soft); color: var(--blue-dark); }
.mmenu-exit { color: var(--expense); }

/* ---------- Десктоп: боковое меню ---------- */
.sidebar { display: none; }

@media (min-width: 900px) {
    .topbar, .bottom-nav, .mobile-menu { display: none; }
    .main { padding: 24px 28px 40px; max-width: 1160px; margin-left: 232px; }

    .sidebar {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: 232px;
        z-index: 20;
        background: var(--blue);
        color: #fff;
        padding: 18px 14px;
    }
    .side-logo { display: flex; align-items: center; gap: 10px; padding: 0 6px 18px; border-bottom: 1px solid rgba(255,255,255,.14); }
    .side-logo-mark { background: rgba(255, 255, 255, .16); }
    .side-logo-name { color: #fff; }
    .side-nav { display: flex; flex-direction: column; gap: 3px; margin-top: 14px; flex: 1 1 auto; }
    .side-link {
        display: flex;
        align-items: center;
        gap: 11px;
        padding: 10px 12px;
        border-radius: 10px;
        color: #cdd9e6;
        font-weight: 500;
    }
    .side-link:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
    .side-link.active { background: rgba(255, 255, 255, .16); color: #fff; }
    .side-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 12px; }
    .side-user { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; min-width: 0; }
    .side-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .16);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        flex: 0 0 auto;
    }
    .side-user-info { display: flex; flex-direction: column; min-width: 0; }
    .side-user-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .side-user-mail { font-size: 11.5px; color: #9fb3c8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .side-logout { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 10px; color: #cdd9e6; font-size: 14px; }
    .side-logout:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }

    .cards { grid-template-columns: repeat(4, 1fr); }
    .cards-compact { grid-template-columns: 1fr 1fr; }
}

/* ---------- Мобильные таблицы → карточки ---------- */
@media (max-width: 719px) {
    .tx-table thead { display: none; }
    .tx-table, .tx-table tbody { display: block; }
    .tx-table tr {
        display: block;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 6px 12px;
        margin-bottom: 10px;
    }
    .tx-table td {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 14px;
        border-bottom: none;
        padding: 6px 0;
        text-align: right;
    }
    .tx-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 12px;
        flex: 0 0 auto;
        text-align: left;
    }
    .tx-table td:first-child { padding-top: 10px; }
    .tx-table td:last-child { padding-bottom: 10px; }
    .tx-table td[data-label=""] { justify-content: flex-end; }
    .tx-table td[data-label=""]::before { content: none; }
    .tx-desc-main { text-align: right; }

    .items-head { display: none; }
    .items-row { display: grid; grid-template-columns: 1fr 1fr; }
    .items-row input[type="text"]:first-child { grid-column: 1 / -1; }
    .items-sum { text-align: right; }
    .items-sum::before { content: 'Сумма: '; color: var(--muted); font-weight: 400; font-size: 12px; }

    .grid-2, .cat-groups { grid-template-columns: 1fr; }
    .stat-value { font-size: 18px; }
    .month-label { min-width: 104px; }
}

/* ============================================================
   СЧЁТ (печать)
   ============================================================ */
.invoice-body { background: #f4f6f9; padding: 16px; }
.invoice-actions {
    max-width: 800px;
    margin: 0 auto 14px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.invoice-doc {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px 30px;
}
.inv-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.inv-title { font-size: 22px; font-weight: 700; color: var(--blue-dark); }
.inv-date { color: var(--muted); }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.inv-party { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5; }
.inv-party-label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; }
.inv-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 16px; }
.inv-table th {
    background: var(--blue);
    color: #fff;
    padding: 9px 10px;
    text-align: left;
    font-size: 12.5px;
}
.inv-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); }
.inv-table th.w-num, .inv-table td.w-num { width: 34px; }
.inv-table th.w-unit, .inv-table td.w-unit { width: 56px; }
.inv-table th.w-qty, .inv-table td.w-qty { width: 80px; text-align: right; }
.inv-table th.w-price, .inv-table td.w-price { width: 110px; text-align: right; }
.inv-table th.w-sum, .inv-table td.w-sum { width: 120px; text-align: right; }
.inv-total {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 14px;
    font-size: 17px;
    padding: 10px 0 4px;
    border-top: 2px solid var(--blue);
}
.inv-total strong { font-size: 20px; white-space: nowrap; }
.inv-words { color: var(--muted); font-size: 13px; text-align: right; padding: 2px 0 10px; }
.inv-note { font-size: 13px; color: var(--muted); padding-top: 8px; }
.inv-sign { display: flex; justify-content: space-between; margin-top: 46px; align-items: flex-end; }
.inv-sign-label { font-size: 12px; color: var(--muted); margin-bottom: 26px; }
.inv-sign-line { border-bottom: 1px solid #111; width: 220px; height: 14px; }
.inv-sign-name { font-size: 13px; color: var(--muted); margin-top: 4px; }

@media (max-width: 560px) {
    .invoice-doc { padding: 18px 14px; }
    .inv-parties { grid-template-columns: 1fr; }
    .inv-table { font-size: 12.5px; }
    .inv-table th, .inv-table td { padding: 7px 6px; }
}

@media print {
    body { background: #fff; }
    .no-print { display: none !important; }
    .invoice-body { padding: 0; background: #fff; }
    .invoice-doc { border: none; border-radius: 0; max-width: none; padding: 0; }
    @page { margin: 14mm 12mm; }
}
