/* QuizFlow design system (Phase 1).
   Tokens + shared components (.ds-*) for every page, and a gentle refresh of
   Bootstrap's look inside the staff/admin workspace (body.staff-portal).
   Colours come from the theme layer (--qf-*), so the user's accent and dark mode still apply. */

:root {
    /* Type: Inter for Latin, Noto Sans Tamil for Tamil (Inter has no Tamil glyphs, so Tamil falls through) */
    --ds-font: 'Inter', 'Noto Sans Tamil', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ds-text-xs: 12px;
    --ds-text-sm: 13px;
    --ds-text-md: 14px;
    --ds-text-lg: 16px;
    --ds-text-xl: 20px;
    --ds-text-2xl: 28px;

    /* 8px spacing scale */
    --ds-space-1: 4px;
    --ds-space-2: 8px;
    --ds-space-3: 12px;
    --ds-space-4: 16px;
    --ds-space-5: 24px;
    --ds-space-6: 32px;
    --ds-space-7: 48px;

    --ds-radius-sm: 8px;
    --ds-radius-md: 10px;
    --ds-radius-lg: 14px;
    --ds-radius-pill: 999px;

    --ds-shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
    --ds-shadow-md: 0 6px 18px rgba(15, 23, 42, .08);

    /* Surfaces (fall back if the theme layer is missing) */
    --ds-bg: #F6F7F9;
    --ds-surface: var(--qf-card-bg, #fff);
    --ds-border: var(--qf-border, #E6E8EC);
    --ds-divider: #F1F2F4;
    --ds-heading: var(--qf-heading, #111827);
    --ds-text: var(--qf-text, #374151);
    --ds-muted: var(--qf-muted, #6B7280);
    --ds-accent: var(--qf-accent, #4F46E5);
    --ds-accent-rgb: var(--qf-accent-rgb, 79, 70, 229);
    --ds-accent-soft: rgba(var(--ds-accent-rgb), .12);

    /* Status: text / background pairs that pass 4.5:1 */
    --ds-success: #047857; --ds-success-bg: #ECFDF3;
    --ds-warning: #B54708; --ds-warning-bg: #FFFAEB;
    --ds-danger:  #B42318; --ds-danger-bg:  #FEF3F2;
    --ds-info:    #175CD3; --ds-info-bg:    #EFF8FF;
}

html[data-theme="dark"] {
    --ds-bg: #0b0f17;
    --ds-divider: rgba(255, 255, 255, .06);
    --ds-shadow-md: 0 6px 18px rgba(0, 0, 0, .4);
    --ds-success: #6CE9A6; --ds-success-bg: rgba(18, 183, 106, .14);
    --ds-warning: #FEC84B; --ds-warning-bg: rgba(247, 144, 9, .14);
    --ds-danger:  #FDA29B; --ds-danger-bg:  rgba(240, 68, 56, .14);
    --ds-info:    #84CAFF; --ds-info-bg:    rgba(46, 144, 250, .14);
}

/* Tamil needs taller lines so vowel signs aren't clipped */
:lang(ta) { line-height: 1.6; }

/* ---------- Components ---------- */

/* Page header: title + subtitle left, actions right */
.ds-page-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--ds-space-4); margin-bottom: var(--ds-space-5); }
.ds-page-header h1, .ds-page-title { margin: 0; font-size: clamp(22px, 2.2vw, var(--ds-text-2xl)); font-weight: 700; letter-spacing: -.02em; line-height: 1.3; color: var(--ds-heading); }
.ds-page-sub { margin: 6px 0 0; font-size: var(--ds-text-md); color: var(--ds-muted); }
.ds-page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ds-space-2); }

/* Card */
.ds-card { background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-lg); padding: 20px; min-width: 0; }
.ds-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-3); margin-bottom: var(--ds-space-3); }
.ds-card-title { margin: 0; font-size: var(--ds-text-lg); font-weight: 600; color: var(--ds-heading); }
.ds-card-link { font-size: var(--ds-text-sm); font-weight: 600; text-decoration: none; }
a.ds-card { color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.ds-card:hover { border-color: rgba(var(--ds-accent-rgb), .55); box-shadow: var(--ds-shadow-md); transform: translateY(-1px); }

/* Grids */
.ds-grid { display: grid; gap: var(--ds-space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.ds-split { display: flex; flex-wrap: wrap; gap: 20px; }
.ds-split > .ds-main { flex: 2 1 480px; min-width: 0; }
.ds-split > .ds-side { flex: 1 1 300px; min-width: 0; }

/* Stat tile */
.ds-stat { display: flex; flex-direction: column; gap: 6px; }
.ds-stat-label { font-size: var(--ds-text-sm); font-weight: 500; color: var(--ds-muted); }
.ds-stat-value { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: var(--ds-heading); font-variant-numeric: tabular-nums; }
.ds-stat-note { display: flex; align-items: center; gap: var(--ds-space-2); font-size: 12.5px; color: var(--ds-muted); }

/* Badge (status) and delta */
.ds-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--ds-radius-pill); font-size: var(--ds-text-xs); font-weight: 600; line-height: 1.5; white-space: nowrap; background: rgba(127, 140, 160, .14); color: var(--ds-text); }
.ds-badge-success { background: var(--ds-success-bg); color: var(--ds-success); }
.ds-badge-warning { background: var(--ds-warning-bg); color: var(--ds-warning); }
.ds-badge-danger  { background: var(--ds-danger-bg);  color: var(--ds-danger); }
.ds-badge-info    { background: var(--ds-info-bg);    color: var(--ds-info); }
.ds-badge-accent  { background: var(--ds-accent-soft); color: var(--ds-heading); }

/* Chips (filters) */
.ds-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.ds-chips::-webkit-scrollbar { display: none; }
.ds-chip { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; border-radius: var(--ds-radius-pill); font-size: var(--ds-text-sm); font-weight: 500; color: var(--ds-text); background: var(--ds-surface); border: 1px solid var(--ds-border); text-decoration: none; white-space: nowrap; cursor: pointer; }
.ds-chip:hover { color: var(--ds-heading); border-color: var(--ds-muted); }
.ds-chip.is-active, .ds-chip[aria-pressed="true"] { background: var(--ds-heading); border-color: var(--ds-heading); color: var(--ds-surface); }

/* Segmented control */
.ds-segment { display: inline-flex; padding: 3px; border-radius: var(--ds-radius-md); background: rgba(127, 140, 160, .12); }
.ds-segment > * { height: 32px; padding: 0 12px; border: 0; border-radius: var(--ds-radius-sm); background: transparent; color: var(--ds-muted); font-size: var(--ds-text-sm); font-weight: 600; display: inline-flex; align-items: center; text-decoration: none; }
.ds-segment > .is-active { background: var(--ds-surface); color: var(--ds-heading); box-shadow: var(--ds-shadow-sm); }

/* Table */
.ds-table-wrap { overflow-x: auto; }
.ds-table { width: 100%; border-collapse: collapse; font-size: var(--ds-text-md); }
.ds-table th { padding: 10px 12px; text-align: left; font-size: var(--ds-text-xs); font-weight: 600; color: var(--ds-muted); white-space: nowrap; border-bottom: 1px solid var(--ds-border); }
.ds-table td { padding: 12px; border-bottom: 1px solid var(--ds-divider); color: var(--ds-text); vertical-align: middle; }
.ds-table tbody tr:hover { background: var(--qf-hover-bg, #F9FAFB); }
.ds-table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* List rows inside cards */
.ds-list > * { display: flex; align-items: center; gap: var(--ds-space-3); padding: 12px 0; border-top: 1px solid var(--ds-divider); }
.ds-list > *:first-child { border-top: 0; }
.ds-list-title { font-size: var(--ds-text-md); font-weight: 600; color: var(--ds-heading); }
.ds-list-sub { font-size: var(--ds-text-sm); color: var(--ds-muted); margin-top: 2px; }

/* Progress bar */
.ds-progress { height: 6px; border-radius: var(--ds-radius-pill); background: var(--ds-divider); overflow: hidden; }
.ds-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--ds-accent); }

/* Empty state */
.ds-empty { text-align: center; padding: var(--ds-space-7) var(--ds-space-4); color: var(--ds-muted); }
.ds-empty > .bi { display: block; font-size: 28px; opacity: .5; margin-bottom: var(--ds-space-2); }
.ds-empty-title { font-size: var(--ds-text-lg); font-weight: 600; color: var(--ds-heading); margin-bottom: 4px; }

/* Skeleton loading */
.ds-skeleton { display: block; border-radius: var(--ds-radius-sm); background: linear-gradient(90deg, rgba(127,140,160,.12) 25%, rgba(127,140,160,.22) 50%, rgba(127,140,160,.12) 75%); background-size: 200% 100%; animation: ds-shimmer 1.2s infinite linear; min-height: 12px; }
@keyframes ds-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .ds-skeleton { animation: none; } }

