/* SPBSM v12_001.3: screen-only typography. Print/export styles are untouched.
   Important layer order intentionally overrides older per-module !important rules.
   See docs/SPBSM_TYPOGRAPHY_STANDARD.txt before adding screen styles. */
@layer spbsm-type-roles, spbsm-type-legacy;
@media screen {
body.spbsm-screen {
 --spbsm-text:18px; --spbsm-label:17px; --spbsm-control:18px;
 --spbsm-button:17px; --spbsm-table:17px; --spbsm-secondary:16px;
 --spbsm-section:22px;
}
@layer spbsm-type-roles {
 body.spbsm-screen {font-size:var(--spbsm-text)!important;line-height:1.7!important;}
 body.spbsm-screen :is(label,legend,dt) {font-size:var(--spbsm-label)!important;line-height:1.6!important;}
 body.spbsm-screen :is(label,legend) {font-weight:500;}
 body.spbsm-screen :is(input,select,textarea,.mt-choice-trigger,.mt-choice-option) {font-size:var(--spbsm-control)!important;line-height:1.5!important;}
 body.spbsm-screen :is(button,.button,.rr-button,.hs-button) {font-size:var(--spbsm-button)!important;line-height:1.5!important;}
 body.spbsm-screen :is(table,th,td) {font-size:var(--spbsm-table)!important;line-height:1.6!important;}
 body.spbsm-screen :is(.navitem,.navitem .nav-label,.profile-name) {font-size:var(--spbsm-label)!important;}
 body.spbsm-screen :is(small,.muted,.rr-muted,.hs-muted,.mt-muted,.spbsm-tooltip,.kb-card-foot,.kb-event,.kb-tag,.kb-priority,.kb-count,.kb-mention-mirror) {font-size:var(--spbsm-secondary)!important;}
 body.spbsm-screen .kb-mention-mirror {font-size:var(--spbsm-control)!important;line-height:1.5!important;}
 body.spbsm-screen :is(h2,.card h2) {font-size:var(--spbsm-section)!important;line-height:1.5!important;}
 body.spbsm-screen input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]),
 body.spbsm-screen select,body.spbsm-screen .mt-choice-trigger {min-height:48px!important;height:auto!important;}
 body.spbsm-screen .ln-page .ln-grid label>input {height:48px!important;}
 body.spbsm-screen :is(.mt-choice-trigger,.mt-choice-option) {font-size:var(--spbsm-control)!important;}
 /* Preserve icon-only close controls and collapsed sidebar labels. */
 body.spbsm-screen :is(#kb-panel-close,#sidebar-close) {font-size:30px!important;}
 html.sidebar-collapsed:not(:has(.sidebar:hover,.sidebar:focus-within)) body.spbsm-screen .sidebar .navlabel {font-size:0!important;}
}
@layer spbsm-type-legacy {
/* actions.css */
/* announcements.css */
body.spbsm-screen #news-chips button {font-size:var(--spbsm-text)!important;}
body.spbsm-screen #news-compose .news-send-button {font-size:var(--spbsm-text)!important;}
/* button-icons.css */
/* date-display.css */
/* export-buttons.css */
/* feedback-colors.css */
/* form-alerts.css */
body.spbsm-screen .notification-confirm p {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .notification-confirm .notification-confirm-actions button {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .confirmation-dialog p {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .confirmation-dialog .confirmation-actions button {font-size:var(--spbsm-text)!important;}
/* header-online.css */
body.spbsm-screen .brand-company .badge {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .brand-company select, body.spbsm-screen .brand-company button {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .headerbrand .brand-subtitle {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .header-online .online-face {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .online-name {font-size:var(--spbsm-secondary)!important;}
@media (max-width:640px) {body.spbsm-screen .headerbrand .brand-subtitle {font-size:var(--spbsm-secondary)!important;}}
body.spbsm-screen .online-more {font-size:var(--spbsm-secondary)!important;}
@media (max-width:640px) {body.spbsm-screen .brand-title-row>.header-online .online-face {font-size:var(--spbsm-secondary)!important;}}
@media (max-width:640px) {body.spbsm-screen .brand-title-row>.header-online .online-more {font-size:var(--spbsm-secondary)!important;}}
body.spbsm-screen .online-touch-name {font-size:var(--spbsm-secondary)!important;}
/* home-order.css */
body.spbsm-screen #home-menu-grid.home-order-dragging>.card:not(.home-menu-dragging)::after {font-size:var(--spbsm-text)!important;}
body.spbsm-screen #home-order-status {font-size:var(--spbsm-secondary)!important;}
/* housing.css */
body.spbsm-screen .hs-table-wrap td {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .hs-note {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .hs-room span {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .hs-room small {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .hs-empty {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen #housing pre {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .hs-qr-guide {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .hs-qr-building {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .hs-employee-picker {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .hs-employee-trigger {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .hs-employee-option {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .hs-employee-panel p {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .hs-qr-title {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .hs-unsaved-text {font-size:var(--spbsm-text)!important;}
@media (max-width:600px) {body.spbsm-screen .hs-income-items td, body.spbsm-screen .hs-income-items th {font-size:var(--spbsm-secondary)!important;}}
@media (max-width:600px) {body.spbsm-screen .hs-income-items td:nth-child(3)::before {font-size:var(--spbsm-secondary)!important;}}
body.spbsm-screen .hs-meter-stats small {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .hs-meter-cell .error {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .hs-room-wifi sup {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .hs-start-cell small {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .hs-start-locked {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen #housing .hs-receive-month {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .hs-stay-action-select {font-size:var(--spbsm-text)!important;}
/* kanban.css */
body.spbsm-screen #kanban label {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .kb-column h3 {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .kb-count {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .kb-tag {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .kb-card-foot {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .kb-priority {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen #kanban .kb-move {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .kb-empty {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .kb-box h3 {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .kb-event {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen #kb-feedback, body.spbsm-screen #kb-panel-message {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen #kb-sync {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .kb-mini {font-size:var(--spbsm-secondary)!important;}
@media (max-width:640px) {body.spbsm-screen .kb-toolbar h2 {font-size:var(--spbsm-text)!important;}}
@media (max-width:640px) {body.spbsm-screen .kb-actions button {font-size:var(--spbsm-secondary)!important;}}
body.spbsm-screen #kanban select.kb-move {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .kb-mention-hint {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen #kanban .kb-mention-option {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .kb-mention-option small {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .kb-mention-list p {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .kb-column-pager button {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .kb-team-heading {font-size:var(--spbsm-text)!important;}
body.spbsm-screen #kanban .kb-order-dragging .kb-project-item:not(.kb-project-dragging)::after {font-size:var(--spbsm-text)!important;}
/* line-notifications.css */
body.spbsm-screen .ln-page small {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .ln-page .ln-options label {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .ln-page table {font-size:var(--spbsm-text)!important;}
/* maintenance.css */
body.spbsm-screen .mt-choice-panel input {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .mt-choice-panel p {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .mt-ui .mt-field>input:not([type=checkbox]):not([type=file]), body.spbsm-screen .mt-ui .mt-field>select, body.spbsm-screen .mt-ui .mt-choice .mt-choice-trigger {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .mt-ui [data-mt-employee-list] {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .mt-urgency legend {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .mt-ui .mt-urgency-options label, body.spbsm-screen .mt-public .mt-urgency-options label {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .mt-ui .mt-stages-grid .notice {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .mt-qr-create h2 {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .mt-qr-toolbar-hint {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .mt-qr-list .mt-qr-table th, body.spbsm-screen .mt-qr-list .mt-qr-table td {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .mt-qr-list .mt-qr-table .mt-qr-actions button {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .mt-public-header p {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .mt-public-header select {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .mt-public .mt-public-confirm {font-size:var(--spbsm-text)!important;}
/* manuals.css */
body.spbsm-screen .manual-article table {font-size:var(--spbsm-text)!important;}
@media (max-width:640px) {body.spbsm-screen .manual-section td, body.spbsm-screen .manual-section th {font-size:var(--spbsm-secondary)!important;}}
/* mascot.css */
body.spbsm-screen .spb-mascot-tip {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .spb-mascot-tip .spb-mascot-message {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen #spb-mascot-feedback {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .spb-mascot-tile {font-size:var(--spbsm-secondary)!important;}
/* navigation.css */
@media (max-width:540px) {body.spbsm-screen .module-back {font-size:var(--spbsm-text)!important;}}
@media screen and (max-width:850px) {body.spbsm-screen #sidebar .navlabel {font-size:var(--spbsm-secondary)!important;}}
body.spbsm-screen .nav-breadcrumbs {font-size:var(--spbsm-text)!important;}
@media (max-width:540px) {body.spbsm-screen .module-back-actions .button {font-size:var(--spbsm-secondary)!important;}}
@media (max-width:540px) {body.spbsm-screen .nav-breadcrumbs {font-size:var(--spbsm-secondary)!important;}}
/* ot-public.css */
body.spbsm-screen {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .muted {font-size:var(--spbsm-secondary)!important;}
/* overtime.css */
body.spbsm-screen .ot-bar text {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .ot-sidebar-sub a {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .ot-staff-panel h3 {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .ot-staff-panel p {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .ot-time-controls .ot-time-description {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .ot-time-controls #ot-apply {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .ot-headcount {font-size:var(--spbsm-secondary)!important;}
/* repair-app.css */
@media screen {body.spbsm-screen .rr-app label {font-size:var(--spbsm-text)!important;}}
@media screen {body.spbsm-screen .rr-app table {font-size:var(--spbsm-text)!important;}}
@media screen {body.spbsm-screen .rr-app .rr-badge {font-size:var(--spbsm-secondary)!important;}}
/* repair-choices.css */
body.spbsm-screen .repair-choice-grid label {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .repair-choice-chip {font-size:var(--spbsm-secondary)!important;}
/* repair-review.css */
body.spbsm-screen #rq-review-form .rq-table th {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen #rq-review-form [data-rq-number] {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen #rq-review-form .rq-table textarea {font-size:var(--spbsm-text)!important;}
body.spbsm-screen #rq-review-form .rq-table button {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen #rq-review-form .rq-table [data-rq-reason-wrap] label {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen #rq-review-form .rq-table [data-rq-reason] {font-size:var(--spbsm-secondary)!important;}
@media (max-width:640px) {body.spbsm-screen #rq-review-form .rq-urgent-label {font-size:var(--spbsm-secondary)!important;}}
@media (max-width:640px) {body.spbsm-screen #rq-review-form .rq-table textarea {font-size:var(--spbsm-text)!important;}}
/* repairs.css */
body.spbsm-screen .rr-brand {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .rr-muted, body.spbsm-screen .rr-foot {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .rr label {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .rr table {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .rr-badge {font-size:var(--spbsm-secondary)!important;}
/* style.css */
body.spbsm-screen {font-size:var(--spbsm-text)!important;}
body.spbsm-screen label {font-size:var(--spbsm-text)!important;}
body.spbsm-screen small {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .brand small {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .navitem {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .navlabel {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .sidebarfoot {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .headtools select, body.spbsm-screen .headtools button {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .eyebrow {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .badge {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .notice {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .stats span {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .cardtop span {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .card p {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .cardfoot {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .foundation p {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .foundation ul {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .chips a {font-size:var(--spbsm-text)!important;}
body.spbsm-screen table {font-size:var(--spbsm-text)!important;}
body.spbsm-screen pre {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen footer {font-size:var(--spbsm-secondary)!important;}
@media (max-width:540px) {body.spbsm-screen .headtools button {font-size:var(--spbsm-secondary)!important;}}
@media (max-width:540px) {body.spbsm-screen .headtools select {font-size:var(--spbsm-secondary)!important;}}
@media (max-width:540px) {body.spbsm-screen .card h2 {font-size:var(--spbsm-text)!important;}}
body.spbsm-screen .sidebar-collapsed .sidebar:hover .navlabel, body.spbsm-screen .sidebar-collapsed .sidebar:focus-within .navlabel {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .profile-name {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .notification-count {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .notification-item p {font-size:var(--spbsm-text)!important;}
@media (max-width:600px) {body.spbsm-screen .headtools button {font-size:var(--spbsm-secondary)!important;}}
body.spbsm-screen .avatar-option span {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .employee-status-count {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .employee-branch-heading {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .employee-branch-counts dd span {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .employee-list-search input[name=q] {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .notification-panel {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .notification-panel .notification-heading h2 {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .notification-panel .notification-item strong {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .notification-panel .notification-item p {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .notification-panel .notification-item small {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .notification-panel button {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .notification-panel .notification-feedback {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .online-details {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .online-history td {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .live-notification-content strong {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .live-notification-content span {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .live-notification-content small {font-size:var(--spbsm-secondary)!important;}
/* table-headers.css */
/* tooltips.css */
body.spbsm-screen .spbsm-tooltip {font-size:var(--spbsm-secondary)!important;}
/* transport-calculator.css */
body.spbsm-screen .transport-result .notice {font-size:var(--spbsm-secondary)!important;}
body.spbsm-screen .province-panel input {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .province-panel p {font-size:var(--spbsm-text)!important;}
/* transport-register.css */
body.spbsm-screen .tr-vehicle-form h3 {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .tr-vehicle-form .tr-fields>label {font-size:var(--spbsm-text)!important;}
body.spbsm-screen .tr-vehicle-form input, body.spbsm-screen .tr-vehicle-form select {font-size:var(--spbsm-text)!important;}
/* user-table.css */
body.spbsm-screen .user-action-heading h2 {font-size:var(--spbsm-text)!important;}
}
/* Size/spacing changes only on interactive screens. Keep document styles separate. */
body.spbsm-screen :is(button,.button,.rr-button) {min-height:44px;}
body.spbsm-screen input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]),
body.spbsm-screen select,body.spbsm-screen .mt-choice-trigger {min-height:48px;height:auto;box-sizing:border-box;}
body.spbsm-screen .ln-page .ln-grid label>input {height:48px;}
body.spbsm-screen :is(.mt-field,.formgrid>label,.kb-filters>label) {min-width:0;}
body.spbsm-screen :is(input,select,textarea) {max-width:100%;}
body.spbsm-screen :is(th,td) {padding-top:12px;padding-bottom:12px;}
body.spbsm-screen .mt-public-header select {width:130px;max-width:100%;}
body.spbsm-screen .headtools {flex-wrap:wrap;}
body.spbsm-screen .headtools select {max-width:130px;}
body.spbsm-screen .spbsm-tooltip {max-width:min(420px,calc(100vw - 24px));}
@media(max-width:600px) {
 body.spbsm-screen .mt-public-header {gap:12px;flex-wrap:wrap;}
 body.spbsm-screen .mt-public-header form {margin-left:auto;}
 body.spbsm-screen :is(.hr-toolbar,.ot-actions,.rr-actions,.mt-actions) {flex-wrap:wrap;gap:10px;}
 body.spbsm-screen .headtools {gap:8px;}
}
}

/* v12_001.4: room for the complete OT number and work date at approved 17px.
   Purpose keeps the remaining width and its existing single-line tooltip preview. */
@media screen {
 body.spbsm-screen .ot-list-panel .ot-list-table {min-width:1200px;}
 body.spbsm-screen .ot-list-panel .ot-list-table[data-cost-visible="0"] {min-width:1070px;}
 body.spbsm-screen .ot-list-table .ot-col-number {width:190px;}
 body.spbsm-screen .ot-list-table .ot-col-date {width:160px;}
 body.spbsm-screen .ot-list-table .ot-col-status {width:124px;}
 body.spbsm-screen .ot-list-panel .ot-list-table .ot-check-cell {text-align:center!important;vertical-align:middle;padding-left:8px;padding-right:8px;}
 body.spbsm-screen .ot-list-panel .ot-list-table .ot-check-cell input[type=checkbox] {display:block;width:18px;height:18px;min-height:18px;padding:0;margin:0 auto;}
 body.spbsm-screen .ot-list-panel .ot-list-table th:last-child,
 body.spbsm-screen .ot-list-panel .ot-list-table td:last-child {padding-left:8px;padding-right:8px;}
}

/* v12_001.5: compact request header; purpose retains its own full-width row. */
@media screen {
 body.spbsm-screen #ot-editor .ot-request-header-grid {
  display:grid;grid-template-columns:minmax(210px,.9fr) minmax(0,1.2fr) minmax(0,1fr) minmax(0,1.1fr);
  gap:16px;align-items:end;
 }
 body.spbsm-screen #ot-editor .ot-request-header-grid>label {min-width:0;display:flex;flex-direction:column;gap:6px;}
 body.spbsm-screen #ot-editor .ot-request-header-grid>label>select,
 body.spbsm-screen #ot-editor .ot-request-header-grid>label>input,
 body.spbsm-screen #ot-editor .ot-request-header-grid>label>textarea {width:100%;min-width:0;margin-top:0;}
 body.spbsm-screen #ot-editor .ot-request-header-grid>.wide {grid-column:1/-1;}
 @media(max-width:1199px) {
  body.spbsm-screen #ot-editor .ot-request-header-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
 }
 @media(max-width:600px) {
  body.spbsm-screen #ot-editor .ot-request-header-grid {grid-template-columns:minmax(0,1fr);}
 }
}

/* v12_001.6: read-only OT employee detail table only. */
@media screen {
 @layer spbsm-type-roles {
  body.spbsm-screen .ot-request-lines-table,
  body.spbsm-screen .ot-request-lines-table th,
  body.spbsm-screen .ot-request-lines-table td {font-size:16px!important;line-height:1.6!important;}
 }
 body.spbsm-screen .ot-request-lines-table {width:100%;min-width:1360px;table-layout:fixed;}
 body.spbsm-screen .ot-request-lines-table[data-cost-visible="0"] {min-width:1150px;}
 body.spbsm-screen .ot-request-lines-table .ot-detail-work {width:130px;}
 body.spbsm-screen .ot-request-lines-table .ot-detail-time {width:155px;}
 body.spbsm-screen .ot-request-lines-table .ot-detail-break {width:175px;}
 body.spbsm-screen .ot-request-lines-table .ot-detail-hours {width:80px;}
 body.spbsm-screen .ot-request-lines-table .ot-detail-cost {width:130px;}
 body.spbsm-screen .ot-request-lines-table th,
 body.spbsm-screen .ot-request-lines-table td {white-space:nowrap;vertical-align:middle;text-align:center!important;padding:12px 10px;}
 body.spbsm-screen .ot-request-lines-table th:first-child,
 body.spbsm-screen .ot-request-lines-table td:first-child {text-align:left!important;}
 body.spbsm-screen .ot-request-lines-table th:last-child,
 body.spbsm-screen .ot-request-lines-table td:last-child {text-align:right!important;}
 body.spbsm-screen .ot-request-lines-table .ot-detail-person-name {display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
}

/* v12_001.7: editable employee table matches the approved detail-table style. */
@media screen {
 @layer spbsm-type-roles {
  body.spbsm-screen #ot-editor .ot-edit-table,
  body.spbsm-screen #ot-editor .ot-edit-table :is(th,td,input,select,button) {font-size:16px!important;line-height:1.6!important;}
 }
 body.spbsm-screen #ot-editor .ot-edit-table {width:100%;min-width:1650px;table-layout:fixed;}
 body.spbsm-screen #ot-editor .ot-edit-table :is(th,td) {white-space:nowrap;vertical-align:middle;text-align:center!important;padding:12px 8px;}
 body.spbsm-screen #ot-editor .ot-edit-table :is(th,td):first-child {text-align:left!important;width:320px;}
 body.spbsm-screen #ot-editor .ot-edit-table :is(th,td):nth-child(n+2):nth-child(-n+5) {width:150px;}
 body.spbsm-screen #ot-editor .ot-edit-table :is(th,td):nth-child(6) {width:80px;}
 body.spbsm-screen #ot-editor .ot-edit-table :is(th,td):nth-child(7) {width:190px;}
 body.spbsm-screen #ot-editor .ot-edit-table :is(th,td):nth-child(n+8):nth-child(-n+11) {width:90px;}
 body.spbsm-screen #ot-editor .ot-edit-table :is(th,td):last-child {width:100px;text-align:right!important;}
 body.spbsm-screen #ot-editor .ot-edit-table td:first-child>span {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
 body.spbsm-screen #ot-editor .ot-edit-table :is(input[type=time],input[type=number],select) {width:100%;min-width:0;box-sizing:border-box;text-align:center;margin:0;padding:8px 4px;}
 body.spbsm-screen #ot-editor .ot-edit-table .ot-remove {margin:0;padding:8px;white-space:nowrap;}
}

/* v12_001.8: single-line charge summary on housing income screen only. */
@media screen {
 @layer spbsm-type-roles {
  body.spbsm-screen #housing:is([data-screen="hs_income"],[data-screen="hs_bills"]) .hs-income-charges-table,
  body.spbsm-screen #housing:is([data-screen="hs_income"],[data-screen="hs_bills"]) .hs-income-charges-table :is(th,td) {font-size:16px!important;line-height:1.6!important;}
 }
 body.spbsm-screen #housing .hs-income-charges-table {width:100%;min-width:1330px;table-layout:fixed;}
 body.spbsm-screen #housing .hs-income-charges-table :is(th,td) {white-space:nowrap;vertical-align:middle;text-align:center!important;padding:12px 8px;}
 body.spbsm-screen #housing .hs-income-charges-table :is(th,td):first-child {width:100px;text-align:left!important;}
 body.spbsm-screen #housing .hs-income-charges-table :is(th,td):nth-child(2) {width:260px;}
 body.spbsm-screen #housing .hs-income-charges-table :is(th,td):nth-child(3) {width:180px;}
 body.spbsm-screen #housing .hs-income-charges-table :is(th,td):nth-child(4) {width:70px;}
 body.spbsm-screen #housing .hs-income-charges-table :is(th,td):nth-child(n+5):nth-child(-n+8) {width:85px;}
 body.spbsm-screen #housing .hs-income-charges-table :is(th,td):nth-child(9) {width:130px;}
 body.spbsm-screen #housing .hs-income-charges-table :is(th,td):nth-child(10) {width:120px;}
 body.spbsm-screen #housing .hs-income-charges-table :is(th,td):last-child {width:130px;text-align:right!important;}
 body.spbsm-screen #housing .hs-income-charges-table th {white-space:normal;text-wrap:balance;}
 body.spbsm-screen #housing .hs-income-cell-preview {display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
}

/* v12_001.9: name/item heading centered, values left aligned on both housing screens. */
@media screen {
 body.spbsm-screen #housing:is([data-screen="hs_income"],[data-screen="hs_bills"]) .hs-income-charges-table th:nth-child(2) {text-align:center!important;}
 body.spbsm-screen #housing:is([data-screen="hs_income"],[data-screen="hs_bills"]) .hs-income-charges-table td:nth-child(2) {text-align:left!important;}
}

/* v12_001.10: cash balances, screen only. */
@media screen {
 body.spbsm-screen #housing .hs-cash-overdue {color:#b42332!important;font-weight:600;}
 body.spbsm-screen #housing .hs-cash-summary {margin-left:auto;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px;align-self:center;}
 body.spbsm-screen #housing .hs-cash-summary-item {display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px;padding:12px 16px;border:1px solid var(--line,#dce8e1);border-radius:12px;background:var(--surface,#fff);font-size:17px;}
 body.spbsm-screen #housing .hs-cash-summary-item strong {white-space:nowrap;font-variant-numeric:tabular-nums;}
 body.spbsm-screen #housing .hs-cash-paid {color:#23704d;}
 html.dark body.spbsm-screen #housing .hs-cash-overdue,
 html[data-theme="dark"] body.spbsm-screen #housing .hs-cash-overdue {color:#ff929d!important;}
 html.dark body.spbsm-screen #housing .hs-cash-paid,
 html[data-theme="dark"] body.spbsm-screen #housing .hs-cash-paid {color:#95dbb9;}
 @media(max-width:850px) {body.spbsm-screen #housing .hs-cash-summary {flex-basis:100%;}}
 @media(max-width:540px) {body.spbsm-screen #housing .hs-cash-summary-item {flex:1 1 100%;justify-content:space-between;}}
}

/* v12_001.12: maintenance request list only; document styles unchanged. */
@media screen {
 body.spbsm-screen .mt-requests-table{width:100%;min-width:1220px;table-layout:fixed;}
 body.spbsm-screen .mt-requests-table[data-cost-visible="0"]{min-width:1070px;}
 body.spbsm-screen .mt-requests-table :is(th,td){padding:12px 10px;vertical-align:middle;text-align:center!important;}
 body.spbsm-screen .mt-requests-table td{white-space:nowrap;}
 body.spbsm-screen .mt-requests-table th{white-space:normal;text-wrap:balance;overflow-wrap:normal;}
 body.spbsm-screen .mt-requests-table :is(th,td):nth-child(1){width:155px;}
 body.spbsm-screen .mt-requests-table :is(th,td):nth-child(3){width:210px;}
 body.spbsm-screen .mt-requests-table :is(th,td):nth-child(4){width:125px;}
 body.spbsm-screen .mt-requests-table :is(th,td):nth-child(5){width:150px;}
 body.spbsm-screen .mt-requests-table[data-cost-visible="1"] :is(th,td):nth-child(6){width:150px;}
 body.spbsm-screen .mt-requests-table :is(th,td):last-child{width:140px;}
 body.spbsm-screen .mt-requests-table td:nth-child(2),body.spbsm-screen .mt-requests-table td:nth-child(3){text-align:left!important;}
 body.spbsm-screen .mt-requests-table .mt-request-preview{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
 body.spbsm-screen .mt-requests-table .mt-request-department{color:var(--muted);}
}

/* Maintenance delivery: compact parts-wait editor; screen only. */
@media screen {
 body.spbsm-screen .mt-parts-waits-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
 body.spbsm-screen .mt-parts-waits-heading h3{margin:0;min-width:0}
 body.spbsm-screen .mt-parts-waits-heading button{flex:0 0 auto;margin:0;white-space:nowrap}
 body.spbsm-screen .mt-parts-wait-row{grid-template-columns:minmax(0,320px) minmax(0,320px) auto;justify-content:start;align-items:end;margin-bottom:12px}
 body.spbsm-screen .mt-parts-wait-row label{display:flex;flex-direction:column;gap:6px;margin:0}
 body.spbsm-screen .mt-parts-wait-row input{width:100%;min-width:0}
 body.spbsm-screen .mt-parts-wait-row>button{align-self:end;margin:0}
 body.spbsm-screen .mt-repair-time-note{min-width:0;max-width:100%;white-space:nowrap;overflow-x:auto;padding-bottom:6px;line-height:1.6}
 @media(max-width:650px){
  body.spbsm-screen .mt-parts-wait-row{grid-template-columns:minmax(0,320px)}
  body.spbsm-screen .mt-parts-wait-row>button{justify-self:start}
  body.spbsm-screen .mt-parts-waits-heading{gap:8px}
 }
}

@media screen{
 body.spbsm-screen .mt-parts-wait-row{grid-template-columns:minmax(230px,280px) minmax(230px,280px) minmax(200px,1fr) auto;justify-content:stretch}
 body.spbsm-screen .mt-draft-feedback{display:flex;align-items:center;gap:12px;margin-bottom:18px;font-size:16px}
 body.spbsm-screen .mt-draft-feedback [data-state=error]{color:#b42318}
 @media(max-width:1100px){body.spbsm-screen .mt-parts-wait-row{grid-template-columns:repeat(2,minmax(0,1fr))}body.spbsm-screen .mt-parts-wait-note{grid-column:1/-1}}
 @media(max-width:650px){body.spbsm-screen .mt-parts-wait-row{grid-template-columns:minmax(0,1fr)}}
}

@media screen{body.spbsm-screen .mt-lease-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;margin-bottom:16px;border:1px solid var(--border,#cddbd5);border-radius:10px;background:var(--panel,#f0f6f3)}body.spbsm-screen .mt-delivery-fields{border:0;margin:0;padding:0;min-width:0}body.spbsm-screen .mt-delivery-fields:disabled{opacity:.72}body.spbsm-screen .mt-lease-banner[data-state=error]{color:#b42318}}

@media screen{
 body.spbsm-screen .mt-delivery-heading{display:flex;align-items:baseline;gap:12px 20px;flex-wrap:wrap;margin-bottom:20px}
 body.spbsm-screen .mt-delivery-heading h2{margin:0;flex:0 0 auto}
 body.spbsm-screen .mt-delivery-notices{display:flex;align-items:baseline;gap:6px 16px;flex-wrap:wrap;flex:1;min-width:0;color:#c62828;font-size:var(--spbsm-secondary,16px)}
 body.spbsm-screen .mt-delivery-notices :is(.mt-lease-banner,.mt-draft-feedback){display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0;padding:0;border:0;background:transparent;color:inherit;font-size:inherit}
 body.spbsm-screen .mt-delivery-notices [data-mt-draft-status]{color:inherit}
}

/* Current and other editor presence messages are blue. */
@media screen{body.spbsm-screen .mt-delivery-notices .mt-lease-banner:is([data-state="owned"],[data-state="busy"]) [data-mt-lease-status]{color:#1565c0}}

@media screen {
 body.spbsm-screen .mt-assets-table :is(th,td){text-align:center!important}
 body.spbsm-screen .mt-assets-table :is(th,td):first-child{text-align:left!important}
 body.spbsm-screen .mt-assets-table :is(th,td):last-child{text-align:right!important}
 body.spbsm-screen .mt-asset-status[data-asset-status="repairing"],body.spbsm-screen [data-mt-repair="1"]{color:#c62828!important}
 body.spbsm-screen .mt-asset-status{white-space:nowrap}
}

@media screen{
 body.spbsm-screen .mt-reports-table{min-width:1190px}
 body.spbsm-screen .mt-reports-table[data-cost-visible="0"]{min-width:1040px}
}

@media screen{body.spbsm-screen .mt-reports-table :is(th,td):nth-child(5){width:120px}}

/* v12_001.40: restore compact task cards only; keep board and editor typography. */
@media screen {
 @layer spbsm-type-roles {
  body.spbsm-screen #kanban .kb-task {font-size:16px!important;line-height:1.8!important;}
  body.spbsm-screen #kanban .kb-task .kb-task-title {font-size:16px!important;line-height:1.5!important;}
  body.spbsm-screen #kanban .kb-task .kb-priority {font-size:12.16px!important;}
  body.spbsm-screen #kanban .kb-task .kb-tag {font-size:11.52px!important;}
  body.spbsm-screen #kanban .kb-task .kb-card-foot {font-size:12.48px!important;}
  body.spbsm-screen #kanban .kb-task small:not(.kb-priority) {font-size:13px!important;}
  body.spbsm-screen #kanban .kb-task select.kb-move {
   font-size:12.16px!important;line-height:1.5!important;min-height:32px!important;height:auto!important;
  }
 }
}

/* v12_001.57: compact register columns; full kind label, largest name column. */
@media screen {
 body.spbsm-screen .mt-assets-table{width:100%;min-width:1360px;table-layout:fixed}
 body.spbsm-screen .mt-assets-table :is(th,td){white-space:nowrap;overflow-wrap:normal;vertical-align:middle;padding:10px 8px}
 body.spbsm-screen .mt-assets-table .mt-assets-cell{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body.spbsm-screen .mt-assets-table :is(th,td):nth-child(2){text-align:left!important}
 body.spbsm-screen .mt-assets-table :is(th,td):last-child{text-align:center!important}
 body.spbsm-screen .mt-assets-table .mt-assets-col-code{width:6em}
 body.spbsm-screen .mt-assets-table .mt-assets-col-name{width:auto}
 body.spbsm-screen .mt-assets-table .mt-assets-col-brand{width:11em}
 body.spbsm-screen .mt-assets-table .mt-assets-col-model{width:7em}
 body.spbsm-screen .mt-assets-table .mt-assets-col-kind{width:15em}
 body.spbsm-screen .mt-assets-table .mt-assets-col-department{width:10em}
 body.spbsm-screen .mt-assets-table .mt-assets-col-status{width:7em}
 body.spbsm-screen .mt-assets-table .mt-assets-col-manage{width:5em}
 body.spbsm-screen .mt-assets-table td:nth-child(5) .mt-assets-cell{overflow:visible;text-overflow:clip}
 body.spbsm-screen .mt-assets-manage .mt-button-text{display:none}
 body.spbsm-screen .mt-assets-manage{display:inline-flex;align-items:center;justify-content:center;padding:8px;min-width:38px;margin:0}
 body.spbsm-screen .mt-assets-toolbar>button{flex:0 0 auto;white-space:nowrap}
}
