/* ── Page setup ───────────────────────────────────────── */
@page {
    size: A4 portrait;
    margin: 12mm;
}

/* ── Reset screen chrome ──────────────────────────────── */
body {
    background: #fff;
    color: #000;
}

/* Force all text black */
h1, h2, h3, p, a { color: #000; }

/* ── Layout: collapse sidebar, full-width content ─────── */
#main {
    padding: 0;
    margin: 0;
}

#main > #sidebar-left {
    display: none;
}

#content,
#main > #content,
#main #content.col-xs-12,
#main #content.col-sm-10 {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 4mm !important;
    border: none;
}

/* Neutralise Bootstrap row negative margins ─────────────── */
.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ── Print / utility wrappers ─────────────────────────── */
.print,
.print_area {
    width: 100% !important;
}

/* ── Admission form: override screen max-width & margins ─ */
.admission-form {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ── Hide non-printable elements ──────────────────────── */
.button-column,
.norpint,
.noprint,
.filters,
div.summary,
div.keys,
.ui-state-default {
    display: none !important;
}

/* Show active tab content ────────────────────────────── */
.ui-state-default.ui-state-active {
    display: block !important;
}

/* ── Tables ───────────────────────────────────────────── */
table {
    width: 100% !important;
    border-collapse: collapse;
}

/* Bootstrap first-row header borders */
.table > caption + thead > tr:first-child > th,
.table > colgroup + thead > tr:first-child > th,
.table > thead:first-child > tr:first-child > th,
.table > caption + thead > tr:first-child > td,
.table > colgroup + thead > tr:first-child > td,
.table > thead:first-child > tr:first-child > td {
    border: 1px solid #000;
}

/* ── Misc UI elements ─────────────────────────────────── */
.ui-tabs { padding: 0; }
.ui-widget-content,
.ui-widget-header { border: none; }

.label { border: none; color: #000; }

textarea.reporttitle { width: 100%; border: none; }

/* ── Page breaks ──────────────────────────────────────── */
.page_break {
    page-break-after: always;
    break-after: page; /* modern standard */
}