/* ============================================================
   CABB — panel klienta (app.cabb.pl)
   Ten sam system co strona publiczna (CABB.Main/wwwroot/css/cabb-modern.css, klasy cb-*):
   te same kolory, promienie, cienie i czcionka Jost. Plik jest samodzielny —
   nie ładuje motywu style.css/bootstrap.css.
   ============================================================ */

:root {
    --cb-navy: #0B2B5C;
    --cb-blue: #1A5FD6;
    --cb-blue-dark: #1450B8;
    --cb-blue-soft: #EEF4FE;
    --cb-red: #D7191F;
    --cb-red-soft: #FDEEEE;
    --cb-green: #1E8E4E;
    --cb-green-soft: #E8F6EE;
    --cb-amber: #8A5A00;
    --cb-amber-soft: #FFF6E0;
    --cb-ink: #1C2430;
    --cb-text: #3F4A5A;
    --cb-muted: #6B7686;
    --cb-faint: #9AA5B4;
    --cb-line: #E3E8F0;
    --cb-line-strong: #CFD7E3;
    --cb-page: #F6F8FB;
    --cb-subtle: #F2F5F9;
    --cb-radius: 14px;
    --cb-radius-sm: 10px;
    --cb-shadow: 0 1px 2px rgba(16, 42, 83, 0.04), 0 2px 8px rgba(16, 42, 83, 0.04);
    --cb-shadow-hover: 0 4px 16px rgba(16, 42, 83, 0.08);
    --cb-topbar-h: 64px;
    --cb-nav-w: 248px;
}

/* ---------- Podstawy ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: var(--cb-text);
    background: var(--cb-page);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--cb-blue-dark);
}

h1, h2, h3, h4, h5 {
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
    color: var(--cb-navy);
}

p {
    margin: 0 0 8px;
}

img {
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

.cb-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Pasek górny ---------- */
.cb-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 12px;
    height: var(--cb-topbar-h);
    padding: 0 16px;
    background: #ffffff;
    border-bottom: 1px solid var(--cb-line);
}

.cb-topbar__logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.cb-topbar__logo img {
    display: block;
    height: 38px;
    width: auto;
}

.cb-topbar__right {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.cb-topbar__hello {
    font-size: 14px;
    color: var(--cb-muted);
}

.cb-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--cb-line-strong);
    border-radius: var(--cb-radius-sm);
    background: #ffffff;
    color: var(--cb-navy);
    font-size: 22px;
    cursor: pointer;
}

/* ---------- Układ: menu + treść ---------- */
.cb-shell {
    display: grid;
    grid-template-columns: var(--cb-nav-w) minmax(0, 1fr);
    min-height: calc(100vh - var(--cb-topbar-h));
}

.cb-nav {
    background: #ffffff;
    border-right: 1px solid var(--cb-line);
    padding: 20px 12px;
}

.cb-nav ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cb-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: var(--cb-radius-sm);
    font-weight: 500;
    color: var(--cb-text);
}

.cb-nav a i {
    width: 20px;
    font-size: 20px;
    text-align: center;
    color: var(--cb-faint);
}

.cb-nav a:hover {
    background: var(--cb-subtle);
    color: var(--cb-navy);
}

.cb-nav li.active a {
    background: var(--cb-blue-soft);
    color: var(--cb-blue);
}

.cb-nav li.active a i {
    color: var(--cb-blue);
}

.cb-nav__logout {
    display: none;
}

.sidebar-backdrop {
    display: none;
}

.cb-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cb-content {
    width: 100%;
    max-width: 1120px;
    padding: 28px 32px 40px;
}

.cb-page-head {
    margin-bottom: 20px;
}

.cb-page-head h1 {
    font-size: 26px;
    letter-spacing: -0.3px;
}

.cb-footer {
    margin-top: auto;
    padding: 18px 32px 24px;
    font-size: 13px;
    color: var(--cb-faint);
}

.cb-footer p {
    margin: 0;
}

