/* Final responsive layer: loaded after feature styles. */
@media (max-width: 750px) {
  html:has(#modal-root .modal-backdrop),body:has(#modal-root .modal-backdrop) {overflow:hidden}
  .chart {height:230px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
  .chart svg {min-width:560px}
  .chart-labels {justify-content:flex-start;gap:8px 14px}
  .main,.content,.grid-main,.grid-main>*,.rail,.card,.project-workspace,.project-workspace-body,.field,.form-grid>* {min-width:0;max-width:100%}
  h1,h2,h3,.sub,.summary-note,.project-note,.card-head p,.project-metric strong,.detail-body dd {overflow-wrap:anywhere}
  .topbar .topbar-start {flex:1;min-width:0}
  .topbar .breadcrumb {min-width:0;max-width:100%;font-size:12px}
  .topbar .top-actions {flex:0 0 auto;gap:4px}
  .topbar .menu-toggle,.account-menu>summary,.notification-menu>summary {min-width:44px;min-height:44px}
  .account-popover {max-width:calc(100vw - 20px);max-height:calc(100dvh - 80px);overflow-y:auto;overscroll-behavior:contain}
  .notification-popover {max-height:calc(100dvh - 78px)}
  .notification-heading {padding:12px;gap:8px;flex-wrap:wrap}
  .content {padding:16px 12px 32px}
  .content .form-grid {padding:14px 0;overflow:visible}
  .content .project-dashboard-page>.modal-header {position:static!important;background:transparent;align-items:flex-start}
  .project-dashboard-page>.modal-header h2 {font-size:22px}
  .project-workspace-top {gap:8px;align-items:center}
  .project-workspace-top button {margin-left:0}
  .project-tabs {max-width:100%;overscroll-behavior-inline:contain;scrollbar-width:thin}
  .project-tabs button {flex:0 0 auto;font-size:14px}
  .project-dashboard-page .project-report-period .project-period {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:12px}
  .project-period label,.project-period input {min-width:0}
  .project-metrics,.project-facts,.stage-summary-grid {min-width:0}
  .project-metric {min-width:0;padding:14px}
  .project-metric strong {font-size:22px}
  .timeline-heading {flex-wrap:wrap;align-items:flex-start;gap:10px}
  .timeline-heading>div {min-width:0;max-width:100%}
  .timeline-heading h3 {margin-top:0;overflow-wrap:anywhere}
  .milestone-card .actions {display:flex;flex-wrap:wrap}
  .milestone-card .actions>.btn {flex:1 1 140px}
  .card-head {align-items:flex-start}
  .card-head>.btn {flex:1 1 160px;max-width:100%}
  .actions {max-width:100%;flex-wrap:wrap;align-items:center}
  .actions>.btn {white-space:normal;text-align:center}
  .tabbar {min-width:0;max-width:100%;flex-wrap:nowrap;overscroll-behavior-inline:contain}
  .tabbar button {flex-shrink:0}
  .field input,.field select,.field textarea {min-width:0;max-width:100%;font-size:16px}
  input[type=date],input[type=time] {min-inline-size:0}
  input[type=file] {width:100%;max-width:100%;overflow:hidden;text-overflow:ellipsis}
  input[type=file]::file-selector-button {max-width:55%;white-space:normal;margin-right:8px;padding:8px;border:1px solid #cbd9cb;border-radius:6px;background:#f0f5ed;color:#294b35}
  select[multiple] {height:auto;min-height:120px}
  .table-wrap {min-width:0;max-width:100%;overscroll-behavior-inline:contain}
  .table-wrap table {min-width:640px}
  .table-wrap td {overflow-wrap:anywhere;max-width:320px}
  .table-wrap .equipment-mobile-cards {min-width:0}
  .data-table-tools,.table-pagination {flex-wrap:wrap;gap:8px;max-width:100%}
  .data-filter-group {flex-wrap:wrap;min-width:0}
  .data-filter-group input {min-width:0;max-width:100%;font-size:16px}
  .table-pagination button {min-width:44px;min-height:44px}
  .modal-backdrop {padding:0;align-items:end}
  .modal {height:calc(100dvh - 8px);max-height:calc(100dvh - 8px);max-width:100vw;overscroll-behavior:contain}
  .modal>form {min-height:0;overflow:hidden}
  .modal .modal-header {position:relative;flex:0 0 auto;gap:12px;align-items:flex-start;padding:12px 14px}
  .modal .modal-header>div,.modal .modal-header h2 {min-width:0;overflow-wrap:anywhere}
  .modal .modal-header h2 {font-size:18px;line-height:1.4;margin:0}
  .modal .modal-header p {font-size:12px;line-height:1.5;margin:6px 0 0}
  .modal .modal-header button {flex:0 0 auto}
  .modal-header button.btn {width:auto;height:auto;min-height:44px;font-size:14px;padding:10px 12px}
  .modal .modal-header [data-close] {width:40px;height:40px;min-height:40px;padding:0;font-size:26px}
  .modal .form-grid,.modal .detail-body,.modal .report-content,.modal .task-panel {min-height:0;flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:14px;gap:12px}
  .modal .detail-body {display:block}
  .modal .form-grid {grid-template-columns:minmax(0,1fr);align-content:start}
  .modal .form-grid .wide {grid-column:1/-1}
  .modal .modal-footer {position:relative;display:flex;flex:0 0 auto;flex-wrap:wrap;gap:8px;max-height:min(28dvh,170px);overflow-y:auto;overscroll-behavior:contain;padding:10px 12px calc(10px + env(safe-area-inset-bottom))}
  .modal-footer>.btn,.modal-footer>a.btn {width:auto;flex:1 1 calc(50% - 8px);min-height:44px;padding:10px;font-size:14px;white-space:normal;text-align:center}
  .modal .form-error:empty {display:none}
  .modal .form-error:not(:empty) {flex:0 0 auto;max-height:18dvh;overflow-y:auto;padding:8px 14px}
  .modal .invoice-parties,.modal .detail-body dl {grid-template-columns:minmax(0,1fr)}
  .modal .invoice-parties {gap:10px;margin:14px 0}
  .modal .invoice-parties h3 {margin:8px 0}
  .modal .invoice-parties p {margin:6px 0;line-height:1.6}
  .modal .invoice-totals {margin-block:16px;gap:6px}
  .modal .invoice-top {flex-wrap:wrap;gap:12px}
  .modal .invoice-top h1 {font-size:22px}
  .modal .invoice-totals {width:100%;max-width:100%;grid-template-columns:minmax(0,1fr) auto}
  .modal .detail-body iframe {max-width:100%;height:45dvh!important;min-height:180px}
  .modal .detail-body img {max-width:100%;object-fit:contain}
  .muster-row {min-width:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .muster-row>* {min-width:0}
  .muster-row>.check-row {grid-column:1/-1}
  .muster-row input[type=checkbox],.check-row input[type=checkbox] {width:22px;height:22px;min-height:22px;flex-shrink:0}
  .check-row>span {min-width:0;overflow-wrap:anywhere}
  #dashboard-muster-rows {max-height:none!important}
  .task-discussion-modal .task-panel {display:block}
  .task-discussion-modal .task-thread {min-height:160px;max-height:48dvh}
  .task-discussion-modal .task-discussion-heading {gap:8px;flex-wrap:wrap}
  .task-files a {min-width:0;max-width:100%}
  .equipment-workspace .equipment-facts,.equipment-workspace .project-metrics {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 360px) {
  .topbar .breadcrumb {font-size:11px}
  .project-dashboard-page .project-facts,.project-dashboard-page .project-metrics,.equipment-workspace .equipment-facts {grid-template-columns:minmax(0,1fr)}
  .project-tabs {padding-inline:8px}
  .modal-footer>.btn {font-size:13px}
}
@media (max-height: 500px) and (max-width: 950px) {
  .modal {height:100dvh;max-height:100dvh;border-radius:0}
  .modal .modal-header {padding:8px 12px}
  .modal .modal-footer {max-height:90px;padding-block:6px}
}

/* Data stays visible; optional controls expand on demand. */
.data-table-controls{border-bottom:1px solid #e1e8df;background:#f9fbf7}
.table-controls-summary,.record-filter-menu>summary,.page-action-menu>summary{cursor:pointer;min-height:44px;padding:10px 14px;color:#315a43;font-size:14px;font-weight:600;list-style-position:inside;overflow-wrap:anywhere}
.table-controls-summary{display:flex;align-items:center;justify-content:space-between;gap:10px}
.table-controls-summary:before{content:'⌄';font-size:18px}.data-table-controls[open]>.table-controls-summary:before{content:'⌃'}
.table-controls-summary>span{flex:1}.table-controls-summary small,.record-filter-menu summary small{font-size:12px;color:#487849}
.table-search-field{display:flex;flex-direction:column;gap:6px;min-width:150px;font-size:12px;color:#60765d}
.table-search-field input{padding:10px;border:1px solid #dce5da;border-radius:6px;min-height:42px;max-width:100%;font-size:14px}
.data-table-controls:not([open])>.data-table-tools,.page-action-menu:not([open])>.actions,.record-filter-menu:not([open])>.filter-row{display:none}
.page-action-menu,.record-filter-menu{min-width:0}.record-filter-menu>.filter-row{padding:10px 0}
@media(min-width:751px){.page-action-menu>summary,.record-filter-menu>summary{display:none}.page-action-menu>.actions,.record-filter-menu>.filter-row{display:flex}.data-table-controls>.table-controls-summary{padding-block:6px;min-height:36px}}
@media(max-width:750px){
 .page-heading .page-action-menu{width:100%;border:1px solid #dce5da;background:white;border-radius:8px}
 .page-action-menu>.summary{font-size:14px}.page-heading .page-action-menu>.actions{padding:10px;gap:8px}
 .page-heading .page-action-menu>.actions .btn{min-height:44px;font-size:14px}
 .record-filter-menu{width:100%;border:1px solid #dce5da;border-radius:8px;background:white}
 .record-filter-menu>.filter-row{padding:10px}
 .data-table-controls .data-table-tools{display:grid;grid-template-columns:minmax(0,1fr);padding:12px;gap:12px}
 .data-table-controls .data-filter-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:8px}
 .data-table-controls .data-filter-group label,.data-table-controls .data-export-group label{min-width:0}
 .data-table-controls .data-filter-group .table-clear{grid-column:1/-1;min-height:40px}
 .data-table-controls .data-export-group{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;align-items:end;gap:8px}
 .data-table-controls input,.data-table-controls select{width:100%;min-width:0;min-height:44px;font-size:16px}
 .data-table-controls .table-export{min-height:44px;padding:10px;font-size:14px}
 .data-table-controls .undated-table-note{font-size:12px}
 .table-controls-summary{padding:10px 12px;font-size:13px;flex-wrap:wrap;gap:6px}
 .table-controls-summary small:empty{display:none}
}

@media(max-width:750px){
 .project-list-wrap{overflow:visible;padding:0 12px 12px}
 .project-list-wrap:after{display:none}
 .project-list-wrap .project-list-table{display:block;width:100%;min-width:0;table-layout:auto}
 .project-list-table thead{display:none}
 .project-list-table tbody{display:block}
 .project-list-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;margin-top:12px;padding:16px;border:1px solid #dfe8df;border-radius:10px;background:white}
 .project-list-table tbody tr[hidden]{display:none!important}
 .project-list-wrap .project-list-table td{display:block;position:static!important;inset:auto!important;width:auto!important;min-width:0!important;max-width:none;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;white-space:normal!important;overflow-wrap:normal;text-align:left;font-size:14px}
 .project-list-table td[data-label]:before{content:attr(data-label);display:block;margin-bottom:6px;color:#748372;font-size:12px;font-weight:600}
 .project-list-table .project-list-name,.project-list-table .project-list-action{grid-column:1/-1}
 .project-list-table .project-name{min-width:0;align-items:flex-start;gap:10px}
 .project-list-table .project-name>div{min-width:0}
 .project-list-table .project-name strong{font-size:16px;line-height:1.45}
 .project-list-table .project-name small{display:block;line-height:1.6;overflow-wrap:anywhere}
 .project-list-table .progress-text{font-size:13px;gap:8px}
 .project-list-table .project-list-action .linkbutton{display:flex;justify-content:center;align-items:center;width:100%;min-height:44px;padding:10px 14px;background:#edf4e9;border:1px solid #d7e5d1;border-radius:7px;color:#24523c;font-weight:600;white-space:nowrap;overflow-wrap:normal;word-break:normal}
 .project-list-table td:has(.empty){grid-column:1/-1}
}

.stage-workspace-facts{padding:14px;background:white;border:1px solid #dce5da;border-radius:9px;margin-bottom:16px}.stage-workspace-facts>summary{cursor:pointer;font-weight:600;color:#315a43}.stage-workspace .project-section{padding:18px}.stage-workspace .project-tabs{padding-top:8px}.stage-workspace .table-wrap{margin-top:14px}.stage-workspace .task-thread{margin-bottom:12px}.stage-workspace .page-heading{margin-top:12px}.stage-workspace .stage-discussion-thread p{white-space:pre-wrap}@media(max-width:750px){.stage-workspace .project-section{padding:14px}.stage-workspace .actions{display:flex;flex-wrap:wrap}.stage-workspace .actions>.btn{flex:1 1 140px}.stage-workspace .project-tabs{padding-inline:0}.stage-workspace-facts{font-size:14px}.stage-workspace .stage-discussion-thread{min-height:160px;max-height:48dvh}}

.stage-chat-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.stage-chat-heading h3{margin:0 0 4px}.stage-chat-heading small{font-size:12px;color:#6e8071}.stage-chat-thread{display:flex;flex-direction:column;gap:12px;min-height:220px;height:min(52dvh,480px);overflow-y:auto;padding:16px;border:1px solid #e0e8dd;border-radius:12px;background:#f0f4ed;overscroll-behavior:contain}.stage-chat-bubble{align-self:flex-start;max-width:85%;padding:12px 14px;border:1px solid #e2e8de;border-radius:12px 12px 12px 2px;background:white;overflow-wrap:anywhere}.stage-chat-bubble.mine{align-self:flex-end;background:#e0edda;border-color:#cfdfc8;border-radius:12px 12px 2px 12px}.stage-chat-sender{font-size:13px;font-weight:650;color:#31583d}.stage-chat-bubble p{white-space:pre-wrap;margin:7px 0;line-height:1.65;font-size:15px}.stage-chat-bubble time{display:block;font-size:11px;color:#738271;margin-top:8px;text-align:right}.stage-chat-photos{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.stage-chat-photos button{padding:0;border:0;border-radius:8px;overflow:hidden;background:transparent}.stage-chat-photos img{display:block;width:112px;height:96px;max-width:100%;object-fit:cover}.stage-chat-empty{color:#74836f;font-size:14px;text-align:center;margin:auto}.stage-chat-composer{margin-top:12px}.stage-chat-composer textarea{min-height:70px;max-height:180px}.stage-chat-sendbar{display:flex;gap:12px;align-items:center;margin-top:10px}.stage-chat-sendbar small{flex:1;font-size:11px;color:#72816e}.stage-chat-attach{position:relative;display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border:1px solid #d7e1d1;border-radius:7px;color:#315c43;cursor:pointer;font-size:14px;overflow:hidden}.stage-chat-attach input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.stage-chat-selected{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.stage-chat-selected>div{position:relative}.stage-chat-selected img{width:64px;height:64px;object-fit:cover;border-radius:7px}.stage-chat-selected button{position:absolute;right:-4px;top:-4px;width:26px;height:26px;background:#244d39;color:white;border-radius:50%;font-size:18px}.stage-photo-view{display:flex!important;justify-content:center;align-items:center}.stage-photo-view img{max-width:100%;max-height:70dvh;object-fit:contain}.stage-chat-composer .form-error{padding:0;margin:8px 0;font-size:13px}@media(max-width:750px){.stage-chat-thread{height:44dvh;min-height:180px;padding:10px}.stage-chat-bubble{max-width:92%;padding:10px 12px}.stage-chat-photos img{width:88px;height:80px}.stage-chat-sendbar{gap:8px;flex-wrap:wrap}.stage-chat-sendbar small{font-size:10px;min-width:80px}.stage-chat-sendbar .btn{min-width:75px}.stage-chat-composer textarea{font-size:16px}}

/* Keep equipment actions readable at tablet widths as well as on phones. */
.resource-grid .equipment-register-table{min-width:1040px;table-layout:auto}
.resource-grid .equipment-register-table .equipment-actions-cell,.resource-grid .equipment-register-table th:last-child{min-width:150px;width:150px;white-space:nowrap;overflow-wrap:normal;word-break:normal}
.resource-grid .equipment-log-action{display:inline-flex;align-items:center;justify-content:center;min-width:120px;min-height:44px;padding:10px 12px;border:1px solid #d9e4d4;border-radius:7px;background:#edf4e9;color:#28543d;white-space:nowrap;overflow-wrap:normal;word-break:normal;font-size:14px}
.resource-grid table:not(.equipment-register-table) td:last-child,.resource-grid table:not(.equipment-register-table) th:last-child{position:static;box-shadow:none}
@media(max-width:750px){.resource-grid .equipment-register-table{min-width:0}.resource-grid .equipment-log-action{width:100%;min-width:0}.equipment-mobile-cards tbody tr[hidden]{display:none!important}}

.milestone-card.completed-stage-card{padding:0;background:#f9fbf7;border-color:#dbe6d7}.completed-stage>summary{display:flex;align-items:center;gap:14px;padding:18px 20px;cursor:pointer;list-style:none;min-height:72px}.completed-stage>summary::-webkit-details-marker{display:none}.completed-stage>summary:before{content:'▸';color:#567450;font-size:18px;flex-shrink:0}.completed-stage[open]>summary:before{content:'▾'}.completed-stage-title{flex:1;min-width:0;font-weight:650;color:#315c43;overflow-wrap:anywhere}.completed-stage-title small{display:block;margin-top:5px;font-weight:400;font-size:12px;color:#72836d}.completed-stage-hint{font-size:12px;color:#627a5d}.completed-stage .badge.Completed{background:#e4f0e0;color:#3b7045;flex-shrink:0}.completed-stage-body{padding:20px;border-top:1px solid #e0e8dc;background:white;border-radius:0 0 10px 10px}.completed-stage>summary:focus-visible{outline:3px solid #d9b879;outline-offset:-3px;border-radius:9px}@media(max-width:750px){.completed-stage>summary{padding:14px;gap:10px;flex-wrap:wrap}.completed-stage-title{flex-basis:55%}.completed-stage-hint{display:none}.completed-stage-body{padding:14px}.completed-stage .badge.Completed{font-size:11px}}
.material-tabs{display:flex;gap:6px;overflow-x:auto;padding:6px;background:#eaf0e7;border:1px solid #dce6d6;border-radius:11px;margin:22px 0;scrollbar-width:thin}.material-tabs button{flex:1 0 auto;min-height:44px;border:0;border-radius:7px;padding:10px 15px;background:transparent;color:#52684e;font:inherit;font-size:14px;white-space:nowrap;cursor:pointer}.material-tabs button[aria-pressed=true]{background:#214e3e;color:white;box-shadow:0 2px 4px #193b2920}.material-tabs button:focus-visible{outline:3px solid #bca06b}.material-process{background:white;border:1px solid #dde6d8;border-radius:9px;padding:14px 18px}.material-process summary{cursor:pointer;color:#315d43;font-weight:600}.material-process ol{list-style:none;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:20px 0}.material-process li b,.material-process li span{display:block}.material-process li b{margin-bottom:8px;color:#31583f}.material-process li span,.material-process p{font-size:13px;line-height:1.7;color:#6e7e68}.material-panel-action{display:flex;justify-content:flex-end;margin:0 0 16px}.materials-workspace .resource-stats{margin-top:20px}.materials-workspace .resource-grid{display:block}.materials-workspace .card-head{gap:16px;flex-wrap:wrap}.material-deliveries{padding:20px;margin-bottom:18px}.material-deliveries p{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid #e5ebe0}.materials-workspace table{min-width:800px}.materials-workspace td:last-child{min-width:145px;word-break:normal;overflow-wrap:normal}.materials-workspace td:last-child button{min-height:40px;white-space:normal;word-break:normal}.materials-workspace .page-heading{margin-bottom:18px}@media(max-width:750px){.material-process{padding:12px 14px}.material-process ol{grid-template-columns:1fr;gap:14px}.material-tabs{margin:16px 0;position:relative}.material-tabs button{flex:0 0 auto;padding:10px 12px}.materials-workspace .resource-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.materials-workspace .resource-stats article{padding:14px}.materials-workspace .resource-stats b{font-size:23px}.materials-workspace .resource-stats small{font-size:11px}.materials-workspace .card-head .actions{width:100%;display:flex}.materials-workspace .card-head .actions>.btn{flex:1;padding:10px}.material-panel-action>.btn{width:100%}}
@media(max-width:750px){.materials-workspace .resource-stats article{min-height:0;padding:12px;gap:5px}.materials-workspace .resource-stats article>span{font-size:12px}.materials-workspace .resource-stats article>b{font-size:21px;margin:2px 0}.materials-workspace .resource-stats article>small{margin-top:0}.materials-workspace .resource-stats{margin:14px 0}.materials-workspace .material-process{font-size:13px}}
.material-stat-link{cursor:pointer;transition:border-color .15s,box-shadow .15s}.material-stat-link:hover{border-color:#769b75;box-shadow:0 4px 14px #214e3e16}.material-stat-link:focus-visible{outline:3px solid #bda36f;outline-offset:3px}.material-stat-hint{font-size:11px;color:#326249;margin-top:8px}.material-stat-body{display:block!important;overflow:auto;padding:18px;min-width:0}.material-stat-body .table-wrap{max-width:100%;overflow:auto}.material-stat-body table{min-width:720px}.material-stat-body td{word-break:normal;overflow-wrap:normal}.material-stat-body small{display:block;color:#73836d;margin-top:5px}@media(max-width:750px){.material-stat-body{padding:12px}.material-stat-hint{margin-top:4px}}
.po-next-step{display:block;margin:8px 0;color:#46694a;font-weight:600}.po-receive-action{display:block;margin-top:8px;white-space:normal!important;min-width:150px}
.accounts-receipt-notice{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:16px 0}.accounts-receipt-notice>div{line-height:1.7}@media(max-width:750px){.accounts-receipt-notice{align-items:stretch;flex-direction:column}.accounts-receipt-notice>.btn{width:100%}}
/* Phone registers prioritize actual records instead of wide desktop columns. */
@media(max-width:600px){
 .table-wrap:has(>.mobile-record-table){overflow:visible;padding:0 10px 10px}
 .table-wrap:has(>.mobile-record-table):after{display:none}
 .table-wrap>table.mobile-record-table{display:block!important;min-width:0!important;width:100%!important;table-layout:auto}
 .mobile-record-table thead{display:none}
 .mobile-record-table tbody{display:block}
 .mobile-record-table tbody tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;padding:16px;margin:12px 0 0;border:1px solid #dfe7dc;border-radius:10px;background:white}
 .mobile-record-table tbody tr[hidden]{display:none!important}
 .table-wrap .mobile-record-table td{display:block;position:static!important;inset:auto!important;width:auto!important;min-width:0!important;max-width:100%;padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important;white-space:normal!important;overflow-wrap:anywhere;word-break:normal;font-size:14px;line-height:1.6}
 .mobile-record-table td:before{content:attr(data-label);display:block;color:#64785f;font-size:12px;font-weight:600;margin-bottom:5px}
 .mobile-record-table td:first-child,.mobile-record-table td:last-child,.mobile-record-table td[colspan]{grid-column:1/-1}
 .mobile-record-table td[colspan]:before{display:none}
 .mobile-record-table td small{display:block;font-size:12px;line-height:1.65;margin-top:4px}
 .mobile-record-table td button,.mobile-record-table td .linkbutton,.mobile-record-table td a{min-height:44px;max-width:100%;white-space:normal!important;word-break:normal}
 .mobile-record-table .account-row-actions{display:flex;flex-wrap:wrap;gap:8px}
 .mobile-record-table .account-row-actions>.btn{flex:1 1 160px}
 .material-tabs button,.account-tabs button{min-height:44px}
 .stage-chat-sendbar small{font-size:12px}
}
.mobile-section-picker{display:none}
@media(max-width:600px){.mobile-section-picker{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:600;color:#47633f;margin:16px 0}.mobile-section-picker select{width:100%;min-height:46px;font:inherit;font-size:16px;padding:10px 12px;border:1px solid #d6e1d0;border-radius:8px;background:white;color:#284a35}.mobile-section-picker+.material-tabs,.mobile-section-picker+.account-tabs{display:none}.materials-workspace .page-heading h1,.accounts-heading h1{font-size:23px}}
#dashboard-muster-rows{width:100%;min-width:0;overflow-x:hidden!important}#dashboard-muster-rows .dashboard-muster-row{min-width:0;grid-template-columns:minmax(0,1fr) 110px;gap:12px;align-items:center;padding:14px 0}.dashboard-muster-row>.worker-work-field{grid-column:1/-1}.dashboard-muster-row .check-row{min-width:0}.dashboard-muster-row .check-row span{overflow-wrap:anywhere}.dashboard-muster-row .worker-work-field textarea{box-sizing:border-box;width:100%;min-width:0;min-height:64px;padding:10px;border:1px solid #dce5da;border-radius:7px;font:inherit;font-size:14px;resize:vertical}.attendance-work-note{display:block;white-space:pre-wrap;line-height:1.6;margin-top:5px}@media(max-width:750px){#dashboard-muster-rows .dashboard-muster-row{grid-template-columns:minmax(0,1fr) 100px}#dashboard-muster-rows .dashboard-muster-row>.check-row{grid-column:auto}.dashboard-muster-row .worker-work-field textarea{font-size:16px}.dashboard-muster-row label{font-size:13px}}
/* Attendance has one scrollable form body and full-width worker cards. */
.modal:has(>#dashboard-attendance-form){display:flex;flex-direction:column;overflow:hidden;max-height:calc(100dvh - 32px)}
#dashboard-attendance-form{display:flex;flex-direction:column;width:100%;min-width:0;min-height:0;max-height:calc(100dvh - 32px);overflow:hidden}
#dashboard-attendance-form>.modal-header,#dashboard-attendance-form>.modal-footer{flex:0 0 auto}
#dashboard-attendance-form>.form-grid{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;align-content:start;grid-template-columns:repeat(2,minmax(0,1fr))}
#dashboard-attendance-form>.form-grid>.wide{grid-column:1/-1;width:100%;min-width:0}
#dashboard-attendance-form .attendance-workers-section{display:block}
#dashboard-attendance-form #dashboard-muster-rows{display:flex;flex-direction:column;width:100%;max-width:100%;max-height:none!important;overflow:visible!important;gap:12px}
#dashboard-attendance-form .dashboard-muster-row{display:grid;width:100%;max-width:100%;min-width:0;grid-template-columns:minmax(0,1fr) 112px;gap:14px;padding:16px;border:1px solid #dde6d8;border-radius:10px;background:#f9fbf7;align-items:center}
#dashboard-attendance-form .dashboard-muster-row:has([data-include]:checked){border-color:#86aa83;background:#f0f6ec}
#dashboard-attendance-form .dashboard-muster-row>.worker-work-field{grid-column:1/-1}
#dashboard-attendance-form .dashboard-muster-row label{font-size:13px}
#dashboard-attendance-form .dashboard-muster-row .check-row{font-size:15px;font-weight:600;min-height:44px;gap:10px}
#dashboard-attendance-form .dashboard-muster-row .check-row small{font-size:12px;font-weight:400;line-height:1.6}
#dashboard-attendance-form .dashboard-muster-row input[data-hours]{min-height:44px;font-size:15px;background:white}
#dashboard-attendance-form .dashboard-muster-row textarea{min-height:68px;background:white}
#dashboard-attendance-form .attendance-workers-heading{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:4px 0 12px}
#dashboard-attendance-form .attendance-workers-heading h3{margin:0;font-size:16px}
#dashboard-attendance-form .attendance-workers-heading span{font-size:12px;color:#6b7e65;line-height:1.6}
#dashboard-attendance-form .attendance-common-work{padding:12px 14px;background:#f6f9f3;border:1px solid #e0e7da;border-radius:8px}
#dashboard-attendance-form .attendance-common-work summary{font-size:13px;color:#3b6248;cursor:pointer}
#dashboard-attendance-form .attendance-common-work .field{margin-top:12px}
#dashboard-attendance-form>.form-error:empty{display:none}
#dashboard-attendance-form>.modal-footer{border-top:1px solid #e2e8dd;background:white;padding:14px 20px}
@media(max-width:600px){#dashboard-attendance-form>.form-grid{grid-template-columns:minmax(0,1fr);padding:14px}#dashboard-attendance-form .dashboard-muster-row{padding:12px;grid-template-columns:minmax(0,1fr) 96px;gap:12px}#dashboard-attendance-form .dashboard-muster-row input[data-hours],#dashboard-attendance-form .dashboard-muster-row textarea{font-size:16px}#dashboard-attendance-form>.modal-footer{padding:12px;gap:8px}#dashboard-attendance-form>.modal-header h2{font-size:19px}}
.attendance-rule-help{padding:14px 18px;border:1px solid #dce5d7;background:#f7faf4;border-radius:9px;margin:16px 0;color:#486344;font-size:14px;line-height:1.7}.attendance-rule-help summary{cursor:pointer;font-weight:600;color:#315c40}.attendance-rule-help li{margin:8px 0}.attendance-block-reason{display:block;max-width:280px;padding:8px 10px;background:#f5f6ee;border-radius:6px;color:#6d765b;font-size:12px;line-height:1.6}
.contract-value-body{display:block!important;padding:20px;overflow:auto;min-width:0}.contract-value-body .summary-note{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap}.contract-value-body .summary-note strong{font-size:20px;color:#24543b}.contract-value-body table{width:100%;min-width:650px}.contract-value-body td strong{white-space:normal}.contract-value-body td small{display:block;margin-top:5px;color:#75846e}@media(max-width:600px){.contract-value-body{padding:12px}.contract-value-body .summary-note strong{font-size:19px}.contract-value-body .mobile-record-table td:last-child{grid-column:auto}}
