/* Exact format from result website format1111.docx */
:root {
    --doc-purple: #7030A0;
    --doc-green: #548235;
    --doc-green-soft: #70AD47;
    --doc-border: #000000;
    --doc-bg: #ffffff;
}

.result-format-page {
    margin: 0;
    background: #e8e8e8;
    font-family: Cambria, "Times New Roman", serif;
    color: #000;
}

.result-format-wrap {
    width: min(920px, calc(100% - 1.5rem));
    margin: 1rem auto 2rem;
}

.result-format-sheet {
    background: #fff;
    border: 1px solid #cfcfcf;
    padding: 18px 22px 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.result-format-banner {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

.result-format-banner img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.result-format-exam-title {
    text-align: center;
    font-family: Cambria, "Times New Roman", serif;
    font-weight: 700;
    font-size: 18px;
    color: #000;
    margin: 8px 0 14px;
}

.result-info-table,
.result-marks-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin-bottom: 0;
}

.result-info-table td {
    border: 1px solid #000;
    padding: 10px 8px;
    vertical-align: middle;
    font-family: Cambria, "Times New Roman", serif;
    font-size: 12pt;
    font-weight: 700;
    line-height: 1.2;
}

.result-info-table .lbl {
    color: var(--doc-purple);
    text-align: center;
    width: 12%;
}

.result-info-table .val {
    color: var(--doc-green-soft);
    text-align: left;
    padding-left: 12px;
}

.result-info-table .val-center {
    color: var(--doc-green-soft);
    text-align: center;
}

.result-info-table .degree-val {
    color: var(--doc-green-soft);
    text-align: center;
}

.result-marks-table {
    margin-top: 0;
}

.result-marks-table th,
.result-marks-table td {
    border: 1px solid #000;
    padding: 8px 6px;
    vertical-align: middle;
}

.result-marks-table thead th {
    background: var(--doc-green);
    color: #fff;
    font-family: Cambria, "Times New Roman", serif;
    font-size: 12pt;
    font-weight: 700;
    text-align: center;
}

.result-marks-table tbody td {
    background: #fff;
    color: var(--doc-purple);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11pt;
    font-weight: 700;
    text-align: center;
}

.result-marks-table tbody td.paper-code {
    text-align: left;
    padding-left: 10px;
}

.result-marks-table col.c-no { width: 8%; }
.result-marks-table col.c-code { width: 28%; }
.result-marks-table col.c-int { width: 16%; }
.result-marks-table col.c-ext { width: 16%; }
.result-marks-table col.c-total { width: 14%; }
.result-marks-table col.c-result { width: 18%; }

.result-marks-table tbody td.result-status.result-pass {
    color: #00B050;
}

.result-marks-table tbody td.result-status.result-aaa {
    color: #FF0000;
}

.result-marks-table tbody td.result-status.result-ra {
    color: #00B0F0;
}

.result-legend {
    margin-top: 18px;
    text-align: center;
    font-family: Cambria, "Times New Roman", serif;
    font-size: 12pt;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
}

.result-legend .leg-pass {
    color: #00B050;
}

.result-legend .leg-aaa {
    color: #FF0000;
}

.result-legend .leg-ra {
    color: #00B0F0;
}

.result-legend .leg-rest {
    color: #000;
}

.result-legend .leg-gap {
    display: inline-block;
    width: 2.8em;
}

.result-format-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
}

.result-format-lookup {
    width: min(520px, calc(100% - 1.5rem));
    margin: 3rem auto;
    background: #fff;
    border: 1px solid #cfcfcf;
    padding: 1.5rem;
}

.result-format-lookup h1 {
    font-family: Cambria, "Times New Roman", serif;
    color: var(--doc-purple);
    font-size: 1.4rem;
    margin: 0 0 0.35rem;
    text-align: center;
}

.result-format-lookup .sub {
    text-align: center;
    color: var(--doc-green);
    font-family: Cambria, "Times New Roman", serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

.result-format-lookup label {
    display: grid;
    gap: 0.35rem;
    font-family: Cambria, "Times New Roman", serif;
    font-weight: 700;
    color: var(--doc-purple);
    margin-bottom: 0.85rem;
}

.result-format-lookup input {
    border: 1px solid #000;
    padding: 0.7rem 0.8rem;
    font: inherit;
}

.result-format-lookup .btn-check {
    width: 100%;
    border: 0;
    background: var(--doc-green);
    color: #fff;
    font-family: Cambria, "Times New Roman", serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 1rem;
    cursor: pointer;
}

.result-format-lookup .btn-check:hover {
    background: #3f6426;
}

.result-format-actions .btn-print,
.result-format-actions .btn-back {
    border: 1px solid #000;
    padding: 0.65rem 1rem;
    font-family: Cambria, "Times New Roman", serif;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.result-format-actions .btn-print {
    background: var(--doc-green);
    color: #fff;
}

.result-format-actions .btn-back {
    background: #fff;
    color: var(--doc-purple);
}

.result-alert {
    background: #fdecec;
    color: #7f1d1d;
    border-left: 4px solid #9b2226;
    padding: 0.75rem 0.9rem;
    margin-bottom: 1rem;
    font-family: Arial, Helvetica, sans-serif;
}

@media print {
    .result-format-page {
        background: #fff;
    }

    .result-format-wrap {
        width: 100%;
        margin: 0;
    }

    .result-format-sheet {
        box-shadow: none;
        border: 0;
        padding: 0;
    }

    .result-format-actions,
    .no-print {
        display: none !important;
    }
}

@media (max-width: 700px) {
    .result-info-table,
    .result-marks-table {
        font-size: 10px;
    }

    .result-info-table td,
    .result-marks-table th,
    .result-marks-table td {
        padding: 6px 4px;
    }
}