/* ---------- Karty ---------- */
.cb-panel {
    background: #ffffff;
    border: 1px solid var(--cb-line);
    border-radius: var(--cb-radius);
    box-shadow: var(--cb-shadow);
    padding: 24px 28px;
    margin-bottom: 20px;
}

.cb-panel__title {
    margin: 0 0 16px;
    font-size: 18px;
}

.cb-panel__lead {
    margin: -8px 0 16px;
    font-size: 14px;
    color: var(--cb-muted);
}

.cb-section-title {
    margin: 28px 0 12px;
    font-size: 16px;
    color: var(--cb-navy);
}

.cb-section-title:first-child {
    margin-top: 0;
}

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

/* ---------- Pulpit ---------- */
.cb-stat {
    display: flex;
    align-items: center;
    gap: 18px;
}

.cb-stat__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--cb-blue-soft);
    color: var(--cb-blue);
    font-size: 26px;
}

.cb-stat__value {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--cb-navy);
    font-variant-numeric: tabular-nums;
}

.cb-stat__value--empty {
    color: var(--cb-red);
}

.cb-stat__label {
    margin: 2px 0 0;
    font-size: 14px;
    color: var(--cb-muted);
}

.cb-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--cb-line);
}

.cb-contact {
    font-style: normal;
    font-size: 15px;
    color: var(--cb-text);
}

.cb-contact strong {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--cb-ink);
}

.cb-contact ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cb-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.cb-contact i {
    margin-top: 3px;
    color: var(--cb-faint);
}

/* ---------- Przyciski ---------- */
.cb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: var(--cb-radius-sm);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cb-btn--primary {
    background: var(--cb-blue);
    color: #ffffff;
}

.cb-btn--primary:hover,
.cb-btn--primary:focus {
    background: var(--cb-blue-dark);
    color: #ffffff;
}

.cb-btn--secondary {
    background: #ffffff;
    border-color: var(--cb-line-strong);
    color: var(--cb-navy);
}

.cb-btn--secondary:hover {
    border-color: var(--cb-navy);
    color: var(--cb-navy);
}

.cb-btn--soft {
    background: var(--cb-blue-soft);
    color: var(--cb-blue);
}

.cb-btn--soft:hover {
    background: #E1EBFC;
    color: var(--cb-blue-dark);
}

.cb-btn--small {
    min-height: 38px;
    padding: 7px 14px;
    font-size: 14px;
}

.cb-btn--block {
    display: flex;
    width: 100%;
}

.cb-btn[disabled],
.cb-btn:disabled {
    background: var(--cb-subtle);
    border-color: transparent;
    color: var(--cb-faint);
    cursor: not-allowed;
}

.cb-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: cb-spin 0.75s linear infinite;
}

@keyframes cb-spin {
    to { transform: rotate(360deg); }
}

/* ---------- Formularze ---------- */
.cb-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cb-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cb-ink);
}

.cb-field input[type="text"],
.cb-field input[type="email"],
.cb-field input[type="password"],
.cb-field input[type="tel"] {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--cb-line-strong);
    border-radius: var(--cb-radius-sm);
    background: #ffffff;
    font-size: 16px; /* 16px = telefon nie powiększa strony przy wpisywaniu */
    color: var(--cb-ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cb-field input:focus {
    border-color: var(--cb-blue);
    box-shadow: 0 0 0 3px rgba(26, 95, 214, 0.15);
    outline: none;
}

.cb-field input::placeholder {
    color: var(--cb-faint);
}

.cb-field--narrow {
    max-width: 420px;
}

.cb-form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    font-size: 14px;
}

.cb-check {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--cb-text);
    cursor: pointer;
}

.cb-check input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--cb-blue);
}

.cb-errors {
    margin: 0;
    padding: 12px 14px;
    border-radius: var(--cb-radius-sm);
    background: var(--cb-red-soft);
    color: var(--cb-red);
    font-size: 14px;
}

.cb-errors ul {
    margin: 0;
    padding-left: 18px;
}

.validation-summary-valid.cb-errors {
    display: none;
}

/* ---------- Komunikaty ---------- */
.message-box.cb-alert {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px 48px 14px 16px;
    border: 1px solid transparent;
    border-radius: var(--cb-radius-sm);
    font-size: 15px;
}

