/* Shared settings/admin page layout — extracted from Settings.razor */
.stg {
    min-height: calc(100vh - 64px);
    background: #f8f9fa;
}
.stg-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Page header */
.stg-page-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
}
.stg-page-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stg-page-title {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -.02em;
}
.stg-page-desc {
    font-size: 15px;
    color: #888;
    margin: 2px 0 0;
}

/* Sections */
.stg-sections { display: flex; flex-direction: column; gap: 24px; }

.stg-section {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    display: flex;
    transition: border-color .25s;
}
.stg-section:hover { border-color: rgba(0,0,0,.12); }
.stg-section-accent {
    width: 4px;
    flex-shrink: 0;
}
.stg-section-body {
    flex: 1;
    padding: 24px;
    overflow-x: auto;
}
.stg-section-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}
.stg-section-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stg-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}
.stg-section-desc {
    font-size: 13px;
    color: #888;
    margin: 2px 0 0;
    line-height: 1.5;
}

/* Field layout */
.stg-field { display: flex; flex-direction: column; gap: 6px; }
.stg-field-label {
    font-size: 13px;
    font-weight: 500;
    color: #888;
}
.stg-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.stg-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}
.stg-row-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

/* Sub-card */
.stg-subcard {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}
.stg-subcard-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    margin-bottom: 14px;
}

/* Summary stat cards */
.stg-stat {
    text-align: center;
    padding: 16px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
}
.stg-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
}
.stg-stat-value--info { color: #1976D2; }
.stg-stat-value--success { color: #4CAF50; }
.stg-stat-value--warning { color: #FB8C00; }
.stg-stat-value--error { color: #E53935; }
.stg-stat-label {
    font-size: 12px;
    color: #888;
    margin: 4px 0 0;
    text-transform: uppercase;
    letter-spacing: .03em;
}

/* Buttons */
.stg-save-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 10px;
    border: none;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: filter .15s;
}
.stg-save-btn:hover:not(:disabled) { filter: brightness(.92); }
.stg-save-btn:disabled { opacity: .5; cursor: not-allowed; }

.stg-btn-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.stg-outline-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 10px;
    border: 1px solid rgba(229,57,53,.3);
    background: #fff;
    color: #E53935;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.stg-outline-btn:hover:not(:disabled) { background: rgba(229,57,53,.06); }
.stg-outline-btn:disabled { opacity: .5; cursor: not-allowed; }

/* Badge */
.stg-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid;
    white-space: nowrap;
}

/* Kanban board */
.stg-kanban { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.stg-kanban-col {
    min-width: 220px;
    flex: 1;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 12px;
}
.stg-kanban-col-header {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8e8e8;
}
.stg-kanban-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
    transition: box-shadow .15s;
}
.stg-kanban-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); }

/* Responsive */
@media (max-width: 768px) {
    .stg-row-2 { grid-template-columns: 1fr; }
    .stg-row-3 { grid-template-columns: 1fr; }
    .stg-row-4 { grid-template-columns: 1fr 1fr; }
    .stg-btn-row { flex-direction: column; }
    .stg-section { flex-direction: column; }
    .stg-section-accent { width: 100%; height: 4px; }
    .stg-kanban { flex-direction: column; }
    .stg-kanban-col { min-width: unset; }
}
