/* ==========================================================================
   Carmel Convent Sr. Secondary School, BHEL - Online Admission
   Modern responsive theme (UI only). Shared by every master page / standalone
   page in this folder. Replaces weaver.css / master.css styling.
   ========================================================================== */

:root {
    --primary: #1b3a5c;
    --primary-dark: #12283f;
    --primary-soft: #e8eef6;
    --accent: #e0a526;
    --accent-dark: #c28a12;
    --accent-soft: #fff6df;
    --success: #1f8a5b;
    --success-soft: #e6f5ee;
    --danger: #c0392b;
    --danger-soft: #fdecea;
    --bg: #f3f5f9;
    --surface: #ffffff;
    --text: #1f2933;
    --muted: #667085;
    --border: #dde3ec;
    --radius: 12px;
    --shadow-sm: 0 1px 3px rgba(16, 24, 40, .08);
    --shadow: 0 6px 24px rgba(16, 24, 40, .08);
    --font: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary { display: block; }
[hidden] { display: none; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
}
form { margin: 0; }
img { max-width: 100%; height: auto; border: 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent-dark); }
b, strong { font-weight: 600; }
h1, h2, h3, h4 { color: var(--primary-dark); line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 .9em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 14px 0; }
ol, ul { padding-left: 1.4em; }
li { margin-bottom: .35em; }
center { display: block; text-align: center; }

/* Sticky footer: form fills the viewport, main grows */
body > form { min-height: 100vh; display: flex; flex-direction: column; }
.page-main { flex: 1 0 auto; width: 100%; padding: 22px 16px 32px; }
.container { width: 100%; max-width: 980px; margin: 0 auto; }
.container-narrow { width: 100%; max-width: 460px; margin: 0 auto; }
.container-wide { width: 100%; max-width: 1240px; margin: 0 auto; }

