/* DrVarun design refresh (2026-09-28), loaded last after AdminLTE / plugins.
   Direction: quiet, premium clinic. Midnight navy + champagne hairlines; the logo red appears only
   as the small mark on case-number tags. Cormorant Garamond for greetings/titles/patient names only;
   Source Sans stays for dense tables and forms. */
:root {
    --dv-ink: #13243A;          /* midnight navy: text, sidebar, primary actions */
    --dv-ink-2: #1C3350;        /* hover / raised navy */
    --dv-muted: #5E6B7A;
    --dv-line: #E3E7EC;
    --dv-bg: #F5F6F8;
    --dv-surface: #FFFFFF;
    --dv-gold: #B08D57;         /* champagne: hairlines and active marks only (not text) */
    --dv-gold-soft: #F4EEE4;
    --dv-brand: #C62F36;        /* logo red: case-tag mark only */
    --dv-danger: #B42318;
    --dv-scan: #FFF6CC;
    --dv-radius: 10px;
    --dv-shadow: 0 1px 2px rgba(19,36,58,.04), 0 6px 18px rgba(19,36,58,.06);
    --dv-serif: "Cormorant Garamond", Georgia, serif;
    --dv-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}

body, .content-wrapper, .right-side { background-color: var(--dv-bg); color: var(--dv-ink); }
body { font-family: "Source Sans Pro", "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--dv-ink-2); }

/* ---------- header: white, the clinic logo, a champagne hairline ---------- */
.skin-red .main-header .navbar,
.skin-red .main-header .logo { background-color: var(--dv-surface); color: var(--dv-ink); }
.skin-red .main-header { box-shadow: 0 1px 0 var(--dv-line); }
.skin-red .main-header .logo { border-right: 1px solid var(--dv-line); }
.skin-red .main-header .logo:hover { background-color: var(--dv-surface); }
.main-header .logo .dv-logo-img { height: 34px; width: auto; margin-top: 8px; }
.skin-red .main-header .navbar .sidebar-toggle,
.skin-red .main-header .navbar .nav > li > a { color: var(--dv-ink); }
.skin-red .main-header .navbar .sidebar-toggle:hover,
.skin-red .main-header .navbar .nav > li > a:hover { background-color: var(--dv-bg); color: var(--dv-ink); }

/* ---------- sidebar: midnight navy, champagne marker on the active item ---------- */
.skin-red .wrapper, .skin-red .main-sidebar, .skin-red .left-side { background-color: var(--dv-ink); }
.skin-red .user-panel { padding: 16px 12px; border-bottom: 1px solid rgba(255,255,255,.07); }
.skin-red .user-panel > .info > p { font-weight: 600; letter-spacing: .01em; }
.skin-red .sidebar-menu > li.header { background: transparent; color: rgba(255,255,255,.45); letter-spacing: .14em; font-size: 11px; padding-top: 18px; }
.skin-red .sidebar-menu > li > a { border-left: 2px solid transparent; color: rgba(255,255,255,.78); padding: 13px 15px; }
.skin-red .sidebar-menu > li > a > .fa { opacity: .7; width: 22px; }
.skin-red .sidebar-menu > li:hover > a,
.skin-red .sidebar-menu > li.active > a,
.skin-red .sidebar-menu > li.menu-open > a { background: var(--dv-ink-2); border-left-color: var(--dv-gold); color: #fff; }
.skin-red .sidebar-menu > li > .treeview-menu { background: #0E1C2E; }
.skin-red .sidebar-menu .treeview-menu > li > a { color: rgba(255,255,255,.65); }
.skin-red .sidebar-menu .treeview-menu > li > a:hover { color: #fff; }
.skin-red .sidebar-form { display: none; } /* the sidebar search never did anything */

/* ---------- page title: the one serif moment inside the app ---------- */
.content-header { padding: 22px 24px 4px; }
.content-header > h1 { font-variant-numeric: lining-nums; font-family: var(--dv-serif); font-size: 34px; font-weight: 600; color: var(--dv-ink); letter-spacing: -.01em; }
.content-header > .breadcrumb { display: none; }
.content { padding: 14px 24px 24px; }

/* ---------- cards ---------- */
.box { border: 0; border-radius: var(--dv-radius); box-shadow: var(--dv-shadow); }
.box-header { padding: 16px 20px; }
.box-header.with-border { border-bottom-color: var(--dv-line); }
.box-header .box-title { font-size: 15px; font-weight: 600; color: var(--dv-ink); letter-spacing: .01em; }
.box-body { padding: 16px 20px; }

/* ---------- forms ---------- */
label { color: var(--dv-ink); font-weight: 600; font-size: 13px; }
label[style*="#b2c423"] { color: var(--dv-muted) !important; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.form-control { border: 1px solid #848F9C; border-radius: 8px; box-shadow: none; height: 40px; color: var(--dv-ink); transition: border-color .15s, box-shadow .15s; }
.form-control::placeholder { color: #8A95A2; }
.form-control:focus, input:focus { background-color: #fff !important; border-color: var(--dv-ink); box-shadow: 0 0 0 3px rgba(176,141,87,.28); outline: none; }
#SearchBarocde:focus { background-color: var(--dv-scan) !important; } /* barcode scanner field stays easy to spot */
.form-control[disabled], .form-control[readonly] { background-color: var(--dv-bg); color: var(--dv-ink); }
.glyphicon-asterisk { font-size: 0; }
.glyphicon-asterisk::after { content: " *"; font-size: 13px; color: var(--dv-danger); font-family: inherit; }
.select2-container .select2-choice, .select2-container--default .select2-selection--single { height: 40px !important; border-radius: 8px !important; border-color: #848F9C !important; }

/* ---------- buttons ---------- */
.btn { border-radius: 8px; font-weight: 600; letter-spacing: .01em; padding: 8px 16px; transition: background-color .15s, box-shadow .15s; }
.btn-primary { background-color: var(--dv-ink); border-color: var(--dv-ink); }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active { background-color: var(--dv-ink-2) !important; border-color: var(--dv-ink-2) !important; }
.btn-primary[disabled] { background-color: #A7B1BE; border-color: #A7B1BE; opacity: 1; }
.btn-default { background: #fff; border-color: #848F9C; color: var(--dv-ink); }
.btn-default:hover { background: var(--dv-bg); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--dv-gold); outline-offset: 2px; }

/* ---------- tables: airy rows, hairlines, quiet headers ---------- */
.table { color: var(--dv-ink); }
.table > thead > tr > th { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--dv-muted); border-bottom: 1px solid var(--dv-line) !important; background: transparent; padding: 12px 10px; }
.table > tbody > tr > td, .table > tbody > tr > th, .table > tfoot > tr > td, .table > tfoot > tr > th { padding: 13px 10px; vertical-align: middle; }
.table-bordered { border: 0; }
.table-bordered > thead > tr > th, .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tbody > tr > th,
.table-bordered > tfoot > tr > td, .table-bordered > tfoot > tr > th { border: 0; border-bottom: 1px solid var(--dv-line); }
.table-striped > tbody > tr:nth-of-type(odd) { background-color: transparent; }
.table > tbody > tr { transition: background-color .12s; }
.table-hover > tbody > tr:hover, .dv-rows > tbody > tr:hover { background-color: #F7F8FA; }
.dv-rows > tbody > tr[data-href] { cursor: pointer; }
.dv-num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.dv-name { font-weight: 600; color: var(--dv-ink); text-transform: capitalize; }
.dv-name a { color: var(--dv-ink); }
.table tfoot tr.dv-total td { background: var(--dv-gold-soft); font-weight: 600; border-bottom: 0; }

/* row actions: words, not icons; delete last and in red */
.dv-actions { text-align: right; min-width: 140px; }
.dv-actions .dv-act { display: inline-block; padding: 4px 8px; border-radius: 6px; color: var(--dv-ink-2); font-size: 13px; font-weight: 600; }
.dv-actions .dv-act:hover { background: var(--dv-bg); text-decoration: none; }
button.dv-act { border: 0; background: transparent; line-height: 1.4; cursor: pointer; }
.dv-actions .dv-act.danger { color: var(--dv-danger); }
.dv-actions .dv-act.danger:hover { background: #FDECEA; }
.dv-print { display: inline-flex; gap: 4px; margin-bottom: 3px; }
.dv-print a { font-size: 12px; font-weight: 600; padding: 3px 9px; border: 1px solid var(--dv-line); border-radius: 6px; color: var(--dv-ink); white-space: nowrap; }
.dv-print a:hover { border-color: var(--dv-gold); text-decoration: none; }

/* ---------- signature: the case-number tag ---------- */
.dv-case {
    display: inline-block; position: relative; padding: 2px 9px 2px 13px;
    font-family: var(--dv-mono); font-weight: 500; font-size: 12.5px; letter-spacing: .03em;
    color: var(--dv-ink); background: #fff; border: 1px solid #CDD4DC; border-radius: 5px;
    font-variant-numeric: tabular-nums;
}
.dv-case::before { content: ""; position: absolute; left: 4px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--dv-brand); }
.dv-case-lg { font-size: 15px; padding: 4px 12px 4px 18px; }
.dv-case-lg::before { left: 7px; width: 5px; height: 5px; margin-top: -2.5px; }
.dv-sub { color: var(--dv-muted); font-size: 12px; }
.dv-more-toggle { display: none; }

/* ---------- patient summary (case view) ---------- */
.dv-patient {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px;
    background: var(--dv-surface); border-radius: var(--dv-radius); padding: 22px 26px; margin-bottom: 20px;
    box-shadow: var(--dv-shadow); position: relative; overflow: hidden;
}
.dv-patient::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--dv-gold); }
.dv-patient-name { font-family: var(--dv-serif); font-size: 36px; font-weight: 600; line-height: 1; text-transform: capitalize; margin: 0 0 8px; letter-spacing: -.01em; }
.dv-patient-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; color: var(--dv-muted); font-size: 14px; }
.dv-patient-meta b { color: var(--dv-ink); font-weight: 600; }
.dv-patient-meta a { color: var(--dv-ink-2); font-weight: 600; }
.dv-patient-meta .dv-dot { width: 3px; height: 3px; border-radius: 50%; background: #B7C0CA; }
.dv-due { margin-left: auto; text-align: right; padding-left: 26px; border-left: 1px solid var(--dv-line); }
.dv-due-label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--dv-muted); }
.dv-due-amt { font-family: var(--dv-serif); font-size: 34px; font-weight: 600; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.dv-due-amt.has-due { color: var(--dv-danger); }
.dv-due-note { font-size: 12px; color: var(--dv-muted); }

/* ---------- tabs ---------- */
.nav-tabs.navtab-custom { border-bottom: 1px solid var(--dv-line); background: var(--dv-surface); border-radius: var(--dv-radius) var(--dv-radius) 0 0; padding: 0 10px; }
.nav-tabs.navtab-custom > li > a { border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--dv-muted); font-weight: 600; margin: 0; padding: 15px 10px 13px; letter-spacing: .01em; }
.nav-tabs.navtab-custom > li > a:hover { background: transparent; color: var(--dv-ink); }
.nav-tabs.navtab-custom > li.active > a,
.nav-tabs.navtab-custom > li.active > a:hover,
.nav-tabs.navtab-custom > li.active > a:focus { border: 0; border-bottom: 2px solid var(--dv-ink); color: var(--dv-ink); background: transparent; }
.nav-tabs.nav-justified.navtab-custom > li > a { border-bottom-color: transparent; }
.nav-tabs.nav-justified.navtab-custom > .active > a { border-bottom: 2px solid var(--dv-ink); }
.dv-count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: 10px; background: var(--dv-bg); color: var(--dv-muted); font-size: 11px; line-height: 18px; font-variant-numeric: tabular-nums; }
.active > a > .dv-count { background: var(--dv-gold-soft); color: var(--dv-ink); }

/* ---------- pager summary ---------- */
.dv-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; width: 100%; }
.dv-pager .pagination { margin: 0; }
.pagination > li > a, .pagination > li > span { color: var(--dv-ink); border-color: var(--dv-line); }
.pagination > .active > a, .pagination > .active > a:hover { background: var(--dv-ink); border-color: var(--dv-ink); }
.dv-showing { color: var(--dv-muted); }
.dv-showing b { color: var(--dv-ink); }

/* ---------- mobile ---------- */
@media (max-width: 767px) {
    .content { padding: 10px 12px; }
    .content-header { padding: 16px 14px 0; }
    .content-header > h1 { font-size: 28px; }
    .skin-red .main-header .logo { display: none; } /* one header bar on phones */
    .dv-filters:not(.dv-open) .dv-more { display: none; }
    .dv-more-toggle { display: inline-block !important; margin: 4px 0 6px 30px; font-weight: 600; }
    .nav-tabs.nav-justified.navtab-custom { display: flex; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
    .nav-tabs.nav-justified.navtab-custom > li { display: block; float: none; width: auto; flex: 0 0 auto; }
    .dv-cards thead { display: none; }
    .dv-cards, .dv-cards tbody, .dv-cards tr, .dv-cards td, .dv-cards th { display: block; width: 100%; }
    .dv-cards tr { background: #fff; border-radius: var(--dv-radius); box-shadow: var(--dv-shadow); margin-bottom: 12px; padding: 14px 16px; }
    .dv-cards td, .dv-cards th { border: 0 !important; padding: 2px 0 !important; }
    .dv-cards td[data-label]::before { content: attr(data-label) " · "; color: var(--dv-muted); font-size: 12px; }
    .dv-cards .dv-hide-sm { display: none; }
    .dv-cards .dv-name { font-size: 17px; margin: 6px 0 2px; }
    .dv-cards .dv-actions { text-align: left; padding-top: 8px !important; }
    .dv-actions .dv-act, .dv-print a { padding: 12px 12px; min-height: 44px; } /* 44px touch targets */
    .dv-patient { padding: 18px 18px; }
    .dv-patient-name { font-size: 30px; }
    .dv-due { margin-left: 0; text-align: left; padding-left: 0; border-left: 0; padding-top: 12px; border-top: 1px solid var(--dv-line); width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* initials avatar (replaces the squashed clinic logo used as a user photo) */
.dv-avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--dv-gold-soft); color: var(--dv-ink); font-weight: 700; font-size: 13px; letter-spacing: .02em; }
.user-panel .dv-avatar { width: 42px; height: 42px; font-size: 15px; background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(176,141,87,.6); }
.navbar-nav > .user-menu > a { display: flex; align-items: center; gap: 10px; padding-top: 8px; padding-bottom: 8px; }
.dv-search-btns { white-space: nowrap; }
/* card header: title left, action right (AdminLTE's clearfix ::before/::after would otherwise act as flex items and centre the title) */
.box-header.dv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.box-header.dv-head::before, .box-header.dv-head::after { display: none; }
/* patient filters: a grid instead of 6 fixed Bootstrap columns, so Search/Clear never spill out of the card */
@media (min-width: 768px) {
    .dv-filters > .col-lg-12 { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 18px; align-items: end; width: auto; margin: 0 15px; padding: 14px 20px 4px !important; } /* margin cancels the .row gutter */
    .dv-filters > .col-lg-12 > [class*="col-"] { width: auto; float: none; padding: 0 !important; min-width: 0; }
    .dv-filters .dv-search-btns { display: flex; gap: 8px; }
}
@media (min-width: 1200px) {
    .dv-filters > .col-lg-12 { grid-template-columns: repeat(5, minmax(0, 1fr)) auto; }
}
th.dv-num { text-align: right; }
/* =================== APPOINTMENTS =================== */
.dv-appt-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; background: var(--dv-surface); border-radius: var(--dv-radius); box-shadow: var(--dv-shadow); padding: 14px 18px; margin-bottom: 18px; }
.dv-seg { display: inline-flex; background: var(--dv-bg); border-radius: 9px; padding: 3px; }
.dv-seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 7px; font-weight: 600; font-size: 13px; color: var(--dv-muted); }
.dv-seg button.on { background: #fff; color: var(--dv-ink); box-shadow: 0 1px 2px rgba(19,36,58,.12); }
.dv-daterange { display: flex; align-items: center; gap: 8px; }
.dv-daterange .dv-nav { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--dv-line); background: #fff; color: var(--dv-ink); }
.dv-daterange .dv-today { height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--dv-line); background: #fff; font-weight: 600; font-size: 13px; }
.dv-range-title { font-family: var(--dv-serif); font-size: 26px; font-weight: 600; margin: 0 6px 0 10px; font-variant-numeric: lining-nums; white-space: nowrap; }
.dv-appt-toolbar .dv-spacer { flex: 1; }

.dv-appt-layout { display: grid; grid-template-columns: 250px 1fr; gap: 18px; align-items: start; }
.dv-rail { display: flex; flex-direction: column; gap: 18px; }
.dv-card { background: var(--dv-surface); border-radius: var(--dv-radius); box-shadow: var(--dv-shadow); padding: 18px; }
.dv-card h4 { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--dv-muted); margin: 0 0 12px; }
.dv-today-num { font-family: var(--dv-serif); font-size: 44px; font-weight: 600; line-height: 1; font-variant-numeric: lining-nums; }
.dv-today-sub { color: var(--dv-muted); font-size: 13px; margin-top: 4px; }
.dv-next { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--dv-line); font-size: 13px; }
.dv-next b { display: block; font-size: 15px; color: var(--dv-ink); }
.dv-doclist { list-style: none; margin: 0; padding: 0; }
.dv-doclist li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 0 -10px; border-radius: 8px; cursor: pointer; font-size: 14px; border-left: 2px solid transparent; }
.dv-doclist li:hover { background: var(--dv-bg); }
.dv-doclist li.on { background: var(--dv-gold-soft); border-left-color: var(--dv-gold); font-weight: 600; }
.dv-doclist .dv-swatch { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px; }
.dv-doclist .dv-n { margin-left: auto; color: var(--dv-muted); font-size: 12px; font-variant-numeric: tabular-nums; }

.dv-cal { background: var(--dv-surface); border-radius: var(--dv-radius); box-shadow: var(--dv-shadow); padding: 6px 6px 10px; position: relative; }
.dv-cal .fc { font-family: inherit; color: var(--dv-ink); }
.dv-cal .fc td, .dv-cal .fc th, .dv-cal .fc-unthemed .fc-divider, .dv-cal .fc-unthemed thead, .dv-cal .fc-unthemed .fc-row, .dv-cal .fc-unthemed tbody { border-color: var(--dv-line); }
.dv-cal .fc-unthemed td.fc-today { background: #FBF8F2; }
.dv-cal .fc-head-container th { border-width: 0 0 1px; }
.dv-cal .fc-day-header { padding: 10px 0 12px; font-weight: 600; }
.dv-cal .dv-dh-dow { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dv-muted); }
.dv-cal .dv-dh-num { display: inline-block; font-family: var(--dv-serif); font-size: 24px; font-weight: 600; line-height: 1.2; font-variant-numeric: lining-nums; }
.dv-cal .fc-day-header.fc-today .dv-dh-num { color: #fff; background: var(--dv-ink); border-radius: 50%; width: 36px; height: 36px; line-height: 36px; font-size: 20px; margin-top: 2px; }
.dv-cal .fc-axis { color: var(--dv-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.dv-cal .fc-time-grid .fc-slats .fc-minor td { border-top-color: transparent; }
.dv-cal .fc-time-grid .fc-slats td { height: 27px; }
.dv-cal .fc-now-indicator { border-color: var(--dv-brand); }
.dv-cal .fc-now-indicator-arrow { border-left-color: var(--dv-brand) !important; }
.dv-cal .fc-event { border: 0; border-left: 3px solid; border-radius: 6px; padding: 3px 7px; color: var(--dv-ink); font-size: 12px; line-height: 1.35; box-shadow: 0 1px 2px rgba(19,36,58,.06); cursor: pointer; }
.dv-cal .fc-event .fc-time { font-weight: 600; font-size: 11px; color: var(--dv-muted); font-variant-numeric: tabular-nums; }
.dv-cal .fc-event .dv-ev-name { font-weight: 600; font-size: 12.5px; }
.dv-cal .fc-event .dv-ev-sub { color: var(--dv-muted); font-size: 11.5px; }
.dv-cal .fc-event:hover { box-shadow: 0 3px 10px rgba(19,36,58,.12); }
.dv-cal .fc-bgevent { background: #EEF0F3; opacity: .7; }
.dv-cal-empty { position: absolute; left: 50%; top: 45%; transform: translate(-50%,-50%); text-align: center; background: rgba(255,255,255,.92); padding: 18px 26px; border-radius: 12px; box-shadow: var(--dv-shadow); }
.dv-cal-empty b { display: block; font-family: var(--dv-serif); font-size: 22px; }

/* list view */
.dv-daygroup { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--dv-muted); background: var(--dv-bg); }
.dv-dot-doc { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.dv-status { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 11.5px; font-weight: 600; background: var(--dv-bg); color: var(--dv-muted); }
.dv-status.done { background: #E8F3EC; color: #1E6B3A; }
.dv-status.noshow { background: #FDF1F0; color: #9A2A1F; }

/* booking side panel */
.dv-sheet-backdrop { position: fixed; inset: 0; background: rgba(12,24,40,.38); z-index: 1040; }
.dv-sheet { position: fixed; top: 0; right: 0; bottom: 0; width: 460px; max-width: 100%; background: #fff; z-index: 1050; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(12,24,40,.18); }
.dv-sheet-head { padding: 22px 26px 14px; border-bottom: 1px solid var(--dv-line); }
.dv-sheet-head h3 { font-family: var(--dv-serif); font-size: 30px; font-weight: 600; margin: 0; }
.dv-sheet-body { padding: 18px 26px; overflow-y: auto; flex: 1; }
.dv-sheet-foot { padding: 14px 26px; border-top: 1px solid var(--dv-line); display: flex; gap: 10px; justify-content: flex-end; }
.dv-sheet .dv-field { margin-bottom: 16px; }
.dv-sheet .dv-field label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dv-muted); margin-bottom: 6px; }
.dv-pick { display: flex; align-items: center; gap: 10px; border: 1px solid #848F9C; border-radius: 8px; padding: 8px 12px; }
.dv-pick .dv-pick-main { font-weight: 600; }
.dv-pick .dv-case { margin-left: auto; }
.dv-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.dv-chips button { border: 1px solid var(--dv-line); background: #fff; border-radius: 18px; padding: 6px 13px; font-size: 13px; font-weight: 600; color: var(--dv-ink); }
.dv-chips button.on { background: var(--dv-ink); border-color: var(--dv-ink); color: #fff; }
.dv-warn { display: flex; gap: 10px; background: #FFF7E8; border-left: 3px solid #B7791F; border-radius: 8px; padding: 10px 12px; font-size: 13px; color: #6B4A12; margin-bottom: 16px; }
.dv-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

@media (max-width: 991px) {
    .dv-appt-layout { grid-template-columns: 1fr; }
    .dv-rail { flex-direction: row; overflow-x: auto; }
}
@media (max-width: 767px) {
    .dv-appt-toolbar { padding: 12px; gap: 10px; }
    .dv-range-title { font-size: 22px; margin-left: 4px; }
    .dv-rail .dv-card.dv-today-card { display: none; }
    .dv-rail .dv-card { padding: 10px 12px; flex: 1; }
    .dv-doclist { display: flex; gap: 6px; overflow-x: auto; white-space: nowrap; }
    .dv-doclist li { margin: 0; border: 1px solid var(--dv-line); border-radius: 18px; padding: 6px 12px; flex: 0 0 auto; }
    .dv-doclist li.on { border-color: var(--dv-gold); }
    .dv-rail .dv-card h4 { display: none; }
    .dv-sheet { width: 100%; }
    .dv-fab { position: fixed; right: 18px; bottom: 22px; z-index: 900; border-radius: 28px !important; padding: 14px 20px !important; box-shadow: 0 8px 22px rgba(19,36,58,.3); }
}
/* =================== CONSENT FORMS (tablet pages) =================== */
.gu, .gu-line { font-family: "Noto Sans Gujarati", "Source Sans Pro", sans-serif; }
.gu-line { color: var(--dv-muted); font-size: .94em; display: block; margin-top: 2px; }
.dv-strong { font-weight: 600; }
.kiosk { min-height: 100vh; background: var(--dv-bg); padding: 34px 44px 60px; max-width: 1100px; margin: 0 auto; color: var(--dv-ink); font-family: "Source Sans Pro", "Segoe UI", sans-serif; }
.kiosk-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; min-height: 48px; }
.kiosk-head img { height: 48px; }
.kiosk h1 { font-family: var(--dv-serif); font-size: 48px; font-weight: 600; margin: 0 0 6px; }
.kiosk .lead { color: var(--dv-muted); font-size: 17px; margin: 0 0 26px; }
.kiosk .step { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--dv-muted); margin: 26px 0 10px; }
.kiosk .step b { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--dv-ink); color: #fff; align-items: center; justify-content: center; margin-right: 8px; font-size: 12px; }
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.formcard { background: #fff; border-radius: 14px; box-shadow: var(--dv-shadow); padding: 22px 22px 20px; border: 2px solid transparent; position: relative; min-height: 150px; width: 100%; font: inherit; color: inherit; cursor: pointer; }
.formcard.on { border-color: var(--dv-ink); }
.formcard .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--dv-gold-soft); color: var(--dv-ink); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 12px; }
.formcard h3 { font-family: var(--dv-serif); font-size: 24px; font-weight: 600; margin: 0 0 4px; line-height: 1.1; }
.formcard .gu { color: var(--dv-muted); font-size: 14px; }
.formcard .meta { position: absolute; right: 18px; top: 18px; font-size: 12px; color: var(--dv-muted); }
.bigsearch { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #848F9C; border-radius: 12px; padding: 14px 18px; font-size: 18px; font-weight: 400; margin: 0; }
.bigsearch i { color: #8A95A2; }
.bigpick { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 12px; padding: 16px 18px; box-shadow: var(--dv-shadow); font-size: 18px; }
.bigpick b { font-size: 20px; }
.bigpick .dv-case { font-size: 15px; margin-left: auto; }
.kiosk .btn-primary { height: 54px; padding: 0 28px; font-size: 17px; border-radius: 12px; }
.paper { background: #fff; border-radius: 14px; box-shadow: var(--dv-shadow); padding: 34px 40px; }
.paper-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--dv-line); padding-bottom: 18px; margin-bottom: 20px; }
.paper h2 { font-family: var(--dv-serif); font-size: 34px; font-weight: 600; margin: 0; line-height: 1.1; font-variant-numeric: lining-nums; }
.paper-head .gu { font-size: 17px; color: var(--dv-muted); margin-top: 4px; display: block; }
.paper-head .gu.gu-title-only { font-size: 26px; color: var(--dv-ink); }
.lang { display: inline-flex; background: var(--dv-bg); border-radius: 9px; padding: 3px; }
.lang button { border: 0; background: transparent; padding: 7px 12px; border-radius: 7px; font-weight: 600; color: var(--dv-muted); white-space: nowrap; }
.lang button.on { background: #fff; color: var(--dv-ink); box-shadow: 0 1px 2px rgba(19,36,58,.12); }
.paper p, .paper li { font-size: 16px; line-height: 1.6; }
.paper ol { padding-left: 24px; }
.paper ol li { margin-bottom: 9px; }
.fillrow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 6px 0 18px; }
.paper .dv-field label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dv-muted); margin-bottom: 6px; }
.paper .form-control { height: 46px; font-size: 16px; border-radius: 10px; }
.paper textarea.form-control { height: auto; }
.opts { display: flex; gap: 8px; flex-wrap: wrap; }
.opts label { display: inline-flex !important; align-items: center; gap: 8px; border: 1px solid var(--dv-line); border-radius: 22px; padding: 9px 14px; font-weight: 600 !important; font-size: 14px !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--dv-ink) !important; cursor: pointer; }
.opts label.on { border-color: var(--dv-ink); background: var(--dv-gold-soft); }
.sigpad { border: 1.5px dashed #9AA4B0; border-radius: 12px; height: 190px; position: relative; background: #FCFCFD; margin-top: 6px; }
.sigpad .line { position: absolute; left: 24px; right: 24px; bottom: 42px; border-top: 1px solid #C9D1DA; pointer-events: none; }
.sigpad .hint { position: absolute; left: 24px; bottom: 14px; font-size: 13px; color: var(--dv-muted); pointer-events: none; }
.sigpad .clear { position: absolute; right: 14px; top: 12px; font-size: 13px; font-weight: 600; color: var(--dv-ink-2); z-index: 2; }
.formfoot { display: flex; gap: 12px; justify-content: flex-end; align-items: center; margin-top: 26px; }
.progress-rail { display: flex; gap: 6px; margin-bottom: 18px; }
.progress-rail span { flex: 1; height: 4px; border-radius: 2px; background: var(--dv-line); }
.progress-rail span.on { background: var(--dv-gold); }
@media (max-width: 767px) {
    .kiosk { padding: 18px 14px 40px; }
    .kiosk h1 { font-size: 36px; }
    .formgrid, .fillrow { grid-template-columns: 1fr; }
    .paper { padding: 20px 16px; }
    .paper-head { flex-direction: column; }
    /* logo + language switch on one row under the title */
    .paper-head > div:last-child { text-align: left !important; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .paper-head > div:last-child img { height: 34px !important; }
    .paper-head .lang { margin-top: 0 !important; }
    .lang button { padding: 9px 10px; }
    .paper h2 { font-size: 26px; }
}
/* =================== LOGIN =================== */
.dv-login { min-height: 100vh; display: flex; background: var(--dv-surface); font-family: "Source Sans Pro", "Segoe UI", sans-serif; color: var(--dv-ink); }

/* left: midnight panel with the implant line drawing and a greeting */
.dv-login-art {
    flex: 1.15; position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(1200px 600px at 70% 30%, rgba(176,141,87,.16), transparent 60%),
        radial-gradient(900px 700px at 10% 110%, rgba(56,92,140,.45), transparent 60%),
        linear-gradient(160deg, #13243A 0%, #0C1828 100%);
    display: flex; flex-direction: column; justify-content: space-between; padding: 56px 64px;
}

.dv-eyebrow { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.62); position: relative; z-index: 1; }
.dv-eyebrow::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--dv-gold); vertical-align: middle; margin-right: 12px; }
.dv-greeting { position: relative; z-index: 1; }
.dv-greeting h2 { font-variant-numeric: lining-nums; font-family: var(--dv-serif); font-weight: 500; font-size: 64px; line-height: 1; margin: 0 0 14px; letter-spacing: -.01em; color: #fff; }
.dv-greeting p { font-size: 16px; color: rgba(255,255,255,.7); margin: 0; letter-spacing: .02em; }
.dv-implant { position: absolute; right: 6%; top: 50%; transform: translateY(-52%); height: 78%; max-height: 640px; width: auto; opacity: .95; }
.dv-implant .dv-stroke { fill: none; stroke: rgba(255,255,255,.78); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.dv-implant .dv-gold { fill: none; stroke: var(--dv-gold); stroke-width: 1.3; stroke-linecap: round; }
.dv-implant .dv-ring { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 1; }
.dv-implant .dv-draw { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: dv-draw 2.4s cubic-bezier(.45,0,.2,1) .2s forwards; }
.dv-implant .dv-draw.d2 { animation-delay: .7s; }
.dv-implant .dv-draw.d3 { animation-delay: 1.1s; }
@keyframes dv-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .dv-implant .dv-draw { stroke-dashoffset: 0; } }

/* right: the form */
.dv-login-panel { flex: 0 0 500px; display: flex; flex-direction: column; justify-content: center; padding: 56px 64px; background: var(--dv-surface); }
.dv-login-panel img.dv-logo { width: 230px; height: auto; margin: 0 0 48px -6px; }
.dv-login-panel h1 { font-family: var(--dv-serif); font-size: 42px; font-weight: 600; margin: 0 0 6px; color: var(--dv-ink); letter-spacing: -.01em; }
.dv-login-panel .dv-lead { color: var(--dv-muted); margin: 0 0 32px; font-size: 15px; }
.dv-field { margin-bottom: 18px; }
.dv-field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dv-muted); margin-bottom: 7px; }
.dv-field .form-control { height: 48px; font-size: 16px; border-radius: 10px; padding: 10px 14px; background: #FBFBFC; }
.dv-pw { position: relative; }
.dv-pw .form-control { padding-right: 70px; }
.dv-pw button { position: absolute; right: 8px; top: 9px; height: 30px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--dv-ink-2); font-weight: 600; font-size: 13px; }
.dv-pw button:hover { background: var(--dv-bg); }
.dv-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 26px; }
.dv-check { display: inline-flex; align-items: center; gap: 9px; font-weight: 400; font-size: 14px; color: var(--dv-ink); text-transform: none; letter-spacing: 0; margin: 0; cursor: pointer; }
.dv-check input { width: 17px; height: 17px; accent-color: var(--dv-ink); margin: 0; }
.dv-signin { height: 52px; font-size: 16px; border-radius: 10px; letter-spacing: .03em; box-shadow: 0 6px 16px rgba(19,36,58,.22); }
.dv-alert { border: 0; border-left: 3px solid var(--dv-danger); background: #FDF1F0; color: #7A1A12; border-radius: 8px; padding: 12px 14px; margin-bottom: 20px; font-size: 14px; }
.dv-login-foot { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--dv-line); color: var(--dv-muted); font-size: 12.5px; }

@media (max-width: 991px) {
    .dv-login { flex-direction: column; }
    .dv-login-art { flex: 0 0 auto; padding: 36px 24px 30px; min-height: 250px; }
    .dv-greeting h2 { font-size: 42px; margin-bottom: 8px; }
    .dv-eyebrow { display: none; }
    .dv-login-art { justify-content: flex-end; min-height: 220px; }
    .dv-implant { height: 125%; right: -10%; top: 58%; opacity: .32; }
    .dv-login-panel { flex: 1; padding: 32px 24px 40px; justify-content: flex-start; }
    .dv-login-panel img.dv-logo { width: 190px; margin-bottom: 28px; }
    .dv-login-panel h1 { font-size: 34px; }
    .dv-pw button { height: 44px; top: 2px; min-width: 56px; }
    .dv-check { min-height: 44px; }
    .dv-check input { width: 22px; height: 22px; }
}

/* =================== NO SIDEWAYS SCROLLING (all pages) =================== */
/* Wide tables scroll inside their own card instead of pushing the page sideways. */
:where(.box, .box-body, .card-box, .tab-pane, .col-lg-12, .col-md-12, .col-sm-12):has(> table.table:not(.dv-cards)) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
:where(.box, .box-body, .card-box, .tab-pane, .col-lg-12, .col-md-12, .col-sm-12):has(> table.table:not(.dv-cards)) > table.table { margin-bottom: 0; }
@media (min-width: 768px) {
    .dv-cards-wrap, :where(.box, .box-body, .col-lg-12):has(> table.dv-cards) { overflow-x: auto; }
}
/* List headers built from fixed Bootstrap columns (title · pager · search · page size · Export · Add New):
   lay them out as one wrapping toolbar so buttons never spill out of the card. */
@media (min-width: 768px) {
    .box-header:has(> [class*="col-"]), .box-header > .row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
    .box-header:has(> [class*="col-"])::before, .box-header:has(> [class*="col-"])::after,
    .box-header > .row::before, .box-header > .row::after { display: none; }
    .box-header > .row { margin: 0; }
    .box-header > [class*="col-"], .box-header > .row > [class*="col-"] { width: auto; float: none; padding: 0; min-width: 0; flex: 0 1 auto; }
    .box-header > [class*="col-"]:first-child, .box-header > .row > [class*="col-"]:first-child { flex: 1 1 auto; }
    .box-header .pagination { margin: 0; }
    .box-header input.form-control[placeholder="Search"] { width: 200px; }
}
/* tabs scroll sideways inside their bar on tablets too (9 tabs don't fit under 992px) */
@media (max-width: 991px) {
    .nav-tabs.nav-justified.navtab-custom { display: flex; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
    .nav-tabs.nav-justified.navtab-custom > li { display: block; float: none; width: auto; flex: 0 0 auto; }
}
/* phones: nothing may be wider than the screen */
@media (max-width: 767px) {
    .content-wrapper, .content { max-width: 100vw; }
    .box-header .pagination { display: flex; flex-wrap: wrap; }
    .box-header input.form-control, .box-header select.form-control { max-width: 100%; }
    img { max-width: 100%; height: auto; }
}
/* tables that don't fit (set by Scripts/dv-tables.js): tighter first, then one card per row */
table.table.dv-compact > thead > tr > th, table.table.dv-compact > tbody > tr > td, table.table.dv-compact > tfoot > tr > td { padding: 7px 7px; font-size: 12.5px; white-space: normal; }
table.table.dv-auto-cards, table.table.dv-auto-cards > tbody, table.table.dv-auto-cards > tfoot { display: block; width: 100%; border: 0; background: transparent; }
table.table.dv-auto-cards > thead { display: block; }
table.table.dv-auto-cards > thead > tr.dv-label-row { display: none; }
table.table.dv-auto-cards > thead > tr:not(.dv-label-row) { display: block; }
table.table.dv-auto-cards > thead > tr:not(.dv-label-row) > * { display: block; border: 0; }
table.table.dv-auto-cards > tbody > tr, table.table.dv-auto-cards > tfoot > tr {
    display: block; background: var(--dv-surface) !important; border: 1px solid var(--dv-line); border-radius: var(--dv-radius);
    padding: 10px 14px; margin: 0 0 10px; box-shadow: none;
}
table.table.dv-auto-cards > tfoot > tr { background: var(--dv-bg) !important; }
table.table.dv-auto-cards > tbody > tr > td, table.table.dv-auto-cards > tfoot > tr > td {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border: 0 !important;
    padding: 5px 0 !important; text-align: right; white-space: normal; overflow-wrap: anywhere; min-height: 0;
}
table.table.dv-auto-cards > tbody > tr > td + td, table.table.dv-auto-cards > tfoot > tr > td + td { border-top: 1px dashed var(--dv-line) !important; }
table.table.dv-auto-cards td[data-label]::before { content: attr(data-label); flex: 0 0 auto; max-width: 48%; text-align: left; color: var(--dv-muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
table.table.dv-auto-cards td:not([data-label]) { justify-content: flex-start; text-align: left; }
table.table.dv-auto-cards td:empty { display: none; }
table.table.dv-auto-cards td .btn, table.table.dv-auto-cards td a { min-height: 36px; display: inline-flex; align-items: center; }
@media (min-width: 768px) {
    table.table.dv-auto-cards > tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
    table.table.dv-auto-cards > tbody > tr { margin: 0; }
}
/* iPhone Safari gives date inputs a fixed minimum width and centred text, so they run off the card */
input[type="date"].form-control, input[type="time"].form-control { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; max-width: 100%; text-align: left; }
input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value { text-align: left; }

/* =================== NEW PATIENT: menu, self-registration link, registration form =================== */
.dropdown-menu.dv-menu { width: 360px; max-width: calc(100vw - 32px); padding: 6px; border: 0; border-radius: 12px; box-shadow: 0 14px 36px rgba(19,36,58,.2); }
.dropdown-menu.dv-menu > li > a { display: flex; gap: 14px; padding: 12px 14px; border-radius: 9px; color: var(--dv-ink); white-space: normal; }
.dropdown-menu.dv-menu > li > a:hover, .dropdown-menu.dv-menu > li > a:focus { background: var(--dv-bg); }
.dropdown-menu.dv-menu .divider { margin: 4px 10px; background: var(--dv-line); }
.dv-mi { flex: 0 0 38px; height: 38px; border-radius: 10px; background: var(--dv-gold-soft); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.dropdown-menu.dv-menu b { display: block; font-size: 15px; }
.dv-md { display: block; font-size: 12.5px; color: var(--dv-muted); line-height: 1.35; margin-top: 2px; }

.dv-reglink { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.dv-reglink.compact { flex-direction: column; align-items: stretch; gap: 16px; }
.dv-reglink.compact .dv-qr { align-self: center; }
.dv-reglink-main { flex: 1; min-width: 240px; }
.dv-reglink label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dv-muted); margin-bottom: 6px; }
.dv-qr { background: #fff; padding: 14px; border-radius: 12px; border: 1px solid var(--dv-line); line-height: 0; }
.dv-qr img { width: 190px; height: 190px; image-rendering: pixelated; }
.dv-linkbox { display: flex; align-items: center; gap: 10px; background: var(--dv-bg); border: 1px solid var(--dv-line); border-radius: 10px; padding: 12px 14px; font-family: var(--dv-mono); font-size: 15px; }
.dv-linkbox span { flex: 1; overflow-wrap: anywhere; }
.dv-linkbox i { color: var(--dv-muted); }
.dv-btnrow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.dv-reglink.compact .dv-btnrow { display: grid; grid-template-columns: 1fr 1fr; }
.dv-btn-wa, .dv-btn-wa:hover, .dv-btn-wa:focus { background: #1E7E45; border-color: #1E7E45; color: #fff; }
.dv-regpage { padding: 26px 28px; max-width: 980px; }
.dv-regpage-title { font-family: var(--dv-serif); font-size: 28px; font-weight: 600; margin: 0 0 4px; }
.dv-regpage-lead { font-size: 14px; margin: 0 0 18px; }
.dv-regpage hr { border-color: var(--dv-line); margin: 24px 0 14px; }
.dv-howto { margin: 6px 0 0; padding-left: 18px; color: var(--dv-muted); font-size: 14px; line-height: 1.7; }
.dv-poster { display: none; }

/* registration form (tablet / phone) */
.dv-req::after { content: " *"; color: var(--dv-danger); }
.dv-seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dv-seg2 button { height: 46px; border-radius: 10px; border: 1px solid #848F9C; background: #fff; font-size: 16px; font-weight: 600; color: var(--dv-ink); }
.dv-seg2 button.on { border: 2px solid var(--dv-ink); background: var(--dv-gold-soft); }
.dv-err { color: var(--dv-danger); font-size: 13px; margin-top: 5px; display: block; }
.paper .form-control.bad { border-color: var(--dv-danger); }
.dv-prefill-note { display: flex; gap: 10px; align-items: flex-start; background: var(--dv-gold-soft); border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-bottom: 18px; }
.dv-prefill-note i { margin-top: 3px; }
.dv-pre { float: right; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: #8A6A3A; font-weight: 700; }
.dv-done { text-align: center; padding: 56px 36px; }
.dv-done h2 { font-family: var(--dv-serif); font-size: 40px; font-weight: 600; margin: 0 0 8px; }
.dv-done p { color: var(--dv-muted); font-size: 17px; }
.dv-done .btn { height: 50px; line-height: 36px; border-radius: 12px; padding: 6px 22px; margin: 4px; }
.dv-tick { width: 64px; height: 64px; border-radius: 50%; background: var(--dv-gold-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 28px; color: var(--dv-ink); margin-bottom: 18px; }
.formgrid.dv-three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 991px) { .formgrid.dv-three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) {
    .formgrid.dv-three { grid-template-columns: 1fr; }
    /* language switch gets its own full-width row under the logo so it never runs off the card */
    .paper-head > div:last-child { flex-wrap: wrap; }
    .paper-head .lang { width: 100%; display: grid; grid-template-columns: 1.4fr 1fr 1fr; }
    .paper-head .lang button { padding: 9px 6px; font-size: 14px; }
    .dv-done { padding: 36px 18px; }
    .dv-done h2 { font-size: 32px; }
}

/* "Print QR poster": a small table card (A6) for the reception desk */
@media print {
    @page { size: A6 portrait; margin: 8mm; }
    body.dv-printing-poster * { visibility: hidden; }
    .dv-poster, .dv-poster * { visibility: visible !important; }
    .dv-poster { display: block !important; position: fixed; left: 0; top: 0; width: 100%; text-align: center; color: #13243A; font-family: "Source Sans Pro", sans-serif; }
    .dv-poster h1 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 30pt; font-weight: 600; margin: 0 0 2mm; }
    .dv-poster p { font-size: 11pt; margin: 0 0 3mm; }
    .dv-poster .dv-poster-qr { width: 62mm; height: 62mm; image-rendering: pixelated; margin: 2mm auto 3mm; display: block; }
    .dv-poster .dv-poster-url { font-family: "IBM Plex Mono", monospace; font-size: 9.5pt; }
    .dv-poster .dv-poster-logo { height: 12mm; margin-bottom: 4mm; }
}
