/* POST subapp -- simple styling, mirrored from telemetry_dashboard/assets/dashboard.css.
 * Loads on every sub-app's Dash instance because app/assets/ is shared, so all
 * rules are scoped to .post-container.
 */

/* Body background = match the layout */
body {
    background-color: #151515;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.post-container {
    padding: 14px 18px 64px;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

/* ---------- Header ---------- */
.post-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2a2a2a;
    margin-bottom: 16px;
}
.post-brand {
    font-size: 16px;
    font-weight: 700;
    color: #d4a053;
    letter-spacing: 0.5px;
}
.post-subtitle {
    color: #9ca3af;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.post-user {
    margin-left: auto;
    color: #9ca3af;
    font-size: 11px;
}

/* ---------- Pipeline summary cards ---------- */
.post-pipeline-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    margin-bottom: 18px;
}
.post-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 2px;
    padding: 8px 12px;
}
.post-card-label {
    color: #9ca3af;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
    font-weight: 600;
}
.post-card-value {
    color: #e0e0e0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
}

/* ---------- Sections ---------- */
.post-section {
    margin-top: 18px;
    margin-bottom: 18px;
}
.post-section-h {
    color: #9ca3af;
    font-size: 11px;
    font-weight: 600;
    margin: 0 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #2a2a2a;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.post-actions-row {
    margin-bottom: 8px;
}

.post-empty {
    color: #9ca3af;
    padding: 12px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 2px;
    font-size: 12px;
}
.post-error {
    color: #f87171;
    padding: 8px 12px;
    background: rgba(248, 113, 113, 0.06);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 2px;
    font-size: 12px;
}

/* ---------- Generic table niceties (matches telemetry pattern) ---------- */
.post-section table th,
.post-section table td {
    padding: 3px 8px !important;
    border-bottom: 1px solid #2a2a2a !important;
    text-align: left !important;
    color: #e0e0e0 !important;
}
.post-section table th {
    color: #9ca3af !important;
    font-weight: 600 !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    background-color: #1a1a1a !important;
}
.post-section table tr:hover td {
    background-color: #1c2333 !important;
}

/* Make sure Dash DataTable cells inherit the light text color */
.post-section .dash-cell-value,
.post-section .dash-spreadsheet-container td,
.post-section .dash-spreadsheet-container .dash-cell {
    color: #e0e0e0 !important;
}
.post-section .dash-spreadsheet-container th {
    color: #9ca3af !important;
}
