/* RoofStone Desktop Readable v2: shared large-screen rules for ERP modules. */
@media screen and (min-width: 1440px) {
  #app-screen .workspace-view { font-size: 17px; line-height: 1.5; min-width: 0; }
  #app-screen .workspace-view .page-header { gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
  #app-screen .workspace-view .page-header h1 { font-size: clamp(34px, 2vw, 46px); }
  #app-screen .workspace-view .page-subtitle { font-size: 17px; line-height: 1.55; color: #526079; }
  #app-screen .workspace-view .eyebrow { font-size: 13px; }
  #app-screen .workspace-view :is(p, td, dt, dd, summary, label, legend) { font-size: 17px; line-height: 1.55; }
  #app-screen .workspace-view :is(h2, .card-header h2) { font-size: 24px; line-height: 1.35; }
  #app-screen .workspace-view h3 { font-size: 21px; line-height: 1.4; }
  #app-screen .workspace-view h4 { font-size: 18px; }
  #app-screen .workspace-view small { font-size: 14px; line-height: 1.5; }
  #app-screen .workspace-view :is(.primary, .secondary, .orders-action, .inventory-tab, .inventory-actions button, .cb-actions button, .access-actions button, .period-switch button) {
    min-height: 46px; height: auto; padding: 10px 16px; font-size: 17px; line-height: 1.45; white-space: normal;
  }
  #app-screen .workspace-view :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not([type=range]), select, textarea) {
    min-height: 46px; font-size: 17px; line-height: 1.45; box-sizing: border-box;
  }
  #app-screen .workspace-view :is(.chart-caption, .table-footer, .access-muted, .inventory-muted, .cb-muted, .wf-muted, .wf-event, .empty-state, .context-banner, .inventory-guide-muted) { font-size: 15px; line-height: 1.55; }
  #app-screen .workspace-view :is(.table-scroll, .inventory-table-scroll, .rs-shipment-table-scroll) { max-width: 100%; overflow-x: auto; }
  #app-screen .workspace-view table :is(th, td) { padding: 16px 20px; }
  #app-screen .workspace-view table th { font-size: 15px; line-height: 1.4; }
  #app-screen .workspace-view :is(.data-card-title, .kpi-title, .list-row, .list-row strong, .list-row span, .source-list, .cb-facts, .inventory-document-summary) { font-size: 17px; }
  #app-screen .workspace-view :is(.kpi-card, .analytics-kpi) { padding: 26px; }
  #app-screen .workspace-view :is(.kpi-card strong, .analytics-kpi strong, .warehouse-summary strong) { font-size: 36px; }
  #app-screen .workspace-view :is(.kpi-card small, .analytics-kpi small, .warehouse-summary > span) { font-size: 16px; }
  #app-screen .workspace-view :is(.client-toolbar, .catalog-toolbar, .access-toolbar, .inventory-filters, .wf-toolbar, .rs-shipment-actions) { gap: 14px; flex-wrap: wrap; }
  #app-screen .workspace-view :is(.inventory-field, .inventory-line > strong, .inventory-guide-summary, .inventory-guide-topic strong, .inventory-guide-steps li, .inventory-guide-steps strong, .inventory-guide-answer-text, .inventory-check, .inventory-product-result) { font-size: 17px; }
  #app-screen .workspace-view :is(.inventory-guide-topic span, .inventory-guide-topic button, .inventory-guide-question-chip, .inventory-guide-source) { font-size: 15px; }
  #app-screen .workspace-view .wf-column { flex-basis: clamp(290px, 20vw, 370px); min-width: 290px; max-width: 370px; padding: 14px; gap: 12px; }
  #app-screen .workspace-view .wf-column-head { font-size: 17px; padding: 10px 6px; }
  #app-screen .workspace-view .wf-case { font-size: 17px; gap: 9px; padding: 18px; }
  #app-screen .workspace-view :is(.wf-count, .wf-case small, .wf-done, .wf-overdue, .wf-check-label) { font-size: 15px; }
  #app-screen .workspace-view .wf-pipeline-tiles { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
  #app-screen .workspace-view .wf-pipeline-tile { padding: 20px; font-size: 18px; }
  #app-screen .workspace-view .wf-modal-detail:not([hidden]) { padding-inline: max(24px, calc((100vw - 1080px) / 2)) !important; }
  #app-screen .workspace-view .module-awaiting { max-width: 1000px; }
  #app-screen .workspace-view .rs-project-card-header { flex-wrap: wrap; }
  #app-screen .workspace-view .rs-project-card-header > div:first-child { flex: 1 1 400px; min-width: 0; }
  #app-screen .workspace-view .rs-project-card-header h3 { font-size: 28px; }
  #app-screen .workspace-view .rs-project-card-field { padding: 20px 22px; }
  #app-screen .workspace-view .rs-project-card-field dd { font-size: 22px; }
  #app-screen .workspace-view :is(.rs-team, .cb-section, .dc-section) { padding: 24px; }
  #app-screen .workspace-view.cb-view { max-width: none; }
  #app-screen .workspace-view .cb-list { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
  #app-screen .workspace-view .cb-crew-card { padding: 22px; }
  #app-screen .workspace-view :is(.cb-member-row strong, .cb-project-row strong) { font-size: 17px; }
  #app-screen .workspace-view .cb-badge { font-size: 14px; }
  #app-screen :is(#cabinet-view, #users-view) .data-card { padding: 24px; }
  #app-screen #cabinet-view .access-project-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
  #app-screen #cabinet-view .access-project-card { padding: 24px; min-height: 200px; }
  #app-screen :is(#cabinet-view, #users-view) :is(.access-profile-meta, .access-profile-role, .access-badge, .access-permission-details) { font-size: 15px; }
  #app-screen #users-view #access-users-tbody td { font-size: 17px; padding: 16px 20px; }
  #app-screen #users-view .access-actions { max-width: 440px; gap: 10px; }
  #app-screen #access-project-summary .dc-form,
  #app-screen #access-project-summary .dc-grid { max-width: 1050px; }
  #app-screen #access-project-summary .dc-gallery { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
  #app-screen #access-project-summary :is(.dc-report-top, .dc-coordinates, .dc-confirmation) { font-size: 16px; }
  body :is(.dialog, .access-dialog, .il-dialog, .cb-dialog, .inventory-dialog) { font-size: 17px; }
  body :is(.dialog, .access-dialog, .il-dialog, .cb-dialog, .inventory-dialog) :is(label, p, dt, dd, li, summary, legend) { font-size: 16px; line-height: 1.55; }
  body :is(.dialog, .access-dialog, .il-dialog, .cb-dialog, .inventory-dialog) h2 { font-size: 28px; }
  body :is(.dialog, .access-dialog, .il-dialog, .cb-dialog, .inventory-dialog) h3 { font-size: 21px; }
  body :is(.dialog, .access-dialog, .il-dialog, .cb-dialog, .inventory-dialog) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not([type=range]), select, textarea) {
    font-size: 17px; min-height: 46px; box-sizing: border-box;
  }
  body :is(.dialog, .access-dialog, .il-dialog, .cb-dialog, .inventory-dialog) :is(.primary, .secondary, .dialog-actions button, .access-actions button, .cb-actions button, .pk-form-actions button) { font-size: 17px; min-height: 46px; height: auto; padding: 10px 16px; white-space: normal; }
  body .catalog-dialog { width: min(960px, calc(100vw - 64px)); max-width: 960px; padding: 24px 28px 18px; }
  body .catalog-dialog .client-basic-grid { gap: 16px 18px; }
  body .catalog-dialog .phone-composite .phone-country { flex-basis: 130px; max-width: 130px; font-size: 15px !important; }
  body .catalog-dialog .phone-composite #client-phone { font-size: 17px; }
  body .catalog-dialog :is(.form-note, .supporting, .geo-empty) { font-size: 15px; }
  body .client360-dialog { width: min(1320px, calc(100vw - 64px)); max-width: 1320px; }
  body .product-dialog { width: min(980px, calc(100vw - 64px)); max-width: 980px; }
  body .wf-create-dialog { width: min(720px, calc(100vw - 64px)); max-width: 720px; }
  body :is(.access-dialog, .inventory-dialog, .cb-dialog) { width: min(840px, calc(100vw - 64px)); max-height: calc(100dvh - 48px); }
  body .il-dialog { width: min(1040px, calc(100vw - 64px)); }
  body .il-dialog.il-dialog-modern { width: min(1180px, calc(100vw - 64px)); }
  body .il-dialog-modern #il-title { font-size: 30px; }
  body .il-dialog-modern :is(.il-field-label, .il-section-hint, .il-save-hint, .il-subtitle) { font-size: 16px; }
  body .il-dialog-modern .il-section-title { font-size: 21px; }
  body .il-dialog-modern .il-actions > button.primary { font-size: 18px; min-height: 50px; }
  body .il-dialog-modern .il-head > button { font-size: 17px; }
  body #pk-profile-dialog.pk-viewport-shell[open] { width: min(840px, calc(var(--pk-vp-width, 100vw) - 48px)); }
  body #pk-profile-dialog :is(.pk-key-row p, .pk-security > p, .pk-identity dt, .pk-key-status) { font-size: 15px; }
  body :is(#access-user-dialog, #access-password-dialog, #access-assignment-dialog) .access-form :is(input:not([type=checkbox]), select) { font-size: 17px; min-height: 46px; }
  body :is(#access-user-dialog, #access-password-dialog, #access-assignment-dialog) .access-actions button { font-size: 17px; min-height: 46px; }
}

/* RoofStone Desktop Readable 20261116 v1: presentation only, large windows. */
@media screen and (min-width: 1440px) {
  #app-screen .workspace-body {
    box-sizing: border-box;
    width: 100%;
    max-width: 2560px;
    padding: 36px clamp(28px, 2vw, 56px) 48px;
  }
  #app-screen .workspace-top { padding-inline: 32px; }
  #app-screen .top-breadcrumb,
  #app-screen .header-user,
  #app-screen .workspace-top .link-button { font-size: 15px; }
  #app-screen .side-nav .nav-button { min-height: 48px; font-size: 15px; }
  #reports-view { font-size: clamp(16px, .9vw, 19px); }
  #reports-view > .page-header h1 { font-size: clamp(34px, 2vw, 46px); }
  #reports-view > .page-header .page-subtitle { font-size: 17px; line-height: 1.55; color: #526079; }
  #reports-view > .page-header .eyebrow { font-size: 13px; }
  #reports-view #rs-reports-journal > .data-card { padding: clamp(24px, 1.7vw, 40px); }
  #reports-view .rs-report-journal-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  #reports-view .rs-report-journal-toolbar h2 { margin: 0; font-size: clamp(24px, 1.4vw, 32px); }
  #reports-view #rs-reports-journal .rs-report-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 1.3vw, 32px);
    margin-top: 26px;
  }
  #reports-view #rs-reports-journal .rs-report-card { border-radius: 18px; }
  #reports-view #rs-reports-journal .rs-report-card-content {
    gap: 14px;
    padding: clamp(22px, 1.3vw, 32px);
  }
  #reports-view #rs-reports-journal .rs-report-card-content strong {
    font-size: clamp(21px, 1.2vw, 27px);
    line-height: 1.4;
    color: #263140;
    overflow-wrap: anywhere;
  }
  #reports-view #rs-reports-journal .rs-report-stage,
  #reports-view #rs-reports-journal .rs-report-card-description {
    font-size: clamp(16px, .9vw, 19px);
    line-height: 1.55;
    color: #475569;
    overflow-wrap: anywhere;
  }
  #reports-view #rs-reports-journal .rs-report-card-description { margin: 0; }
  #reports-view #rs-reports-journal .rr-note { font-size: 15px; line-height: 1.5; color: #526079; }
  #reports-view #rs-reports-journal .rs-report-status {
    font-size: 15px;
    padding: 7px 12px;
    line-height: 1.4;
    max-width: 100%;
    white-space: normal;
  }
  #reports-view #rs-reports-journal .rs-report-cover { aspect-ratio: 16 / 10; }
  #reports-view #rs-reports-journal .rs-report-open {
    margin: 0 24px 24px;
    width: calc(100% - 48px);
    min-height: 50px;
    padding: 12px 18px;
    font-size: 18px;
    line-height: 1.4;
    white-space: normal;
  }
  #reports-view .rs-report-create,
  #reports-view #rs-report-back,
  #reports-view #rs-create-submit {
    min-height: 48px;
    padding: 12px 20px;
    font-size: 17px;
    line-height: 1.4;
    white-space: normal;
  }
  #reports-view #rs-report-screen-content .report-details { padding: 30px 32px; }
  #reports-view #rs-report-screen-content .rs-detail-project { font-size: clamp(28px, 1.6vw, 38px); }
  #reports-view #rs-report-screen-content .rs-detail-number,
  #reports-view #rs-report-screen-content .rs-detail-header-main > p { font-size: 17px; color: #526079; }
  #reports-view #rs-report-screen-content .rs-detail-stat span { font-size: 15px; color: #526079; }
  #reports-view #rs-report-screen-content .rs-detail-stat strong { font-size: 20px; }
  #reports-view #rs-report-screen-content .rs-detail-description h4,
  #reports-view #rs-report-screen-content .rs-stage-toolbar > label,
  #reports-view #rs-report-screen-content .rw-workflow h4 { font-size: 18px; }
  #reports-view #rs-report-screen-content .rs-detail-description p { font-size: 18px; max-width: 95ch; }
  #reports-view #rs-report-screen-content .rs-stage-toolbar select,
  #reports-view #rs-report-screen-content .rs-stage-save,
  #reports-view #rs-report-screen-content .rw-workflow button { min-height: 46px; font-size: 17px; }
  #reports-view #rs-report-screen-content .rw-workflow p,
  #reports-view #rs-report-screen-content .rw-workflow textarea,
  #reports-view #rs-report-screen-content .rs-report-description-input { font-size: 17px; line-height: 1.6; }
  #reports-view #rs-report-screen-content .rs-photo-gallery {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
  }
  #reports-view #rs-report-screen-content .rs-photo-tile span { font-size: 14px; line-height: 1.5; }
  #reports-view #rs-report-create-screen .rs-report-create-panel { max-width: 1200px; padding: 30px 32px; }
  #reports-view #rs-report-create-screen .rs-report-create-panel > h2 { font-size: 32px; }
  #reports-view #rs-report-create-screen .rs-report-create-panel > .page-subtitle { font-size: 17px; color: #526079; }
  #reports-view #rs-report-create-form.rpd-compose > label,
  #reports-view .rpd-compose .rr-picker-section label,
  #reports-view .rpd-compose .rr-new-assignment label { font-size: 16px; }
  #reports-view #rs-report-create-form.rpd-compose :is(#rs-create-object, #rs-create-stage, #rs-create-description, #rr-create-project, #rr-new-crew, #rr-new-date, #rr-new-timezone, #cb-report-crew) { min-height: 48px; font-size: 18px; }
  #reports-view .rpd-step-title { font-size: 21px; }
  #reports-view .rpd-step-number { width: 32px; height: 32px; flex-basis: 32px; font-size: 16px; }
  #reports-view .rpd-upload-count,
  #reports-view .rpd-upload-clear,
  #reports-view .rpd-upload-hint,
  #reports-view .rpd-compose .rr-note,
  #reports-view .rpd-compose .rr-message,
  #reports-view #rs-create-message { font-size: 16px; line-height: 1.5; }
  #reports-view .rpd-upload-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  #reports-view .rpd-upload-tile { max-width: none; }
  #reports-view .rpd-upload-caption,
  #reports-view .rpd-upload-preview figcaption { font-size: 14px; }
  #reports-view .rpd-upload-plus { font-size: 44px; }
  #reports-view .rpd-upload-remove { min-width: 36px; min-height: 36px; }
  #reports-view .rs-report-location-map-caption { font-size: 16px; }
}
@media screen and (min-width: 2800px) {
  #reports-view #rs-reports-journal .rs-report-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
