﻿:root {
    --af-primary: #4f46e5;
    --af-primary-dark: #4338ca;
    --af-primary-light: #eef2ff;
    --af-border: #dbe0ea;
    --af-text: #1f2430;
    --af-muted: #6b7280;
    --af-danger: #dc2626;
}

.rf-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(20, 20, 43, .06);
    max-width: 100%;
    margin: 10px 0px 14px;
    overflow: hidden;
    padding-top: 10px;
    
}

.rf-card-header{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--af-border);
    background: linear-gradient(90deg, var(--af-primary-light), #ffffff);
}

    .rf-card-header i {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: var(--af-primary);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        flex-shrink: 0;
    }

    .rf-card-header h2 {
        font-size: 16px;
        font-weight: 700;
        margin: 0;
        color: var(--af-text);
    }
.rf-card-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    float: left;
    width: 60%;
}
.rf-card-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    float: right;
    width: 40%;
}
    .rf-card-header-right button {
        border: 1px solid #007bff;
        color: #007bff;
    }
    .rf-card-header-right button:hover {
        background-color: #51a4fe;
        color: #000;
    }
.rf-sub {
    font-size: 11.5px;
    color: var(--af-muted);
}

.rf-card-body {
    padding: 22px;
}

.rf-field {
    margin-bottom: 18px;
}

    .rf-field label {
        font-size: 12.5px;
        font-weight: 600;
        color: #384054;
        display: block;
        margin-bottom: 5px;
    }

        .rf-field label .req {
            color: var(--af-danger);
            margin-left: 2px;
        }

.rf-window-box {
    background: var(--af-primary-light);
    border: 1px solid #d9d6fb;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 12.5px;
    color: var(--af-primary-dark);
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

    .rf-window-box i {
        width: 16px;
        display: inline-block;
        text-align: center;
    }

    .rf-window-box strong {
        color: #1f2430;
    }

.rf-go-wrap {
    display: flex;
    justify-content: center;
}

.af-btn:disabled,
.af-btn[disabled] {
    opacity: .5;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
}

.rf-rules-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--af-primary-dark);
    text-align: center;
    margin-bottom: 14px;
    letter-spacing: .3px;
}

.rf-rules-title-gu {
    font-size: 16px;
}

.rf-rules-list {
    font-size: 12.5px;
    color: #384054;
    line-height: 1.7;
    padding-left: 20px;
    margin-bottom: 6px;
}

    .rf-rules-list li {
        margin-bottom: 10px;
    }

.rf-sub-list {
    margin-top: 6px;
    padding-left: 18px;
}

.rf-rules-list-gu {
    font-size: 13px;
    line-height: 1.9;
}

.rf-divider {
    height: 2px;
    background: linear-gradient(90deg, var(--af-primary), #c7a94f);
    width: 90px;
    margin: 22px auto;
    border-radius: 2px;
}

.rf-agree-box {
    background: #fbfcfe;
    border: 1px solid var(--af-border);
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 18px;
}

.rf-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: #384054;
    cursor: pointer;
}

    .rf-checkbox-label input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: var(--af-primary);
        margin-top: 2px;
        flex-shrink: 0;
        cursor: pointer;
    }

.rf-next-wrap {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

@media (max-width: 575px) {
    .rf-card-body {
        padding: 16px;
    }
}

.search-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 90%;
    margin: 0 auto;
    padding:10px 0px;
}

    .search-row label {
        margin: 0;
        white-space: nowrap;
        width:10%;
    }

    .search-row .field {
        flex: 1;
        width: 60%;
        margin: 0;
    }

    .search-row button {
        width: 20%;
        white-space: nowrap;
    }
@media (max-width: 600px) {
    .search-row {
        flex-direction: column;
        align-items: stretch;
    }

        .search-row label,
        .search-row .field,
        .search-row button {
            width: 100%;
        }
}
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    padding: 10px;
}

/* Main table */
.student-table {
    width: 98%;
    min-width: 99%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 14px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin:5px;
    align-items:center;
    justify-content:center;
}

    /* =========================
   COLUMN WIDTHS
   ========================= */

    .student-table .col-application {
        width: 18%;
    }

    .student-table .col-name {
        width: 14%;
    }

    .student-table .col-medium {
        width: 10%;
    }

    .student-table .col-mobile {
        width: 12%;
    }

    .student-table .col-dob {
        width: 10%;
    }

    .student-table .col-caste {
        width: 9%;
    }

    .student-table .col-action {
        width: 8%;
    }


    /* =========================
   HEADER
   ========================= */

    .student-table thead th {
        height: 45px;
        padding: 10px 12px;
        text-align: center !important;
        vertical-align: middle !important;
        background: #f8f9fa;
        color: #212529;
        font-size: 14px;
        font-weight: 600;
        border-bottom: 1px solid #dee2e6;
        white-space: nowrap;
    }


    /* =========================
   BODY
   ========================= */

    .student-table tbody td {
        height: 48px;
        padding: 10px 12px;
        text-align: center !important;
        vertical-align: middle !important;
        color: #333;
        border-bottom: 1px solid #eeeeee;
        white-space: nowrap;
    }


    /* Remove last border */

    .student-table tbody tr:last-child td {
        border-bottom: none;
    }


    /* =========================
   HOVER
   ========================= */

    .student-table tbody tr:hover {
        background-color: #f8fafc;
    }


    /* =========================
   APPLICATION NUMBER
   ========================= */

    .student-table tbody td:nth-child(2) {
        color: #2563eb;
    }


    /* =========================
   ACTION BUTTON
   ========================= */

    .student-table .view-btn {
        width: 36px;
        height: 36px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 1px solid #0d6efd;
        border-radius: 5px;
        background: #ffffff;
        color: #0d6efd;
        cursor: pointer;
        transition: all 0.2s ease;
    }

        .student-table .view-btn:hover {
            background: #0d6efd;
            color: #ffffff;
        }

        .student-table .view-btn i {
            font-size: 14px;
        }


