/* ==========================================================================
   Manickbag Automobiles - Visitor QR System
   Type: Barlow (body) + Barlow Semi Condensed (headings, numbers) - the road-sign / number-plate family
   Colour: showroom navy, signal blue, number-plate amber on a cool paper background
   ========================================================================== */

:root {
    --navy: #0a2a5e;
    --navy-2: #123a7d;
    --blue: #1d5fd1;
    --amber: #f6b400;
    --ink: #0e1a2b;
    --paper: #f2f5fa;
    --line: #dbe2ee;
    --muted: #5b6b82;
    --ok: #0f8a5f;

    --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Barlow Semi Condensed', 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    --bs-body-font-family: var(--font);
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--paper);
    --bs-primary: #0a2a5e;
    --bs-primary-rgb: 10, 42, 94;
    --bs-link-color: #1d5fd1;
    --bs-link-hover-color: #0a2a5e;
    --bs-border-color: var(--line);
}

body { font-family: var(--font); color: var(--ink); background: var(--paper); }
h1, h2, h3, h4 { font-family: var(--font-display); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- Bootstrap tuning ---------- */
.btn { --bs-btn-border-radius: 10px; font-weight: 600; }
.btn-primary {
    --bs-btn-bg: #0a2a5e; --bs-btn-border-color: #0a2a5e;
    --bs-btn-hover-bg: #123a7d; --bs-btn-hover-border-color: #123a7d;
    --bs-btn-active-bg: #0a2a5e; --bs-btn-active-border-color: #0a2a5e;
    --bs-btn-disabled-bg: #0a2a5e; --bs-btn-disabled-border-color: #0a2a5e;
    --bs-btn-focus-shadow-rgb: 29, 95, 209;
}
.btn-outline-primary {
    --bs-btn-color: #0a2a5e; --bs-btn-border-color: #0a2a5e;
    --bs-btn-hover-bg: #0a2a5e; --bs-btn-hover-border-color: #0a2a5e;
    --bs-btn-active-bg: #0a2a5e; --bs-btn-active-border-color: #0a2a5e;
    --bs-btn-focus-shadow-rgb: 29, 95, 209;
}
.form-control, .form-select { background-color: #fff; border-color: #b4c0d6; border-radius: 10px; }
.form-control:focus, .form-select:focus { background-color: #fff; border-color: var(--blue); box-shadow: 0 0 0 .25rem rgba(29, 95, 209, .18); }
.form-label, legend.form-label { font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.form-control-lg { font-size: 1rem; min-height: 52px; padding: .65rem .9rem; }
.input-group-lg > .btn { font-size: 1rem; }
.input-group-lg > .form-control { min-height: 52px; font-size: 1rem; }
.form-check-input { background-color: #fff; border-color: #8c9bb5; }
.form-check-input:checked { background-color: var(--navy); border-color: var(--navy); }
.alert { border-radius: 12px; }
.modal { --bs-modal-bg: #fff; --bs-modal-border-radius: 14px; --bs-modal-border-color: var(--line); }
.badge { font-weight: 600; }
.no-scroll { overflow: hidden; }

/* ==========================================================================
   Visitor form (public page opened by the QR code)
   ========================================================================== */
.public-body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

/* ---------- Company header (visitor + complaint pages) ---------- */
.site-head { position: relative; background: var(--navy); color: #fff; }
.site-inner { max-width: 680px; margin: 0 auto; padding: 0 16px; }
.site-brand { padding: 18px 0 16px; }
.site-brand .site-inner { display: flex; align-items: center; gap: 14px; }
.site-brand .brand-mark { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; font-size: 1.35rem; }
.site-name {
    font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 5.6vw, 2.15rem);
    line-height: 1.08; letter-spacing: .005em; margin: 0; text-wrap: balance;
}
.site-info { background: #0d3573; border-top: 1px solid rgba(255, 255, 255, .12); padding-bottom: 4px; }
.info-list { list-style: none; margin: 0 auto; padding-top: 2px; padding-bottom: 2px; }
.info-list li { display: flex; align-items: center; gap: 10px; min-height: 42px; min-width: 0; }
.info-list li + li { border-top: 1px solid rgba(255, 255, 255, .1); }
.info-list i { flex: 0 0 20px; width: 20px; text-align: center; color: var(--amber); font-size: 1.05rem; }
.info-label { flex: 0 0 92px; color: rgba(255, 255, 255, .72); font-size: .88rem; }
.info-value { min-width: 0; color: #fff; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
a.info-value:hover { text-decoration: underline; }
.lane-line {
    position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
    background: repeating-linear-gradient(90deg, var(--amber) 0 30px, transparent 30px 52px);
}
@media (min-width: 768px) {
    .info-list { display: grid; grid-template-columns: 1fr 1fr 1.5fr; padding-top: 0; padding-bottom: 0; }
    .info-list li {
        display: grid; grid-template-columns: 22px 1fr; grid-template-areas: "i l" "i v";
        column-gap: 10px; align-content: center; min-height: 66px; padding: 10px 16px;
    }
    .info-list li:first-child { padding-left: 0; }
    .info-list li + li { border-top: 0; border-left: 1px solid rgba(255, 255, 255, .12); }
    .info-list i { grid-area: i; align-self: center; }
    .info-label { grid-area: l; flex: none; font-size: .8rem; }
    .info-value { grid-area: v; }
}

.site-main { flex: 1; width: 100%; max-width: 680px; margin: 0 auto; padding: 20px 16px 16px; }
.page-actions { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.btn-complaint {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px;
    background: var(--amber); border: 1px solid #d99e00; border-radius: 10px; color: var(--ink); font-weight: 600;
}
.btn-complaint:hover { background: #e5a800; border-color: #c99100; color: var(--ink); }
.btn-complaint-alt { background: #fff; border-color: #b4c0d6; }
.btn-complaint-alt:hover { background: var(--paper); border-color: var(--navy); }

.form-card, .pass {
    background: #fff; border: 1px solid var(--line); border-radius: 18px;
    box-shadow: 0 1px 2px rgba(10, 42, 94, .06), 0 16px 36px -18px rgba(10, 42, 94, .3);
}
.form-card { padding: 24px 20px 26px; }
@media (min-width: 576px) { .form-card { padding: 32px 32px 34px; } }
.form-title { font-weight: 700; font-size: 1.75rem; margin: 0 0 4px; }
.form-sub { color: var(--muted); margin: 0 0 24px; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip {
    border: 1px solid #c9d3e3; background: #fff; color: var(--ink); border-radius: 999px;
    padding: 6px 13px; min-height: 36px; font-size: .92rem; font-weight: 500;
}
.chip:hover { background: var(--paper); border-color: var(--navy); }
.chip:active { background: #e6ecf7; }

.visit-foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 8px 16px 28px; }

/* Visitor pass shown after submitting */
.pass { animation: pass-in .45s ease-out both; }
@keyframes pass-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pass { animation: none; } }

.pass-main { padding: 28px 24px 22px; }
.pass-check {
    display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
    background: #e3f5ed; color: var(--ok); font-size: 1.8rem; margin-bottom: 14px;
}
.pass h2 { font-weight: 700; font-size: 1.85rem; margin: 0 0 6px; }
.pass-lead { color: var(--muted); margin: 0 0 20px; }
.pass-details { margin: 0; }
.pass-details > div { display: flex; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.pass-details dt { flex: 0 0 76px; color: var(--muted); font-weight: 500; }
.pass-details dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.pass-tear { position: relative; margin: 0 14px; border-top: 2px dashed #c9d3e3; }
.pass-tear::before, .pass-tear::after {
    content: ''; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--paper);
}
.pass-tear::before { left: -26px; }
.pass-tear::after { right: -26px; }

.pass-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 18px 24px 22px;
}
.pass-foot-label { display: block; color: var(--muted); font-size: .85rem; }
.pass-no { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .04em; line-height: 1.1; }

/* ==========================================================================
   Admin login
   ========================================================================== */
.login-body {
    min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: 16px;
    background-color: #050d1f; background-size: cover; background-position: center; background-repeat: no-repeat;
    position: relative;
}
.login-scrim {
    position: fixed; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(4, 10, 26, .3) 0%, rgba(4, 10, 26, 0) 40%, rgba(4, 10, 26, .6) 100%);
}
.login-card {
    position: relative; order: 1; align-self: center; width: 100%; max-width: 420px;
    background: #fff; border-radius: 18px; padding: 26px 24px 28px;
    box-shadow: 0 28px 60px -24px rgba(0, 0, 0, .7);
}
.login-title { font-weight: 700; font-size: 1.7rem; margin: 0 0 4px; }
.login-sub { color: var(--muted); margin: 0 0 20px; }
.login-brand { position: relative; order: 2; margin-top: auto; padding: 32px 4px 8px; color: #fff; }
.login-brand-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 5vw, 3.4rem); line-height: 1.02; margin: 0; max-width: 14ch; text-wrap: balance; }
.login-brand-sub { color: rgba(255, 255, 255, .8); font-size: 1.1rem; margin: 8px 0 0; }
@media (min-width: 768px) {
    .login-body { padding: 24px 28px; }
    .login-card { align-self: flex-end; }          /* top-right corner */
    .login-brand { padding: 32px 12px 20px; }
}

/* ==========================================================================
   Admin shell
   ========================================================================== */
.admin-body { background: var(--paper); }

.sidebar {
    position: fixed; z-index: 1040; top: 0; bottom: 0; left: 0; width: 264px;
    display: flex; flex-direction: column; background: var(--navy); color: #fff;
    transform: translateX(-100%); transition: transform .22s ease;
}
.sidebar.open { transform: none; box-shadow: 0 0 44px rgba(0, 0, 0, .45); }
.sidebar-backdrop { position: fixed; inset: 0; z-index: 1035; background: rgba(4, 10, 26, .55); }
@media (prefers-reduced-motion: reduce) { .sidebar { transition: none; } }

.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 20px 20px 18px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.brand-mark {
    display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px;
    background: var(--amber); color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
}
.brand-text strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.1; }
.brand-text small { color: rgba(255, 255, 255, .7); }

.sidebar-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; padding: 14px 12px; overflow-y: auto; }
.sidebar-nav a {
    display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px;
    color: rgba(255, 255, 255, .84); text-decoration: none; font-weight: 500;
}
.sidebar-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.sidebar-nav a.active { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 3px 0 0 var(--amber); }
.sidebar-nav i { width: 22px; text-align: center; font-size: 1.1rem; }
.sidebar :focus-visible { outline-color: var(--amber); }

.sidebar-foot { padding: 14px 16px 18px; border-top: 1px solid rgba(255, 255, 255, .1); }
.who { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; min-width: 0; }
.who-avatar {
    display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255, 255, 255, .16); font-weight: 600;
}
.who-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }

.admin-main { min-height: 100vh; }
@media (min-width: 992px) {
    .sidebar { transform: none; }
    .admin-main { margin-left: 264px; }
}

.topbar {
    position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line);
}
.topbar-toggle { padding: 4px 10px; }
.topbar-title { font-weight: 700; font-size: 1.45rem; margin: 0; }
.topbar-date { margin-left: auto; color: var(--muted); }
@media (min-width: 992px) { .topbar { padding: 14px 32px; } }

.content { padding: 20px 16px 48px; max-width: 1440px; }
@media (min-width: 992px) { .content { padding: 28px 32px 56px; } }

/* ---------- Count boxes ---------- */
.stat {
    position: relative; height: 100%; display: grid; align-content: start; gap: 2px; overflow: hidden;
    padding: 16px 16px 14px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
}
.stat::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--accent); }
.stat-icon { position: absolute; right: 14px; top: 12px; font-size: 1.35rem; color: var(--accent); }
.stat-label { color: var(--muted); font-weight: 500; padding-right: 30px; }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.05; }
.stat-total { --accent: var(--amber); background: var(--navy); border-color: var(--navy); color: #fff; }
.stat-total .stat-label { color: rgba(255, 255, 255, .78); }
.stat-new { --accent: #e5a100; }
.stat-today { --accent: #1d5fd1; }
.stat-week { --accent: #0f8a7a; }
.stat-month { --accent: #c98a00; }

/* ---------- Panels, filters, tables ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.panel-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap;
    padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.panel-title { font-weight: 700; font-size: 1.25rem; margin: 0; }
.panel-meta { margin: 0; color: var(--muted); }
.panel-foot { padding: 14px 20px; border-top: 1px solid var(--line); }

.range-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.range-pill {
    padding: 5px 14px; border: 1px solid #c9d3e3; border-radius: 999px; color: var(--ink);
    text-decoration: none; font-size: .92rem; font-weight: 500;
}
.range-pill:hover { border-color: var(--navy); background: var(--paper); }
.range-pill.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table > thead > tr > th {
    background: #f6f8fc; color: var(--muted); font-weight: 600; font-size: .88rem; white-space: nowrap;
    border-bottom: 1px solid var(--line);
}
.table > :not(caption) > * > * { padding: .8rem 1rem; }
.pass-tag {
    display: inline-block; padding: 2px 8px; border-radius: 6px; background: #eaf0fa; color: var(--navy);
    font-family: var(--font-display); font-weight: 600; letter-spacing: .03em; white-space: nowrap;
}
.cell-purpose { min-width: 170px; max-width: 300px; overflow-wrap: anywhere; }
.cell-nowrap { white-space: nowrap; }
.cell-name { min-width: 130px; }
.cell-email { display: block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-error {
    max-width: 260px; margin-top: 3px; font-size: .8rem; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.row-actions { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.row-off { opacity: .62; }

.empty-state { padding: 48px 20px; text-align: center; }
.empty-state > i { display: block; font-size: 2.4rem; color: #9aa9c2; margin-bottom: 8px; }

.details-toggle { cursor: pointer; font-weight: 600; color: var(--navy); }
.how-list { padding-left: 1.2rem; }
.how-list li { margin-bottom: .65rem; }

/* Company preview (admin) */
.preview-site { border-radius: 12px; overflow: hidden; }
.preview-site .site-inner { padding: 0 14px; }
.preview-site .site-name { font-size: 1.4rem; }
.preview-site .info-list { display: block; }
.preview-site .info-list li { display: flex; padding: 0; min-height: 40px; }
.preview-site .info-list li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); }

/* QR poster */
.qr-poster { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px 26px; text-align: center; }
.qr-poster-company { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--navy); margin: 0 0 4px; }
.qr-poster-title { font-weight: 700; font-size: clamp(1.7rem, 4vw, 2.2rem); line-height: 1.05; margin: 0; text-wrap: balance; }
.qr-frame {
    width: min(100%, 340px); margin: 26px auto 24px; padding: 12px; background: #fff;
    border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 0 0 7px var(--amber);
}
.qr-frame canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.qr-poster-help { margin: 0 0 6px; font-weight: 500; }
.qr-poster-url { margin: 0; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }


/* ---------- "Whom do you want to meet?" choices ---------- */
.dept-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 576px) { .dept-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dept-opt { position: relative; }
.dept-input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.dept-label {
    display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 8px 10px;
    background: #fff; border: 1.5px solid #b4c0d6; border-radius: 10px;
    font-weight: 600; text-align: center; overflow-wrap: anywhere; cursor: pointer; user-select: none;
}
.dept-label:hover { border-color: var(--navy); background: var(--paper); }
.dept-input:checked + .dept-label { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: inset 0 -4px 0 var(--amber); }
.dept-input:focus-visible + .dept-label { outline: 3px solid var(--blue); outline-offset: 2px; }
.other-wrap[hidden] { display: none; }
.notice-icon { background: #fdf0d0; color: #9a6b00; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend.form-label { float: none; width: auto; padding: 0; }

/* ---------- Departments (accordion) ---------- */
.dept-accordion { --bs-accordion-bg: #fff; --bs-accordion-border-color: var(--line); --bs-accordion-border-radius: 14px; --bs-accordion-inner-border-radius: 13px;
    --bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem rgba(29, 95, 209, .18); --bs-accordion-active-bg: #eef3fb; --bs-accordion-active-color: var(--ink); }
.dept-accordion .accordion-item { margin-bottom: 12px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.dept-accordion .accordion-button { gap: 12px; flex-wrap: wrap; font-weight: 600; }
.dept-title { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.dept-badges { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-right: auto; }
.dept-tool { padding: 16px 20px; border-top: 1px solid var(--line); background: #f8fafd; }
.dept-tool-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }
.dept-tool-foot .form-label { margin-bottom: .25rem; }

/* ---------- Forms & QR codes ---------- */
.page-lead { max-width: 62ch; }
.form-tile-off { background: #fafbfd; }
.form-tile-off .panel-title { color: var(--muted); }
.tile-facts { display: grid; gap: 0; margin: 0 0 18px; }
.tile-facts > div { display: flex; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); }
.tile-facts dt { flex: 0 0 120px; color: var(--muted); font-weight: 500; }
.tile-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.tile-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tile-actions form { margin: 0; }
.dept-check-box { padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.dept-check-box[hidden] { display: none; }

/* ---------- Complaints (admin) ---------- */
.nav-badge { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #e5484d; color: #fff; font-size: .75rem; font-weight: 600; text-align: center; }
.remark-box { padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow-wrap: anywhere; }
.mail-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.mail-line:first-of-type { border-top: 0; padding-top: 0; }
.mail-pair { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.timeline { list-style: none; margin: 0 0 0 6px; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 8px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
    content: ''; position: absolute; left: -27px; top: 5px; width: 12px; height: 12px; border-radius: 50%;
    background: var(--navy); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line);
}

/* ---------- Tables become cards on phones ---------- */
@media (max-width: 767.98px) {
    .table-stack thead { display: none; }
    .table-stack, .table-stack tbody { display: block; }
    .table-stack tbody { padding: 12px; }
    .table-stack tr {
        display: block; margin-bottom: 12px; padding: 6px 14px; background: #fff;
        border: 1px solid var(--line); border-radius: 12px;
    }
    .table-stack tr:last-child { margin-bottom: 0; }
    .table-stack td {
        display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
        padding: 8px 0 !important; border: 0; border-bottom: 1px dashed var(--line); text-align: right;
        max-width: none; min-width: 0;
    }
    .table-stack td:last-child { border-bottom: 0; }
    .table-stack td::before {
        content: attr(data-label); flex: 0 0 34%; text-align: left; color: var(--muted); font-weight: 600; font-size: .9rem;
    }
    .table-stack td.cell-purpose { max-width: none; }
    .table-stack td .row-actions { justify-content: flex-end; }
    .table-stack td > div { text-align: right; }
    .mail-pair { align-items: flex-end; }
    .cell-email { max-width: 100%; }
    .mail-error { max-width: none; display: block; -webkit-line-clamp: unset; text-align: right; }
    .cell-nowrap { white-space: normal; }
    .topbar-title { font-size: 1.25rem; }
}

/* ---------- Print (QR poster) ---------- */
@media print {
    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    body { background: #fff !important; }
    .sidebar, .sidebar-backdrop, .topbar, .no-print, .alert { display: none !important; }
    .admin-main { margin: 0 !important; }
    .content { padding: 0 !important; max-width: none; }
    .content > .row > [class*="col-"] { flex: 0 0 100% !important; width: 100% !important; }
    .qr-poster { border: 0 !important; padding: 48px 0 !important; }
    .qr-frame { width: 460px !important; }
    .qr-poster-title { font-size: 2.6rem; }
}