.cb-alert > i {
    margin-top: 2px;
    font-size: 20px;
}

.cb-alert p {
    margin: 0;
    color: inherit;
}

.cb-alert--warning {
    background: var(--cb-amber-soft);
    border-color: #F4DFA8;
    color: var(--cb-amber);
}

.cb-alert--success {
    background: var(--cb-green-soft);
    border-color: #BFE5CD;
    color: var(--cb-green);
}

.cb-alert--error {
    background: var(--cb-red-soft);
    border-color: #F5C6C7;
    color: var(--cb-red);
}

.cb-alert .close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font-size: 16px;
    cursor: pointer;
}

.cb-alert .close-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* ---------- Plakietki ---------- */
.cb-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--cb-green-soft);
    font-size: 12px;
    font-weight: 600;
    color: var(--cb-green);
    white-space: nowrap;
}

.cb-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.cb-badge--muted {
    background: var(--cb-subtle);
    color: var(--cb-muted);
}

/* ---------- Tabele (na telefonie zamieniają się w karty) ---------- */
.cb-table-wrap {
    border: 1px solid var(--cb-line);
    border-radius: var(--cb-radius-sm);
    overflow: hidden;
}

.cb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cb-table th {
    padding: 11px 16px;
    background: #F8FAFC;
    border-bottom: 1px solid var(--cb-line);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-align: left;
    text-transform: uppercase;
    color: var(--cb-muted);
}

.cb-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--cb-line);
    vertical-align: middle;
    color: var(--cb-text);
    word-break: break-word;
}

.cb-table tbody tr:last-child td {
    border-bottom: 0;
}

.cb-table .cb-td-strong {
    font-weight: 600;
    color: var(--cb-ink);
}

.cb-table .cb-td-num {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.cb-table .cb-td-actions {
    text-align: right;
    white-space: nowrap;
}

.cb-table b {
    font-weight: 600;
    color: var(--cb-ink);
    white-space: nowrap;
}

/* ---------- Stronicowanie ---------- */
.cb-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.cb-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--cb-line-strong);
    border-radius: var(--cb-radius-sm);
    background: #ffffff;
    font-weight: 500;
    color: var(--cb-ink);
}

a.cb-page:hover {
    border-color: var(--cb-blue);
    color: var(--cb-blue);
}

.cb-page--current {
    border-color: transparent;
    background: var(--cb-blue-soft);
    color: var(--cb-blue);
    font-weight: 600;
}

.cb-empty {
    padding: 28px 8px 12px;
    text-align: center;
    color: var(--cb-muted);
}

.cb-empty h3 {
    margin-bottom: 14px;
    font-size: 17px;
    color: var(--cb-ink);
}

/* ---------- Raport ---------- */
.cb-report-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 24px;
}

.cb-report-head h2 {
    font-size: 20px;
    font-weight: 500;
    color: var(--cb-text);
}

.cb-report-head h2 b {
    display: block;
    margin-top: 2px;
    font-size: 22px;
    font-weight: 700;
    color: var(--cb-navy);
}

.cb-report-head__validity {
    margin: 0;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--cb-subtle);
    font-size: 14px;
    color: var(--cb-muted);
    white-space: nowrap;
}

.cb-report-head__validity b {
    color: var(--cb-ink);
}

.tabs-box .tab {
    display: none;
}

.tabs-box .active-tab {
    display: block;
}

.cb-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 8px;
    padding: 0;
    list-style: none;
}

.cb-tabs .tab-btn {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid var(--cb-line);
    border-radius: 999px;
    background: #ffffff;
    font-size: 14px;
    font-weight: 500;
    color: var(--cb-text);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cb-tabs .tab-btn:hover {
    border-color: var(--cb-line-strong);
    color: var(--cb-navy);
}

.cb-tabs .tab-btn.active-btn {
    border-color: var(--cb-navy);
    background: var(--cb-navy);
    color: #ffffff;
}

.cb-tab-body {
    padding-top: 12px;
}

/* lista „etykieta — wartość” zamiast wyszarzonych pól */
.cb-dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
    margin: 0;
}