/* =========================================================
   REGISTRATION MODAL
   ========================================================= */

.registration-popup {
    border: 0;
    border-radius: 7px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, .30);
    max-height: 96vh;
    display: flex;
    flex-direction: column;
}

.registration-popup-header {
    background: #075da7;
    color: #fff;
    padding: 9px 15px;
    border: 0;
}

    .registration-popup-header .modal-title {
        font-size: 17px;
        font-weight: 600;
    }

.registration-popup-body {
    background: #dfe4e9;
    padding: 8px;
    flex: 1 1 auto;
    min-height: 0;
}


/* =========================================================
   PAPER
   ========================================================= */

.admission-paper {
    background: #fff;
    padding: 14px 18px;
    color: #173f63;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
}


/* =========================================================
   SCHOOL HEADER
   ========================================================= */

.school-header {
    height: 110px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #8ba7bf;
}

.school-logo {
    position: absolute;
    left: 8px;
    top: 8px;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .school-logo img {
        max-width: 90px;
        max-height: 90px;
        object-fit: contain;
    }

.school-heading {
    text-align: center;
}

.school-name {
    font-size: 35px;
    line-height: 30px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #075da7;
}

.school-subtitle {
    font-size: 10px;
    margin-top: 1px;
}

.school-address {
    font-size: 11px;
    font-weight: 600;
    margin-top: 2px;
}


/* =========================================================
   FORM TITLE
   ========================================================= */

.admission-title {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    color: #164e7c;
    padding: 5px 0;
    text-transform: uppercase;
}

/* =========================================================
   TOP INFORMATION
   ========================================================= */

.top-information {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #8ba7bf;
    padding-bottom: 5px;
}

.letter-content {
    font-size: 15px;
    font-weight: 500;
    width: 67%;
    line-height: 20px;
}

.admission-number {
    width: 280px;
    border: 1px solid #7092af;
    padding: 4px 6px;
}

    .admission-number div {
        display: flex;
        align-items: center;
        height: 20px;
    }

    .admission-number b {
        width: 92px;
        font-size: 11px;
    }

    .admission-number span {
        flex: 1;
        height: 16px;
        font-size: 11px;
        border-bottom: 1px solid #b8c8d6;
    }


/* =========================================================
   FORM ROW
   ========================================================= */

.admission-row {
    display: flex;
    align-items: flex-end;
    min-height: 30px;
    padding: 5px 12px 5px 4px !important;
}

.serial {
    width: 25px;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 12px;
    align-self: flex-start;
    padding-top: 12px;
}

.field {
    flex: 1;
    min-width: 0;
}

    .field.full {
        flex: 1;
    }

.student-field {
    flex: 1;
}

.name-label {
    text-align: center;
}

.field label {
    display: block;
    color: #194e78;
    font-size: 15px;
    font-weight: 700;
    line-height: 25px;
}

.value {
    text-transform: uppercase;
    min-height: 20px;
    border-bottom: 1px solid #8fa7ba;
    padding: 3px 3px 1px;
    color: #222;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   BOTTOM PHOTOS / SIGNATURES
   ========================================================= */

.bottom-area {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 8px 20px 5px 30px;
}

.photos {
    display: flex;
    gap: 28px;
}

.photo-box {
    width: 125px;
    height: 140px;
    border: 1px solid #91a9bd;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #456d8c;
    font-size: 14px;
    font-weight: 600;
}

.signatures {
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: center;
}

.signature-line {
    font-size: 13px;
    height: 20px;
    border-bottom: 1px solid #587994;
}

.signatures b {
    font-size: 15px;
    color: #315b79;
}


/* =========================================================
   NOTE
   ========================================================= */

.birth-note {
    border-bottom: 1px solid #8ba7bf;
    padding: 2px 0;
    font-size: 13px;
    font-style: italic;
    font-weight: 600;
    text-align: center;
}


/* =========================================================
   PAPER FOOTER
   ========================================================= */

.paper-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
}

.parent-message {
    font-size: 15px;
    line-height: 18px;
}

.form-number {
    text-align: right;
    font-size: 15px;
    line-height: 20px;
}

    .form-number b {
        display: block;
        font-size: 18px;
        color: #12598e;
    }


/* =========================================================
   MODAL FOOTER
   ========================================================= */

.registration-footer {
    padding: 7px 12px;
    background: #fff;
    border-top: 1px solid #ddd;
}

    .registration-footer .btn {
        min-width: 75px;
        padding: 5px 12px;
        font-size: 13px;
    }


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 992px) {

    .registration-popup-body {
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
}


/* =========================================================
   SMALL SCREEN
   ========================================================= */

@media (max-width: 991px) {

    .registration-popup {
        width: 100%;
        max-width: 100%;
        max-height: 95vh;
    }

    .registration-popup-body {
        overflow-x: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* IMPORTANT:
       Paper ka layout responsive nahi hoga.
       Same desktop width maintain rahegi.
    */
    .admission-paper {
        width: 950px;
        min-width: 950px;
        max-width: 950px;
    }

        /* Bootstrap columns ko mobile par stack hone se roko */

        .admission-paper .row {
            display: flex;
            flex-wrap: nowrap;
            margin-left: 0;
            margin-right: 0;
        }

        .admission-paper .col-md-12 {
            width: 100% !important;
            max-width: 100% !important;
            flex: 0 0 100% !important;
        }

        .admission-paper .col-md-6 {
            width: 50% !important;
            max-width: 50% !important;
            flex: 0 0 50% !important;
        }

        .admission-paper .col-md-4 {
            width: 33.333333% !important;
            max-width: 33.333333% !important;
            flex: 0 0 33.333333% !important;
        }

        .admission-paper .col-md-3 {
            width: 25% !important;
            max-width: 25% !important;
            flex: 0 0 25% !important;
        }

        .admission-paper .col-md-8 {
            width: 66.666667% !important;
            max-width: 66.666667% !important;
            flex: 0 0 66.666667% !important;
        }

        .admission-paper .col-md-9 {
            width: 75% !important;
            max-width: 75% !important;
            flex: 0 0 75% !important;
        }

        .admission-paper .col-md-10 {
            width: 83.333333% !important;
            max-width: 83.333333% !important;
            flex: 0 0 83.333333% !important;
        }

        .admission-paper .col-md-2 {
            width: 16.666667% !important;
            max-width: 16.666667% !important;
            flex: 0 0 16.666667% !important;
        }

        .admission-paper .col-md-1 {
            width: 8.333333% !important;
            max-width: 8.333333% !important;
            flex: 0 0 8.333333% !important;
        }

    /* Row ke andar fields ek hi line me rahenge */
    .single-line-row .line-field {
        white-space: nowrap;
        flex-wrap: nowrap;
    }

    .single-line-row .line-label {
        white-space: nowrap;
    }

    .single-line-row .line-value {
        white-space: nowrap;
    }

    .single-line-row .email {
        white-space: nowrap;
    }
}

/* =========================================================
ROW 3 TO 16 - INLINE UNDERLINE FORMAT
========================================================= */

.single-line-row {
    width: 100%;
    min-height: 27px;
    padding: 2px 0;
    align-items: center;
}

    .single-line-row > .row {
        margin-left: 0;
        margin-right: 0;
    }

    .single-line-row .line-field {
        display: flex;
        align-items: flex-end;
        min-height: 25px;
        padding-left: 4px;
        padding-right: 10px;
        white-space: nowrap;
    }

    .single-line-row .serial {
        width: 25px;
        flex-shrink: 0;
        padding-top: 0;
        align-self: center;
        font-size: 15px;
    }

.line-label {
    color: #194e78;
    font-size: 15px;
    font-weight: 700;
    line-height: 25px;
    flex-shrink: 0;
}

.line-value {
    text-transform: uppercase;
    display: inline-block;
    flex: 1;
    min-width: 40px;
    min-height: 18px;
    margin-left: 4px;
    padding: 1px 2px 0;
    border-bottom: 1px solid #8fa7ba;
    color: #222;
    font-size: 14px;
    line-height: 25px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email {
    text-transform: lowercase;
    display: inline-block;
    flex: 1;
    min-width: 40px;
    min-height: 18px;
    margin-left: 4px;
    padding: 1px 2px 0;
    border-bottom: 1px solid #8fa7ba;
    color: #222;
    font-size: 14px;
    line-height: 25px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.single-line-row .col-md-12 .line-value {
    min-width: 100px;
}

/* =========================================================
PRINT
========================================================= */

@media print {

    .single-line-row {
        page-break-inside: avoid;
    }

    .line-label {
        font-size: 15px;
    }

    .line-value {
        text-transform: uppercase;
        font-size: 14px;
        border-bottom: 1px solid #555;
    }

    .email {
        text-transform: lowercase;
        font-size: 14px;
        border-bottom: 1px solid #555;
    }
}