/* ---------- Workspace refresh (staff/admin pages only) ---------- */
body.staff-portal { font-family: var(--qf-font, var(--ds-font)); -webkit-font-smoothing: antialiased; }
body.staff-portal h1, body.staff-portal h2, body.staff-portal h3 { letter-spacing: -.015em; }
body.staff-portal .btn { border-radius: var(--ds-radius-md); font-weight: 600; }
body.staff-portal .btn-sm { border-radius: var(--ds-radius-sm); }
body.staff-portal .form-control, body.staff-portal .form-select { border-radius: var(--ds-radius-md); border-color: var(--ds-border); }
body.staff-portal .form-control:focus, body.staff-portal .form-select:focus { border-color: rgba(var(--ds-accent-rgb), .6); box-shadow: 0 0 0 3px rgba(var(--ds-accent-rgb), .15); }
body.staff-portal .card { border-color: var(--ds-border); border-radius: var(--ds-radius-lg); }
body.staff-portal .table > thead th { font-size: var(--ds-text-xs); font-weight: 600; color: var(--ds-muted); }
body.staff-portal .badge { font-weight: 600; }
body.staff-portal .dropdown-menu { border-color: var(--ds-border); border-radius: var(--ds-radius-md); box-shadow: var(--ds-shadow-md); padding: 6px; }
body.staff-portal .dropdown-item { border-radius: 6px; font-size: var(--ds-text-md); }
body.staff-portal .modal-content { border-radius: var(--ds-radius-lg); border-color: var(--ds-border); }
body.staff-portal :focus-visible { outline: 2px solid var(--ds-accent); outline-offset: 2px; }

