/* Parts (sections) for the Bihar GS combined full test. Loaded after ssc-mock.css. */

/* Paper pattern on the start card */
.ssc-parts { margin: 0 0 16px; }
.ssc-parts h2 { margin: 0 0 8px; font-size: 1rem; color: #0a3d7a; }
.ssc-parts table,
.ssc-part-score table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ssc-parts th, .ssc-parts td,
.ssc-part-score th, .ssc-part-score td { padding: 8px 10px; border: 1px solid #e2e8f0; text-align: left; }
.ssc-parts th,
.ssc-part-score th { background: #0a3d7a; color: #fff; font-weight: 700; }
.ssc-parts td:last-child, .ssc-parts th:last-child { text-align: center; width: 90px; }
.ssc-parts td:first-child { width: 56px; text-align: center; color: #0a3d7a; }
.ssc-parts tfoot td,
.ssc-part-score tfoot td { background: #f4f7fb; font-weight: 800; }

/* Part tabs above the question */
.ssc-sec-tabs {
    flex: 0 0 auto;
    display: flex;
    gap: 6px;
    padding: 8px 10px;
    overflow-x: auto;
    background: #dbe5f1;
    border-bottom: 1px solid #c5d2e2;
    scrollbar-width: thin;
}
.ssc-sec-tabs button {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    padding: 6px 12px;
    border: 1px solid #94a3b8;
    border-radius: 6px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    cursor: pointer;
    text-align: left;
}
.ssc-sec-tabs button b { font-size: .86rem; white-space: nowrap; }
.ssc-sec-tabs button small { font-size: .74rem; color: #475569; font-weight: 600; white-space: nowrap; }
.ssc-sec-tabs button:hover { border-color: #0a3d7a; }
.ssc-sec-tabs button.is-on { background: #0a3d7a; border-color: #0a3d7a; color: #fff; }
.ssc-sec-tabs button.is-on small { color: #dbe5f1; }

/* Part name in the question header */
.ssc-qhead { flex-wrap: wrap; }
.ssc-qsec { color: #0a3d7a; }

/* Part headings inside the palette grid */
.ssc-grid-sec {
    grid-column: 1 / -1;
    margin: 6px 0 2px;
    padding: 4px 6px;
    border-radius: 4px;
    background: #e2e8f0;
    color: #0f172a;
    font-size: .76rem;
    font-weight: 800;
}
.ssc-grid-sec:first-child { margin-top: 0; }
.ssc-grid-sec.is-on { background: #0a3d7a; color: #fff; }

#sscConfirmBody { white-space: pre-line; }

/* Part-wise score in the result */
.ssc-part-score { margin: 0 0 16px; }
.ssc-part-score h2 { margin: 0 0 8px; font-size: 1.05rem; color: #0a3d7a; }
.ssc-table-wrap { overflow-x: auto; }
.ssc-part-score td:not(:first-child),
.ssc-part-score th:not(:first-child) { text-align: center; }
.ssc-rev-sec {
    margin: 10px 0 0;
    padding: 8px 12px;
    border-radius: 8px;
    background: #0a3d7a;
    color: #fff;
    font-size: 1rem;
}

@media (max-width: 800px) {
    .ssc-sec-tabs { padding: 6px 8px; }
    .ssc-sec-tabs button { padding: 5px 9px; }
    .ssc-part-score table { font-size: .82rem; }
    .ssc-part-score th, .ssc-part-score td { padding: 6px; }
}