.cb-dl > div {
    min-width: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--cb-line);
}

.cb-dl dt {
    margin-bottom: 2px;
    font-size: 13px;
    font-weight: 500;
    color: var(--cb-muted);
}

.cb-dl dd {
    margin: 0;
    font-weight: 500;
    color: var(--cb-ink);
    word-break: break-word;
}

.cb-dl .cb-flag {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    color: var(--cb-red);
    font-weight: 600;
}

.cb-dl .cb-flag i {
    margin-top: 3px;
}

.cb-debts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cb-debts li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 16px;
    padding: 12px 16px;
    border-radius: var(--cb-radius-sm);
    background: var(--cb-red-soft);
    color: var(--cb-red);
    font-weight: 600;
}

.cb-debts li span {
    font-weight: 500;
    color: var(--cb-text);
}

.cb-note {
    margin: 0;
    padding: 12px 16px;
    border-radius: var(--cb-radius-sm);
    background: var(--cb-subtle);
    color: var(--cb-text);
}

.cb-divider {
    height: 1px;
    margin: 24px 0;
    border: 0;
    background: var(--cb-line);
}

/* akordeon (obsługa kliknięć: js/script.js — klasy .accordion-box/.acc-btn/.acc-content) */
.accordion-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.accordion-box .accordion {
    border: 1px solid var(--cb-line);
    border-radius: var(--cb-radius-sm);
    background: #ffffff;
}

.accordion-box .acc-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 12px 16px;
    font-weight: 600;
    color: var(--cb-ink);
    cursor: pointer;
    user-select: none;
}

.accordion-box .acc-btn i {
    flex-shrink: 0;
    font-size: 18px;
    color: var(--cb-muted);
    transition: transform 0.2s ease;
}

.accordion-box .acc-btn.active i {
    transform: rotate(180deg);
}

.accordion-box .acc-content .content {
    padding: 0 16px 16px;
}

#chartdiv {
    width: 100%;
    height: 640px;
    border: 1px solid var(--cb-line);
    border-radius: var(--cb-radius-sm);
}

/* ---------- Ekrany logowania ---------- */
.cb-auth {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.cb-auth .cb-topbar {
    position: static;
}

.cb-auth__main {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: flex-start;
    padding: 48px 16px;
}

.cb-auth__card {
    width: 100%;
    max-width: 440px;
    padding: 32px;
    background: #ffffff;
    border: 1px solid var(--cb-line);
    border-radius: var(--cb-radius);
    box-shadow: var(--cb-shadow);
}

.cb-auth__card h1,
.cb-auth__card h3 {
    margin-bottom: 22px;
    font-size: 22px;
    letter-spacing: -0.2px;
}

.cb-auth__alt {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--cb-line);
    text-align: center;
    font-size: 14px;
    color: var(--cb-muted);
}

.cb-auth__alt p {
    margin-bottom: 10px;
}

.cb-auth .cb-footer {
    text-align: center;
}

/* ---------- Telefon i tablet ---------- */
@media (max-width: 991px) {
    .cb-menu-btn {
        display: inline-flex;
    }

    .cb-topbar__hello {
        display: none;
    }

    .cb-shell {
        display: block;
    }

    .cb-nav {
        position: fixed;
        top: var(--cb-topbar-h);
        bottom: 0;
        left: 0;
        z-index: 60;
        width: min(300px, 85vw);
        overflow-y: auto;
        border-right: 1px solid var(--cb-line);
        box-shadow: var(--cb-shadow-hover);
        transform: translateX(-102%);
        transition: transform 0.2s ease;
    }

    .user-sidebar-active .cb-nav {
        transform: none;
    }

    .user-sidebar-active .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: var(--cb-topbar-h) 0 0 0;
        z-index: 55;
        background: rgba(11, 43, 92, 0.35);
    }

    .cb-content {
        padding: 22px 20px 32px;
    }

    .cb-footer {
        padding: 16px 20px 24px;
    }
}

