/* PKSSR AYUSH - admin panel (AdminLTE ke upar chhote changes) */
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 33px; height: 33px; margin: 0 8px 0 12px; border-radius: 50%;
    background: #f59e0b; color: #0b3d2e; font-weight: 700; font-size: 13px; letter-spacing: .5px;
    float: left;
}
.brand-mark-lg { width: 56px; height: 56px; font-size: 20px; margin: 0; float: none; }
.main-sidebar { background-color: #0b3d2e; }
.sidebar-dark-success .brand-link { border-bottom-color: rgba(255, 255, 255, .12); }
.nav-sidebar .nav-header { color: #9fc5b8; font-size: 11px; letter-spacing: 1px; }
.nav-sidebar .nav-link p { white-space: normal; }
.content-header h1 { font-size: 1.5rem; }
.small-total { font-size: 45%; top: -.9em; font-weight: 400; }
.dept-box { min-height: 70px; }
.dept-box.dept-off { opacity: .55; }
.dept-box .info-box-text { white-space: normal; }
.dept-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 54px; height: 54px; border-radius: 12px; font-size: 22px; flex-shrink: 0;
}
.feature-pill { background: #f4f6f9; border-radius: 6px; padding: 8px 12px; margin-bottom: 10px; }
.perm-table input[type=checkbox] { width: 17px; height: 17px; cursor: pointer; }
.login-bg { background: linear-gradient(135deg, #0b3d2e 0%, #00796b 100%); }
.login-bg .card { border-radius: 10px; }

/* ---- Phase 2: Education + Fees ---- */
.detail-table th { width: 17%; background: #f8f9fa; font-weight: 600; white-space: nowrap; }
.detail-table td { width: 33%; }

/* Fee receipt (print) */
.receipt-page { background: #eef1f4; font-family: "Segoe UI", Arial, sans-serif; color: #111; }
.receipt-toolbar { text-align: center; padding: 12px 10px 0; }
.receipt { position: relative; max-width: 800px; margin: 14px auto 30px; background: #fff; border: 1px solid #999; padding: 22px 26px; }
.receipt-head { text-align: center; border-bottom: 2px solid #0b3d2e; padding-bottom: 10px; margin-bottom: 12px; font-size: 13px; }
.receipt-org { font-size: 19px; font-weight: 700; color: #0b3d2e; }
.receipt-title { display: inline-block; margin-top: 8px; padding: 2px 16px; border: 1px solid #0b3d2e; font-weight: 700; letter-spacing: 2px; }
.receipt-info { width: 100%; font-size: 14px; margin-bottom: 12px; }
.receipt-info td { padding: 3px 6px; vertical-align: top; }
.receipt-info td:nth-child(odd) { width: 18%; color: #555; }
.receipt-info td:nth-child(even) { width: 32%; }
.receipt-amount { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 8px; }
.receipt-amount th, .receipt-amount td { border: 1px solid #999; padding: 7px 9px; }
.receipt-amount th { background: #f1f5f3; }
.receipt-words { font-size: 14px; font-style: italic; margin-bottom: 12px; }
.receipt-note { color: #b00020; font-size: 13px; margin-bottom: 8px; }
.receipt-sign { display: flex; justify-content: space-between; margin-top: 55px; font-size: 13px; }
.receipt-sign div { border-top: 1px solid #555; padding-top: 4px; min-width: 170px; text-align: center; }
.receipt-foot { text-align: center; font-size: 11px; color: #777; margin-top: 16px; }
.receipt-cancelled {
    position: absolute; top: 42%; left: 0; right: 0; text-align: center; transform: rotate(-18deg);
    font-size: 70px; font-weight: 800; color: rgba(200, 0, 0, .18); letter-spacing: 6px; pointer-events: none;
}

@media print {
    .no-print, .main-sidebar, .main-header, .main-footer, .content-header { display: none !important; }
    .content-wrapper { margin-left: 0 !important; background: #fff !important; }
    .receipt-page { background: #fff; }
    .receipt { border: 1px solid #555; margin: 0 auto; }
    a { color: inherit !important; text-decoration: none !important; }
}

/* ---- Phase 3: LMS + Exam + Certificate + Student portal ---- */
.login-code { font-size: 1.05rem; background: #fff; border: 1px solid #c8e6c9; border-radius: 4px; padding: 2px 8px; color: #0b3d2e; }
.question-row { padding: 12px 16px; border-bottom: 1px solid #e9ecef; }
.question-row:last-child { border-bottom: 0; }
.lesson-desc { white-space: pre-line; }

/* Online exam */
.exam-bar {
    position: sticky; top: 57px; z-index: 1030; display: flex; justify-content: space-between; align-items: center;
    background: #0b3d2e; color: #fff; border-radius: 6px; padding: 10px 16px; margin-bottom: 14px;
}
.exam-timer { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.exam-timer-low { color: #ffb4a9; }
.exam-option { padding: 6px 0 6px 2rem; }

/* Certificate (A4 landscape) */
.cert { position: relative; width: 277mm; max-width: 100%; min-height: 185mm; margin: 14px auto 30px; background: #fff; padding: 7mm; border: 1px solid #b8a25a; }
.cert-inner { position: relative; min-height: 171mm; border: 3px double #0b3d2e; padding: 12mm 16mm 8mm; text-align: center; }
.cert-no { position: absolute; top: 5mm; right: 7mm; font-size: 12px; color: #444; }
.cert-org { font-size: 26px; font-weight: 700; color: #0b3d2e; line-height: 1.2; }
.cert-branch { font-size: 14px; color: #555; }
.cert-title { display: inline-block; margin: 9mm 0 7mm; font-size: 30px; font-weight: 700; color: #a47c12; letter-spacing: 2px; text-transform: uppercase; border-bottom: 2px solid #a47c12; padding: 0 10mm 2mm; }
.cert-text { font-size: 16px; color: #333; line-height: 1.7; }
.cert-name { font-size: 32px; font-weight: 700; color: #0b3d2e; margin: 3mm 0; font-family: Georgia, "Times New Roman", serif; }
.cert-course { font-size: 24px; font-weight: 700; color: #0b3d2e; margin: 3mm 0; }
.cert-bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 10mm; }
.cert-qr { text-align: center; }
.cert-qr #qr { display: inline-block; }
.cert-qr-text { font-size: 11px; color: #555; margin-top: 2px; }
.cert-date { font-size: 13px; min-width: 60mm; }
.cert-line { border-bottom: 1px solid #555; padding-bottom: 2px; margin-bottom: 3px; font-weight: 600; font-size: 15px; }
.cert-verify { font-size: 10px; color: #777; margin-top: 4mm; word-break: break-all; }

@media print {
    .cert { border: 1px solid #b8a25a; margin: 0 auto; width: 100%; }
    .cert, .cert-inner, .receipt-amount th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Phase 4: Training + Medicity ---------- */
.pre-line { white-space: pre-line; }
.att-chip { font-weight: 500; margin: 0 4px 6px 0; padding: 5px 8px; }
.att-radio { width: 18px; height: 18px; cursor: pointer; }

.bed-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.bed-tile { width: 150px; min-height: 86px; border: 1px solid #dee2e6; border-left: 5px solid #28a745; border-radius: 6px; padding: 8px 10px; background: #fff; color: inherit; display: block; }
.bed-tile:hover { text-decoration: none; color: inherit; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.bed-tile.occupied { border-left-color: #dc3545; background: #fff5f5; }
.bed-tile .bed-no { font-weight: 700; font-size: 1.05rem; }
.bed-tile .bed-who { font-size: .85rem; line-height: 1.25; }
.bed-tile .bed-free { color: #28a745; font-size: .85rem; }
.stock-low { background: #fff8e1; }

.text-strike { text-decoration: line-through; }
