/* Shared screen-only improvements; formal print/report layouts stay intact. */
@media screen {
    .system-title-mobile { display:none; }
    body.smarthr-system .page-wrapper,
    body.smarthr-system .page-wrapper > :is(.content,.container-fluid),
    body.smarthr-system .row > *,
    body.smarthr-system :is(.card,.card-body,.modal-content,.modal-body) { min-width:0; }
    body.smarthr-system :is(.page-header,.card-header,.modal-header) :is(h1,h2,h3,h4,p) { overflow-wrap:anywhere; }
    body.smarthr-system .table-responsive { max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; }
    body.smarthr-system .table-responsive:focus-visible { outline:2px solid var(--asc-focus,#2687ef); outline-offset:2px; }
    body.smarthr-system .modal-dialog { max-width:min(var(--bs-modal-width,800px),calc(100vw - 24px)); }
    body.smarthr-system .modal-content { max-height:calc(100dvh - 32px); }
    body.smarthr-system .modal-body { overflow-y:auto; overscroll-behavior-y:contain; }
    body.smarthr-system :is(.modal-header,.modal-footer) { flex-shrink:0; }
    body.smarthr-system :is(.page-header,.dh-page-head,.accred-module-head,.instrument-page-heading,.accred-detail-page-head) {
        flex-wrap:wrap; gap:16px;
    }
    body.smarthr-system :is(.page-header,.dh-page-head,.accred-module-head,.instrument-page-heading,.accred-detail-page-head) > * {
        min-width:0; max-width:100%;
    }
    body.smarthr-system :is(.page-header-actions,.area-actions,.accred-detail-head-actions) { flex-wrap:wrap; min-width:0; }
    body.smarthr-system .smarthr-user-avatar { overflow:hidden; flex-shrink:0; }
    body.smarthr-system .header .smarthr-user-avatar img { display:block; width:100%!important; height:100%!important; min-width:0!important; max-width:100%!important; object-fit:cover; }
    body.smarthr-system .instrument-management :is(.area-identity,.area-identity > div,.area-workspace,.areas-panel,.parameter-content,.instrument-search-box) { min-width:0; }
    body.smarthr-system .instrument-management :is(h3,p,.accordion-button) { overflow-wrap:anywhere; }
    body.smarthr-system .instrument-management .area-actions { align-items:center; }
    body.smarthr-system .instrument-management .area-mark { width:48px; flex:0 0 48px; }
    body.smarthr-system .instrument-management .indicator-heading { flex-wrap:wrap; gap:10px; }
    body.smarthr-system .instrument-management .indicator-heading > div { display:flex; flex-wrap:wrap; gap:6px; min-width:0; }
    body.smarthr-system .instrument-management .indicator-rows { overflow-x:auto; max-width:100%; }
    body.smarthr-system :is(.rating-workspace,.faculty-workspace,.report-catalog) { min-width:0; width:100%; max-width:100%; }
    body.smarthr-system :is(.cycle-page-head,.report-toolbar,.fw-panel-head) { flex-wrap:wrap; gap:14px; }
    body.smarthr-system :is(.cycle-page-head,.report-toolbar,.fw-panel-head) > * { min-width:0; max-width:100%; }
    body.smarthr-system .cycle-page-head > .d-flex { flex-wrap:wrap; }
    body.smarthr-system .report-catalog .report-filter { flex:1 1 100%; min-width:0; max-width:100%; }
    body.smarthr-system .report-catalog .report-filter-field { min-width:0; flex:1 1 130px; }
    body.smarthr-system .rating-workspace > .formal-report { width:100%; max-width:100%; min-width:0; }
    body.smarthr-system .rating-workspace .formal-report-context { grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr)); }
    body.smarthr-system .faculty-workspace { grid-template-columns:minmax(0,1fr); }
    body.smarthr-system .faculty-workspace .fw-filters { display:flex; flex-wrap:wrap; min-width:0; max-width:100%; }
    body.smarthr-system .faculty-workspace .fw-filters > * { flex:1 1 150px; min-width:0; max-width:100%; }
    body.smarthr-system .faculty-workspace[data-current-module=contribution] .fw-stats { grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr)); }
    body.smarthr-system :is(.arc-stat,.dh-evidence-summary > div,.accred-help-topic) { min-width:0; overflow-wrap:anywhere; }
    body.smarthr-system .arc-stat > span { min-width:0; }
    body.smarthr-system .maintenance-module-tabs { flex-wrap:wrap!important; }
    body.smarthr-system .maintenance-module-tabs .nav-link { white-space:normal; max-width:100%; }
    @media(max-width:1199.98px) {
        body.smarthr-system .dh-evidence-top-grid { grid-template-columns:minmax(0,1fr); }
        body.smarthr-system .dh-submission-window dl { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr)); }
        body.smarthr-system .dh-submission-window dl > div { min-width:0; overflow-wrap:anywhere; }
        body.smarthr-system .accred-help-hero { display:flex; flex-direction:column; align-items:stretch; }
        body.smarthr-system .accred-help-hero > div { min-width:0; max-width:100%; }
        body.smarthr-system .accred-help-hero form { width:100%; min-width:0; max-width:100%; box-sizing:border-box; }
        body.smarthr-system .accred-help-hero input { min-width:0; width:100%; max-width:100%; box-sizing:border-box; }
        body.smarthr-system .accred-help-hero > i { display:none; }
    }
    @media(max-width:991.98px) {
        body.smarthr-system .rating-filter-panel { grid-template-columns:repeat(2,minmax(0,1fr)); }
        body.smarthr-system .rating-filter-panel > * { min-width:0; max-width:100%; }
        body.smarthr-system .accred-help-detail-list { grid-template-columns:minmax(0,1fr); }
        body.smarthr-system .page-header-actions { width:100%; justify-content:flex-start; }
        body.smarthr-system .sidebar { width:min(300px,calc(100vw - 44px))!important; left:calc(-1 * min(300px,calc(100vw - 44px)))!important; height:calc(100dvh - var(--smarthr-header-height,60px)); }
        body.smarthr-system .sidebar.opened { left:0!important; }
        body.smarthr-system.slide-nav { overflow:hidden; }
        body.smarthr-system .sidebar-inner { overscroll-behavior:contain; }
        body.smarthr-system .header #mobile_btn { display:grid; place-items:center; min-height:44px; }
        body.smarthr-system .header .smarthr-user-copy { display:none; }
        body.smarthr-system .instrument-management .admin-instrument-grid { grid-template-columns:minmax(0,1fr); }
        body.smarthr-system .instrument-management .area-summary { flex-direction:column; align-items:stretch; }
        body.smarthr-system .instrument-management .area-identity { flex-direction:row; align-items:flex-start; }
        body.smarthr-system .instrument-management .area-identity > div { flex:1; }
        body.smarthr-system .instrument-management .area-identity .d-flex { flex-wrap:wrap; }
        body.smarthr-system .instrument-management .area-actions { width:100%; }
        body.smarthr-system .instrument-management .area-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
        body.smarthr-system .instrument-management .master-status { white-space:normal; }
    }
    @media(max-width:767.98px) {
        body.smarthr-system .admin-area-stats article > div { min-width:0; overflow-wrap:anywhere; }
        body.smarthr-system main :is(.card-header,.fw-panel-head,.dh-section-head,.accred-section-head,.page-header-actions) { flex-wrap:wrap; gap:12px; }
        body.smarthr-system main :is(input,select,textarea,fieldset) { min-width:0; max-width:100%; }
        body.smarthr-system main :is(.btn,.nav-link,.accordion-button) { white-space:normal; overflow-wrap:anywhere; }
        body.smarthr-system main .accred-outline-btn { max-width:100%; white-space:normal; overflow-wrap:anywhere; }
        body.smarthr-system .accred-compact-filter-actions { display:flex; flex-wrap:wrap; min-width:0; gap:8px; }
        body.smarthr-system .accred-compact-filter-actions > * { flex:1 1 130px; min-width:0; }
        body.smarthr-system main .btn { min-height:44px; }
        body.smarthr-system .asc-mobile-records { display:block!important; width:100%!important; min-width:0!important; table-layout:auto!important; }
        body.smarthr-system main.page-wrapper .table-responsive table.asc-mobile-records[role=table] { min-width:0!important; width:100%!important; }
        body.smarthr-system .asc-mobile-records > thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
        body.smarthr-system .asc-mobile-records > tbody { display:grid!important; grid-template-columns:minmax(0,1fr); gap:12px; width:100%; }
        body.smarthr-system .asc-mobile-records > tbody > tr { display:block; width:100%; border:1px solid var(--asc-border,#dbe4ee); border-radius:8px; overflow:hidden; }
        body.smarthr-system .asc-mobile-records > tbody > tr:is([hidden],.collapse:not(.show)) { display:none!important; }
        body.smarthr-system .asc-mobile-records > tbody > tr > td { display:block!important; width:100%!important; min-width:0!important; max-width:100%!important; height:auto!important; padding:12px!important; white-space:normal!important; text-align:left!important; overflow-wrap:anywhere; border-left:0!important; }
        body.smarthr-system .asc-mobile-records > tbody > tr > td::before { content:attr(data-mobile-label)!important; display:block; margin-bottom:6px; font-weight:700; font-size:12px; color:var(--asc-text-muted,#526580); }
        body.smarthr-system .asc-mobile-records > tbody > tr > .asc-mobile-full-row::before { display:none; }
        body.smarthr-system .asc-mobile-records td > :is(.d-flex,[class$="actions"],[class$="-tools"]) { flex-wrap:wrap!important; gap:8px; }
        body.smarthr-system .asc-mobile-records td :is(a,span,strong,p) { white-space:normal; overflow-wrap:anywhere; }
        body.smarthr-system .asc-mobile-records td .text-truncate { white-space:normal!important; overflow:visible; text-overflow:clip; }
        body.smarthr-system .asc-table-scroll::before { content:'Swipe horizontally to see all columns'; display:block; position:sticky; left:0; width:fit-content; max-width:100%; padding:8px; font-size:12px; color:var(--asc-text-muted,#526580); }
        /* Pinned desktop action columns can cover every other column on a phone. */
        body.smarthr-system .table-responsive :is(th,td) { position:static!important; right:auto!important; left:auto!important; box-shadow:none!important; }
        body.smarthr-system .account-table-toolbar { display:flex; flex-direction:column; align-items:stretch; gap:14px; padding:14px 12px; }
        body.smarthr-system .account-search-form { width:100%; justify-content:flex-start; }
        body.smarthr-system .account-search-form label { flex:0 0 auto; white-space:nowrap; }
        body.smarthr-system .account-search-form .form-control { flex:1; min-width:0; width:100%; }
        body.smarthr-system .account-list-view { padding:0 12px; }
        body.smarthr-system .account-directory-table { display:block; width:100%; min-width:0; }
        body.smarthr-system .account-directory-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
        body.smarthr-system .account-directory-table tbody { display:grid; gap:14px; width:100%; }
        body.smarthr-system .account-directory-table tbody > tr { display:block; width:100%; border:1px solid var(--asc-border,#dbe4ee); border-radius:8px; overflow:hidden; }
        body.smarthr-system .account-directory-table tbody > tr > td { display:block; width:100%!important; min-width:0!important; max-width:100%; height:auto; padding:10px 12px!important; text-align:left; white-space:normal!important; overflow-wrap:anywhere; border-left:0; }
        body.smarthr-system .account-directory-table tbody > tr > td::before { display:block; margin-bottom:6px; font-size:12px; font-weight:700; color:var(--asc-text-muted,#526580); }
        body.smarthr-system .account-directory-table td:nth-child(1):not([colspan])::before { content:'Account delivery'; }
        body.smarthr-system .account-directory-table td:nth-child(2):not([colspan])::before { content:'Name'; }
        body.smarthr-system .account-directory-table td:nth-child(3):not([colspan])::before { content:'Area given'; }
        body.smarthr-system .account-directory-table td:nth-child(4):not([colspan])::before { content:'Email'; }
        body.smarthr-system .account-directory-table td:nth-child(5):not([colspan])::before { content:'Status'; }
        body.smarthr-system .account-directory-table td:nth-child(6):not([colspan])::before { content:'Actions'; }
        body.smarthr-system .account-directory-table :is(.account-person,.account-person > div,.account-area-list) { min-width:0; max-width:100%; white-space:normal; overflow:visible; overflow-wrap:anywhere; }
        body.smarthr-system .account-row-actions { flex-wrap:wrap; justify-content:flex-start; gap:8px; }
        body.smarthr-system .account-row-actions .btn { min-width:44px; min-height:44px; }
        body.smarthr-system .page-wrapper > .content { padding:16px 12px; }
        body.smarthr-system :is(.page-header,.card-header,.modal-footer) { flex-wrap:wrap; gap:10px; }
        body.smarthr-system :is(.form-control,.form-select),
        body.smarthr-auth-page :is(.form-control,.form-select,.otp-digit) { font-size:16px; }
        body.smarthr-system :is(.modal .btn,.page-header .btn),
        body.smarthr-auth-page .social-btn { min-height:44px; }
        body.smarthr-system .modal-dialog { margin:12px auto; }
        body.smarthr-system .modal .modal-content { min-width:0!important; width:100%!important; max-width:100%!important; min-height:0!important; max-height:calc(100dvh - 24px)!important; resize:none; }
        body.smarthr-system .modal-content > form { display:flex; flex-direction:column; flex:1 1 auto; min-height:0; overflow:hidden; }
        body.smarthr-system .modal-content .modal-body { min-height:0; }
        body.smarthr-system .modal-body { padding:16px; }
        body.smarthr-system .modal-footer .btn { white-space:normal; }
        body.smarthr-system .instrument-management .parameter-content { padding:0 10px 12px; }
        body.smarthr-system .instrument-management .indicator-category-header { flex-wrap:wrap; gap:8px; }
        body.smarthr-system .instrument-management .indicator-row { min-width:620px; }
        body.smarthr-system .dh-document-viewer { display:flex!important; flex-direction:column; height:auto; max-height:none; }
        body.smarthr-system .dh-document-viewer > * { width:100%; min-width:0; position:static; }
        body.smarthr-system .dh-document-viewer__preview iframe { min-height:300px!important; height:55dvh!important; }
        body.smarthr-system :is(.page-header,.card-header) .btn { white-space:normal; }
        body.smarthr-auth-page .social-actions { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; }
    }
    @media(max-width:575.98px) {
        body.smarthr-system .rating-filter-panel { grid-template-columns:minmax(0,1fr); }
        body.smarthr-system .rating-workspace > .formal-report { padding:14px; }
        body.smarthr-system .rating-workspace .formal-report-context { grid-template-columns:minmax(0,1fr); }
        body.smarthr-system .dh-evidence-summary { grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:14px 0; }
        body.smarthr-system .dh-evidence-summary > div { padding:6px 12px; }
        body.smarthr-system :is(.accred-help-grid,.accred-support-panel,.arc-stats) { grid-template-columns:minmax(0,1fr); }
        body.smarthr-system .maintenance-module-tabs .nav-link { flex:1 1 140px; min-height:44px; }
        body.smarthr-system .maintenance-help-introduction { flex-direction:column; align-items:flex-start; }
        body.smarthr-system .maintenance-help-introduction > div { min-width:0; max-width:100%; overflow-wrap:anywhere; }
        body.smarthr-system .header .smarthr-header-brand { width:50px!important; flex:0 0 50px!important; padding:0 5px!important; }
        body.smarthr-system .header .smarthr-brand-logo { width:40px!important; height:40px!important; flex-basis:40px; }
        body.smarthr-system .header .page-title-box { padding:0 6px!important; }
        body.smarthr-system .header .page-title-box h3 { font-size:12px; line-height:1.25; text-wrap:initial; }
        body.smarthr-system .header .system-title-full { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
        body.smarthr-system .header .system-title-mobile { display:inline; }
        body.smarthr-system .header .smarthr-header-actions { gap:3px; padding-right:6px; }
        body.smarthr-system .header .smarthr-user-toggle { padding:0; gap:0; }
        body.smarthr-system .header .smarthr-user-toggle > .ri-arrow-right-s-line { display:none; }
        body.smarthr-system .header .smarthr-header-icon { min-width:36px; min-height:44px; }
        body.smarthr-system .page-header-actions > :is(a,button) { flex:1 1 160px; }
        body.smarthr-system .instrument-management .instrument-toolbar { gap:10px; }
        body.smarthr-system .instrument-management { padding:16px!important; }
        body.smarthr-system .instrument-management .instrument-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
        body.smarthr-system .instrument-management .instrument-tabs .nav-link { white-space:normal; padding:10px 0; }
        body.smarthr-system .instrument-management .instrument-toolbar { flex-direction:column!important; align-items:stretch!important; }
        body.smarthr-system .instrument-management .instrument-toolbar > .d-flex { flex-wrap:wrap; }
        body.smarthr-system .instrument-management .instrument-toolbar > .d-flex > * { flex:1 1 90px; }
        body.smarthr-system .instrument-management .instrument-search { flex-wrap:wrap; width:100%; }
        body.smarthr-system .instrument-management .instrument-search-box { flex:1 1 100%; }
        body.smarthr-system .instrument-management .instrument-filter-button { width:100%; justify-content:center; }
        body.smarthr-system .instrument-management :is(.area-list,.areas-panel,.area-workspace) { width:100%; max-width:100%; }
        body.smarthr-system .instrument-management .area-list { grid-template-columns:minmax(0,1fr); }
        body.smarthr-system .instrument-management :is(.instrument-tabs .nav-link,.area-actions .btn,.indicator-heading .btn,.instrument-toolbar .btn) { min-height:44px; }
        body.smarthr-system .instrument-management .parameters-heading { gap:10px; }
        body.smarthr-system .role-assistant-launcher { width:48px; height:48px; padding:0; justify-content:center; right:max(12px,env(safe-area-inset-right)); bottom:max(12px,env(safe-area-inset-bottom)); }
        body.smarthr-system .role-assistant-launcher span { display:none; }
        body.smarthr-system .role-assistant-chat { right:12px; bottom:72px; max-height:calc(100dvh - 96px); }
    }
    @media(prefers-reduced-motion:reduce) {
        body:is(.smarthr-system,.smarthr-auth-page) *,
        body:is(.smarthr-system,.smarthr-auth-page) *::before,
        body:is(.smarthr-system,.smarthr-auth-page) *::after {
            animation-duration:.01ms!important; animation-iteration-count:1!important;
            transition-duration:.01ms!important; scroll-behavior:auto!important;
        }
    }
}
