/* Ustawienia → Konto: moving this browser's data to the server (js/backup-ui.js, task #18.6). Tokens only: css/variables.css. */

/* A full-width row under the e-mail and logout button of .settings-account (flex, wrap). */
.server-import {
    flex-basis: 100%;
    /* Without it the flex item grows to the table's width and the card overflows on a phone. */
    min-width: 0;
    padding-top: var(--spacing-4);
    border-top: 1px solid var(--color-border);
}

.server-import__status {
    margin: var(--spacing-3) 0 0;
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}
.server-import__status:empty { display: none; }

.server-import__result {
    margin-top: var(--spacing-3);
    overflow-x: auto;
}
.server-import__result[hidden] { display: none; }

.import-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
    line-height: 1.4;
}
.import-table caption {
    margin-bottom: var(--spacing-2);
    color: var(--color-text);
    font-weight: var(--font-weight-semibold);
    text-align: left;
}
.import-table th,
.import-table td {
    padding: var(--spacing-2);
    border-bottom: 1px solid var(--color-border-light);
    text-align: left;
}
.import-table thead th {
    color: var(--color-text-secondary);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
}
.import-table tbody th { font-weight: var(--font-weight-medium); }
.import-table td.import-table__count {
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}
.import-table thead th:nth-child(2),
.import-table thead th:nth-child(3) { text-align: right; }
.import-table__row--diff {
    background: var(--status-danger-bg);
    color: var(--status-danger-fg);
}
