/* =============================================================================
   CTM Data - site styles
   Works with the Telerik UI for ASP.NET Core (Kendo) "bootstrap-main" theme.
   Layout is fluid: no fixed page widths; content uses the full window on desktop and
   stacks on phones.

   Building blocks for pages (see CONVERSION-GUIDE-CORE.md):
     .card / .card__header / .card__body     panels
     .filter-bar  .field  .field--wide  .filter-bar__actions   report/graph parameters
     .form-grid   .form-section                                 data-entry forms
     .table-wrap  (wrap every grid)                             horizontal scroll on phones
     .chart-wrap  (wrap every RadHtmlChart)
     .kpi-grid .kpi                                             dashboard figures
     .btn .btn-primary .btn-secondary .btn-danger .btn-ghost .btn-sm
     .alert .alert--info|success|warning|danger
     .muted .num .no-print .print-only .stack .row-actions
   ============================================================================= */

:root {
    --brand: #3B2A8C;
    --brand-700: #2E2070;
    --brand-50: #EEEBFA;
    --accent: #F5A524;
    --bg: #F4F5F9;
    --surface: #FFFFFF;
    --text: #1F2433;
    --muted: #667085;
    --border: #E3E6EE;
    --success: #1B8A5A;
    --success-bg: #E7F6EE;
    --warning: #9A6700;
    --warning-bg: #FFF4DB;
    --danger: #C4302B;
    --danger-bg: #FDECEB;
    --info: #1F6FB2;
    --info-bg: #E8F2FB;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
    --gutter: clamp(12px, 2.2vw, 28px);
    --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.5 var(--font);
}

.app { min-height: 100vh; display: flex; flex-direction: column; }

a { color: var(--brand); }
a:hover { color: var(--brand-700); }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--text); }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .75em; }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 8px; top: 8px; z-index: 10000; background: #fff; padding: 8px 12px; border-radius: 6px; }