/* ---------- Phase 2: app shell (staff/admin) ---------- */
/* Light sidebar, grouped, quiet icons; the accent only marks the current page */
body.staff-portal .staff-sidebar,
body.staff-portal .offcanvas.qf-offcanvas .staff-sidebar { background: var(--ds-surface); border-right: 1px solid var(--ds-border); color: var(--ds-text); }
body.staff-portal .staff-sidebar .staff-sidebar-header { color: var(--ds-muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; margin: 18px 12px 4px 22px; }
body.staff-portal .staff-sidebar .staff-sidebar-toggle { border-color: var(--ds-border); background: transparent; color: var(--ds-muted); border-radius: var(--ds-radius-sm); }
body.staff-portal .staff-sidebar .staff-sidebar-toggle:hover { color: var(--ds-heading); border-color: var(--ds-muted); }
body.staff-portal .staff-sidebar .sidebar-section-title { color: var(--ds-muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; padding: 16px 22px 6px; }
body.staff-portal .staff-sidebar .nav-link { position: relative; min-height: 38px; margin: 1px 10px; padding: 6px 10px; gap: 10px; border-radius: var(--ds-radius-sm); font-size: 13.5px; font-weight: 500; color: var(--ds-text); background: transparent; }
body.staff-portal .staff-sidebar .nav-link .nav-icon-wrap { width: 22px; height: 22px; background: transparent; color: var(--ds-muted); font-size: 15px; }
body.staff-portal .staff-sidebar .nav-link:hover { background: rgba(127, 140, 160, .1); color: var(--ds-heading); }
body.staff-portal .staff-sidebar .nav-link.active { background: var(--ds-accent-soft); color: var(--ds-heading); font-weight: 600; }
body.staff-portal .staff-sidebar .nav-link.active::before { display: none; }
body.staff-portal .staff-sidebar .nav-link.active .nav-icon-wrap { color: color-mix(in srgb, var(--ds-accent) 75%, var(--ds-heading)); }
body.staff-portal .staff-sidebar .sidebar-footer-card { background: transparent; border: 1px solid var(--ds-border); border-radius: var(--ds-radius-md); }
body.staff-portal .staff-sidebar .sidebar-footer-card .text-white { color: var(--ds-heading) !important; }
body.staff-portal .staff-sidebar .sidebar-footer-card .text-white-50 { color: var(--ds-muted) !important; }
body.staff-portal .staff-sidebar .sidebar-footer-card .text-info { color: var(--ds-muted) !important; }

/* Top bar: white, hairline border, search in the middle */
body.staff-portal .staff-navbar { background: var(--ds-surface); border-bottom: 1px solid var(--ds-border); box-shadow: none; }
body.staff-portal .staff-navbar .brand-name { font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: var(--ds-heading); }
.ds-search-trigger { flex: 0 1 420px; min-width: 0; display: none; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 12px; border: 1px solid var(--ds-border); border-radius: var(--ds-radius-md); background: var(--qf-hover-bg, #F9FAFB); color: var(--ds-muted); font-size: var(--ds-text-md); text-align: left; }
.ds-search-trigger:hover { border-color: var(--ds-muted); color: var(--ds-text); }
.ds-search-trigger span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-kbd { flex: none; font-size: 11px; font-weight: 600; padding: 1px 6px; border: 1px solid var(--ds-border); border-radius: 6px; background: var(--ds-surface); color: var(--ds-muted); font-family: inherit; }
@media (min-width: 768px) { .ds-search-trigger { display: inline-flex; } }
.ds-search-icon-btn { display: inline-flex; }
@media (min-width: 768px) { .ds-search-icon-btn { display: none !important; } }

/* Command palette */
.ds-palette .modal-dialog { max-width: 600px; margin-top: 10vh; }
.ds-palette .modal-content { overflow: hidden; }
.ds-palette-input { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--ds-border); color: var(--ds-muted); }
.ds-palette-input input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 16px; color: var(--ds-heading); }
.ds-palette-list { max-height: 360px; overflow-y: auto; padding: 6px; margin: 0; list-style: none; }
.ds-palette-group { padding: 10px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ds-muted); }
.ds-palette-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--ds-radius-sm); color: var(--ds-text); text-decoration: none; font-size: var(--ds-text-md); }
.ds-palette-item .bi { width: 18px; color: var(--ds-muted); }
.ds-palette-item.is-active, .ds-palette-item:hover { background: var(--ds-accent-soft); color: var(--ds-heading); }
.ds-palette-empty { padding: 24px; text-align: center; color: var(--ds-muted); font-size: var(--ds-text-sm); }
.ds-palette-foot { display: flex; gap: 14px; padding: 8px 16px; border-top: 1px solid var(--ds-border); font-size: 12px; color: var(--ds-muted); }
body.staff-portal .ds-palette-input input:focus-visible { outline: none; }