@media (max-width: 767px) {
    .cb-content {
        padding: 18px 16px 28px;
    }

    .cb-page-head h1 {
        font-size: 22px;
    }

    .cb-panel {
        padding: 20px 16px;
        margin-bottom: 16px;
    }

    .cb-grid-2,
    .cb-dl {
        grid-template-columns: 1fr;
    }

    .cb-actions .cb-btn,
    .cb-form .cb-btn {
        width: 100%;
    }

    .cb-field--narrow {
        max-width: none;
    }

    .cb-report-head h2 b {
        font-size: 19px;
    }

    .cb-tabs .tab-btn {
        min-height: 38px;
        padding: 7px 13px;
    }

    /* tabele → karty */
    .cb-table-wrap {
        border: 0;
        border-radius: 0;
        overflow: visible;
    }

    .cb-table thead {
        display: none;
    }

    .cb-table,
    .cb-table tbody,
    .cb-table tr,
    .cb-table td {
        display: block;
        width: 100%;
    }

    .cb-table tr {
        margin-bottom: 10px;
        padding: 6px 14px;
        border: 1px solid var(--cb-line);
        border-radius: var(--cb-radius-sm);
        background: #ffffff;
    }

    .cb-table tbody tr td,
    .cb-table tbody tr:last-child td {
        display: grid;
        grid-template-columns: minmax(96px, 38%) minmax(0, 1fr);
        gap: 12px;
        padding: 8px 0;
        border-bottom: 1px solid var(--cb-line);
        text-align: left;
    }

    .cb-table tbody tr td:last-child,
    .cb-table tbody tr:last-child td:last-child {
        border-bottom: 0;
    }

    .cb-table td::before {
        content: attr(data-label);
        font-size: 12px;
        font-weight: 600;
        color: var(--cb-muted);
    }

    .cb-table tbody tr td.cb-td-actions,
    .cb-table tbody tr:last-child td.cb-td-actions {
        display: block;
        padding-top: 10px;
    }

    .cb-table td.cb-td-actions::before {
        content: none;
    }

    .cb-table td.cb-td-actions .cb-btn {
        width: 100%;
    }

    /* lista raportów: zwarta karta — nazwa, status, numer i NIP w jednej linii, przycisk */
    .cb-table--reports tbody tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 16px;
        padding: 14px;
    }

    .cb-table--reports tbody tr td,
    .cb-table--reports tbody tr:last-child td {
        display: block;
        width: auto;
        padding: 0;
        border: 0;
        font-size: 14px;
    }

    .cb-table--reports td::before {
        content: attr(data-label);
        margin-right: 6px;
    }

    .cb-table--reports tbody tr td.cb-td-title {
        order: -2;
        width: 100%;
        font-size: 16px;
    }

    .cb-table--reports tbody tr td.cb-td-status {
        order: -1;
        width: 100%;
    }

    .cb-table--reports td.cb-td-title::before,
    .cb-table--reports td.cb-td-status::before {
        content: none;
    }

    .cb-table--reports tbody tr td.cb-td-actions,
    .cb-table--reports tbody tr:last-child td.cb-td-actions {
        order: 1;
        width: 100%;
        padding-top: 6px;
    }

    #chartdiv {
        height: 460px;
    }

    .cb-auth__main {
        padding: 24px 16px;
    }

    .cb-auth__card {
        padding: 24px 20px;
    }
}

@media (max-width: 400px) {
    .cb-topbar__logo img {
        height: 32px;
    }

    .cb-topbar__right .cb-btn {
        padding: 8px 12px;
    }
}

/* ---------- Podgląd raportu bez logowania ---------- */
.cb-content--center {
    margin: 0 auto;
}

.cb-footer--center {
    text-align: center;
}

.cb-btn--primary:disabled {
    background: var(--cb-blue);
    color: #ffffff;
    opacity: 0.8;
    cursor: progress;
}

/* znaczek reCAPTCHA (prawy dolny róg) nie może zasłaniać stopki na telefonie */
@media (max-width: 767px) {
    .cb-auth .cb-footer {
        padding-bottom: 84px;
    }
}
