/* DGTS admin panel — standard backend UI (da-* = dashboard admin) */

.da-page { --da-radius: 14px; }

.da-toolbar {
    position: sticky;
    top: 12px;
    z-index: 20;
    background: rgba(12, 14, 18, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--da-radius);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    margin-bottom: 18px;
}

.da-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.da-nav a {
    font-size: 0.82rem;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--muted);
    text-decoration: none;
    transition: 0.15s ease;
}

.da-nav a:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
}

.da-section {
    border-radius: var(--da-radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(18, 20, 26, 0.72);
    margin-bottom: 14px;
    overflow: hidden;
}

.da-section-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border: 0;
    background: transparent;
    color: #fff;
    text-align: left;
    cursor: pointer;
}

.da-section-header:hover { background: rgba(255, 255, 255, 0.03); }

.da-section-title { font-weight: 700; font-size: 1rem; margin: 0; }
.da-section-sub { font-size: 0.78rem; color: var(--muted); margin: 2px 0 0; }
.da-section-body { padding: 0 18px 18px; }

.da-section--core { border-left: 4px solid #ff5c7a; }
.da-section--hub { border-left: 4px solid #3ddc97; }
.da-section--race { border-left: 4px solid #f5c542; }
.da-section--oauth { border-left: 4px solid #a78bfa; }
.da-section--templates { border-left: 4px solid #60a5fa; }
.da-section--community { border-left: 4px solid #ff8fab; }
.da-section--default { border-left: 4px solid rgba(255, 255, 255, 0.2); }

.da-cat-panel {
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.18);
}

.da-cat-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border: 0;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
}

.da-cat-header:hover { background: rgba(255, 255, 255, 0.06); }
.da-cat-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

.da-field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px 16px;
    padding: 14px;
}

.da-field-grid--wide { grid-template-columns: 1fr; }

.da-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.da-field--wide { grid-column: 1 / -1; }

.da-field-label {
    font-size: 0.78rem;
    color: #e8ecf3;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}

.da-field-key {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.35);
    font-family: ui-monospace, monospace;
}

.da-input-narrow {
    max-width: 220px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
}

.da-input-medium { max-width: 420px; }
.da-input-wrap { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.da-copy-btn {
    padding: 4px 8px;
    font-size: 0.72rem;
    line-height: 1;
}

.da-help { font-size: 0.72rem; color: var(--muted); line-height: 1.35; }

.da-deploy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}

.da-deploy-grid .btn { width: 100%; }

.da-pill {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--muted);
}

.da-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.da-mini-card {
    padding: 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.06);
    height: 100%;
}

.da-chevron { transition: transform 0.2s ease; color: var(--muted); }

.da-section-header[aria-expanded="true"] .da-chevron,
.da-cat-header[aria-expanded="true"] .da-chevron {
    transform: rotate(180deg);
}

/* DCS arkiv */
.da-archive-table { margin: 0; }
.da-archive-table thead th {
    font-size: 0.78rem;
    color: #c5d0e0;
    white-space: nowrap;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
.da-archive-table td { vertical-align: middle; }
.da-archive-name { font-weight: 650; color: #f2f5fa; }
.da-archive-meta { font-size: 0.75rem; color: var(--muted); }
.da-div-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #e8ecf3;
}
.da-div-badge--1 { background: rgba(245, 197, 66, 0.18); border-color: rgba(245, 197, 66, 0.45); color: #f5c542; }
.da-div-badge--2 { background: rgba(96, 165, 250, 0.16); border-color: rgba(96, 165, 250, 0.4); color: #93c5fd; }
.da-div-badge--3 { background: rgba(61, 220, 151, 0.14); border-color: rgba(61, 220, 151, 0.35); color: #3ddc97; }
.da-div-badge--4 { background: rgba(167, 139, 250, 0.14); border-color: rgba(167, 139, 250, 0.35); color: #c4b5fd; }
.da-dcs-val {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #7dd3fc;
    font-size: 1.02rem;
}
.da-dcs-delta {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    padding: 1px 7px;
    border-radius: 999px;
}
.da-dcs-delta--up { color: #3ddc97; background: rgba(61, 220, 151, 0.12); }
.da-dcs-delta--down { color: #ff8fab; background: rgba(255, 92, 122, 0.12); }
.da-dcs-delta--flat { color: var(--muted); background: rgba(255, 255, 255, 0.05); }
.da-archive-history {
    border: 1px solid rgba(125, 211, 252, 0.22);
    border-radius: var(--da-radius);
    background: rgba(14, 22, 32, 0.85);
    padding: 14px 16px;
    margin-bottom: 14px;
}
.da-archive-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
