/* =============================================================================
   INTrainingA (SAOP App A) - self-hosted theme.
   No CDN, no external fonts/icons - required by SecurityHeadersFilter's CSP
   (default-src 'self'; style-src 'self'; script-src 'self') and by the
   project's confirmed no-CDN policy. Everything in this file is the only
   stylesheet the app loads.
   ============================================================================= */

:root{
  /* UPDATED 2026-09-01, UI refresh round: mild sky blue + dark blue palette,
     confirmed with the user (exact hex values agreed before applying) -
     replaces the previous indigo/royal-blue (#2e4fc9) accent. Every color
     in the app is driven off this one block (verified no JSP hardcodes a
     hex color of its own), so this is the single place that needs to
     change for the whole app's re-theme. */
  --ink:#1b2733;
  --muted:#5c7286;
  --line:#cfe0ec;
  --line-soft:#e4eef6;
  --bg:#f3f8fc;
  --card:#ffffff;
  --accent:#2e9bd6;        /* mild sky blue - links, secondary accents, hover highlights */
  --accent-dark:#0b3d74;   /* dark blue - header/nav, primary buttons, focus/active states */
  --accent-soft:#e6f4fc;   /* soft sky-blue tint - selected rows, info banners */
  --field:#ffffff;
  --field-border:#bcd6e8;
  --focus:#2e9bd6;
  --ok:#0b6b2c; --ok-bg:#e2f6e8; --ok-line:#3a9c58;
  --warn:#8a6100; --warn-bg:#fff3d6; --warn-line:#c99a2e;
  --err:#a11212; --err-bg:#fde3e3; --err-line:#cc3333;
  --wait:#4a4f59; --wait-bg:#eceff3; --wait-line:#9aa1ad;
  --radius:6px;
  --shadow:0 1px 2px rgba(20,25,40,.06), 0 1px 1px rgba(20,25,40,.04);
}

*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  font-family:"Segoe UI", Arial, Helvetica, sans-serif;
  color:var(--ink);
  background:var(--bg);
  font-size:14px;
  line-height:1.5;
}
a{color:var(--accent); text-decoration:none;}
a:hover{text-decoration:underline;}
img{max-width:100%;}

/* ---- Header (all authenticated pages) --------------------------------------
   CHANGED 2026-09-09 (user-reported: the previous single navy header.topbar
   looked flat, and the IPRC/ISRO marks floated loosely on it with nothing
   grouping them into an identity). Replaced with a two-tier header, chosen
   from three mocked-up options the user reviewed and picked ("Option 2 —
   Masthead above a nav strip"):
     .masthead  - white, full-size logos side by side with a divider, and the
                  portal's full name set as real brand copy (same
                  kicker/heading/subtitle hierarchy already used on the
                  login page's own auth-card, so the authenticated header and
                  the login screen now read as one consistent identity
                  instead of two different text treatments of the same brand).
     .navstrip  - a slim navy strip carrying just the navigation links, user
                  name, and logout - unchanged behavior/markup from the old
                  nav.topnav, just no longer sharing its bar with the branding.
   Both still sit inside one <header> landmark (see navbar.jsp) - .navstrip
   is a real <nav> inside it, exactly as before. -------------------------- */
.masthead{
  background:#fff;
  border-bottom:3px solid var(--accent-dark);
  padding:14px 20px;
  display:flex;
  align-items:center;
  gap:18px;
}
.masthead .brand{
  display:flex;
  align-items:center;
  gap:18px;
}
.masthead .brand-logos{display:flex; align-items:center; gap:14px; flex:0 0 auto;}
.masthead .brand-logos img{height:42px; width:auto; display:block; border-radius:3px;}
.masthead .brand-logo-div{width:1px; height:36px; background:var(--line);}
.masthead .brand-copy{display:flex; flex-direction:column; line-height:1.25;}
.masthead .brand-copy .kicker{
  font-size:10.5px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--accent);
  margin-bottom:2px;
}
.masthead .brand-copy .brand-heading{font-size:19px; font-weight:700; color:var(--accent-dark);}
.masthead .brand-copy .sub2{font-size:11.5px; color:var(--muted); margin-top:2px;}