/* ---------- Header ---------- */
.site-header { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); color: #fff; }
.brand {
    max-width: 980px; margin: 0 auto; padding: 16px;
    display: flex; align-items: center; justify-content: center; text-align: center; gap: 16px;
}
.brand-logo {
    flex: 0 0 auto; width: 72px; height: 72px; border-radius: 50%;
    background: #fff; padding: 3px; box-shadow: 0 0 0 3px rgba(224, 165, 38, .85);
}
.brand-text { min-width: 0; }
.brand-name { margin: 0; color: #fff; font-size: 1.45rem; font-weight: 700; letter-spacing: .2px; }
.brand-sub { margin: 2px 0 0; color: #cfdcec; font-size: .85rem; }
.session-bar {
    background: var(--accent); color: #2b1f00; text-align: center;
    font-weight: 600; font-size: .95rem; letter-spacing: .4px;
    padding: 8px 16px; text-transform: uppercase;
}

/* ---------- Navigation (works with js/responsivemenu.js) ---------- */
nav.site-nav, .site-nav { width: 100%; background: var(--primary-dark); box-shadow: var(--shadow-sm); margin: 0; }
.site-nav .nav-inner { max-width: 980px; margin: 0 auto; padding: 0 8px; }
.toggleMenu {
    display: none; background: transparent; color: #fff; font-weight: 600;
    padding: 12px 16px; width: 100%; text-align: left;
}
.toggleMenu::after { content: "\2630"; float: right; font-size: 1.2rem; }
.toggleMenu:hover { color: var(--accent); }
.nav { list-style: none; margin: 0; padding: 0; }
.nav::after { content: ""; display: table; clear: both; }
.nav > li { display: inline-block; margin: 0; position: relative; }
.nav > li > a {
    display: block; padding: 13px 18px; color: #e6eef8; font-size: .95rem; font-weight: 500;
    border-bottom: 3px solid transparent; transition: background .2s, border-color .2s, color .2s;
}
.nav > li > a:hover { background: rgba(255, 255, 255, .08); color: #fff; border-bottom-color: var(--accent); }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav li ul { position: absolute; left: -9999px; }
.nav > li.hover > ul { left: 0; }

.blink {
    display: inline-block; background: var(--accent); color: #2b1f00 !important;
    padding: 3px 12px; border-radius: 999px; font-weight: 600;
    animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* ---------- Footer ---------- */
.site-footer {
    flex-shrink: 0; background: var(--primary-dark); color: #b9c8db;
    text-align: center; padding: 14px 16px; font-size: .85rem;
}
.site-footer p { margin: 0; color: #b9c8db; font-size: .85rem; }

/* ---------- Cards / headings ---------- */
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 24px; margin: 0 auto 20px;
}
.card-accent { border-top: 4px solid var(--accent); }
.card-head {
    margin: -24px -24px 18px; padding: 12px 24px; text-align: center; font-weight: 600; color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius) var(--radius) 0 0;
}
.card-head b { font-weight: 600; }
.photo-frame { width: 120px; height: 150px; object-fit: cover; border: 3px solid #fff; border-radius: 6px; box-shadow: 0 2px 10px rgba(16, 24, 40, .25); margin: 4px 0 8px; }
.page-title { text-align: center; color: var(--primary-dark); font-size: 1.6rem; font-weight: 700; margin: 4px 0 6px; }
.page-sub { text-align: center; color: var(--muted); margin: 0 0 20px; }
.title {
    color: var(--primary-dark); font-weight: 700; font-size: 1.25rem; text-align: center;
}
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.notice {
    background: var(--accent-soft); border-left: 4px solid var(--accent); color: #5b4300;
    padding: 12px 16px; border-radius: 8px; font-size: .92rem; margin: 0 0 16px;
}
.alert-error { color: var(--danger); font-weight: 600; text-align: center; font-size: .92rem; }

/* Status card (error / result pages) */
.status-card {
    max-width: 520px; margin: 40px auto; padding: 36px 24px; text-align: center;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); border-top: 5px solid var(--primary);
}
.status-card.is-error { border-top-color: var(--danger); }
.status-card.is-error .status-text { color: var(--danger); }
.status-text { font-size: 1.35rem; font-weight: 700; color: var(--primary-dark); }

/* ---------- Buttons ---------- */
.btn, .example_b, .example_c, .button, .mybutton, .action-button,
input[type=button], input[type=submit], input[type=reset], button {
    display: inline-block; font-family: var(--font); font-size: .95rem; font-weight: 600;
    line-height: 1.2; text-align: center; text-transform: none; letter-spacing: .2px;
    padding: 11px 22px; min-height: 42px; width: auto; height: auto;
    color: #fff !important; background: var(--primary); border: 1px solid var(--primary);
    border-radius: 8px; cursor: pointer; box-shadow: var(--shadow-sm);
    transition: background .2s, border-color .2s, transform .1s, box-shadow .2s;
    -webkit-appearance: none; appearance: none;
}
.btn:hover, .example_b:hover, .example_c:hover, .button:hover, .mybutton:hover, .action-button:hover,
input[type=button]:hover, input[type=submit]:hover, input[type=reset]:hover, button:hover {
    background: var(--primary-dark); border-color: var(--primary-dark); color: #fff !important;
    letter-spacing: .2px; box-shadow: var(--shadow); text-decoration: none;
}
.btn:active, input[type=button]:active, input[type=submit]:active { transform: translateY(1px); }
.btn-accent, .example_b { background: var(--accent); border-color: var(--accent); color: #2b1f00 !important; }
.btn-accent:hover, .example_b:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #2b1f00 !important; }
.btn-block { display: block; width: 100% !important; }
.btn-group { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }
.btn[disabled], input[type=button][disabled], input[type=submit][disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Form controls ---------- */
input[type=text], input[type=password], input[type=email], input[type=tel], input[type=number],
input[type=date], input:not([type]), select, textarea {
    font-family: var(--font); font-size: .95rem; color: var(--text);
    background: #fff; border: 1px solid #c9d2df; border-radius: 8px;
    padding: 9px 12px; min-height: 42px; max-width: 100%;
    outline: none; transition: border-color .2s, box-shadow .2s;
}
select { padding-right: 28px; }
input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=tel]:focus,
input[type=number]:focus, input[type=date]:focus, input:not([type]):focus, select:focus, textarea:focus {
    border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27, 58, 92, .15);
}
input[disabled], select[disabled] { background: #eef1f6; color: #7b8794; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; vertical-align: middle; accent-color: var(--primary); margin: 0 4px 0 0; }
input.largerCheckbox { width: 22px; height: 22px; }
input.UpperText { text-transform: uppercase; }
input[type=file] { max-width: 100%; font-family: var(--font); font-size: .9rem; }
label { cursor: pointer; }

/* Inputs that JS toggles with visibility:hidden should not leave a blank gap */
input[style*="visibility:hidden"], input[style*="visibility: hidden"] { display: none !important; }

/* ---------- Data-entry forms (.myform) ---------- */
.myform {
    width: 100%; max-width: 860px; margin: 0 auto 22px; border-collapse: separate; border-spacing: 0;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden;
}
.myform > tbody > tr > th, .myform > thead > tr > th {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff; font-size: 1rem; font-weight: 600; text-align: left; padding: 12px 20px; letter-spacing: .3px;
}
.myform > tbody > tr > th.title, .myform .title { color: inherit; font-size: 1rem; text-align: left; }
.myform > tbody > tr > th.title { color: #fff; }
.myform > tbody > tr > td { padding: 10px 20px; vertical-align: middle; border-bottom: 1px solid #eef1f6; font-size: .95rem; }
.myform > tbody > tr > td:first-child:not([colspan]) { width: 38%; color: #344054; font-weight: 500; }
.myform > tbody > tr > td[colspan] { width: auto; }
.myform > tbody > tr:last-child > td { border-bottom: 0; }
.myform td.text, .myform td .text { color: var(--text); font-weight: 400; }
.myform > tbody > tr > td.text { width: 100% !important; padding: 12px 20px; }
.myform td { text-align: left; }
.myform td.text, .myform td.text p, .myform td.text li, .myform td.grid, #popInstruct td, #popInstruct li { text-align: justify; }
.myform > tbody > tr > td[align="center"] { text-align: center; }
.myform td.text li { margin-bottom: 6px; font-size: .92rem; }
.myform td.text p { font-size: .92rem; }
.myform td > input[type=text], .myform td > select { max-width: 100%; }
.myform td > input[type=text]:not([id^="vAadhar"]):not([id^="vSSSM"]) { width: 100%; max-width: 440px; }
.myform td > input[id^="vAadhar"] { width: calc(33.33% - 6px); min-width: 120px; margin: 0 2px 6px 0; }
.myform td > input[id^="vSSSM"] { width: calc(25% - 6px); min-width: 100px; margin: 0 2px 6px 0; }
.myform select { min-width: 110px; }
.myform td > select#vClass, .myform td > select#vDistance, .myform td > select[id$="Qualification"],
.myform td > select[id$="Occupation"], .myform td > select[id$="Sector"], .myform td > select[id$="Income"] { max-width: 100%; }
.myform .grid { background: transparent; border: 0; font-weight: 400; color: var(--text); padding: 0; }
#SiblingDetails { margin-top: 10px; }
#SiblingDetails table td { padding: 4px; }
#SiblingDetails input, #SiblingDetails select { width: 100%; }
#vReason { width: 100%; }
#vReason td { padding: 8px 10px; text-align: left; font-size: .93rem; width: 50%; border: 0; }
#vReason td label { cursor: pointer; }

.mytable { width: 100%; max-width: 860px; margin: 0 auto; border-collapse: collapse; background: var(--surface); }
.mytable th { background: var(--primary); color: #fff; padding: 10px; text-align: left; }
.mytable td { padding: 10px; border-bottom: 1px solid var(--border); }

/* ---------- Instruction / receipt boxes (.box) ---------- */
.box {
    width: 100%; max-width: 860px; margin: 0 auto 22px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
    border-collapse: separate; padding: 8px;
}
.box td { color: var(--text); padding: 6px 12px; vertical-align: top; overflow-wrap: anywhere; word-break: break-word; }
.box ol, .box ul { margin-left: 0; }
.box li { margin-bottom: 6px; }
.box img { max-width: 100%; height: auto; }
#printReady { width: 100%; max-width: 860px; margin: 0 auto; }
.welcometext { text-align: center; }
.panelbox { padding: 0; }
.highlight { background: var(--primary-soft); border-radius: var(--radius); text-align: center; padding: 8px; margin: 6px; }

/* ---------- Home page (login / new registration cards) ---------- */
.home-grid { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 520px; margin: 0 auto; }
.login-card { padding: 28px 24px; text-align: center; }
.login-card h2 { font-size: 1.3rem; margin-bottom: 4px; }
.field { text-align: left; margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .88rem; color: #344054; margin-bottom: 6px; }
.field input, .field select { width: 100%; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.cta-new {
    display: block; text-align: center; background: var(--accent-soft); border: 2px dashed var(--accent);
    color: var(--primary-dark) !important; font-weight: 700; padding: 14px 16px; border-radius: var(--radius); cursor: pointer;
}
.cta-new:hover { background: var(--accent); color: #2b1f00 !important; }
.login-logo { width: 84px; height: 84px; margin: 0 auto 10px; border-radius: 50%; object-fit: contain; }

/* ---------- Admin dashboard ---------- */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.dash-tile { display: block; margin: 0; border-top: 4px solid var(--accent); transition: transform .15s, box-shadow .15s; }
.dash-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(16, 24, 40, .14); }
.dash-title { display: block; font-size: 1.1rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 4px; }

/* ---------- Tables for admin data (generated rows from code-behind) ---------- */
.table-wrap {
    width: 100%; overflow: auto; -webkit-overflow-scrolling: touch;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
#tbdata { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; table-layout: auto !important; }
#tbdata th {
    position: sticky; top: 0; z-index: 1; background: var(--primary); color: #fff; font-weight: 600;
    text-align: left; padding: 12px 10px; white-space: nowrap; width: auto !important; border: 0;
}
#tbdata td { padding: 9px 10px; border: 0; border-bottom: 1px solid #eef1f6; text-align: left; width: auto !important; }
#tbdata tr:nth-child(even) td { background: #f8fafc; }
#tbdata tr:hover td { background: var(--primary-soft); }
.tbl, .tbl td, .tbl th { text-align: center; }

.filter-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 14px 18px; margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.filter-bar .filter-label { font-weight: 600; color: var(--primary-dark); }
.filter-bar label { margin-right: 6px; }
.filter-bar span { display: inline-flex; align-items: center; }

.report-form { max-width: 760px; margin: 0 auto; }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.report-grid .field { margin-bottom: 0; }
.radio-list { border: 1px solid var(--border); border-radius: 10px; padding: 8px 14px; margin: 16px 0; background: #fafbfd; }
.radio-list > table { width: 100%; }
.radio-list td { padding: 5px 0; }
.report-actions { text-align: right; margin-top: 14px; }

/* Calendar extender (AjaxControlToolkit) stays above content */
.ajax__calendar_container { z-index: 5000 !important; }

/* ---------- Selection / result messages ---------- */
.message-card { max-width: 860px; margin: 0 auto; text-align: left; }
.message-card .congrats { text-align: center; margin-bottom: 14px; }
.message-card .congrats img { width: 56px; height: 56px; }
.message-card .congrats div { border-bottom: 1px solid var(--border); padding-bottom: 10px; margin: 8px auto 0; }
.fee-table, .tblfee { width: 100% !important; max-width: 640px; margin: 14px auto 0 !important; border-collapse: collapse !important; background: #fff; border: 1px solid var(--border) !important; border-radius: 8px; overflow: hidden; }
.fee-table td, .tblfee td { padding: 10px 16px !important; border: 0 !important; border-bottom: 1px solid var(--border) !important; text-align: left !important; }
.fee-table tr:first-child td, .tblfee tr:first-child td { background: var(--primary); color: #fff; }
.fee-table td:last-child, .tblfee td:last-child { text-align: right !important; }
.fee-words { max-width: 640px; margin: 0 auto 24px; padding: 12px 16px; background: var(--primary-soft); border-radius: 8px; font-weight: 600; font-size: .92rem; }
.doc-list { font-size: .95rem; line-height: 1.6; }
.doc-list li { margin-bottom: 8px; }

/* ---------- Transaction / receipt cards ---------- */
.pay-card { max-width: 640px; margin: 24px auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.pay-card-head { background: var(--primary); color: #fff; padding: 14px 18px; font-weight: 600; text-align: center; }
.pay-card-body { padding: 8px 18px 18px; }
.pay-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #eef1f6; font-size: .95rem; }
.pay-row b { color: #344054; font-weight: 600; }
.pay-row span { text-align: right; font-weight: 600; }
.pay-total { font-size: 1.15rem; }
.pay-total span { color: var(--accent-dark); }
.pay-card-body { padding: 8px 18px 18px; }
.pay-table { width: 100%; border-collapse: collapse; }
.pay-table th { text-align: left; font-weight: 600; color: #344054; padding: 12px 0; border-bottom: 1px solid #eef1f6; font-size: .95rem; }
.pay-table td { text-align: right; font-weight: 600; padding: 12px 0; border-bottom: 1px solid #eef1f6; color: var(--text); font-size: .95rem; }
.pay-table td.pay-name { text-align: center; font-size: 1.2rem; color: var(--primary-dark); }
.pay-table tr.pay-total th, .pay-table tr.pay-total td { border-bottom: 0; font-size: 1.15rem; }
.pay-table tr.pay-total td { color: var(--accent-dark); }
.pay-actions { text-align: center; padding: 6px 18px 22px; }
.pay-actions .btn, .pay-actions input[type=button], .pay-actions input[type=submit] { margin: 4px 6px; }

/* ---------- Registration popups (.hider overlay) ---------- */
.hider {
    position: fixed; inset: 0; z-index: 9999; background: rgba(226, 234, 245, .82);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    overflow-y: auto; padding: 0;
}
.popupRegister {
    display: block; position: absolute !important; z-index: 11;
    top: 50% !important; left: 50% !important; transform: translate(-50%, -50%);
    width: min(94vw, 780px) !important; max-height: 92vh; overflow: auto; height: auto !important;
    background: #fff; border: 0; border-top: 6px solid var(--accent); border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35); padding: 22px; margin: 0 !important;
}
#popupMsgAlert { width: min(92vw, 440px) !important; }
#PopupRegister { font-family: var(--font) !important; }
#PopupRegister td, #PopupRegister td.grid, #PopupRegister ul, #PopupRegister li {
    background: transparent !important; color: var(--text) !important; border: 0 !important;
}
#PopupRegister td.grid { background: var(--accent-soft) !important; border-radius: 8px; padding: 10px 14px !important; font-weight: 400 !important; }
#PopupRegister strong { font-size: .92rem; font-weight: 600; }
#PopupRegister > table,#PopupRegister > table > tbody > tr > td { display: block; width: 100% !important; }
#boxshadow16 h2 { font-size: 1.15rem !important; color: var(--primary) !important; font-family: var(--font) !important; margin-bottom: 12px; }
#popInstruct { height: auto !important; max-height: 52vh; overflow-y: auto; padding-right: 4px; }
.forms-sign-up2 { background: #f6f8fb; border-radius: 8px; margin-top: 10px; padding: 6px; }
.forms-sign-up2 td { font-size: .92rem; text-align: left; }
#instruct li, #popInstruct ul li { min-height: 0; color: var(--text); font-family: var(--font); font-size: .92rem; margin-bottom: 8px; }
#popInstruct ul { padding-left: 1.3em; margin: 6px 0; text-align: justify; }
#popInstruct td.grid { width: 100% !important; }

/* ---------- Printable pages shown on screen ---------- */
.print-page { max-width: 900px; margin: 0 auto; padding: 16px; }
.print-toolbar { text-align: right; margin-bottom: 10px; }
.print-sheet { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px; overflow-x: auto; }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
    body { font-size: 15px; }
    .brand { padding: 12px 14px; gap: 12px; }
    .brand-logo { width: 56px; height: 56px; }
    .brand-name { font-size: 1.1rem; }
    .brand-sub { font-size: .75rem; }
    .session-bar { font-size: .8rem; padding: 7px 12px; }
    .page-main { padding: 16px 12px 24px; }
    .card { padding: 18px 14px; }
    .card-head { margin: -18px -14px 14px; padding: 11px 14px; }
    .page-title { font-size: 1.3rem; }

    .toggleMenu { display: block; }
    .site-nav .nav-inner { padding: 0; }
    .nav > li { display: block; border-top: 1px solid rgba(255, 255, 255, .08); }
    .nav > li > a { padding: 13px 16px; border-bottom: 0; border-left: 3px solid transparent; }
    .nav > li > a:hover { border-left-color: var(--accent); }
    .nav > li > a.parent::after { content: " \25BE"; }
    .nav li ul, .nav > li.hover > ul { position: static; }

    /* Forms: stack label above input */
    .myform { max-width: 100%; border-radius: 10px; }
    .myform > tbody > tr > th { padding: 11px 14px; }
    .myform > tbody > tr:not([style*="display:none"]):not([style*="display: none"]) > td,
    .myform > tbody > tr > td { display: block; width: 100% !important; padding: 8px 14px; border-bottom: 0; }
    .myform > tbody > tr > td:first-child:not([colspan]) { padding-bottom: 2px; font-size: .88rem; color: #344054; }
    .myform > tbody > tr > td:last-child:not([colspan]) { padding-bottom: 14px; border-bottom: 1px solid #eef1f6; }
    .myform > tbody > tr[style*="display:none"], .myform > tbody > tr[style*="display: none"] { display: none; }
    .myform td > input[type=text], .myform td > select, .myform td > input[id^="vAadhar"], .myform td > input[id^="vSSSM"] { width: 100% !important; max-width: 100%; margin: 0 0 8px; }
    /* Date of birth selects sit side by side */
    .myform td > select#vDay, .myform td > select#vMonth, .myform td > select#vYear,
    .myform td > select#vCertificateDay, .myform td > select#vCertificateMonth, .myform td > select#vCertificateYear {
        width: calc(33.33% - 6px) !important; min-width: 0; display: inline-block; margin-right: 2px;
    }
    #vReason, #vReason > tbody, #vReason > tbody > tr, #vReason td { display: block; width: 100% !important; }
    #vReason td { padding: 6px 4px; }
    #SiblingDetails table { display: block; }
    #SiblingDetails tbody, #SiblingDetails tr { display: block; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--border); }
    #SiblingDetails td { display: block; padding: 3px 0; }

    .box { padding: 4px; border-radius: 10px; }
    .box td { display: block; width: 100% !important; padding: 5px 10px; }
    .box td[rowspan] img { float: none; display: block; margin: 8px auto; }

    .report-grid { grid-template-columns: 1fr; }
    .report-actions { text-align: center; }
    .report-actions .btn, .report-actions input[type=button] { width: 100%; }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .filter-bar .btn, .filter-bar input[type=submit] { width: 100%; }

    #tbdata th, #tbdata td { padding: 8px 8px; font-size: .85rem; }

    .fee-table td, .tblfee td { padding: 9px 10px !important; }
    .pay-row { flex-direction: column; gap: 2px; }
    .pay-row span { text-align: left; }

    .popupRegister { padding: 16px 14px; }
    .btn-group .btn, .btn-group input[type=button], .btn-group input[type=submit] { flex: 1 1 100%; }
}

@media (max-width: 400px) {
    .brand-name { font-size: 1rem; }
    .myform td > select#vDay, .myform td > select#vMonth, .myform td > select#vYear,
    .myform td > select#vCertificateDay, .myform td > select#vCertificateMonth, .myform td > select#vCertificateYear { font-size: .85rem; padding-left: 6px; padding-right: 18px; }
}

/* Desktop only: two-up cards on the home page when a second card is present */
@media (min-width: 768px) {
    .home-grid { max-width: 560px; }
}

/* ---------- Print (screen chrome hidden, content kept) ---------- */
@media print {
    body { background: #fff; }
    .site-header, .site-nav, .site-footer, .session-bar, .print-toolbar, .btn-group, .no-print { display: none !important; }
    .page-main { padding: 0; }
    .card, .box, .print-sheet { box-shadow: none; border: 0; }
    .myform, .box { max-width: 100%; }
}