/* ---- Student sidebar: same light shell as staff ---- */
body.student-portal .sidebar { background: var(--qf-card-bg); border-right: 1px solid var(--qf-border); }
body.student-portal .sidebar .sidebar-section-title { color: var(--qf-muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; }
body.student-portal .sidebar .nav-link { color: var(--qf-text); font-size: 13.5px; font-weight: 500; min-height: 38px; border-radius: 8px; }
body.student-portal .sidebar .nav-link .nav-icon-wrap { color: var(--qf-muted); }
body.student-portal .sidebar .nav-link:hover { background: rgba(127,140,160,.1); color: var(--qf-heading); }
body.student-portal .sidebar .nav-link.active { background: rgba(var(--qf-accent-rgb), .12); color: var(--qf-heading); font-weight: 600; }
body.student-portal .sidebar .nav-link.active::before { display: none; }
body.student-portal .sidebar .nav-link.active .nav-icon-wrap { color: color-mix(in srgb, var(--qf-accent) 75%, var(--qf-heading)); }
body.student-portal .sidebar .sidebar-footer-card { background: transparent; border: 1px solid var(--qf-border); }
body.student-portal .sidebar .sidebar-footer-card .text-white { color: var(--qf-heading) !important; }
body.student-portal .sidebar .sidebar-footer-card .text-white-50, body.student-portal .sidebar .sidebar-footer-card .text-secondary { color: var(--qf-muted) !important; }
body.student-portal .navbar-custom { border-bottom: 1px solid var(--qf-border); box-shadow: none; }

/* ---------- Phase 6: inner pages (Students, Staff, Batches, Submissions, Reports, Logs, Settings…) ---------- */
/* These pages share Bootstrap markup, so the design system is applied to that markup here. */
body.staff-portal .workspace-content h2.fw-bold.mb-1,
body.staff-portal .workspace-content .catalog-header h1 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 700 !important; letter-spacing: -.02em; line-height: 1.3; color: var(--ds-heading); }
body.staff-portal .workspace-content h2.fw-bold.mb-1 + p,
body.staff-portal .workspace-content h2.fw-bold.mb-1 + .text-muted { font-size: var(--ds-text-md); color: var(--ds-muted) !important; }