nav.navstrip{
  background:var(--accent-dark);
  height:42px;
  padding:0 20px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:4px;
  flex-wrap:wrap;
}
nav.navstrip a{
  color:#d7dbf0;
  padding:6px 11px;
  border-radius:var(--radius);
  font-size:12.5px;
  font-weight:600;
}
nav.navstrip a:hover{background:rgba(255,255,255,.08); text-decoration:none;}
nav.navstrip a.active{background:var(--accent); color:#fff;}
nav.navstrip .user{
  margin-left:6px;
  padding-left:12px;
  border-left:1px solid rgba(255,255,255,.18);
  font-size:11.5px;
  color:#aab1c6;
}
nav.navstrip .user strong{color:#fff; font-weight:600;}

/* ---- Page shell ----------------------------------------------------------- */
main.shell{
  max-width:1080px;
  margin:0 auto;
  padding:24px 20px 60px;
}
main.shell.narrow{max-width:640px;}
h1.page-title{font-size:19px; margin:0 0 4px;}
p.page-sub{font-size:12px; color:var(--muted); margin:0 0 20px;}

/* ---- Card / frame ---------------------------------------------------------- */
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:22px;
  margin-bottom:18px;
}
.card h2{font-size:15px; margin:0 0 4px; padding-bottom:10px; border-bottom:1px solid var(--line-soft);}
/* ADDED 2026-09-24 (VAPT delta re-audit) - a real external rule, not an inline
   style="..." attribute. App A's CSP (style-src 'self', no unsafe-inline/nonce)
   silently drops inline style attributes at render time - see
   SAOP-Checkpoint-2026-09-23-PhotoDisplaySize-RootCauseFound-CSP.md for the
   full root-cause writeup and its note that 17 pre-existing inline
   style="border:none;..." overrides elsewhere in AppA are already no-ops for
   the same reason (that sweep was explicitly deferred as cosmetic/out of
   scope). This class only covers the two NEW occurrences this audit found
   introduced by the 2026-09-24 Strengthened Consent & Declaration feature
   (application-wizard.jsp's "Applicant Declaration" and "Consent &
   Declaration" sub-headings) - a genuinely new instance of the same defect
   class, not a stylistic preference. */
.card h2.no-rule{border:none;}
.card p.sub{font-size:12px; color:var(--muted); margin:0 0 16px;}
/* ADDED 2026-09-24 (17-inline-style sweep, on user request) - the remaining
   inline style="..." attributes flagged as a cosmetic follow-up in
   SAOP-Checkpoint-2026-09-23-PhotoDisplaySize-RootCauseFound-CSP.md, plus one
   found during this sweep that is NOT purely cosmetic (see appa-common.js's
   initCurrentSemesterCascade + application-wizard.jsp's
   degreeSemesterUnconfiguredHint/currentSemesterEligibilityHint - that one's
   inline style="display:none;" being CSP-dropped meant the "not configured"
   hint text could show by default on a brand-new application form, before
   any Degree was even selected). All of these move to real external classes
   for the same reason as .no-rule above - AppA's CSP (style-src 'self', no
   unsafe-inline/nonce) silently drops inline style attributes at render.
   Note: the "margin-top:0" some of these h2 overrides also carried was
   already redundant even before CSP - .card h2's own base rule above already
   sets margin-top:0 via its "margin:0 0 4px" shorthand - so .no-rule alone
   (border:none) reproduces the exact same visual result; nothing lost by not
   creating a separate margin-top class for it. */
.card h2.tight-heading{margin-bottom:2px;}
.row.spread{align-items:flex-start; justify-content:space-between;}
p.page-sub.no-margin{margin:0;}
.text-center{text-align:center;}
/* Class-based show/hide, toggled via classList (never via inline style) so
   it can never be silently dropped by the CSP rule above - see
   SAOP.initCurrentSemesterCascade in appa-common.js, the one caller of this. */
.is-hidden{display:none;}

/* ---- Centered public-page card (login/register/otp/password-reset/error) - */
.center-wrap{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.auth-card{
  width:100%;
  max-width:480px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:8px;
  box-shadow:0 2px 10px rgba(20,25,40,.08);
  padding:32px;
}
.auth-card.wide{max-width:640px;}
.auth-logo{text-align:center; margin-bottom:20px;}
/* ADDED 2026-09-01, UI refresh round: IPRC + ISRO logo marks above the
   login/register/etc. card heading. */
.auth-logo .brand-logos{display:flex; align-items:center; justify-content:center; gap:16px; margin-bottom:12px;}
.auth-logo .brand-logos img{height:56px; width:auto; display:block;}
.auth-logo .org{font-size:11px; letter-spacing:.06em; color:var(--muted); text-transform:uppercase;}
.auth-logo h2{margin:4px 0 2px; font-size:18px; color:var(--accent-dark);}
.auth-logo p{margin:0; font-size:12px; color:var(--muted);}
.auth-foot{text-align:center; margin-top:18px; font-size:12px; color:var(--muted);}

/* ---- Forms ------------------------------------------------------------------ */
form{margin:0;}
.row{display:flex; gap:16px; flex-wrap:wrap; margin-bottom:14px;}
.field{flex:1 1 220px; display:flex; flex-direction:column;}
.field.full{flex-basis:100%;}
/* UPDATED 2026-09-01, UI refresh round: reviewers found field captions
   ("Institution", "Category", etc.) too visually weak against the form
   fields themselves - bumped size/weight and switched to the theme's dark
   blue for stronger contrast/prominence, applies to every label on every
   form across the app (one shared rule). */
.field label{font-size:13.5px; font-weight:700; color:var(--accent-dark); letter-spacing:.01em; margin-bottom:6px;}
.field label .req{color:var(--err);}
.field .hint{font-size:11px; color:var(--muted); margin-top:4px;}
/* ADDED 2026-09-24 (My Profile — Email ID / Mobile Number show/hide eye-icon
   toggle). A real external rule, not an inline style="..." attribute — see
   the CSP note on .applicant-photo just below for why that matters in this
   app (style-src 'self', no 'unsafe-inline', silently drops inline styles). */
.mask-field{display:flex; align-items:center; gap:8px;}
.mask-toggle-btn{background:none; border:none; padding:2px 4px; cursor:pointer; font-size:15px; line-height:1; border-radius:4px;}
.mask-toggle-btn:hover{background:var(--accent-soft);}
.mask-toggle-btn:focus-visible{outline:2px solid var(--accent); outline-offset:1px;}
/* ADDED 2026-09-23 (root cause of the Applicant Photo display saga — see
   SAOP-Checkpoint-2026-09-23-PhotoDisplaySize-RootCauseFound-CSP.md).
   SecurityHeadersFilter sends "style-src 'self'" with no 'unsafe-inline'
   and no nonce/hash, so EVERY inline style="..." attribute anywhere in
   AppA is silently dropped by the browser at render time - the attribute
   string still shows up in view-source/DOM (it was never stripped, just
   never applied), which is exactly why both the original <img>
   width/height/object-fit attempt and the later background-image <div>
   attempt looked correct in markup yet rendered as if the CSS didn't
   exist. This class replaces both: a real external stylesheet rule is
   completely unaffected by style-src, same 35mm x 45mm-ratio passport
   box (140x180px) used throughout this saga. */
.applicant-photo{width:140px; height:180px; object-fit:cover; border-radius:4px; border:1px solid var(--field-border); display:block;}
input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=number], input[type=date], input[type=file], select, textarea{
  width:100%;
  font-family:inherit;
  font-size:13px;
  color:var(--ink);
  background:var(--field);
  border:1px solid var(--field-border);
  border-radius:var(--radius);
  padding:9px 10px;
}
textarea{resize:vertical; min-height:80px;}
input:focus, select:focus, textarea:focus{
  outline:none;
  border-color:var(--focus);
  box-shadow:0 0 0 3px var(--accent-soft);
}
input:disabled, select:disabled{background:#f4f5f8; color:var(--muted);}
input[type=checkbox]{width:auto; margin-right:6px; vertical-align:-2px;}
/* FIXED 2026-09-04: .field (this element's other class) sets
   flex-direction:column for its normal label-above-input layout - .check-line
   never overrode that direction, so the checkbox stacked above its label
   instead of sitting beside it. flex-direction:row (plus margin/padding
   resets so .field's column-layout spacing doesn't leak in here) fixes it. */
.check-line{font-size:12px; color:var(--ink); display:flex; flex-direction:row; align-items:flex-start; gap:6px; margin:0;}
.check-line label{font-weight:400; font-size:12px; margin-bottom:0;}

/* ---- Buttons ------------------------------------------------------------------ */
.btn{
  display:inline-block;
  padding:9px 18px;
  font-size:13px;
  font-weight:700;
  border:1px solid var(--accent);
  border-radius:var(--radius);
  background:var(--accent);
  color:#fff;
  cursor:pointer;
}
.btn:hover{background:var(--accent-dark); border-color:var(--accent-dark); text-decoration:none;}
.btn.block{display:block; width:100%; text-align:center;}
.btn.secondary{background:#fff; color:var(--accent);}
.btn.secondary:hover{background:var(--accent-soft);}
.btn.ghost{background:#fff; color:var(--muted); border-color:var(--line);}
.btn.ghost:hover{background:#f4f5f8;}
.btn.danger{background:#fff; color:var(--err); border-color:var(--err-line);}
.btn.danger:hover{background:var(--err-bg);}
.btn:disabled{opacity:.55; cursor:not-allowed;}
.btn-row{display:flex; gap:10px; align-items:center;}
.foot-actions{display:flex; justify-content:space-between; align-items:center; margin-top:18px; gap:12px; flex-wrap:wrap;}
/* OTP screen (2026-10-28): source order is Verify, Resend, Cancel so Enter submits Verify; on screen it stays Cancel | Resend | Verify */
.foot-actions-otp .otp-cancel-btn{order:1;}
.foot-actions-otp .otp-resend-btn{order:2;}
.foot-actions-otp .otp-verify-btn{order:3;}

/* ---- Alerts ------------------------------------------------------------------- */
.alert{
  border-radius:var(--radius);
  padding:10px 14px;
  font-size:12.5px;
  margin-bottom:16px;
  border:1px solid;
}
.alert.error{color:var(--err); background:var(--err-bg); border-color:var(--err-line);}
.alert.info{color:var(--accent-dark); background:var(--accent-soft); border-color:var(--accent);}
.alert.success{color:var(--ok); background:var(--ok-bg); border-color:var(--ok-line);}
/* ADDED 2026-09-09: dashboard's "pending clarification" indicator - reuses the same
   --warn tokens already used by .badge.pending/.wait, so it reads as the same level
   of urgency as a "PENDING" badge rather than introducing a new color meaning. */
.alert.warning{color:var(--warn); background:var(--warn-bg); border-color:var(--warn-line);}
.alert.warning a{color:inherit; font-weight:700; text-decoration:underline;}

/* ---- Badges -------------------------------------------------------------------- */
/* FIXED 2026-09-09 (user-reported, Clarifications page screenshot: REPLIED/EXPIRED
   rendered as a large near-circular blob rather than a readable label). The old rule
   used border-radius:999px (a full pill/stadium shape) with only 3px/9px padding and
   no white-space/line-height control - fine for a wide multi-word label like the
   dashboard's status text, but a short single all-caps word like "REPLIED" or
   "EXPIRED" sitting in a flex row (clarifications.jsp's title/badge row) could end up
   in a box close enough to square that a 999px radius rounds it into a near-circle,
   swallowing the text into a shape that doesn't read as a label at all. Fixed by
   switching to a fixed, moderate radius (6px - matches the app's own --radius token
   used everywhere else) that can never turn a box into a circle regardless of its
   width/height ratio, forcing a single-line/no-wrap layout so the box always sizes to
   its text, and switching from a soft-tint-plus-border look to a solid, saturated
   background with white text - "good visible & prompting" per the request, and a
   clearer visual match for a status chip than the previous subtle tint. */
.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
  padding:4px 12px;
  font-size:11px;
  font-weight:700;
  line-height:1.3;
  border-radius:6px;
  border:1px solid;
  letter-spacing:.03em;
  text-transform:uppercase;
  color:#fff;
}
.badge.pending, .badge.wait{background:var(--warn); border-color:var(--warn-line);}
.badge.approved{background:var(--ok); border-color:var(--ok-line);}
.badge.rejected{background:var(--err); border-color:var(--err-line);}
.badge.neutral{background:var(--wait); border-color:var(--wait-line);}

/* ---- Tables ---------------------------------------------------------------------- */
table{width:100%; border-collapse:collapse; font-size:12.5px;}
th, td{border-bottom:1px solid var(--line-soft); padding:9px 10px; text-align:left; vertical-align:middle;}
th{background:#f7f8fb; font-size:11px; text-transform:uppercase; letter-spacing:.03em; color:var(--muted); font-weight:700;}
tr:last-child td{border-bottom:none;}
td.actions{white-space:nowrap;}
.table-wrap{overflow-x:auto;}
.empty-row{color:var(--muted); font-style:italic; text-align:center; padding:20px 0;}

/* ---- CAPTCHA ------------------------------------------------------------------------ */
.captcha-row{display:flex; align-items:center; gap:10px;}
.captcha-img{border:1px solid var(--field-border); border-radius:var(--radius); display:block;}
.captcha-refresh-btn{
  border:1px solid var(--field-border);
  background:#fff;
  border-radius:var(--radius);
  width:38px; height:38px;
  font-size:16px;
  cursor:pointer;
  color:var(--muted);
}
.captcha-refresh-btn:hover{background:#f4f5f8; color:var(--accent);}

/* ---- OTP boxes ------------------------------------------------------------------------- */
.otp-boxes{display:flex; gap:8px;}
.otp-boxes input{
  width:42px; height:48px;
  text-align:center;
  font-size:18px;
  font-weight:700;
}
.otp-meta{font-size:11.5px; color:var(--muted); display:flex; align-items:center; gap:10px; margin-top:8px;}
.otp-meta .resend-btn{background:none; border:none; color:var(--accent); font-size:11.5px; font-weight:700; cursor:pointer; padding:0;}
.otp-meta .resend-btn:disabled{color:var(--muted); cursor:not-allowed; text-decoration:none;}

/* ---- Wizard steps ----------------------------------------------------------------------- */
.steps{display:flex; gap:4px; margin-bottom:20px; font-size:11px;}
.step{flex:1; text-align:center; padding:9px 4px; background:#e7e9ef; border-radius:var(--radius); color:var(--muted); font-weight:600;}
.step.done{background:var(--accent-soft); color:var(--accent-dark);}
.step.current{background:var(--accent); color:#fff;}
/* ADDED (2026-08-24): completed steps became clickable <a> links back to
   ?edit=N (application-wizard.jsp) - a{} already resets underline/color
   globally and .step.done already sets its own color, this just adds a
   hover affordance so the click target reads as interactive. */
a.step.done:hover{opacity:.82; cursor:pointer;}

/* ---- Cycle window banner ------------------------------------------------------------------ */
.banner{
  border-radius:var(--radius);
  border:1px solid var(--accent);
  background:var(--accent-soft);
  color:var(--accent-dark);
  padding:10px 14px;
  font-size:12.5px;
  margin-bottom:18px;
}
.banner .extended{margin-left:8px;}

/* ---- Document upload rows ------------------------------------------------------------------- */
.doc-row{display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--line-soft);}
.doc-row:last-child{border-bottom:none;}
.doc-row .doc-name{flex:1 1 220px; font-weight:600; font-size:13px;}
.doc-row .doc-meta{flex:0 0 auto; font-size:11px; color:var(--muted); width:150px;}
.doc-row form{display:flex; align-items:center; gap:8px; flex:1 1 260px;}
.doc-row input[type=file]{flex:1;}
.doc-status{font-size:11px;}
.doc-status.up{color:var(--ok); font-weight:700;}
.doc-status.missing{color:var(--muted);}

/* ---- Misc ----------------------------------------------------------------------------------- */
.is-hidden{display:none !important;}
.hint.match-ok{color:var(--ok);}
.hint.match-bad{color:var(--err);}

.note{font-size:11.5px; color:var(--muted); font-style:italic; margin-top:6px;}
.section-gap{margin-top:28px;}
.small{font-size:11.5px;}
.mono{font-family:"Courier New", monospace;}
hr.sep{border:none; border-top:1px solid var(--line-soft); margin:20px 0;}

/* ---- Date picker (self-hosted, no external library) ---------------------------------------------
   ADDED 2026-09-01, UI refresh round: dates must always display DD/MM/YYYY
   regardless of the visitor's browser/OS locale, which the native
   <input type="date"> widget can't guarantee (its on-screen format follows
   the browser locale). Used on Date of Birth (register.jsp) and Preferred
   Start/End Date (application-wizard.jsp Step 1) - see js/appa-common.js
   SAOP.initDatePicker. The visible field stays a plain readonly text input
   styled identically to every other text field; only the popup below is
   new chrome. */
.dp-wrap{position:relative;}
.dp-wrap input.dp-input{cursor:pointer; background:var(--field);}
.dp-toggle{
  position:absolute; right:6px; top:50%; transform:translateY(-50%);
  border:none; background:none; padding:4px 6px; cursor:pointer;
  color:var(--muted); font-size:15px; line-height:1;
}
.dp-toggle:hover{color:var(--accent-dark);}
.dp-popup{
  position:absolute; z-index:50; top:calc(100% + 4px); left:0;
  width:260px; background:var(--card); border:1px solid var(--line);
  border-radius:var(--radius); box-shadow:0 4px 16px rgba(20,25,40,.14);
  padding:10px;
}
.dp-popup.is-hidden{display:none;}
.dp-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:8px;}
.dp-head .dp-nav{
  border:none; background:none; cursor:pointer; color:var(--accent-dark);
  font-size:14px; font-weight:700; padding:2px 8px; border-radius:var(--radius);
}
.dp-head .dp-nav:hover{background:var(--accent-soft);}
.dp-head .dp-label{font-size:12.5px; font-weight:700; color:var(--ink);}
.dp-grid{display:grid; grid-template-columns:repeat(7,1fr); gap:2px; text-align:center;}
.dp-dow{font-size:10px; font-weight:700; color:var(--muted); padding:4px 0;}
.dp-day{
  border:none; background:none; cursor:pointer; font-size:12px;
  padding:6px 0; border-radius:var(--radius); color:var(--ink);
}
.dp-day:hover{background:var(--accent-soft);}
.dp-day.is-outside{color:var(--muted); opacity:.5;}
.dp-day.is-today{font-weight:700; color:var(--accent-dark);}
.dp-day.is-selected{background:var(--accent-dark); color:#fff;}
.dp-day.is-selected:hover{background:var(--accent-dark);}
/* ADDED 2026-09-23 (Preferred Start/End Date configurability feature) —
   a day before SAOP.initDatePicker's optional minIso getter is rendered as
   visibly unselectable (not just non-functional), same "make the failure
   mode diagnosable, not just correct" spirit as the rest of this app's
   defensive UI work. */
.dp-day.is-disabled{color:var(--muted); opacity:.35; cursor:not-allowed;}
.dp-day.is-disabled:hover{background:none;}
/* ADDED 2026-09-23 (same-day follow-up: fixed 14-day program) — Preferred
   End Date is now auto-calculated and read-only (no calendar of its own,
   see SAOP.initPreferredEndDateAutoFill), styled like the existing
   input:disabled rule so it visually reads as "not directly editable"
   without actually using `disabled` (which would stop it submitting). */
.field-readonly-computed{background:#f4f5f8; color:var(--muted); cursor:not-allowed;}

/* ADDED 2026-10-12 - Application Instructions gate (application-instructions.jsp) */
.instruction-list{margin:0 0 18px; padding-left:22px;}
.instruction-text{font-size:13px; line-height:1.55; margin-bottom:10px; white-space:pre-line; overflow-wrap:anywhere;}
.instruction-actions{margin-top:16px;}

/* ============================================================================
   ADDED 2026-10-13 - Print / Save as PDF (My Applications + Application Detail)
   ============================================================================
   Screen: .print-only items (letterhead, DRAFT notice) are hidden; .card-head is the
   "title on the left, button on the right" row of the Application Detail card;
   .btn-sm is the compact button used in the list rows.
   Paper (@media print): only the letterhead + the application is printed - the site header and
   menu, the page title, alerts, every button/link column, the "All Applications" list while one
   application is open (.no-print) and the footer are removed. Applies to every page, so the
   locked Preview page in the wizard also prints cleanly. No inline styles anywhere (CSP). */
.print-only{display:none;}
.card-head{display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; border-bottom:1px solid var(--line-soft); padding-bottom:10px; margin-bottom:14px;}
.card .card-head h2{margin:0; padding:0; border:none;}
.btn.btn-sm{padding:4px 10px; font-size:12px;}

@page{
  size:A4; margin:14mm 12mm 16mm;
  @bottom-left{content:"Student & Academic Outreach Portal - IPRC, ISRO"; font-size:8pt; color:#555;}
  @bottom-right{content:"Page " counter(page) " of " counter(pages); font-size:8pt; color:#555;}
}
@media print{
  html, body{height:auto; background:#fff !important; color:#000; font-size:10.5pt; line-height:1.4;}
  header, footer, nav, .alert, .no-print, .btn, button, .btn-row, .foot-actions,
  td.actions, th.actions, h1.page-title, p.page-sub{display:none !important;}
  .print-only{display:block !important;}
  .print-head{display:flex !important;}
  main.shell{max-width:none; margin:0; padding:0;}
  a{color:inherit; text-decoration:none;}

  .print-head{align-items:center; gap:12px; border-bottom:2px solid #0b3d74; padding-bottom:8px; margin-bottom:10px;}
  .print-head-logos{display:flex; align-items:center; gap:8px;}
  .print-head-logos img{height:13mm; width:auto;}
  .print-head-copy{flex:1 1 auto;}
  .print-kicker{font-size:8pt; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#2e5f8a;}
  .print-title{font-size:12.5pt; font-weight:700; color:#0b3d74;}
  .print-doc{font-size:10pt; font-weight:700; margin-top:2px;}
  .print-head-meta{font-size:8.5pt; text-align:right; color:#333; white-space:nowrap;}
  .print-draft{border:1.5px solid #a11212; color:#a11212; font-weight:700; text-align:center; padding:4px; margin-bottom:10px;}

  .card{background:#fff; border:none; box-shadow:none; border-radius:0; padding:0; margin:0 0 8mm;}
  .card-head{border-bottom:1px solid #999;}
  .card h2{font-size:12pt; color:#0b3d74; break-after:avoid;}
  .card h2.no-rule{border:none; margin-top:3mm; margin-bottom:2mm;}
  .row{margin-bottom:2.5mm; gap:10px;}
  .card p.sub, p.note{font-size:9pt; color:#444;}
  hr.sep{border-top:1px solid #bbb; margin:3mm 0;}
  .row, .field, tr, img{break-inside:avoid;}
  .field label{font-size:9.5pt; color:#0b3d74;}
  .applicant-photo{width:28mm; height:35mm; border:1px solid #666;}
  .table-wrap{break-inside:avoid;}
  table{font-size:9.5pt;}
  th{background:#eee !important; color:#000; -webkit-print-color-adjust:exact; print-color-adjust:exact;}
  th, td{border-bottom:1px solid #ccc;}
  .table-wrap{overflow:visible;}
  .badge{border:1px solid #666 !important; background:#fff !important; color:#000 !important; padding:1px 6px;}
}

/* ---- Public "Notifications / Circulars" page (added 2026-11-10) -------------------------------
   Wider variant of the centered auth card (circulars.jsp) + its table. No inline styles in the JSP (CSP). */
.auth-card.xwide{max-width:980px;}
.circulars-table th.col-sno, .circulars-table td.col-sno{width:56px; text-align:center;}
.circulars-table td.col-date{white-space:nowrap;}
.circulars-table td.col-ref{min-width:150px;}
.circulars-table td.col-subject{overflow-wrap:anywhere;}
.circulars-table th.col-dl, .circulars-table td.col-dl{width:120px; text-align:center; white-space:nowrap;}
.circulars-table a.circular-dl{font-weight:700;}
