/* Admin site additions to the app's web/css/app.css. */
.admin-rail-badge {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Wider dialogs (the schema field form). */
.account-dialog.admin-dialog--wide {
    width: 640px;
}

.admin-dialog--wide .admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 14px;
}

@media (max-width: 640px) {
    .admin-dialog--wide .admin-form-grid {
        grid-template-columns: 1fr;
    }
}

.admin-muted {
    color: #94a3b8;
    font-size: 12px;
}

.admin-section {
    margin-top: 28px;
}

.admin-section h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px;
}

.admin-section .view-header {
    margin-bottom: 10px;
}

.admin-note {
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.5;
    margin: 0 0 12px;
}

.admin-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12.5px;
}

.admin-inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.admin-inline-form select {
    min-width: 200px;
}

.form-field textarea {
    font-size: 13px;
    padding: 9px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    resize: vertical;
}

.admin-section .data-table th[scope],
.admin-section tbody th {
    width: 160px;
    text-align: left;
}

/* System page (views/system.js). */
.admin-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.admin-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@container view (max-width: 760px) {
    .admin-columns {
        grid-template-columns: 1fr;
    }
}

.admin-columns h3 {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin: 0 0 8px;
}

.stat-tile.admin-level--warn {
    border-color: #f5c46b;
    background: #fffaf0;
}

.stat-tile.admin-level--alert {
    border-color: #f19a9a;
    background: #fff5f5;
}

span.admin-level--warn {
    color: #a16207;
    font-weight: 600;
}

span.admin-level--alert {
    color: #b91c1c;
    font-weight: 600;
}

.admin-window {
    width: auto;
    min-width: 180px;
}

.admin-tabs {
    display: flex;
    gap: 6px;
}

.admin-tabs .button[aria-selected="true"] {
    background: var(--zlowi-navy);
    border-color: var(--zlowi-navy);
    color: #fff;
}

.admin-section h3 .admin-muted {
    font-weight: 400;
}

/* Black instead of the app's blue for highlights, so the admin site is
   never mistaken for the app. --zlowi-blue covers every var() use
   (link buttons, .secondary, the shared select focus ring); the rest are
   app.css's hard-coded blues. */
:root {
    --zlowi-blue: #000;
    --zlowi-blue-bright: #000;
}

.rail-item[aria-current="page"] {
    background: #000;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.button.primary,
.button.accent {
    background: #000;
    border-color: #000;
}

.button.primary:hover:not(:disabled),
.button.accent:hover:not(:disabled) {
    background: #262626;
    border-color: #262626;
}

.button.secondary:hover:not(:disabled) {
    background: #f1f1f1;
}

.form-field input:focus,
.form-field textarea:focus,
select:focus {
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
}

.form-field-checkbox input {
    accent-color: #000;
}

.admin-tabs .button[aria-selected="true"] {
    background: #000;
    border-color: #000;
}

#view a {
    color: #000;
}