/* Cards: hairline border, no shadow, one radius; drop coloured left-border strips */
body.staff-portal .workspace-content .card { border: 1px solid var(--ds-border) !important; box-shadow: none !important; border-radius: var(--ds-radius-lg) !important; background: var(--ds-surface); }
body.staff-portal .workspace-content .card.border-start.border-4 { border-left-width: 1px !important; }
body.staff-portal .workspace-content .card > .card-header { background: transparent !important; border-bottom: 1px solid var(--ds-border); padding: 14px 20px; font-size: var(--ds-text-lg); font-weight: 600 !important; color: var(--ds-heading); }
body.staff-portal .workspace-content .card > .card-header .bi { color: var(--ds-muted) !important; }
body.staff-portal .workspace-content .card > .card-body.p-4 { padding: 20px !important; }
body.staff-portal .workspace-content .card > .card-body > .table-responsive { border-radius: var(--ds-radius-lg); }

/* Filter bars (GET forms rendered as cards) */
body.staff-portal .workspace-content form.card .form-label,
body.staff-portal .workspace-content form.card label { font-size: var(--ds-text-xs); font-weight: 600; color: var(--ds-muted); margin-bottom: 4px; }
body.staff-portal .workspace-content form.card .form-control,
body.staff-portal .workspace-content form.card .form-select { height: 38px; font-size: var(--ds-text-md); }

