/*
 * Settings -> Cashier panel.
 *
 * Uses the shared admin tokens and kit classes. Dynamic values are rendered
 * through textContent in settings-cashier.js; this file is presentation only.
 */

.settings-page__layout[data-active-tab="cashier"] .settings-form {
    max-width: none;
}

.cashier-panel {
    display: flex;
    flex-direction: column;
    gap: var(--space-base);
}

.cashier-panel [hidden] {
    display: none !important;
}

.cashier-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
}

.cashier-panel__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--space-sm);
}

.cashier-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-base);
    padding: var(--space-lg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.cashier-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
}

.cashier-card__title {
    margin: 0;
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--color-text);
}

.cashier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-base);
}

.cashier-grid--two {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cashier-inline-note {
    display: block;
    margin-top: var(--space-xs);
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
    line-height: 1.4;
}

.cashier-provider__badge {
    align-self: flex-start;
}

.cashier-env {
    display: grid;
    gap: var(--space-sm);
}

.cashier-env__line {
    display: flex;
    align-items: stretch;
    gap: var(--space-sm);
}

.cashier-env__code {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--surface-sunken);
    color: var(--color-text);
    font-size: var(--text-sm);
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.cashier-doc-link {
    align-self: flex-start;
    color: var(--color-link);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
}

.cashier-doc-link:hover {
    text-decoration: underline;
}

.cashier-revenue__box {
    display: grid;
    gap: var(--space-xs);
    padding: var(--space-lg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--surface-sunken);
}

.cashier-revenue__value {
    color: var(--color-text);
    font-size: var(--text-2xl);
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.cashier-revenue__money {
    color: var(--color-text-secondary);
    font-size: var(--text-base);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
    .cashier-panel__head,
    .cashier-card__head,
    .cashier-env__line {
        flex-direction: column;
        align-items: stretch;
    }

    .cashier-panel__actions {
        justify-content: stretch;
    }

    .cashier-panel__actions .btn,
    .cashier-env__line .btn {
        width: 100%;
        justify-content: center;
    }
}