/* ---------------------------------------------------------------- header ---- */
.app-header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--brand);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.app-header__inner {
    display: flex; align-items: center; gap: 16px;
    padding: 0 var(--gutter);
    min-height: 56px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand img { border-radius: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }

/* Navigation: groups are <details> drop-downs; on phones the whole menu collapses behind a button. */
.app-nav { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; }
.app-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; flex-wrap: wrap; }
.app-nav__link, .app-nav__group > summary {
    display: block; color: rgba(255,255,255,.92); text-decoration: none; padding: 16px 12px; font-weight: 500;
    cursor: pointer; list-style: none; white-space: nowrap;
}
.app-nav__group > summary::-webkit-details-marker { display: none; }
.app-nav__group > summary::after { content: "\25BE"; margin-left: 6px; font-size: .75em; opacity: .8; }
.app-nav__link:hover, .app-nav__group > summary:hover, .app-nav__group[open] > summary { background: rgba(255,255,255,.12); color: #fff; }
.app-nav__link.is-current, .app-nav__group.is-current > summary { box-shadow: inset 0 -3px 0 var(--accent); color: #fff; }
.app-nav__group { position: relative; }
.app-nav__menu {
    position: absolute; top: 100%; left: 0; z-index: 3000; min-width: 240px; max-height: 75vh; overflow-y: auto;
    list-style: none; margin: 0; padding: 6px 0; background: var(--surface); border: 1px solid var(--border);
    border-radius: 0 0 8px 8px; box-shadow: 0 10px 24px rgba(16,24,40,.18);
}
.app-nav__menu a { display: block; padding: 8px 16px; color: var(--text); text-decoration: none; white-space: nowrap; }
.app-nav__menu a:hover { background: var(--brand-50); color: var(--brand); }
.app-nav__menu a.is-current { font-weight: 600; color: var(--brand); background: var(--brand-50); }
.app-nav__toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 6px; padding: 6px 10px; font: inherit; cursor: pointer; }
.user-box { display: flex; align-items: center; gap: 12px; margin-left: auto; white-space: nowrap; }
.user-box__who { display: flex; flex-direction: column; text-align: right; line-height: 1.2; }
.user-box__name { font-weight: 600; font-size: .9rem; }
.user-box__meta { font-size: .75rem; opacity: .8; }
.user-box__link { color: #fff; opacity: .9; font-size: .85rem; text-decoration: none; padding: 6px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; }
.user-box__link:hover { color: #fff; opacity: 1; background: rgba(255,255,255,.12); }

/* ------------------------------------------------------------------ main ---- */
.app-main { flex: 1 0 auto; width: 100%; padding: 18px var(--gutter) 32px; }

.page-header {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.page-title { font-size: 1.5rem; margin: 0; letter-spacing: -.01em; }
.page-subtitle { margin: 4px 0 0; color: var(--muted); }
.page-header__aside { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; }

.app-footer { padding: 14px var(--gutter); color: var(--muted); font-size: .8rem; border-top: 1px solid var(--border); background: var(--surface); }

/* ----------------------------------------------------------------- cards ---- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; min-width: 0; }
.card__header { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.card__header h2, .card__header h3 { margin: 0; }
.card__body { padding: 16px; }
.card__body--flush { padding: 0; }
.card__footer { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.grid-2 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.stack > * + * { margin-top: 12px; }

/* ------------------------------------------------------ report parameters ---- */
.filter-bar {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 14px 16px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 4px; min-width: 150px; flex: 0 1 auto; }
.field--wide { min-width: 240px; flex: 1 1 240px; }
.field--narrow { min-width: 90px; }
.field > label, .field__label { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.field--check { flex-direction: row; align-items: center; gap: 6px; min-width: 0; padding-bottom: 6px; }
.field--check label { text-transform: none; font-size: .9rem; color: var(--text); letter-spacing: 0; font-weight: 500; }
.filter-bar__actions { display: flex; gap: 8px; align-items: flex-end; margin-left: auto; }
.filter-bar .RadComboBox, .filter-bar .RadPicker, .filter-bar .riTextBox { max-width: 100%; }

/* ------------------------------------------------------------ data entry ---- */
.form-grid { display: grid; gap: 12px 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.form-grid .field { min-width: 0; }
.form-grid .field--full { grid-column: 1 / -1; }
/* Boxes in a row line up even when one label wraps to two lines: each field shares the row's
   label / box / hint tracks, and a short label sits just above its box. */
@supports (grid-template-rows: subgrid) {
    .form-grid > .field:not(.field--full):not(.field--check):not(:has(> :nth-child(4 of :not(script)))) {
        display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 4px; align-content: start;
    }
    .form-grid > .field:not(.field--full):not(.field--check):not(:has(> :nth-child(4 of :not(script)))) > label:first-child { align-self: end; }
    /* A check box or a button beside such fields sits on the line of their boxes. */
    .form-grid > .field--check { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 4px; }
    .form-grid > .field--check > :first-child, .form-grid > .field--actions > :first-child { grid-row: 2; align-self: center; justify-self: start; }
}
.form-section { margin-bottom: 18px; }
.form-section > h2 { font-size: 1rem; color: var(--brand); border-bottom: 2px solid var(--brand-50); padding-bottom: 6px; margin-bottom: 12px; }
/* A titled group of check boxes (Admin > Properties: Daily Numbers fields). */
.field-group-title { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin: 14px 0 6px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 6px 18px; }
.check-grid label { display: flex; align-items: center; gap: 6px; font-size: .9rem; cursor: pointer; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 12px; }
.form-actions--sticky { position: sticky; bottom: 0; background: linear-gradient(to top, var(--bg) 70%, transparent); padding: 12px 0; }
.form-actions--start { justify-content: flex-start; margin: 0 0 16px; }
.field--actions { justify-content: flex-end; }
.hint { font-size: .8rem; color: var(--muted); }
.detail-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 14px; }
.detail-list dt { color: var(--muted); font-size: .85rem; font-weight: 600; }
.detail-list dd { margin: 0; }
.card__header--split { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.check-inline { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; cursor: pointer; }

input[type=text], input[type=password], input[type=email], input[type=tel], input[type=number], input[type=date], select, textarea {
    font: inherit; color: var(--text); background: #fff;
    border: 1px solid #CDD2DE; border-radius: 6px; padding: 7px 10px; width: 100%; max-width: 100%;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(59, 42, 140, .25); border-color: var(--brand); }
.input-num { text-align: right; }
.req::after { content: " *"; color: var(--danger); }

/* ---------------------------------------------------------------- buttons ---- */
.btn, input[type=submit].btn, input[type=button].btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    font: 600 .9rem/1 var(--font); padding: 9px 16px; border-radius: 6px; border: 1px solid transparent;
    cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-700); color: #fff; }
.btn-secondary { background: #fff; color: var(--text); border-color: #CDD2DE; }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #A52622; color: #fff; }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--border); }
.btn-ghost:hover { color: var(--brand); border-color: var(--brand); }
.btn-sm { padding: 6px 10px; font-size: .8rem; }
.btn[disabled], .btn.aspNetDisabled { opacity: .55; cursor: not-allowed; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ----------------------------------------------------------------- alerts ---- */
.alert { border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; border: 1px solid transparent; }
.alert--info { background: var(--info-bg); color: var(--info); border-color: #C9DFF3; }
.alert--success { background: var(--success-bg); color: var(--success); border-color: #BFE5D1; }
.alert--warning { background: var(--warning-bg); color: var(--warning); border-color: #F3DDA6; }
.alert--danger { background: var(--danger-bg); color: var(--danger); border-color: #F5C6C4; }
.validation-summary { background: var(--danger-bg); color: var(--danger); border-radius: 8px; padding: 8px 14px; margin-bottom: 12px; }
.validation-summary ul { margin: 4px 0 0 18px; padding: 0; }
.field-error { color: var(--danger); font-size: .8rem; }
/* A field with an error is outlined in red: plain boxes, and Kendo widgets whose own input carries the class. */
input.input-validation-error, textarea.input-validation-error, select.input-validation-error,
.k-input:has(.input-validation-error), .k-picker:has(.input-validation-error) { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }

.badge { display: inline-block; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--brand-50); color: var(--brand); }
.badge--success { background: var(--success-bg); color: var(--success); }
.badge--warning { background: var(--warning-bg); color: var(--warning); }
.badge--danger { background: var(--danger-bg); color: var(--danger); }
.badge--muted { background: #EEF0F4; color: var(--muted); }

.muted { color: var(--muted); }
.num, .text-right { text-align: right; }
.nowrap { white-space: nowrap; }

/* ------------------------------------------------------------ dashboards ---- */
.kpi-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi__label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; font-weight: 600; }
.kpi__value { font-size: 1.6rem; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi__note { font-size: .8rem; color: var(--muted); }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.link-list a { display: block; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; text-decoration: none; font-weight: 500; }
.link-list a:hover { border-color: var(--brand); background: var(--brand-50); }

.news-item + .news-item { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }
.news-item__date { font-size: .8rem; color: var(--muted); }

/* ------------------------------------------------------- grids & charts ---- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.chart-wrap { width: 100%; min-width: 0; }
.ctm-chart { width: 100% !important; }

table.simple { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.simple th, table.simple td { padding: 6px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
table.simple th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); background: #FAFBFD; position: sticky; top: 0; }
table.simple td.num, table.simple th.num { text-align: right; }
table.simple tr.row-total td { font-weight: 700; border-top: 2px solid var(--text); }
table.simple tr.row-section td { background: var(--brand-50); color: var(--brand); font-weight: 700; }
table.simple td.cell-negative { color: var(--danger); }
table.simple td.cell-positive { color: var(--success); }

/* ------------------------------------------------------ Telerik / Kendo ---- */
.k-grid { font-size: .9rem; border-radius: 8px; }
.k-grid td.num, .k-grid th.num, .k-grid .num { text-align: right; font-variant-numeric: tabular-nums; }
.k-grid th.num .k-cell-inner, .k-grid th.num .k-link { justify-content: flex-end; }
.k-grid .row-actions-cell { white-space: nowrap; }
.grid-empty { padding: 18px; color: var(--muted); text-align: center; }
.k-checkbox { width: 16px; height: 16px; border-radius: 4px; flex: none; }
.field--check label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.validation-summary-valid { display: none; }
.k-grid tr.row-total td, .k-grid .k-footer-template td { font-weight: 700; }
.k-grid tr.row-total td { border-top: 2px solid var(--text); }
.k-grid tr.row-section td { background: var(--brand-50); color: var(--brand); font-weight: 700; }
.k-grid tr.row-muted td { color: var(--muted); }
.k-grid .k-footer-template td.cell-negative { color: var(--danger); }
.k-grid td .cell-negative, .k-grid td.cell-negative { color: var(--danger); }
.k-grid td.cell-positive { color: var(--success); }
.k-grid td.pre-line { white-space: pre-line; }
.k-grid td.cell-strong { font-weight: 700; }
.k-grid th.k-header-group { text-align: center; background: var(--brand-50); }
.k-grid th.k-header-group .k-cell-inner, .k-grid th.k-header-group .k-link { justify-content: center; }
.k-grid td.cell-negative, table.simple td.cell-negative { color: var(--danger); }
.k-grid td.cell-positive, table.simple td.cell-positive { color: var(--success); }
.filter-bar .k-picker, .filter-bar .k-input, .filter-bar .k-dropdownlist, .filter-bar .k-datepicker, .filter-bar .k-numerictextbox { width: 100%; }
.field .k-dropdownlist, .field .k-datepicker, .field .k-numerictextbox, .field .k-textbox { width: 100%; }
.chart-wrap .k-chart { width: 100%; }
.chart-empty { display: grid; place-items: center; min-height: 160px; color: var(--muted); text-align: center; padding: 16px; }

/* ------------------------------------------------------------ sign-in page ---- */
.auth-wrap { display: grid; place-items: center; padding: 6vh 0; }
.auth-card { width: min(100%, 420px); }
.auth-card .card__body { padding: 24px; }
.auth-card h2 { font-size: 1.3rem; }

/* ----------------------------------------------------------------- toasts ---- */
.toast-host { position: fixed; right: 16px; bottom: 16px; z-index: 100000; display: flex; flex-direction: column; gap: 8px; max-width: min(92vw, 420px); }
.toast { background: #1F2433; color: #fff; border-radius: 8px; padding: 12px 16px; box-shadow: 0 8px 24px rgba(0,0,0,.2); display: flex; gap: 10px; align-items: flex-start; animation: toast-in .2s ease-out; }
.toast--success { background: var(--success); }
.toast--error { background: var(--danger); }
.toast--warning { background: #B7791F; }
.toast__close { margin-left: auto; background: none; border: 0; color: inherit; font-size: 1.1rem; cursor: pointer; opacity: .8; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ------------------------------------------------------------- responsive ---- */
@media (max-width: 1100px) {
    .app-nav__toggle { display: inline-block; margin-left: auto; }
    .app-nav { position: static; flex: 0 0 auto; order: 3; }
    .app-nav__list { display: none; position: absolute; left: 0; right: 0; top: 56px; flex-direction: column; background: var(--brand-700); padding: 8px 0; max-height: calc(100vh - 56px); overflow-y: auto; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
    .app-nav.is-open .app-nav__list { display: flex; }
    .app-nav__menu { position: static; box-shadow: none; border: 0; border-radius: 0; background: rgba(255,255,255,.06); max-height: none; }
    .app-nav__menu a { color: #fff; padding-left: 28px; }
    .app-nav__menu a:hover, .app-nav__menu a.is-current { background: rgba(255,255,255,.12); color: #fff; }
}@media (max-width: 900px) {
    .user-box__who { display: none; }
    .page-title { font-size: 1.25rem; }
}
@media (max-width: 640px) {
    /* 16px fields: iPhone Safari zooms the whole page when a smaller field gets the focus. */
    input:not([type=checkbox]):not([type=radio]), select, textarea, .k-input, .k-picker, .k-input-inner { font-size: 16px; }
    body { font-size: 15px; }
    .app-header__inner { gap: 8px; }
    .brand__name { display: none; }
    .user-box__link { padding: 5px 8px; font-size: .78rem; }
    .field, .field--wide { flex: 1 1 100%; min-width: 0; }
    .filter-bar__actions { margin-left: 0; width: 100%; }
    .filter-bar__actions .btn { flex: 1; }
    .filter-bar .RadComboBox, .filter-bar .RadPicker { width: 100% !important; }
    .ctm-chart { height: 340px !important; }
    .card__body { padding: 12px; }
    .page-header__aside .page-date { display: none; }
}

/* ------------------------------------------------------- page-specific ---- */
/* Spam trap for public forms: hidden from people, visible to bots. */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Public guest survey */
.survey { max-width: 860px; margin: 0 auto; }
.survey-q { border-top: 1px solid var(--border); padding: 12px 0; }
.survey-q:first-of-type { border-top: 0; }
.survey-q__text { font-weight: 600; margin: 0 0 8px; }
ul.survey-options { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
ul.survey-options li { display: flex; align-items: center; gap: 6px; }
ul.survey-options input, .survey-check input { width: 20px; height: 20px; margin: 0; }
.survey-checks { display: grid; gap: 8px 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.survey-check { display: flex; align-items: center; gap: 8px; }
.survey-scale { font-size: .85rem; color: var(--muted); margin: 0 0 4px; }
/* Admin > Error Log */
.error-detail { white-space: pre-wrap; word-break: break-word; font-size: .8rem; max-height: 24rem; overflow: auto; background: #FAFBFD; border: 1px solid var(--border); border-radius: 6px; padding: 10px; }
/* Admin > Labor entry grid */
.labor-grid input[type=text] { width: 5.5rem; min-width: 5.5rem; text-align: right; padding: 5px 8px; }   /* fits 100000.00; the whole grid fits a 1366px screen */
.labor-grid td, .labor-grid th { vertical-align: middle; }
.labor-grid .is-negative { color: var(--danger); font-weight: 700; }

/* ------------------------------------------------------------------ print ---- */
.print-only { display: none; }
@media print {
    @page { margin: 12mm; }
    /* Wide reports: add class="print-landscape" to any element on the page (e.g. the results card). */
    @page wide { size: landscape; }
    .print-landscape { page: wide; }
    body { background: #fff; font-size: 11px; }
    .no-print, .app-header, .app-footer, .filter-bar, .toast-host, .k-grid-toolbar, .k-grid-pager, .k-pager, .form-actions, .skip-link { display: none !important; }
    .print-only { display: block; }
    .app-main { padding: 0; }
    .card { box-shadow: none; border: 0; }
    .card__body { padding: 0; }
    .table-wrap { overflow: visible; }
    .k-grid { border: 0 !important; }
    .k-grid-content { overflow: visible !important; height: auto !important; }
    a { color: inherit; text-decoration: none; }
    tr, img, .ctm-chart { page-break-inside: avoid; }
}

/* Sign-out is a POST form styled like the other header links. */
.inline-form { display: inline; margin: 0; }
button.user-box__link { background: none; cursor: pointer; font: inherit; font-size: .85rem; }
