/* ========================================================================== 
   WSPOLNE ZMIENNE I BAZA
   ========================================================================== */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --bg-color: #f4f6f9;
    --text-color: #333;
    --success: #28a745;
    --danger: #e74c3c;
    --warning: #ffc107;

    --card: #ffffff;
    --muted: #6b7a89;
    --line: #d7e0ea;
    --tab: #ffffff;
    --tab-active-a: #3aa4ea;
    --tab-active-b: #2f8fd8;
    --thead: var(--primary-color);
    --focus: 0 0 0 3px rgba(52, 152, 219, 0.28);
}

* {
    box-sizing: border-box;
}

body.page-client {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background: linear-gradient(180deg, #f8fafc 0%, var(--bg-color) 100%);
    line-height: 1.6;
}

body.page-client h1,
body.page-client h2,
body.page-client h3,
body.page-client p {
    margin-top: 0;
}

body.page-client h1,
body.page-client h2,
body.page-client h3 {
    color: var(--primary-color);
}

/* --- Wspolne Przyciski --- */
.btn,
body.page-client .top-menu .menu-link,
body.page-client .cash-report .btn-save-report {
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s, transform 0.2s;
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
}

.btn:hover,
body.page-client .top-menu .menu-link:hover,
body.page-client .cash-report .btn-save-report:hover {
    transform: translateY(-1px);
}

/* --- Wspolne Alerty --- */
.alert { padding: 15px; margin-bottom: 20px; border-radius: 5px; }
.alert.success, .success { background: #d4edda; color: #155724; border-left: 5px solid var(--success); }
.alert.error, .error { background: #f8d7da; color: #721c24; border-left: 5px solid var(--danger); margin-bottom: 15px; font-weight: bold; }

/* --- Wspolne Formularze --- */
input[type="text"], input[type="password"], input[type="email"], input[type="date"], select {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

body.page-client :focus-visible {
    outline: none;
    box-shadow: var(--focus);
    border-radius: 8px;
}

body.page-client .client-topbar {
    padding: 14px 16px 0;
}

body.page-client .client-topbar-inner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.panel-head-card {
    background: var(--card);
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 3px 12px rgba(26, 44, 66, 0.06);
}

.client-brand h1 {
    margin: 0;
    color: var(--primary-color);
    font-size: 42px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.client-brand p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 16px;
}

.brand-icon {
    margin-right: 8px;
}

.panel-user-box {
    background: #f7fafc;
    color: #68829b;
    border: 1px solid #dce6f1;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

body.page-client .top-menu {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

body.page-client .top-menu .menu-link {
    background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
    border: 1px solid #d4dfeb;
    border-radius: 11px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 16px;
    padding: 14px 18px;
    min-width: 150px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(22, 41, 61, 0.08);
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.page-client .top-menu .menu-link:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #ffffff 0%, #eef5fc 100%);
    box-shadow: 0 7px 14px rgba(22, 41, 61, 0.14);
}

body.page-client .top-menu .menu-link.active {
    background: linear-gradient(120deg, var(--secondary-color), var(--tab-active-b));
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(48, 144, 214, 0.34);
}

body.page-client .top-menu .menu-link .menu-icon {
    font-size: 16px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(23, 49, 76, 0.08);
}

body.page-client .top-menu .menu-link.active .menu-icon {
    background: rgba(255, 255, 255, 0.22);
}

body.page-client .client-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 12px auto 30px;
    padding: 0;
}

.client-card {
    background: var(--card);
    border: 1px solid #dce5ee;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(21, 42, 63, 0.06);
    padding: 20px;
}

.card-header h2 {
    margin: 0;
    font-size: 38px;
    color: var(--primary-color);
}

.card-header p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 23px;
}

.cash-report .report-columns {
    display: grid;
    grid-template-columns: auto 390px;
    gap: 16px;
    margin-top: 16px;
    justify-content: start;
    align-items: start;
}

.cash-report .report-side {
    width: 390px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cash-report .table-wrap {
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    overflow: auto;
    background: #fff;
    box-shadow: 0 2px 8px rgba(23, 45, 70, 0.05);
    width: fit-content;
    flex-shrink: 0;
}

.cash-report table {
    width: auto;
    border-collapse: collapse;
    table-layout: fixed;
    margin: 0;
}

.cash-report th:nth-child(1),
.cash-report td:nth-child(1) {
    width: 100px;
}

.cash-report th:nth-child(2),
.cash-report td:nth-child(2) {
    width: 110px;
}

.cash-report th:nth-child(3),
.cash-report td:nth-child(3) {
    width: 110px;
}

.cash-report th,
.cash-report td {
    padding: 5px 8px;
    border-bottom: 1px solid #edf2f7;
    font-size: 13px;
}

.cash-report th {
    background: #30465d;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.1px;
}

.cash-report th:nth-child(1),
.cash-report td:nth-child(1) {
    text-align: left;
}

.cash-report th:nth-child(2),
.cash-report td:nth-child(2) {
    text-align: center;
}

.cash-report th:nth-child(3),
.cash-report td:nth-child(3) {
    text-align: right;
}

.cash-report td {
    color: var(--primary-color);
}

.cash-report tbody tr:nth-child(even) {
    background: #fbfdff;
}

.cash-report tbody tr:hover {
    background: #f2f8ff;
}

.cash-report .row-sum {
    text-align: right;
    font-weight: 700;
}

body.page-client .cash-report input[type="text"] {
    width: 100%;
    max-width: 190px;
    color: var(--text-color);
    background: #fff;
    border: 1px solid #cad5e2;
    border-radius: 6px;
    padding: 3px 6px;
    font-size: 13px;
    line-height: 1.2;
}

body.page-client .cash-report input[type="text"].qty-input {
    max-width: 58px;
}

body.page-client .cash-report input[type="text"]:focus {
    border-color: #67ace3;
    box-shadow: var(--focus);
}

.cash-report .summary {
    width: 100%;
    max-width: 100%;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    padding: 8px 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(23, 45, 70, 0.05);
}

.cash-report .summary-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    padding: 5px 0;
    border-bottom: 1px solid #edf2f7;
    font-size: 13px;
    line-height: 1.2;
}

.cash-report .summary-row > span:first-child {
    width: auto;
    max-width: none;
}

.cash-report .summary-row span:last-child {
    width: auto;
    max-width: none;
    font-weight: 700;
    white-space: nowrap;
    text-align: right;
    justify-self: end;
}

.cash-report .summary-row:last-child {
    border-bottom: none;
}

.cash-report .summary-row.bold {
    font-weight: 800;
}

body.page-client .cash-report .summary-row.summary-input input[type="text"] {
    width: 92px;
    max-width: 92px;
    justify-self: end;
}

.cash-report .live-report-wrap {
    width: 100%;
    max-width: 100%;
}

.cash-report .live-report-wrap h4,
.cash-report .summary h4,
.cash-report .request-report-wrap h4 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.cash-report .live-report-table-wrap {
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(23, 45, 70, 0.05);
    width: 390px;
    max-width: 100%;
}

.cash-report .live-report-table {
    width: 390px;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.cash-report .live-report-table th:first-child,
.cash-report .live-report-table td:first-child {
    width: 260px;
}

.cash-report .live-report-table th:last-child,
.cash-report .live-report-table td:last-child {
    width: 120px;
}

.cash-report .live-report-table th,
.cash-report .live-report-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #edf2f7;
    font-size: 13px;
}

.cash-report .live-report-table th {
    background: #30465d;
    color: #fff;
    text-align: left;
}

.cash-report .live-report-table td:last-child {
    text-align: right;
    font-weight: 700;
}

.cash-report .live-report-table tbody tr:last-child td {
    border-bottom: none;
}

.cash-report .live-report-table tbody tr.diff-plus td:last-child {
    color: var(--success);
}

.cash-report .live-report-table tbody tr.diff-minus td:last-child {
    color: var(--danger);
}

.cash-report .status-badge {
    display: inline-block;
    min-width: 86px;
    text-align: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.cash-report .status-badge.status-manko {
    color: #fff;
    background: var(--danger);
}

.cash-report .status-badge.status-superata {
    color: #fff;
    background: var(--success);
}

.cash-report .status-badge.status-ok {
    color: #0f3f68;
    background: #dceeff;
}

.cash-report .save-report-form {
    margin-top: 12px;
    padding-top: 4px;
    border-top: 1px solid #e7eef6;
}

.cash-report .report-note-field {
    width: 100%;
    margin: 10px 0 0;
    display: grid;
    gap: 6px;
}

.cash-report .report-note-field label {
    font-size: 13px;
    font-weight: 700;
    color: #1f3550;
}

.cash-report .report-note-field textarea {
    width: 100%;
    max-width: none;
    min-height: 96px;
    border: 1px solid #cad5e2;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1.3;
    resize: vertical;
    font-family: inherit;
}

.cash-report .save-report-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cash-report .btn-save-report {
    width: min(240px, 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    background: linear-gradient(120deg, var(--secondary-color), #297dcd);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    padding: 11px 18px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(41, 125, 205, 0.22);
}

.cash-report .btn-save-temp {
    background: linear-gradient(120deg, #7f8c9a, #667482);
    box-shadow: 0 8px 16px rgba(92, 107, 122, 0.18);
}

.cash-report .btn-clear-temp {
    background: linear-gradient(120deg, #c0392b, #a93226);
    box-shadow: 0 8px 16px rgba(169, 50, 38, 0.18);
}

.cash-report .btn-send-email {
    background: linear-gradient(120deg, #d65f00, #b84d00);
    box-shadow: 0 8px 16px rgba(182, 85, 12, 0.2);
}

.cash-report .btn-save-icon {
    font-size: 15px;
    line-height: 1;
}

.report-history .history-table-wrap {
    margin-top: 12px;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    overflow: auto;
    background: #fff;
    box-shadow: 0 2px 8px rgba(23, 45, 70, 0.05);
}

.report-history .history-table {
    width: 100%;
    border-collapse: collapse;
}

.report-history .history-table th,
.report-history .history-table td {
    border-bottom: 1px solid #edf2f7;
    padding: 8px 10px;
    font-size: 13px;
    white-space: nowrap;
}

.report-history .history-table th {
    background: #30465d;
    color: #fff;
    text-align: left;
}

.report-history .history-table td:last-child {
    text-align: center;
}

.report-history .history-table td.diff-plus {
    color: var(--success);
    font-weight: 700;
}

.report-history .history-table td.diff-minus {
    color: var(--danger);
    font-weight: 700;
}

.report-history .status-badge {
    display: inline-block;
    min-width: 86px;
    text-align: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.report-history .status-badge.status-manko {
    color: #fff;
    background: var(--danger);
}

.report-history .status-badge.status-superata {
    color: #fff;
    background: var(--success);
}

.report-history .status-badge.status-ok {
    color: #0f3f68;
    background: #dceeff;
}

.report-stats .stats-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

@media (max-width: 1100px) {
    .report-stats .stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .report-stats .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

.report-stats .stats-tile {
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(23, 45, 70, 0.05);
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.report-stats .stats-tile-icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.report-stats .stats-tile h3 {
    margin: 0;
    font-size: 13px;
    color: #264665;
}

.report-stats .stats-value {
    margin: 4px 0 0;
    font-size: 20px;
    line-height: 1.15;
    font-weight: 800;
    color: #1f3550;
}

.report-stats .stats-sub {
    margin: 3px 0 0;
    font-size: 11px;
    color: #60788e;
    font-weight: 700;
}

.report-stats .diff-plus {
    color: var(--success);
}

.report-stats .diff-minus {
    color: var(--danger);
}

.report-stats .stats-status-breakdown,
.report-stats .stats-history-chart,
.report-stats .stats-monthly {
    margin-top: 16px;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(23, 45, 70, 0.05);
    padding: 14px;
}

.report-stats .stats-status-breakdown h3,
.report-stats .stats-history-chart h3,
.report-stats .stats-monthly h3 {
    margin: 0 0 12px;
    font-size: 18px;
    color: #1f3550;
}

.report-stats .stats-chart-wrap {
    border: 1px solid #dde7f1;
    border-radius: 10px;
    background: linear-gradient(180deg, #fbfdff 0%, #f3f8fd 100%);
    padding: 8px;
    overflow-x: auto;
}

.report-stats .stats-chart {
    display: block;
    width: 100%;
    min-width: 640px;
    height: auto;
}

.report-stats .chart-axis {
    stroke: #96abc0;
    stroke-width: 1;
}

.report-stats .chart-zero {
    stroke: #b7c7d8;
    stroke-width: 1;
    stroke-dasharray: 4 4;
}

.report-stats .chart-line {
    fill: none;
    stroke: #2f8fd8;
    stroke-width: 2.5;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.report-stats .chart-point-plus,
.report-stats .chart-point-minus {
    stroke: #ffffff;
    stroke-width: 1.5;
}

.report-stats .chart-point-plus {
    fill: #2eaf66;
}

.report-stats .chart-point-minus {
    fill: #d9534f;
}

.report-stats .chart-x-label,
.report-stats .chart-scale-label {
    font-size: 11px;
    fill: #5e7387;
    font-weight: 700;
}

.report-stats .stats-empty,
.report-stats .stats-hint {
    margin: 0;
    font-size: 13px;
    color: #60788e;
}

.report-stats .stats-hint {
    margin-top: 8px;
}

.report-stats .status-row {
    display: grid;
    grid-template-columns: 98px minmax(120px, 1fr) 120px;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.report-stats .status-row:last-child {
    margin-bottom: 0;
}

.report-stats .status-name {
    font-weight: 800;
    color: #264665;
    font-size: 13px;
}

.report-stats .status-meta {
    text-align: right;
    font-size: 12px;
    color: #60788e;
    font-weight: 700;
    white-space: nowrap;
}

.report-stats .status-bar-track {
    height: 10px;
    border-radius: 999px;
    background: #ecf2f8;
    overflow: hidden;
}

.report-stats .status-bar-fill {
    height: 100%;
    border-radius: 999px;
}

.report-stats .status-bar-fill.status-ok {
    background: #3d95e1;
}

.report-stats .status-bar-fill.status-manko {
    background: #d9534f;
}

.report-stats .status-bar-fill.status-superata {
    background: #2eaf66;
}

.report-stats .stats-monthly .history-table-wrap {
    margin-top: 0;
}

.report-stats .stats-monthly .history-table td:last-child {
    text-align: right;
}

@media (max-width: 760px) {
    .report-stats .status-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .report-stats .status-meta {
        text-align: left;
    }

    .report-stats .stats-value {
        font-size: 24px;
    }
}

.settings-card .settings-header h2 {
    font-size: 32px;
}

.settings-card .settings-header p {
    font-size: 18px;
}

.settings-card .smtp-box {
    max-width: 100%;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(23, 45, 70, 0.05);
    padding: 18px;
}

.settings-card .settings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

@media (max-width: 1180px) {
    .settings-card .settings-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .settings-card .settings-grid {
        grid-template-columns: 1fr;
    }
}

.settings-card .smtp-box h3 {
    margin: 0 0 14px;
    font-size: 28px;
    color: #d65f00;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-card .smtp-title-icon {
    font-size: 18px;
}

.settings-card .smtp-form {
    display: grid;
    gap: 10px;
}

.settings-card .smtp-form label {
    font-weight: 700;
    color: #1f3550;
    font-size: 15px;
}

.settings-card .smtp-form input[type="text"],
.settings-card .smtp-form input[type="email"],
.settings-card .smtp-form input[type="password"],
.settings-card .smtp-form select,
.settings-card .smtp-form textarea {
    width: 100%;
    border: 1px solid #c8d6e5;
    border-radius: 6px;
    padding: 9px 10px;
    font-size: 15px;
}

.settings-card .smtp-form textarea {
    resize: vertical;
    min-height: 96px;
    font-family: inherit;
}

.settings-card .smtp-auth-row {
    margin-top: 4px;
    border: 1px solid #dce5ee;
    border-radius: 8px;
    background: #f8fbff;
    padding: 10px 12px;
}

.settings-card .smtp-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #1f3550;
}

.settings-card .smtp-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1e7ad6;
}

.settings-card .smtp-save-btn {
    margin-top: 2px;
    border: none;
    border-radius: 6px;
    background: #d65f00;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    padding: 10px 12px;
    cursor: pointer;
}

.settings-card .smtp-save-btn:hover {
    filter: brightness(1.05);
}

.settings-card .settings-hint {
    margin: 0;
    color: #556b80;
    font-size: 13px;
}

.settings-card .account-save-btn {
    margin-top: 2px;
    border: none;
    border-radius: 6px;
    background: #2d7a4f;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    padding: 10px 12px;
    width: 100%;
    display: block;
    cursor: pointer;
}

.settings-card .account-save-btn:hover {
    filter: brightness(1.08);
}

.cash-report .diff-plus {
    color: var(--success);
}

.cash-report .diff-minus {
    color: var(--danger);
}

.cash-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
    gap: 14px;
    justify-content: start;
}

.cash-box {
    background: #f8fbff;
    border: 1px solid #d7e5f3;
    border-radius: 10px;
    padding: 15px;
}

.cash-box-square {
    aspect-ratio: auto;
    min-height: 165px;
    max-width: 220px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 14px 12px 12px;
}

.cash-box-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(145deg, #e6f2ff, #f9fcff);
    border: 1px solid #d8e7f6;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    font-size: 23px;
    margin-bottom: 10px;
}

.cash-box h3 {
    margin: 0;
    font-size: 17px;
    color: var(--primary-color);
}

.cash-box p {
    margin: 8px 0 12px;
    color: #5b6f82;
    font-size: 14px;
}

.cash-box-square p {
    max-width: 18ch;
    margin-bottom: 12px;
}

.cash-box-actions {
    width: 100%;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cash-box-action-form {
    width: 100%;
}

.cash-box-btn {
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 8px 10px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.cash-box-btn-primary {
    background: #3498db;
}

.cash-box-btn-danger {
    background: #e74c3c;
}

.cash-box-add {
    background: linear-gradient(180deg, #f8fbff 0%, #edf5fb 100%);
    border: 2px dashed #9fb8cf;
}

.cash-box-add-trigger {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 800;
}

.cash-box-add .cash-box-icon {
    width: 54px;
    height: 54px;
    font-size: 28px;
    background: linear-gradient(145deg, #eef7ff, #ffffff);
}

.cash-status {
    display: inline-block;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 10px;
}

.cash-status.ok {
    color: #0c7045;
    background: #d8f5e8;
}

.cash-status.warn {
    color: #8a5a00;
    background: #ffefc4;
}

@media (max-width: 992px) {
    .client-brand h1 {
        font-size: 34px;
    }

    .card-header h2 {
        font-size: 32px;
    }

    .card-header p {
        font-size: 19px;
    }

    .cash-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .settings-card .settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body.page-client .client-topbar {
        padding: 10px 10px 0;
    }

    body.page-client .client-topbar-inner,
    body.page-client .client-shell {
        width: calc(100% - 20px);
    }

    .panel-head-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px;
    }

    .panel-user-box {
        width: 100%;
        text-align: center;
    }

    .client-brand h1 {
        font-size: 28px;
    }

    .client-brand p {
        font-size: 15px;
    }

    body.page-client .top-menu .menu-link {
        flex: 1 1 calc(50% - 10px);
        min-width: 0;
        font-size: 15px;
        padding: 12px 10px;
    }

    .client-card {
        padding: 14px;
    }

    .card-header h2 {
        font-size: 26px;
    }

    .card-header p {
        font-size: 16px;
    }

    .cash-report th,
    .cash-report td {
        font-size: 14px;
        padding: 11px 10px;
    }

    .cash-report .report-columns {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cash-report .report-side {
        width: 100%;
    }

    .cash-report .table-wrap,
    .cash-report .summary {
        width: 100%;
        max-width: 100%;
    }

    .cash-report .table-wrap {
        width: 100%;
        overflow-x: hidden;
    }

    .cash-report table {
        width: 100%;
        table-layout: fixed;
    }

    .cash-report th,
    .cash-report td {
        font-size: 12px;
        padding: 7px 6px;
    }

    .cash-report th:nth-child(1),
    .cash-report td:nth-child(1) {
        width: 38%;
        white-space: normal;
        word-break: break-word;
    }

    .cash-report th:nth-child(2),
    .cash-report td:nth-child(2) {
        width: 30%;
    }

    .cash-report th:nth-child(3),
    .cash-report td:nth-child(3) {
        width: 32%;
    }

    .cash-report .live-report-wrap,
    .cash-report .live-report-table-wrap,
    .cash-report .live-report-table {
        width: 100%;
        max-width: 100%;
    }

    .cash-report .live-report-table {
        table-layout: fixed;
    }

    .cash-report .live-report-table th:first-child,
    .cash-report .live-report-table td:first-child {
        width: 60%;
        white-space: normal;
        word-break: break-word;
    }

    .cash-report .live-report-table th:last-child,
    .cash-report .live-report-table td:last-child {
        width: 40%;
    }

    .cash-report .live-report-table th,
    .cash-report .live-report-table td {
        font-size: 12px;
        padding: 7px 8px;
    }

    .cash-report .summary-row {
        grid-template-columns: 1fr;
        row-gap: 6px;
        font-size: 15px;
    }

    .cash-report .summary-row > span:first-child,
    .cash-report .summary-row span:last-child {
        width: auto;
        max-width: none;
    }

    body.page-client .cash-report .summary-row.summary-input input[type="text"] {
        width: 100%;
        max-width: none;
    }

    .cash-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .cash-box-square {
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 480px) {
    body.page-client .top-menu {
        gap: 8px;
    }

    body.page-client .top-menu .menu-link {
        flex: 1 1 100%;
    }

    .client-brand h1 {
        font-size: 25px;
    }
}
