/* Currency composition; controls and tenant colors follow the shared theme. */
.currency-page .currency-list {
    gap: 0;
}

.currency-page .currency-search {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--mkp-border);
}

.currency-page .currency-search > .form-label {
    margin: 0;
}

.currency-page .admin-search {
    width: 100%;
    max-width: 320px;
}

.currency-page .currency-list > .k-grid {
    border: 0;
    border-radius: 0 0 var(--mkp-radius-lg) var(--mkp-radius-lg);
}

.currency-page .k-grid td:nth-child(3) {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.currency-page .currency-list .k-grid .k-table-th {
    color: var(--mkp-foreground);
    font-size: 14px;
    font-weight: 600;
}

.currency-page .currency-list .k-grid td:first-child {
    font-weight: 500;
}

.currency-page .currency-list .k-grid th[data-field="Exchange"] .k-link {
    justify-content: flex-end;
}

.currency-page .currency-list .k-grid th[data-field="Id"] .k-link {
    justify-content: center;
}

.currency-page .currency-list .k-grid td:last-child .btn-group {
    gap: 4px;
}

.currency-page .currency-list .k-grid td:last-child .btn-group > .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border-radius: var(--mkp-radius-sm);
    color: var(--mkp-foreground);
}

.currency-page .currency-list .k-grid td:last-child .btn .fa {
    font-size: 16px;
}

.currency-page .currency-empty {
    padding: 40px 20px;
    white-space: normal;
}

.currency-page .currency-empty p {
    margin: 8px 0 0;
    color: var(--mkp-muted-foreground);
}

.currency-page .currency-editor {
    max-width: var(--mkp-form-width);
}

.currency-page .currency-form-card .card-body {
    padding: var(--mkp-form-padding);
}

.currency-page .currency-section-heading {
    margin-bottom: 20px;
}

.currency-page .currency-section-heading h2 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
}

.currency-page .currency-section-heading p {
    margin: 0;
    color: var(--mkp-muted-foreground);
}

.currency-page .currency-short-field {
    max-width: 240px;
}

.currency-page .currency-exchange-section {
    border-top: 1px solid var(--mkp-border);
    margin-top: 24px;
    padding-top: 24px;
}

.currency-page .currency-form-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--mkp-border);
    background: transparent;
}

@media (max-width: 575.98px) {
    .currency-page .currency-search,
    .currency-page .currency-form-card .card-body,
    .currency-page .currency-form-footer {
        padding: 16px;
    }

    .currency-page .currency-short-field {
        max-width: none;
    }
}
