* { box-sizing: border-box; }
:root {
  --primary: #1d5c96;
  --primary-dark: #14456f;
  --bg: #f2f5f8;
  --card: #ffffff;
  --text: #21313f;
  --muted: #64748b;
  --border: #dde5ec;
  --danger: #c0392b;
  --success: #1e7e46;
}
body { margin: 0; font-family: "Segoe UI", Tahoma, Arial, sans-serif; background: var(--bg); color: var(--text); font-size: 15px; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.5rem; margin: 0 0 14px; }
h2 { font-size: 1.1rem; margin: 0 0 10px; }
h3 { font-size: 1rem; }

/* Layout */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 235px; flex-shrink: 0; background: #17334d; color: #dbe7f1;
  display: flex; flex-direction: column; padding: 18px 0;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand { font-size: 1.2rem; font-weight: 700; padding: 0 18px; color: #fff; }
.brand-sub { font-size: 0.75rem; padding: 0 18px 14px; color: #9db6ca; border-bottom: 1px solid #24476a; }
.sidebar nav { flex: 1; padding: 10px 0; }
.sidebar nav a {
  display: block; padding: 8px 18px; color: #dbe7f1; font-size: 0.92rem;
}
.sidebar nav a:hover { background: #24476a; text-decoration: none; }
.nav-section { padding: 12px 18px 4px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: .08em; color: #7f9cb5; }
.sidebar-footer { padding: 12px 18px; border-top: 1px solid #24476a; font-size: 0.88rem; }
.sidebar-footer a { color: #fff; display: block; margin-bottom: 4px; }
.role-tag { display: inline-block; background: #24476a; color: #b8cfe2; font-size: 0.7rem; padding: 1px 8px; border-radius: 10px; text-transform: uppercase; }
.sidebar-footer .logout { color: #f0a5a5; margin-top: 6px; font-size: 0.82rem; }
.badge { background: #e74c3c; color: #fff; border-radius: 10px; padding: 0 7px; font-size: 0.72rem; }
.content { flex: 1; padding: 26px 32px; max-width: 1200px; }

/* Topbar (mobile only) */
.topbar { display: none; }
.sidebar-overlay { display: none; }

/* Cards & lists */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(20,40,60,.04); overflow-x: auto; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.list-item { padding: 8px 0; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: none; }
.muted { color: var(--muted); }
.small { font-size: 0.82rem; }
.prewrap { white-space: pre-wrap; }
.section-head { margin: 22px 0 10px; }

/* Stats */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 16px; text-align: center; color: var(--text); }
.stat:hover { border-color: var(--primary); text-decoration: none; }
.stat-num { font-size: 1.9rem; font-weight: 700; color: var(--primary); }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.form-grid .span-2 { grid-column: span 2; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: span 1; } }
label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 0.88rem; }
label.checkbox { flex-direction: row; align-items: center; font-weight: normal; }
input, select, textarea {
  font: inherit; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px;
  background: #fff; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid #a8c8e4; border-color: var(--primary); }
input[type="file"] { padding: 5px; }
input[type="radio"], input[type="checkbox"] { width: auto; }
fieldset { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
legend { font-weight: 600; font-size: 0.88rem; padding: 0 6px; }

/* Buttons */
.btn {
  display: inline-block; padding: 8px 14px; border: 1px solid var(--border); border-radius: 6px;
  background: #fff; color: var(--text); font: inherit; font-size: 0.9rem; cursor: pointer; text-decoration: none;
}
.btn:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-danger { color: var(--danger); border-color: #e5b6b0; }
.btn-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-small { padding: 3px 9px; font-size: 0.8rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 8px; margin: 10px 0; align-items: center; }
.btn-row.wrap { flex-wrap: wrap; }
.inline { display: inline; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.page-head h1, .page-head h2 { margin: 0; }

/* Tables */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--border); }
td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: none; }
td.actions { white-space: nowrap; }
td.actions form { margin-left: 4px; }
.total-row td { background: #f6f9fb; }

/* Tags & flash */
.tag { display: inline-block; background: #e6eef5; color: var(--primary-dark); font-size: 0.74rem; padding: 2px 9px; border-radius: 10px; }
.tag-open { background: #fdecea; color: var(--danger); }
.tag-in_progress { background: #fef4e5; color: #ad6800; }
.tag-resolved, .tag-completed { background: #e6f5ec; color: var(--success); }
.tag-active { background: #e6eef5; color: var(--primary-dark); }
.tag-cancelled { background: #eee; color: var(--muted); }

/* Weekly lesson plan statuses */
.tag-draft { background: #eceff2; color: var(--muted); }
.tag-submitted { background: #e3ecff; color: #1d4fa0; }
.tag-approved { background: #e6f5ec; color: var(--success); }
.tag-needs_review { background: #fdecea; color: var(--danger); }

/* Colored dashboard stat boxes */
.stat.s-blue { border-top: 4px solid #2f6fd0; }
.stat.s-blue .stat-num { color: #2f6fd0; }
.stat.s-amber { border-top: 4px solid #e6a817; }
.stat.s-amber .stat-num { color: #b07f08; }
.stat.s-green { border-top: 4px solid var(--success); }
.stat.s-green .stat-num { color: var(--success); }
.stat.s-red { border-top: 4px solid var(--danger); }
.stat.s-red .stat-num { color: var(--danger); }
.stat.s-gray { border-top: 4px solid #9aa7b2; }
.stat.s-gray .stat-num { color: #66727d; }

.btn-approve { color: var(--success); border-color: #bfe3cd; }
.btn-approve:hover { background: var(--success); border-color: var(--success); color: #fff; }
.review-panel { border-left: 4px solid var(--primary); margin-top: 14px; }
.row-missing td { background: #fdf7f6; }
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }
.flash-success { background: #e6f5ec; color: var(--success); border: 1px solid #bfe3cd; }
.flash-error { background: #fdecea; color: var(--danger); border: 1px solid #f0c3bd; }

/* Login */
.layout-plain { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #17334d, #1d5c96); }
.login-wrap { width: 100%; display: flex; justify-content: center; padding: 20px; }
.login-card { background: #fff; border-radius: 12px; padding: 34px 36px; width: 380px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.login-card h1 { text-align: center; }
.login-card .muted { text-align: center; margin-bottom: 18px; font-size: .9rem; }
.login-card label { margin-bottom: 12px; }

/* Misc */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filter-bar input[type="search"] { max-width: 260px; }
.filter-bar select, .filter-bar input { width: auto; }
.resource-card { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.comment { padding: 12px 16px; }
.unread { border-left: 4px solid var(--primary); }
.response-box { background: #f2f8f4; border: 1px solid #cfe6d8; border-radius: 8px; padding: 10px 14px; margin-top: 8px; }
.rating-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border); }
.rating-row:last-child { border-bottom: none; }
.rating-options { display: flex; gap: 12px; }
.rating-opt { flex-direction: row; align-items: center; gap: 4px; font-weight: normal; }
.rating-bar-cell { width: 40%; }
.rating-bar { background: #e9eef3; border-radius: 6px; height: 10px; overflow: hidden; }
.rating-fill { background: var(--primary); height: 100%; }
.ai-result { white-space: pre-wrap; font-family: inherit; background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; padding: 16px; max-height: 640px; overflow-y: auto; }

/* Banners (notification / install prompts) */
.banner {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #fff8e6; border: 1px solid #f0dfae; border-radius: 8px; padding: 10px 14px; margin-bottom: 14px;
}
.banner-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Settings */
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--border); }
.setting-row:last-of-type { border-bottom: none; }

/* Tables on small screens */
.table-scroll { overflow-x: auto; }
.nowrap { white-space: nowrap; }

/* ---------- Mobile layout ---------- */
@media (max-width: 950px) {
  body { font-size: 15px; }
  .two-col { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }

  .topbar {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 40;
    background: #17334d; color: #fff; padding: 10px 14px;
    padding-top: calc(10px + env(safe-area-inset-top));
  }
  .topbar-brand { font-weight: 700; font-size: 1.05rem; }
  .topbar-user { color: #fff; font-size: 1.2rem; text-decoration: none; }
  .menu-btn { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 2px 8px; }

  .layout { display: block; }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 60;
    width: min(280px, 82vw); height: 100dvh;
    transform: translateX(-105%); transition: transform .22s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,.3);
    padding-top: calc(18px + env(safe-area-inset-top));
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar nav a { padding: 12px 18px; font-size: 1rem; }
  .sidebar-overlay {
    position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.45);
  }
  .sidebar-overlay.show { display: block; }

  .content { padding: 14px 12px calc(20px + env(safe-area-inset-bottom)); max-width: none; }
  h1 { font-size: 1.25rem; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat { padding: 12px 8px; }
  .stat-num { font-size: 1.5rem; }
  .btn { padding: 10px 14px; }
  .btn-small { padding: 6px 10px; }
  input, select, textarea { font-size: 16px; } /* prevents iOS zoom on focus */
  .filter-bar input[type="search"] { max-width: none; flex: 1 1 100%; }
  .filter-bar select { flex: 1 1 40%; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .resource-card { flex-direction: column; }
  th, td { padding: 8px 8px; font-size: 0.88rem; }
}

/* ---------- Logo ---------- */
.brand-logo { height: 34px; width: 34px; object-fit: contain; background: #fff; border-radius: 8px; padding: 2px; vertical-align: middle; }
.brand { display: flex; align-items: center; gap: 8px; }
.topbar-logo { height: 26px; width: 26px; object-fit: contain; background: #fff; border-radius: 6px; padding: 1px; vertical-align: middle; }
.topbar-brand { display: flex; align-items: center; gap: 8px; }
.login-logo { display: block; margin: 0 auto 10px; height: 110px; object-fit: contain; }

/* ---------- Student evaluation ---------- */
.inline-label { flex-direction: row; align-items: center; gap: 8px; }
.inline-label select { width: auto; }
.grade-chip {
  display: inline-block; min-width: 26px; text-align: center; padding: 2px 8px;
  border-radius: 8px; color: #fff; font-weight: 700; font-size: 0.85rem;
}
.grade-chip.big { font-size: 1.05rem; padding: 6px 14px; }
.grade-picker { margin: 14px 0; }
.grade-options { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.grade-option {
  display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer;
  border: 2px solid transparent; border-radius: 10px; padding: 6px 8px; font-weight: normal;
}
.grade-option .grade-chip { background: var(--gc); opacity: .35; }
.grade-option:has(input:checked) { border-color: var(--gc); background: #f8fafc; }
.grade-option:has(input:checked) .grade-chip { opacity: 1; }
.grade-option input { position: absolute; opacity: 0; pointer-events: none; }
.grade-ku { font-size: 0.75rem; color: var(--muted); }
.eval-assignment.complete { border-left: 4px solid var(--success); }
.eval-assignment-main { display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; }
.eval-assignment-main > div:first-child { flex: 1; min-width: 220px; }
.rating-bar.progress { margin-top: 8px; max-width: 340px; }
.inline-edit { display: flex; gap: 6px; align-items: center; }
.inline-edit input, .inline-edit select { width: auto; min-width: 120px; }

/* ---------- Report cards ---------- */
.report-card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 22px 26px; margin-bottom: 18px;
}
.report-head { display: flex; align-items: center; gap: 16px; border-bottom: 2px solid var(--primary); padding-bottom: 12px; margin-bottom: 14px; }
.report-logo { height: 70px; width: 70px; object-fit: contain; }
.report-head h2 { margin: 0 0 4px; color: var(--primary-dark); }
.report-subject { margin: 16px 0 6px; color: var(--primary-dark); border-left: 4px solid var(--primary); padding-left: 8px; }
.report-table { margin-bottom: 8px; }
.report-legend { border-top: 1px dashed var(--border); margin-top: 16px; padding-top: 10px; }
.legend-row { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 6px; }
.page-break { break-after: page; }

/* Attendance */
.lesson-strip { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.lesson-pill {
  display: inline-block; padding: 6px 13px; border-radius: 16px;
  border: 1.5px solid var(--border); background: #fff; color: var(--text);
  font-size: 0.88rem; font-weight: 600; text-decoration: none;
}
.lesson-pill:hover { border-color: var(--primary); text-decoration: none; }
.lesson-pill.recorded { background: #e6f5ec; border-color: #bfe3cd; color: var(--success); }
.lesson-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.att-options { display: flex; gap: 6px; flex-wrap: wrap; }
.att-opt {
  flex-direction: row; align-items: center; gap: 4px; font-weight: normal;
  border: 1.5px solid var(--border); border-radius: 16px; padding: 3px 10px;
  cursor: pointer; font-size: 0.85rem; text-transform: capitalize;
}
.att-opt input { width: auto; accent-color: currentColor; }
.att-present { color: var(--success); }
.att-absent { color: var(--danger); }
.att-late { color: #b07f08; }
.att-excused { color: #1d4fa0; }
.att-opt:has(input:checked) { border-color: currentColor; background: #f8fafc; font-weight: 700; }
.tag-att-present { background: #e6f5ec; color: var(--success); }
.tag-att-absent { background: #fdecea; color: var(--danger); }
.tag-att-late { background: #fef4e5; color: #b07f08; }
.tag-att-excused { background: #e3ecff; color: #1d4fa0; }
.att-th-present { color: var(--success); }
.att-th-absent { color: var(--danger); }
.att-th-late { color: #b07f08; }
.att-th-excused { color: #1d4fa0; }

/* Printable class student list */
.list-table td, .list-table th { border: 1px solid #b9c4ce; }
.list-table { border-collapse: collapse; }
.list-table .col-num { width: 40px; text-align: center; }
.list-table .col-cell { width: 9%; }
.list-table .col-note { width: 26%; }
.list-table td { height: 38px; }
.check-box {
  display: inline-block; width: 22px; height: 22px;
  border: 2px solid #55636f; border-radius: 4px; vertical-align: middle;
}

/* ---------- Language switcher ---------- */
.lang-btn { color: #fff; font-size: 0.82rem; border: 1px solid #4a6a8a; border-radius: 12px; padding: 2px 10px; text-decoration: none; margin-inline-end: 10px; }
.lang-btn:hover { background: #24476a; text-decoration: none; color: #fff; }
.lang-switch { text-align: center; margin-top: 14px; font-size: 0.9rem; }
.lang-switch a.active { font-weight: 700; text-decoration: underline; }

/* ---------- RTL (Kurdish Sorani) ---------- */
[dir="rtl"] body, [dir="rtl"] { font-family: Tahoma, "Segoe UI", Arial, sans-serif; }
[dir="rtl"] th { text-align: right; }
[dir="rtl"] .report-subject { border-left: none; border-right: 4px solid var(--primary); padding-left: 0; padding-right: 8px; }
[dir="rtl"] .unread { border-left: none; border-right: 4px solid var(--primary); }
[dir="rtl"] .eval-assignment.complete { border-left: none; border-right: 4px solid var(--success); }
[dir="rtl"] .review-panel { border-left: none; border-right: 4px solid var(--primary); }
[dir="rtl"] td.actions form { margin-left: 0; margin-right: 4px; }
@media (max-width: 950px) {
  [dir="rtl"] .sidebar { left: auto; right: 0; transform: translateX(105%); box-shadow: -4px 0 20px rgba(0,0,0,.3); }
  [dir="rtl"] .sidebar.open { transform: translateX(0); }
}

/* Screen procedure table and form styling */
.procedure-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.procedure-table th { background: #f1f5f9; padding: 10px; border: 1px solid var(--border); font-weight: 600; text-align: left; }
.procedure-table td { padding: 10px; border: 1px solid var(--border); vertical-align: top; }
.section-separator hr { border: none; border-top: 1px solid var(--border); margin: 25px 0 12px; }
.procedure-stage-group { border: 1px solid var(--border); border-radius: 8px; padding: 14px 18px; background: #fafafa; margin-bottom: 16px; box-shadow: inset 0 1px 2px rgba(0,0,0,0.01); }
.procedure-stage-group h4 { margin: 0 0 10px; color: var(--primary); font-size: 0.95rem; border-bottom: 1px dashed var(--border); padding-bottom: 4px; }
.stage-grid { display: grid; grid-template-columns: 120px 1fr; gap: 14px; }
.stage-grid label { font-weight: normal; }
.details-label { display: flex; flex-direction: column; }
.form-actions { margin-top: 20px; }

/* Hide print template in regular screen browser view */
.print-only { display: none; }

@media print {
  @page {
    size: A4 portrait;
    margin: 8mm 12mm;
  }

  /* Hide all screen elements */
  .sidebar, .topbar, .filter-bar, .btn, .btn-row, .banner, .no-print-head, .flash, .screen-only, footer { display: none !important; }
  
  /* Expand content area to full page width */
  .content { padding: 0 !important; margin: 0 !important; max-width: none !important; width: 100% !important; }
  
  /* Show print template */
  .print-only { display: block !important; }
  body { background: #fff !important; color: #000 !important; font-family: Arial, sans-serif !important; margin: 0 !important; padding: 0 !important; }
  
  .pdf-container { width: 100%; font-size: 10.5px; color: #111; line-height: 1.35; }
  
  .pdf-page {
    width: 100%;
    height: 275mm;
    box-sizing: border-box;
    page-break-after: always;
    page-break-inside: avoid;
    position: relative;
    overflow: hidden;
    padding: 0;
  }
  .pdf-page:last-child { page-break-after: avoid; }
  
  /* Header styling matching the PDF */
  .pdf-header { text-align: center; margin-bottom: 10px; border-bottom: 2px solid #124e5a; padding-bottom: 4px; position: relative; }
  .pdf-header h1 { font-size: 18px; font-weight: bold; color: #0f3057; margin: 0 0 2px; letter-spacing: 0.5px; }
  .pdf-sub { font-size: 8px; color: #555; margin: 0; font-style: normal; }
  .pdf-page-num { position: absolute; right: 0; bottom: 4px; font-size: 8.5px; color: #666; }
  
  /* Metadata Grid */
  .pdf-meta-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
  .pdf-meta-table td { border: 1px solid #777; padding: 4px 8px; vertical-align: middle; }
  .pdf-meta-table td.meta-label { background-color: #f1f5f9; font-weight: bold; color: #0f3057; }
  
  /* Section title banner */
  .pdf-section { margin-bottom: 10px; }
  .pdf-section-title { background-color: #124e5a; color: #fff; font-size: 10px; font-weight: bold; padding: 4px 8px; letter-spacing: 0.5px; border-radius: 2px; }
  .pdf-section-title .title-hint { font-size: 8px; font-weight: normal; font-style: italic; color: #e2f0d9; float: right; }
  
  /* Box designs */
  .pdf-box { border: 1px solid #777; border-top: none; padding: 6px 8px; min-height: 20mm; background-color: #fff; white-space: pre-wrap; font-size: 9.5px; }
  .pdf-box.text-box { min-height: 25mm; }
  .pdf-box.feedback-box { min-height: 28mm; }
  
  /* Procedure table styling */
  .pdf-proc-table { width: 100%; border-collapse: collapse; border: 1px solid #777; border-top: none; }
  .pdf-proc-table th { background-color: #0f3057; color: #fff; padding: 4px 8px; font-weight: bold; text-align: left; font-size: 9px; border: 1px solid #777; }
  .pdf-proc-table td { border: 1px solid #777; padding: 5px 8px; vertical-align: top; font-size: 9px; }
  .pdf-proc-table td.stage-name { font-weight: bold; background-color: #f8fafc; color: #333; }
  .pdf-proc-table td.center { text-align: center; font-weight: bold; color: #555; }
  
  /* Differentiation styling */
  .pdf-diff-table { width: 100%; border-collapse: collapse; border: 1px solid #777; border-top: none; }
  .pdf-diff-table th { background-color: #f1f5f9; color: #0f3057; padding: 4px 8px; font-weight: bold; border: 1px solid #777; text-align: left; }
  .pdf-diff-table td { border: 1px solid #777; padding: 6px 8px; min-height: 30mm; height: 30mm; vertical-align: top; white-space: pre-wrap; }
  
  /* Supervisor rating and signatures */
  .pdf-rating-box { border: 1px solid #777; border-top: none; padding: 5px 8px; background-color: #fff; font-size: 9px; }
  .pdf-rating-box strong { color: #0f3057; margin-right: 12px; }
  .checkbox-item { margin-right: 14px; display: inline-flex; align-items: center; }
  .pdf-checkbox { display: inline-block; width: 10px; height: 10px; border: 1px solid #333; margin-right: 4px; position: relative; background: #fff; }
  .pdf-checkbox.checked::after { content: '✓'; position: absolute; top: -5px; left: 0px; font-size: 11px; font-weight: bold; color: #0f3057; }
  
  .pdf-sign-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
  .pdf-sign-table td { border: none !important; padding: 4px 0; font-size: 9px; vertical-align: bottom; }
  .bottom-line { border-bottom: 1px solid #444; display: inline-block; min-width: 140px; padding-bottom: 2px; font-weight: bold; color: #111; margin-left: 4px; margin-right: 4px; }
  
  .page-break { page-break-after: always; height: 0; margin: 0; border: none; }

  /* Admission Form Print Styles */
  .admission-print-form {
    display: block !important;
    width: 100%;
    font-size: 9.5px;
    line-height: 1.3;
    font-family: Arial, sans-serif !important;
    color: #000 !important;
  }
  
  .print-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #000;
    padding-bottom: 6px;
    margin-bottom: 10px;
  }
  
  .header-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20%;
  }
  
  .header-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
  }
  
  .logo-text {
    font-size: 7.5px;
    font-weight: bold;
    margin-top: 2px;
  }
  
  .header-title {
    text-align: center;
    width: 60%;
  }
  
  .header-title h2 {
    font-size: 13px;
    margin: 0 0 2px 0;
    font-weight: bold;
  }
  
  .header-title h3 {
    font-size: 11px;
    margin: 0 0 2px 0;
    font-weight: normal;
  }
  
  .header-title h4 {
    font-size: 10px;
    margin: 0;
    font-weight: normal;
  }
  
  .header-photo-box {
    width: 20%;
    display: flex;
    justify-content: flex-end;
  }
  
  .header-photo-box img {
    width: 55px;
    height: 70px;
    border: 1px solid #000;
    object-fit: cover;
  }
  
  .header-photo-box .photo-placeholder-text {
    width: 55px;
    height: 70px;
    border: 1px dashed #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    text-align: center;
  }
  
  .admission-meta-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
  }
  
  .admission-meta-table td {
    border: 1px solid #000 !important;
    padding: 3px 5px !important;
    font-size: 9.5px !important;
    vertical-align: middle !important;
  }
  
  .admission-meta-table td.lbl {
    font-weight: bold !important;
    background-color: #f2f2f2 !important;
    text-align: right !important;
  }
  
  .admission-meta-table td.val {
    text-align: right !important;
  }
  
  .section-title {
    font-size: 10.5px;
    color: #b00 !important;
    text-decoration: underline;
    margin: 6px 0 4px 0;
    font-weight: bold;
  }
  
  .special-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .special-info-list li {
    margin-bottom: 5px;
    font-size: 9px;
    line-height: 1.3;
  }
  
  .bullet-lbl {
    font-weight: normal;
  }
  
  .bullet-val {
    border-bottom: 1px dashed #666;
    padding: 0 6px;
    font-weight: bold;
    display: inline-block;
  }
  
  .bullet-chk {
    font-weight: bold;
    display: inline-block;
  }
  
  .print-date {
    margin-top: 10px;
    font-size: 9.5px;
    font-weight: normal;
  }
  
  .underline-date {
    border-bottom: 1px solid #000;
    padding: 0 8px;
    font-weight: bold;
  }
  
  .print-notes-section {
    margin-top: 10px;
    border: 1px solid #000;
    padding: 5px;
  }
  
  .notes-lbl {
    font-weight: bold;
    font-size: 9px;
    margin-bottom: 3px;
    color: #c00 !important;
  }
  
  .notes-box {
    font-size: 9px;
    min-height: 35px;
    white-space: pre-wrap;
  }
}