/* Tables */
body.staff-portal .workspace-content .table { --bs-table-bg: transparent; --bs-table-hover-bg: var(--qf-hover-bg, #F9FAFB); margin-bottom: 0; font-size: var(--ds-text-md); color: var(--ds-text); }
body.staff-portal .workspace-content .table > thead > tr > th,
body.staff-portal .workspace-content .table > thead.table-light > tr > th { background: transparent !important; padding: 10px 16px; font-size: var(--ds-text-xs); font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ds-muted) !important; border-bottom: 1px solid var(--ds-border); white-space: nowrap; }
body.staff-portal .workspace-content .table > tbody > tr > td { padding: 12px 16px; border-color: var(--ds-divider); vertical-align: middle; }
body.staff-portal .workspace-content .table > tbody > tr:last-child > td { border-bottom: 0; }

/* Badges: soft status colours instead of solid fills */
body.staff-portal .workspace-content .badge { font-weight: 600; font-size: 11.5px; padding: .3em .65em; border-radius: var(--ds-radius-pill); }
body.staff-portal .workspace-content .badge.bg-success { background: var(--ds-success-bg) !important; color: var(--ds-success) !important; }
body.staff-portal .workspace-content .badge.bg-danger  { background: var(--ds-danger-bg) !important;  color: var(--ds-danger) !important; }
body.staff-portal .workspace-content .badge.bg-warning { background: var(--ds-warning-bg) !important; color: var(--ds-warning) !important; }
body.staff-portal .workspace-content .badge.bg-info    { background: var(--ds-info-bg) !important;    color: var(--ds-info) !important; }
body.staff-portal .workspace-content .badge.bg-primary { background: var(--ds-accent-soft) !important; color: var(--ds-heading) !important; }
body.staff-portal .workspace-content .badge.bg-secondary,
body.staff-portal .workspace-content .badge.bg-light   { background: rgba(127, 140, 160, .14) !important; color: var(--ds-text) !important; }

/* Pagination */
body.staff-portal .workspace-content .pagination { gap: 4px; }
body.staff-portal .workspace-content .page-link { border-radius: var(--ds-radius-sm) !important; border-color: var(--ds-border); color: var(--ds-text); font-size: var(--ds-text-sm); min-width: 34px; text-align: center; }
body.staff-portal .workspace-content .page-item.active .page-link { background: var(--ds-heading); border-color: var(--ds-heading); color: var(--ds-surface); }

/* Nav tabs used on settings/report pages */
body.staff-portal .workspace-content .nav-tabs { border-bottom-color: var(--ds-border); }
body.staff-portal .workspace-content .nav-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; color: var(--ds-muted); font-weight: 600; font-size: var(--ds-text-md); }
body.staff-portal .workspace-content .nav-tabs .nav-link.active { color: var(--ds-heading); background: transparent; border-bottom-color: var(--ds-accent); }

/* ---------- Phase 7: polish ---------- */
/* Respect "reduce motion": no lifts, slides or count-up animations */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    a.ds-card:hover, .xl-folder:hover { transform: none; }
}
/* Dark mode: keep soft badges and hover rows readable */
html[data-theme="dark"] body.staff-portal .workspace-content .table > tbody > tr:hover > td { background: rgba(255, 255, 255, .03); }
html[data-theme="dark"] .ds-badge { background: rgba(255, 255, 255, .08); }
html[data-theme="dark"] .ds-search-trigger { background: rgba(255, 255, 255, .04); }
/* Phones: no sideways scrolling from long words, tables scroll inside their card */
@media (max-width: 575px) {
    body.staff-portal .workspace-content { overflow-wrap: anywhere; }
    .ds-page-header { margin-bottom: var(--ds-space-4); }
    .ds-page-actions { width: 100%; }
    .ds-segment { flex: 1; } .ds-segment > * { flex: 1; justify-content: center; }
    .ds-card, .qd-card { padding: 16px; }
    body.staff-portal .workspace-content .table > thead > tr > th,
    body.staff-portal .workspace-content .table > tbody > tr > td { padding: 10px 12px; }
}
/* Print: plain white pages without app chrome colours */
@media print {
    .ds-card, body.staff-portal .workspace-content .card { border-color: #ddd !important; break-inside: avoid; }
    .ds-search-trigger, .ds-search-icon-btn { display: none !important; }
}
