:root {
    --pt-primary: #1d4ed8;
    --pt-primary-dark: #1e3a8a;
    --pt-accent: #c0392b;
    --pt-bg: #ffffff;
    --pt-muted: #6b7280;
    --pt-card-bg: #f9fafb;
    --pt-banner-bg: #fef9c3;
    --pt-banner-border: #facc15;
    --pt-welcome-bg: #e0e7ff;
}

html { font-size: 14px; min-height: 100%; }
@media (min-width: 768px) { html { font-size: 16px; } }
body { margin: 0; background: var(--pt-bg); color: #111827; font-family: 'Segoe UI', Tahoma, sans-serif; }

a, a:hover, a:focus { text-decoration: none; }

/* ---------- Header ---------- */
.pt-header { border-bottom: 1px solid #e5e7eb; background: #fff; }
.pt-brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: inherit; }
.pt-logo { width: 48px; height: 48px; }
.pt-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.pt-brand-text strong { color: var(--pt-primary-dark); }
.pt-brand-text small { color: var(--pt-muted); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }
.pt-nav a { margin-left: 1rem; text-decoration: none; color: var(--pt-primary); font-weight: 500; }
.pt-nav .pt-cta { background: var(--pt-primary); color: #fff; padding: .35rem .8rem; border-radius: .375rem; }
.pt-nav .pt-link-btn { background: none; border: none; color: var(--pt-primary); font-weight: 500; cursor: pointer; margin-left: 1rem; padding: 0; }
.pt-user { color: var(--pt-muted); margin-left: 1rem; }

/* ---------- Page header ---------- */
.pt-page-header { margin-bottom: 1rem; }
.pt-page-header h1 {
    color: var(--pt-primary-dark); font-weight: 700; margin-bottom: .25rem;
    font-size: 1.5rem;
}
/* Normalise every admin page H1 to the Add-Class title size, so pages that
   don't wrap their heading in .pt-page-header still match. */
.pt-admin-body h1 {
    font-size: 1.5rem; font-weight: 700; color: var(--pt-primary-dark);
}
.pt-page-sub {
    color: var(--pt-accent); font-weight: 600; margin-bottom: .5rem;
    font-size: .9rem;
}
.pt-info-banner {
    background: var(--pt-banner-bg);
    border-left: 4px solid var(--pt-banner-border);
    padding: .65rem 1rem;
    color: #78350f;
    border-radius: .25rem;
    font-size: .9rem;
    margin: .5rem 0 1rem;
}
.pt-welcome {
    background: var(--pt-welcome-bg);
    border-left: 4px solid var(--pt-primary);
    color: var(--pt-primary-dark);
    font-weight: 600;
    padding: .65rem 1rem;
    border-radius: .25rem;
    margin-bottom: 1.5rem;
}

/* ---------- Cards ---------- */
.pt-cards { margin-bottom: 1rem; }
.pt-card {
    background: var(--pt-card-bg);
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    padding: 1rem 1.25rem;
}
.pt-card h3 { color: #111827; font-size: 1.05rem; font-weight: 700; }
.pt-card p { color: #4b5563; margin-bottom: .75rem; }
.pt-pill {
    display: inline-block;
    background: var(--pt-primary);
    color: #fff;
    font-size: .65rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: .35rem;
    vertical-align: middle;
}
.pt-pill.existing { background: #2563eb; }

/* ---------- Form card ---------- */
.pt-form-card { max-width: 480px; margin: 1rem auto 0; }
.pt-form-card label { font-weight: 600; }

/* ---------- Year pills ---------- */
.pt-year-pills { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.pt-year { padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: #064e3b; }
.pt-year.y1 { background: #dcfce7; }
.pt-year.y2 { background: #dcfce7; }
.pt-year.y3 { background: #fed7aa; color: #7c2d12; }
.pt-year.y4 { background: #fed7aa; color: #7c2d12; }
.pt-year.y5 { background: #fecaca; color: #7f1d1d; }
.pt-year.sec { background: #bbf7d0; color: #064e3b; }

/* ---------- Captcha ---------- */
.pt-captcha { height: 48px; border: 1px solid #d1d5db; border-radius: .25rem; }
.pt-captcha-input { max-width: 140px; }

/* ---------- Section ---------- */
.pt-section { margin-top: 1.5rem; }
.pt-section h4 { color: #111827; font-weight: 600; }

/* ---------- Dashboard stat cards ---------- */
.pt-stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    padding: .85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .15rem;
    height: 100%;
}
.pt-stat-label { color: var(--pt-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.pt-stat-value { color: var(--pt-primary-dark); font-size: 1.4rem; font-weight: 700; }

/* ---------- Status badges ---------- */
.pt-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    background: #e5e7eb;
    color: #374151;
}
.pt-status-Draft       { background: #e5e7eb; color: #374151; }
.pt-status-Submitted   { background: #dbeafe; color: #1e3a8a; }
.pt-status-UnderReview { background: #fef3c7; color: #78350f; }
.pt-status-Accepted    { background: #dcfce7; color: #064e3b; }
.pt-status-Enrolled    { background: #bbf7d0; color: #064e3b; }
.pt-status-Rejected    { background: #fecaca; color: #7f1d1d; }
.pt-status-Withdrawn   { background: #e5e7eb; color: #6b7280; }
.pt-status-Pending     { background: #fef3c7; color: #78350f; }
.pt-status-Passed      { background: #dcfce7; color: #064e3b; }
.pt-status-Failed      { background: #fecaca; color: #7f1d1d; }

/* ---------- Tabs ---------- */
.pt-tabs { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.25rem; border-bottom: 1px solid #e5e7eb; }
.pt-tabs li { padding: .5rem 0; }
.pt-tabs li a { color: var(--pt-muted); text-decoration: none; font-weight: 500; }
.pt-tabs li.active { border-bottom: 2px solid var(--pt-primary); }
.pt-tabs li.active a { color: var(--pt-primary); }

/* ---------- Mode badges ---------- */
.pt-mode {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
}
.pt-mode-FaceToFace { background: #fed7aa; color: #7c2d12; }
.pt-mode-Online     { background: #dbeafe; color: #1e3a8a; }
.pt-mode-Home       { background: #ede9fe; color: #5b21b6; }

/* ---------- Level badges ---------- */
.pt-level {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
}
.pt-level-Beginner    { background: #dcfce7; color: #064e3b; }
.pt-level-Intermediate{ background: #ede9fe; color: #5b21b6; }
.pt-level-Advanced    { background: #fee2e2; color: #7f1d1d; }

/* ---------- Teacher avatar ---------- */
.pt-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    margin-right: .35rem;
    vertical-align: middle;
}

/* ---------- Enrolment progress bar ---------- */
.pt-progress {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
    width: 80px;
}
.pt-progress-bar {
    height: 100%;
    background: #16a34a;
    border-radius: 3px;
}

/* ---------- Audit log card ---------- */
.pt-audit {
    background: #fef9c3;
    border-left: 4px solid #facc15;
    padding: .8rem 1rem;
    border-radius: .25rem;
}
.pt-audit h5 { color: #78350f; font-weight: 700; }
.pt-audit table { background: transparent; }

/* ---------- Profile photo thumbnail ---------- */
.pt-photo-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
}

/* ---------- Admission tier badges ---------- */
.pt-tier {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
}
.pt-tier-A { background: #dcfce7; color: #064e3b; }
.pt-tier-B { background: #fed7aa; color: #7c2d12; }
.pt-tier-C { background: #fecaca; color: #7f1d1d; }

/* ---------- Route preview banner ---------- */
.pt-route-banner {
    background: var(--pt-welcome-bg);
    border-left: 4px solid var(--pt-primary);
    color: var(--pt-primary-dark);
    padding: .65rem 1rem;
    border-radius: .25rem;
    font-size: .9rem;
}

/* ---------- Admissions pipeline stepper ---------- */
.pt-pipeline {
    display: flex;
    gap: .25rem;
    flex-wrap: wrap;
}
.pt-step {
    flex: 1 1 0;
    min-width: 90px;
    text-align: center;
    padding: .55rem .25rem;
    border-radius: .375rem;
    font-size: .85rem;
    font-weight: 600;
    background: #f3f4f6;
    color: #6b7280;
}
.pt-step-done   { background: #16a34a; color: #fff; }
.pt-step-active { background: #2563eb; color: #fff; }
.pt-step-todo   { background: #f3f4f6; color: #6b7280; }

/* ---------- Footer ---------- */
.pt-footer {
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    color: var(--pt-muted);
    margin-top: 2rem;
    font-size: .85rem;
}
.pt-footer a { color: var(--pt-primary); text-decoration: none; }

/* =========================================================
   Admin portal layout — dropdown nav + toolbar
   ========================================================= */
.pt-admin-body { background: #fafbfd; }
.pt-admin-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.pt-admin-brand {
    display: flex; align-items: center; gap: .5rem;
    text-decoration: none; margin-right: .75rem;
}
.pt-admin-logo {
    width: 30px; height: 30px; border-radius: 50%;
    border: 2px solid #d94a3a; padding: 2px; background: #fff;
    box-sizing: content-box; object-fit: contain;
}
.pt-admin-brand-text strong {
    display: block; color: #1a2b4a; font-size: 12px; line-height: 1.05;
    white-space: nowrap;
}
.pt-admin-brand-text small {
    display: block; color: #6b7280; font-size: 8.5px;
    letter-spacing: .4px; margin-top: 2px;
}
.pt-admin-nav .navbar-nav .nav-link {
    color: #1d4ed8; font-weight: 500;
    font-size: .8rem;
    padding: .35rem .5rem;
    display: flex; align-items: center; gap: .2rem;
    white-space: nowrap;
}
.pt-admin-nav .navbar-nav .nav-link:hover,
.pt-admin-nav .navbar-nav .nav-link.active {
    color: #0f2966;
    border-bottom: 2px solid #1d4ed8;
    padding-bottom: calc(.35rem - 2px);
}
.pt-admin-nav .dropdown-menu {
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 10px rgba(0,0,0,.06);
    padding: .25rem 0; min-width: 190px;
    font-size: .8rem;
}
.pt-admin-nav .dropdown-item { color: #1d4ed8; padding: .4rem 1rem; }
.pt-admin-nav .dropdown-item:hover { background: #eff4ff; color: #0f2966; }

.pt-admin-toolbar { flex-shrink: 0; }
.pt-admin-toolbar .pt-admin-bell {
    font-size: 18px; color: #333; text-decoration: none;
    padding: .1rem .3rem; line-height: 1;
}
.pt-admin-toolbar .pt-admin-bell:hover { color: #1d4ed8; }
.pt-admin-toolbar .pt-admin-bell .badge {
    font-size: 11px; padding: 2px 6px;
    margin-top: 3px; margin-left: -6px;
}
.pt-admin-toolbar .pt-admin-user {
    border: 1px solid #d1d5db; background: #fff;
    padding: .3rem .65rem; border-radius: 999px;
    color: #1a2b4a; font-weight: 500;
    font-size: .85rem;
}
.pt-admin-toolbar .pt-admin-user::after { display: none; }
.pt-admin-toolbar .pt-admin-logout {
    color: #1d4ed8; font-weight: 500; text-decoration: none; padding: 0;
}

.pt-stat-card-lg {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    padding: .9rem 1rem; text-align: center; min-height: 78px;
    display: flex; flex-direction: column; justify-content: center;
}
.pt-stat-card-lg .value {
    font-size: 24px; font-weight: 700; color: #1a2b4a; line-height: 1;
}
.pt-stat-card-lg .label {
    font-size: 10.5px; letter-spacing: .8px; color: #6b7280;
    text-transform: uppercase; margin-bottom: .3rem;
}
.pt-chart-panel {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    padding: 1rem 1.25rem;
}
.pt-chart-panel h5 {
    margin: 0 0 .75rem 0; color: #1a2b4a; font-weight: 600;
}
.pt-chart-holder {
    position: relative; width: 100%; height: 280px;
}
.pt-coming-soon {
    background: #fff; border: 1px dashed #cbd5e1; border-radius: 10px;
    padding: 3rem 2rem; text-align: center; color: #6b7280;
}
.pt-coming-soon h2 { color: #1a2b4a; margin-bottom: .5rem; }

/* ---- Class overview list ---- */
.pt-cls-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 1rem; margin-bottom: 1rem;
}
.pt-cls-count { color: var(--pt-primary-dark, #1a2b4a); font-weight: 700; }

.pt-cls-toolbar {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    padding: .5rem .75rem; margin-bottom: .75rem;
    box-shadow: 0 1px 2px rgba(0,0,0,.02);
}
.pt-cls-tool {
    background: #fff; border: 1px solid #e2e8f0; color: #334155;
    font-size: .8rem; padding: .35rem .75rem;
    display: inline-flex; align-items: center; gap: .35rem;
    transition: background .15s, border-color .15s;
}
.pt-cls-tool:hover:not(:disabled) { background: #f8fafc; border-color: #cbd5e1; }
.pt-cls-tool:disabled { opacity: .45; }

.pt-cls-filter {
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem; margin-bottom: .75rem;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    padding: .6rem .75rem;
    box-shadow: 0 1px 2px rgba(0,0,0,.02);
}
.pt-cls-filter-left { display: flex; align-items: center; gap: .5rem; flex-grow: 1; }
.pt-cls-filter-right { display: flex; align-items: center; gap: .5rem; }
.pt-cls-search { position: relative; flex-grow: 1; max-width: 320px; }
.pt-cls-search-icon {
    position: absolute; left: .6rem; top: 50%; transform: translateY(-50%);
    color: #94a3b8; font-size: .85rem; pointer-events: none;
}
.pt-cls-search .form-control { padding-left: 2rem; height: 32px; font-size: .85rem; }
.pt-cls-filter .form-select-sm { height: 32px; }

/* List table (no vertical grid, subtle row hovers) */
.pt-cls-list-wrap {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.02);
}
.pt-cls-list { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0; }
.pt-cls-list thead th {
    background: #f8fafc; color: #64748b;
    font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
    padding: .55rem .75rem; border-bottom: 1px solid #eef2f7;
    text-align: left;
}
.pt-cls-list tbody td {
    padding: .75rem; vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}
.pt-cls-list tbody tr.cls-row:hover td { background: #fafcff; }
.pt-cls-list tbody tr:last-child td { border-bottom: none; }

.pt-cls-swatch-cell {
    position: relative; padding-left: 1.25rem !important;
    white-space: nowrap;
}
.pt-cls-swatch {
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 5px;
}
.pt-cls-title {
    color: #1d4ed8; font-weight: 600; text-decoration: none;
}
.pt-cls-title:hover { color: #0f2966; text-decoration: none; }

.pt-cls-progress {
    height: 6px; background: #e2e8f0; border-radius: 999px; overflow: hidden;
}
.pt-cls-progress-bar {
    height: 100%; background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 999px; transition: width .3s;
}
.pt-cls-status {
    display: inline-block; font-size: .72rem; font-weight: 600;
    padding: .2em .6em; border-radius: 999px;
}
.pt-cls-status-finished { background: #f1f5f9; color: #64748b; }
.pt-cls-status-upcoming { background: #fef3c7; color: #92400e; }

.pt-cls-students {
    display: inline-block; min-width: 32px;
    background: #1e293b; color: #fff; font-weight: 600;
    padding: .3em .7em; border-radius: 999px; font-size: .8rem;
}
.pt-cls-price { font-weight: 700; color: #0f172a; font-size: .95rem; }

.pt-cls-chevron {
    background: transparent; border: 1px solid transparent;
    color: #94a3b8; padding: .15rem .35rem; border-radius: 6px;
    cursor: pointer; transition: background .15s, color .15s;
}
.pt-cls-chevron:hover { background: #f1f5f9; color: #334155; }

/* Empty state */
.pt-cls-empty {
    background: #fff; border: 2px dashed #e2e8f0; border-radius: 10px;
    padding: 3rem 1.5rem; text-align: center;
}
.pt-cls-empty-icon { font-size: 42px; margin-bottom: .5rem; }
.pt-cls-empty h5 { color: #1a2b4a; margin-bottom: .35rem; }

/* ---- Add / Edit class form ---- */
.pt-form-wrap { max-width: 960px; margin: 0 auto; }
.pt-form-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}
.pt-form-section-head {
    display: flex; align-items: baseline; gap: 1rem;
    padding-bottom: .75rem; margin-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}
.pt-form-section-head h5 {
    margin: 0; color: #1a2b4a; font-weight: 600; font-size: 1rem;
    white-space: nowrap;
}
.pt-form-section-head p {
    margin: 0; color: #6b7280; font-size: .8rem;
}
.pt-form-section .form-label { font-weight: 500; font-size: .85rem; color: #334155; }
.pt-form-section .form-control, .pt-form-section .form-select { font-size: .9rem; }

/* ---- Booking settings ---- */
.pt-bkg-page { max-width: 1100px; margin: 0 auto; }
.pt-bkg-page .nav-pills .nav-link {
    color: #334155; font-weight: 500; text-align: left;
    border-radius: 6px; padding: .5rem .75rem; margin-bottom: .1rem;
}
.pt-bkg-page .nav-pills .nav-link.active { background: #1d4ed8; color: #fff; }
.pt-bkg-dot {
    display: inline-block; width: 10px; height: 10px; border-radius: 50%;
    background: #cbd5e1;
}
.pt-bkg-dot.on { background: #22c55e; }

/* Yes/No pill toggle used on Configure Booking */
.pt-yn { display: inline-flex; border: 1px solid #d1d5db; border-radius: 6px; overflow: hidden; }
.pt-yn-btn {
    padding: .35rem 1rem; background: #fff; border: none; font-size: .85rem;
    cursor: pointer; color: #64748b;
}
.pt-yn-btn.on  { background: #22c55e; color: #fff; }
.pt-yn-btn.off { background: #1d4ed8; color: #fff; }

.pt-ai-hint {
    background: #fffbeb; border: 1px dashed #fbbf24; border-radius: 6px;
    padding: .75rem 1rem; margin-top: .5rem;
}
.pt-img-slot {
    width: 96px; height: 68px; background: #f1f5f9; border: 1px solid #e2e8f0;
    border-radius: 6px; display: flex; align-items: center; justify-content: center;
    color: #94a3b8; font-size: .8rem;
}

/* ---- Manage tags ---- */
.pt-mtags { max-width: 860px; margin: 0 auto; }
.pt-mtags-tabs .nav-link {
    color: #475569; font-weight: 500; padding: .45rem 1rem;
    border-radius: 999px; background: transparent;
    font-size: .85rem;
}
.pt-mtags-tabs .nav-link.active {
    background: #1d4ed8; color: #fff;
}
.pt-mtags-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
    overflow: hidden;
}
.pt-mtags-add {
    display: flex; gap: .5rem; padding: 1rem 1.25rem;
    border-bottom: 1px solid #eef2f7; background: #f8fafc;
}
.pt-mtags-add .form-control { max-width: 360px; }
.pt-mtags-list {}
.pt-mtags-row {
    display: flex; align-items: center; gap: .75rem;
    padding: .65rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background .15s;
}
.pt-mtags-row:last-child { border-bottom: none; }
.pt-mtags-row:hover { background: #f8fafc; }
.pt-mtags-actions { display: flex; gap: .35rem; align-items: center; }

/* ---- Class detail ---- */
.pt-cd-page { max-width: 1100px; margin: 0 auto; }
.pt-cd-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 1rem; padding: 1rem 1.25rem;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    border-left: 6px solid #94a3b8;
    box-shadow: 0 1px 2px rgba(0,0,0,.02);
}
.pt-cd-header-body h1 { margin: 0; font-size: 1.35rem; color: #0f172a; font-weight: 700; }
.pt-cd-header-actions {
    display: flex; gap: .35rem; flex-wrap: wrap;
    justify-content: flex-end;
}

.pt-cd-stat {
    background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 8px;
    padding: .5rem .9rem; min-width: 92px;
    display: flex; flex-direction: column; align-items: center;
    box-shadow: 0 1px 2px rgba(0,0,0,.02);
}
.pt-cd-stat-icon { font-size: 14px; color: #64748b; line-height: 1; }
.pt-cd-stat-value { font-size: 1.1rem; font-weight: 700; color: #0f172a; line-height: 1; margin-top: .15rem; }
.pt-cd-stat-label { font-size: .6rem; color: #64748b; letter-spacing: .06em; text-transform: uppercase; margin-top: .2rem; }

.pt-cd-monthbar {
    display: flex; align-items: center; gap: .75rem;
    padding: .35rem 0 .5rem 0;
}
.pt-cd-monthbar strong { font-size: .95rem; color: #0f172a; min-width: 140px; text-align: center; }
.pt-cd-dates {
    display: flex; gap: .5rem; overflow-x: auto;
    padding: .25rem 0;
}
.pt-cd-date {
    flex: 0 0 auto; min-width: 90px;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
    padding: .5rem .75rem; text-align: center; cursor: pointer;
    transition: border-color .15s, transform .1s;
}
.pt-cd-date:hover { border-color: #94a3b8; }
.pt-cd-date-active { border-color: #1d4ed8; border-width: 2px; padding: calc(.5rem - 1px) calc(.75rem - 1px); }
.pt-cd-date-past  { background: #f8fafc; }
.pt-cd-date-disabled {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}
.pt-cd-date-disabled .pt-cd-date-day,
.pt-cd-date-disabled .pt-cd-date-month,
.pt-cd-date-disabled .pt-cd-date-wd { color: #991b1b; }
.pt-cd-student-row-disabled { background: #fef2f2; }
.pt-cd-student-row-disabled .pt-cd-student-name { color: #94a3b8; }

.pt-cd-scope {
    border: 1px solid #e5e7eb; border-radius: 8px;
    padding: .75rem 1rem; padding-left: 2.5rem;
    transition: border-color .15s, background .15s;
}
.pt-cd-scope.selected {
    border-color: #1d4ed8; background: #eff6ff;
}
.pt-cd-scope .form-check-input { margin-left: -1.5rem; }

/* ⋮ button in the register — no dropdown caret */
.dropdown-toggle-nocaret::after { display: none !important; }
.pt-cd-date-month { font-size: .65rem; color: #64748b; letter-spacing: .06em; }
.pt-cd-date-day   { font-size: 1.25rem; font-weight: 700; color: #0f172a; line-height: 1; }
.pt-cd-date-wd    { font-size: .65rem; color: #64748b; letter-spacing: .06em; }
.pt-cd-date-count { margin-top: .15rem; font-size: .7rem; }

.pt-cd-register {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.02);
}
.pt-cd-register-head {
    display: flex; align-items: center; gap: .5rem;
    background: #f8fafc; padding: .65rem 1rem;
    border-bottom: 1px solid #eef2f7;
}
.pt-cd-student-row {
    display: flex; align-items: center; gap: .75rem;
    padding: .6rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background .1s;
}
.pt-cd-student-row:hover { background: #fafcff; }
.pt-cd-student-row:last-child { border-bottom: none; }
.pt-cd-student-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    color: #fff; font-weight: 700; font-size: .75rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.pt-cd-student-name { color: #1d4ed8; text-decoration: none; font-weight: 500; }
.pt-cd-student-name:hover { text-decoration: none; }
.pt-cd-new {
    background: #f1f5f9; color: #64748b;
    font-size: .65rem; font-weight: 600;
    padding: .2em .6em; border-radius: 999px;
}
.pt-cd-empty {
    background: #fff; border: 2px dashed #e2e8f0; border-radius: 10px;
    padding: 2rem 1.5rem; text-align: center; color: #64748b;
}

/* ---- Class calendar ---- */
.pt-cal-frame {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
    overflow: hidden;
}
.pt-cal-week td { height: 46px; padding: 0; position: relative; vertical-align: top; }
.pt-cal-week th { background: #f8fafc; }
.pt-cal-slot { border-color: #eef2f7 !important; }
.pt-cal-block {
    position: absolute; left: 3%; right: 3%;
    color: #fff; padding: 4px 6px; border-radius: 4px;
    font-size: 11px; line-height: 1.2; cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,.15);
    overflow: hidden;
}
.pt-cal-block:hover { filter: brightness(1.08); }
.pt-cal-block-disabled {
    opacity: .55; text-decoration: line-through;
    background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.15), rgba(0,0,0,.15) 4px, transparent 4px, transparent 8px);
}
.pt-cal-month td.pt-cal-mcell { height: 100px; vertical-align: top; }
.pt-cal-chip {
    color: #fff; padding: 1px 5px; margin-top: 2px; border-radius: 3px;
    font-size: 11px; cursor: pointer; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
.pt-cal-row {
    display: flex; align-items: center; gap: .75rem;
    padding: .5rem .25rem; border-bottom: 1px solid #eef2f7; cursor: pointer;
}
.pt-cal-row:hover { background: #f8fafc; }
.pt-cal-row:last-child { border-bottom: none; }
.pt-cal-swatch { width: 6px; height: 32px; border-radius: 3px; }

/* ---- Student overview ---- */
.pt-so-alpha { font-size: .95rem; }
.pt-so-alpha-pill {
    display: inline-block; padding: .1rem .55rem; margin: 0 .05rem;
    color: #1d4ed8; border-radius: 999px; line-height: 1.6;
}
.pt-so-alpha-pill:hover { background: #eef2ff; }
.pt-so-alpha-pill.active { background: #dbeafe; color: #0f2966; font-weight: 600; }

.pt-so-pager { list-style: none; padding: 0; display: inline-flex; gap: .35rem; }
.pt-so-pager a {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 32px; height: 32px; padding: 0 .6rem;
    border: 1px solid #d1d5db; border-radius: 6px;
    color: #1f2937; font-size: .9rem; background: #fff;
}
.pt-so-pager a:hover { background: #f3f4f6; }
.pt-so-pager a.active { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }

.pt-so-filter { max-width: 260px; text-align: center; }
.pt-so-status { min-width: 160px; }

.pt-so-table-wrap { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; }
.pt-so-table { width: 100%; border-collapse: collapse; }
.pt-so-table thead th {
    background: #f9fafb; color: #6b7280; font-weight: 600; font-size: .8rem;
    text-transform: none; padding: .6rem .9rem; border-bottom: 1px solid #e5e7eb;
    text-align: left;
}
.pt-so-table tbody td {
    padding: .65rem .9rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle;
}
.pt-so-table tbody tr:last-child td { border-bottom: none; }
.pt-so-table tbody tr:hover { background: #f8fafc; }

.pt-so-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    color: #fff; font-weight: 700; font-size: .7rem; flex-shrink: 0;
}
.pt-so-edit-hint { font-size: .8rem; cursor: pointer; opacity: .7; }
.pt-so-edit-hint:hover { opacity: 1; }
.pt-so-name { color: #1d4ed8; font-weight: 500; }

.pt-so-contact-email { color: #1d4ed8; }

.pt-so-tag-add {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 22px; border: 1px solid #d1d5db; background: #fff;
    color: #6b7280; font-weight: 600; border-radius: 4px; padding: 0;
    line-height: 1; cursor: pointer; margin-right: .35rem;
}
.pt-so-tag-add:hover { background: #f3f4f6; color: #1f2937; }
.pt-so-tag {
    display: inline-block; background: #f1f5f9; color: #475569;
    font-size: .72rem; font-weight: 500; padding: .15rem .5rem;
    border-radius: 999px; margin-right: .25rem;
}

.pt-so-film-yes, .pt-so-film-no {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 6px; font-weight: 700; font-size: .85rem;
}
.pt-so-film-yes { background: #dcfce7; color: #16a34a; }
.pt-so-film-no  { background: #fee2e2; color: #dc2626; }

.pt-so-actions { display: inline-flex; gap: .25rem; }
.pt-so-icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 28px; border: 1px solid #e5e7eb; border-radius: 6px;
    color: #64748b; background: #fff; text-decoration: none; font-size: .85rem;
}
.pt-so-icon-btn:hover { background: #f8fafc; color: #1d4ed8; border-color: #cbd5e1; }

/* ---- Consent list on New Student ---- */
.pt-consent-list { max-width: 720px; }
.pt-consent-row {
    display: grid; grid-template-columns: 1fr 150px 32px;
    align-items: center; gap: .75rem;
    padding: .35rem 0; border-bottom: 1px solid #f1f5f9;
}
.pt-consent-row:last-child { border-bottom: none; }
.pt-consent-label { margin: 0; font-weight: 600; color: #1f2937; }
.pt-consent-select { padding-top: .2rem; padding-bottom: .2rem; }
.pt-consent-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 28px; border-radius: 6px;
    color: #9ca3af; font-weight: 700; background: #f9fafb;
}
.pt-consent-icon.yes { background: #dcfce7; color: #16a34a; }
.pt-consent-icon.no  { background: #fee2e2; color: #dc2626; }

/* ---- Student overview extras (DD, medical, consent inline icons) ---- */
.pt-so-avatar-wrap { position: relative; display: inline-block; }
.pt-so-medical-badge {
    position: absolute; top: -6px; right: -8px;
    width: 18px; height: 18px; border-radius: 4px;
    background: #dc2626; color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .65rem; border: 1.5px solid #fff; cursor: help;
    line-height: 1;
}

/* Consent icons — only shown when NOT consented, styled as prohibition (red-slash) */
.pt-so-consent-row { display: inline-flex; gap: .2rem; }
.pt-so-consent-no {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid #dc2626;
    background: #fef2f2;
    font-size: .72rem; line-height: 1; cursor: help;
}
.pt-so-consent-no::after {
    /* the red diagonal slash */
    content: ''; position: absolute; inset: 0; margin: auto;
    width: 24px; height: 2px; background: #dc2626;
    transform: rotate(-45deg); border-radius: 2px;
}

.pt-so-dd {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 20px; border-radius: 12px;
    background: #f3f4f6; color: #9ca3af; font-weight: 600; font-size: .85rem;
}
.pt-so-dd.off { background: #f3f4f6; color: #cbd5e1; }
.pt-so-balance { font-variant-numeric: tabular-nums; color: #1f2937; }

/* ---- Manage students modal ---- */
.pt-ms-pills {
    display: flex; flex-wrap: wrap; gap: .35rem;
    border: 1px solid #cfe0ff; border-radius: 8px;
    padding: .5rem; min-height: 44px; background: #f5f8ff;
}
.pt-ms-pill {
    display: inline-flex; align-items: center; gap: .3rem;
    background: #eef4ff; color: #1d4ed8; font-weight: 500;
    padding: .15rem .55rem .15rem .3rem; border-radius: 999px;
    font-size: .85rem;
}
.pt-ms-pill-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%;
    background: #cbd5e1; color: #0f172a; font-size: .65rem; font-weight: 700;
}
.pt-ms-pill-x {
    background: none; border: none; padding: 0 .1rem; color: #64748b;
    font-size: 1rem; line-height: 1; cursor: pointer;
}
.pt-ms-pill-x:hover { color: #dc2626; }
.pt-ms-newstudent {
    background: #f3f4f6; color: #1d4ed8; border-radius: 6px;
    text-decoration: none; font-weight: 500;
}
.pt-ms-newstudent:hover { background: #e5e7eb; }

.pt-ms-scope { display: flex; flex-direction: column; gap: .5rem; }
.pt-ms-scope-opt {
    border: 1px solid #e5e7eb; border-radius: 8px; padding: .6rem .9rem;
    cursor: pointer; display: flex; align-items: center;
}
.pt-ms-scope-opt.selected { border-color: #1d4ed8; background: #eef4ff; }

/* ---- Sign-in landing (Home/Index) ---- */
.pt-signin-wrap { padding: 2rem 0; min-height: 70vh; }
.pt-signin-grid {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem;
    max-width: 1100px; margin: 0 auto;
}
@media (max-width: 900px) { .pt-signin-grid { grid-template-columns: 1fr; gap: 2rem; } }

.pt-signin-logo { width: 64px; height: auto; }
.pt-signin-brand { font-size: 1.4rem; font-weight: 700; color: #0f2966; line-height: 1.1; }
.pt-signin-tagline { font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; }
.pt-signin-headline { font-size: 2rem; font-weight: 700; color: #0f172a; margin: 0 0 .5rem; }

.pt-signin-cta {
    background: #eef4ff; border: 1px solid #cfe0ff; border-radius: 12px;
    padding: 1rem 1.25rem; margin: 1rem 0 1.5rem;
}
.pt-signin-cta-label { font-weight: 600; margin-bottom: .35rem; color: #0f2966; }
.pt-signin-cta-badge {
    background: #1d4ed8; color: #fff; font-size: .68rem; font-weight: 700;
    padding: .1rem .45rem; border-radius: 4px; letter-spacing: .05em;
}
.pt-signin-cta-body { color: #334155; }

.pt-signin-contact { border-top: 1px solid #e5e7eb; padding-top: 1rem; margin-top: 1rem; }
.pt-signin-contact a { color: #334155; }
.pt-signin-contact a:hover { color: #1d4ed8; }

.pt-signin-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
    padding: 1.75rem 1.5rem; box-shadow: 0 4px 24px rgba(15, 41, 102, .06);
    max-width: 420px;
}
.pt-signin-card h2 { font-weight: 700; color: #0f172a; }

/* ---- Student detail (profile card + tabs) ---- */
.pt-sd-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; }
.pt-sd-card-head {
    background: #f9fafb; border-bottom: 1px solid #e5e7eb;
    padding: .75rem 1rem; border-top-left-radius: 10px; border-top-right-radius: 10px;
}
.pt-sd-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 72px; height: 72px; border-radius: 50%;
    color: #fff; font-weight: 700; font-size: 1.5rem;
}
.pt-sd-avatar-sm {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    color: #fff; font-weight: 700; font-size: .7rem;
}
.pt-sd-section-hd {
    color: #6b7280; font-size: .8rem; text-transform: none;
    margin-top: 1rem; padding: .35rem 0; border-top: 1px solid #f1f5f9;
    text-align: center;
}
.pt-sd-fields { display: grid; grid-template-columns: 40% 60%; row-gap: .25rem; column-gap: .75rem; margin: 0; }
.pt-sd-fields dt { color: #4b5563; font-weight: 600; text-align: right; font-size: .85rem; }
.pt-sd-fields dd { margin: 0; font-size: .9rem; }
.pt-sd-tab-body { background: #fff; border: 1px solid #dee2e6; border-top: none;
    border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; }
.pt-sd-tab-body table { margin-bottom: 0; }

