.sm-printed-records { display: none; }
.sm-print-document { margin: 0; color: #17211f; background: #f3f7f4; font: 1rem/1.5 system-ui, sans-serif; }
.sm-print-document main { max-width: 68rem; margin: 0 auto; padding: clamp(1rem, 3vw, 2rem); }
.sm-print-document h1 { margin-bottom: .25rem; }
.sm-print-context { margin: 0 0 .6rem; }
.sm-print-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.sm-print-controls button { font: inherit; padding: .45rem 1.2rem; border: 1px solid #146b57; color: #146b57; background: #fff; border-radius: .5rem; cursor: pointer; }
.sm-print-controls a { color: #146b57; }
.sm-print-table { max-width: 100%; overflow-x: auto; margin: .9rem 0; }
.sm-print-table table { width: 100%; border-collapse: collapse; }
.sm-print-table :is(th,td) { text-align: left; vertical-align: top; padding: .45rem .6rem; border-bottom: 1px solid #cad8d1; overflow-wrap: anywhere; }
.sm-print-table th { background: #eaf1ed; }
@media print {
    body.sm-print-document, body.sm-record-printing { display: block !important; margin: 0 !important; color: #111 !important; background: #fff !important; font: 10pt/1.4 system-ui, sans-serif; }
    body.sm-record-printing > :not(.sm-printed-records), .sm-print-controls { display: none !important; }
    body.sm-record-printing > .sm-printed-records { display: block !important; }
    .sm-print-document main, .sm-printed-records :is(main,.content,.card,.panel,.table-scroll,.schedule-item,.form-grid,.page-head,.grid) {
        display: block !important; max-width: none !important; min-width: 0 !important; max-height: none !important;
        padding: 0 !important; margin: 0 0 .8em !important; overflow: visible !important; box-shadow: none !important;
    }
    .sm-printed-records, .sm-printed-records *, .sm-print-document, .sm-print-document * {
        color: #111 !important; background: white !important; box-shadow: none !important; text-shadow: none !important;
    }
    .sm-printed-records table, .sm-print-table table { width: 100% !important; min-width: 0 !important; border-collapse: collapse; }
    .sm-printed-records thead, .sm-print-table thead { display: table-header-group !important; }
    .sm-printed-records tbody, .sm-print-table tbody { display: table-row-group !important; }
    .sm-printed-records tr, .sm-print-table tr { display: table-row !important; break-inside: avoid; }
    .sm-printed-records :is(th,td), .sm-print-table :is(th,td) { display: table-cell !important; border-bottom: 1px solid #bbb; overflow-wrap: anywhere; padding: 3pt; }
    .sm-printed-records td::before { display: none !important; }
    .sm-printed-records :is(h1,h2,h3), .sm-print-document :is(h1,h2,h3) { break-after: avoid; }
    .sm-printed-records .schedule-item { break-inside: avoid; }
    .sm-print-table { overflow: visible; }
}
