/* TenantPeach Management Company — Mobile Cleanup v1, 2026-11-19.
   Presentation only: no records, approvals, navigation routes, or payments change. */
@media (max-width: 970px) {
  .workspace-shell.ws-shell,
  .workspace-shell.ws-shell .ws-surface,
  .workspace-shell.ws-shell .ws-body,
  .tv-manager-shell,
  .tpcv-root,
  .ops-main,
  .ops-board,
  .tp-finance-page-v3,
  #tpManagerReportingMount,
  .tpcm-root,
  .tpwd-root {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .workspace-shell.ws-shell .ws-panel,
  .workspace-shell.ws-shell .ws-stats,
  .ops-panel,
  .tpcv-editor,
  .tpcv-directory,
  .tp-finance-page-v3 .tpf-hub,
  .tp-finance-page-v3 .tpf-accordion-body,
  .tpcm-layout,
  #tpCalendarMount {
    min-width: 0;
    max-width: 100%;
  }
  .workspace-shell.ws-shell .ws-table-scroll,
  .tp-finance-page-v3 .tpmcp-table-wrap,
  .tp-finance-page-v3 .tpf-accordion-body table,
  .ops-panel .ops-queue-rows,
  #tpManagerReportingMount .tprp-table-wrap {
    max-width: 100%;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  .workspace-shell.ws-shell .ws-table-scroll,
  .tp-finance-page-v3 .tpmcp-table-wrap {
    overflow-x: auto;
  }
  .workspace-shell.ws-shell input:not([type=checkbox]):not([type=radio]),
  .workspace-shell.ws-shell select,
  .workspace-shell.ws-shell textarea,
  .tv-manager-shell input:not([type=checkbox]):not([type=radio]),
  .tv-manager-shell select,
  .tv-manager-shell textarea,
  .ops-main input:not([type=checkbox]):not([type=radio]),
  .ops-main select,
  .ops-main textarea,
  .tpwd-root input:not([type=checkbox]):not([type=radio]),
  .tpwd-root select,
  .tpwd-root textarea {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    font-size: 16px;
  }
  .workspace-shell.ws-shell button,
  .workspace-shell.ws-shell .ws-export,
  .tv-manager-shell button,
  .ops-main button,
  .ops-main .btn,
  .tpwd-root button,
  #tpCalendarMount button {
    touch-action: manipulation;
    min-height: 44px;
  }
  .workspace-shell.ws-shell :focus-visible,
  .tv-manager-shell :focus-visible,
  .ops-main :focus-visible,
  .tpwd-root :focus-visible {
    outline: 3px solid #2c8378;
    outline-offset: 2px;
  }
}
@media (max-width: 800px) {
  .workspace-shell.ws-shell .ws-surface {
    grid-template-columns: minmax(0,1fr);
    gap: 12px;
  }
  .workspace-shell.ws-shell .ws-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
    padding: 8px;
    gap: 6px;
    border-radius: 12px;
  }
  .workspace-shell.ws-shell .ws-nav a,
  .workspace-shell.ws-shell .ws-nav button {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-height: 44px;
    padding: 10px 13px;
    font-size: 12px;
    white-space: nowrap;
  }
  .workspace-shell.ws-shell .ws-nav button.ws-signout {
    margin: 0 0 0 8px;
    flex-shrink: 0;
  }
  .workspace-shell.ws-shell .ws-section-title h2 { font-size: clamp(21px,5vw,27px); }
  .workspace-shell.ws-shell .ws-panel-title { flex-wrap: wrap; gap: 8px; }
  .tpcv-columns { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .tpcv-directory {
    border: 0;
    border-bottom: 1px solid #e0e9e8;
    padding: 0 0 9px;
    display: block;
    white-space: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  .tpcv-directory > h3 {
    display: block;
    white-space: normal;
    width: 100%;
    margin-bottom: 9px;
  }
  .tpcv-directory .tpcv-item {
    display: inline-flex;
    vertical-align: top;
    width: min(76vw,240px);
    min-width: 0;
    white-space: normal;
    margin: 0 8px 6px 0 !important;
  }
  .tpcv-editor { padding-top: 4px; }
}
@media (max-width: 650px) {
  .workspace-shell.ws-shell .wrap { width: calc(100% - 26px); }
  .workspace-shell.ws-shell .workspace-topline { gap: 10px; flex-wrap: wrap; }
  .workspace-shell.ws-shell .workspace-topline h1 {
    font-size: clamp(23px,6vw,29px);
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
  .workspace-shell.ws-shell .ws-breadcrumb { flex-wrap: wrap; gap: 7px; }
  .workspace-shell.ws-shell .ws-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .workspace-shell.ws-shell .ws-stat { min-width: 0; min-height: 112px; padding: 14px 12px; }
  .workspace-shell.ws-shell .ws-stat strong { font-size: clamp(20px,5.6vw,26px); overflow-wrap: anywhere; }
  .workspace-shell.ws-shell .ws-two-col { grid-template-columns: minmax(0,1fr); }
  .workspace-shell.ws-shell .ws-panel-title { padding: 15px; }
  .workspace-shell.ws-shell .ws-tools {
    padding: 12px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .workspace-shell.ws-shell .ws-tools input { flex: 1 1 100%; max-width: none; }
  .workspace-shell.ws-shell .ws-tools .ws-export { flex: 1 1 auto; }
  .workspace-shell.ws-shell .ws-table th,
  .workspace-shell.ws-shell .ws-table td { padding: 12px 13px; }
  .tpcv-root { margin: 12px 0; }
  .tpcv-heading { align-items: stretch; gap: 9px; }
  .tpcv-heading h2 { font-size: 1.19rem; }
  .tpcv-heading > .tpcv-secondary,
  .tpcv-heading > button,
  .tpcv-heading > label,
  .tpcv-heading > strong { max-width: 100%; }
  .tpcv-grid { grid-template-columns: minmax(0,1fr); gap: 9px; }
  .tpcv-form input:not([type=checkbox]),
  .tpcv-form select,
  .tpcv-form textarea { min-height: 44px; font-size: 16px; }
  .tpcv-service-options { grid-template-columns: minmax(0,1fr); }
  .tpcv-actions { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; }
  .tpcv-actions button { width: 100%; min-height: 46px !important; }
  .tpcv-tech-section { padding: 12px; }
  .tpcv-tech-title { flex-direction: column; align-items: stretch; }
  .tpcv-tech-title > button { width: 100%; min-height: 46px; }
  .tpcv-tech-row { flex-direction: column; align-items: stretch; }
  .tpcv-tech-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tpcv-tech-actions button { min-height: 44px; white-space: normal; }
  .tpcv-bill-top { gap: 9px; flex-wrap: wrap; }
  .tv-manager-shell { max-width: 100%; }
  .tv-manager-shell .tv-manager-head { min-width: 0; }
  .tv-manager-shell .tv-manager-head h1 { font-size: clamp(25px,7vw,35px); overflow-wrap: anywhere; }
  .tv-manager-shell .tv-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tv-manager-shell .tv-review-card,
  .tv-manager-shell .tv-record { min-width: 0; overflow-wrap: anywhere; }
  .ops-hero-inner { gap: 15px; padding: 26px 0 30px; }
  .ops-hero h1 { font-size: clamp(27px,7vw,36px); }
  .ops-hero-side, .ops-hero-links { width: 100%; }
  .ops-hero-links { gap: 12px; justify-content: flex-start; }
  .ops-top-actions { align-items: stretch; }
  .ops-actions { width: 100%; }
  .ops-actions .btn { min-height: 46px; }
  .ops-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ops-metric { padding: 12px; min-height: 104px; }
  .ops-metric-value { font-size: clamp(24px,7vw,32px); overflow-wrap: anywhere; }
  .ops-panel-head { padding: 14px; flex-wrap: wrap; }
  .ops-filters { padding: 12px; }
  .ops-status-filters { gap: 7px; }
  .ops-status-filters button { min-height: 40px; }
  .ops-modal-backdrop:not([hidden]) { padding: 9px; align-items: flex-start; }
  .ops-modal { max-width: 100%; max-height: calc(100dvh - 20px); overflow-y: auto; padding: 18px 14px; }
  .tp-finance-page-v3 .tpf-intro { padding: 16px; border-radius: 13px; }
  .tp-finance-page-v3 .tpf-progress { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tp-finance-page-v3 .tpf-progress-step { min-height: 44px; font-size: 11px; }
  .tp-finance-page-v3 .tpf-accordion>summary { min-height: 58px; padding: 12px; }
  .tp-finance-page-v3 .tpf-accordion-body { padding: 12px; }
  .tp-finance-page-v3 .tpmcp-panel { padding: 12px; }
  .tp-finance-page-v3 .tpmcp-buttons { flex-wrap: wrap; gap: 7px; }
  .tp-finance-page-v3 .tpmcp-buttons button { flex: 1 1 140px; white-space: normal; }
  #tpManagerReportingMount .tprp-grid { grid-template-columns: minmax(0,1fr); }
  .tpcm-root .tpcm-layout { grid-template-columns: minmax(0,1fr); }
  .tpcm-root .tpcm-contact-pane { max-height: 300px; }
  .tpwd-root { padding: 0 12px; }
  .tpwd-root .tpwd-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 10px; }
  .tpwd-root .tpwd-tabs button { flex-shrink: 0; min-height: 44px; }
  .tpwd-root .tpwd-actions button { min-height: 46px; }
  #tpCalendarMount .tpc-tools { flex-wrap: wrap; gap: 8px; }
  #tpCalendarMount .tpc-tools button { min-height: 44px; }
}
@media (max-width: 380px) {
  .workspace-shell.ws-shell .wrap { width: calc(100% - 20px); }
  .workspace-shell.ws-shell .ws-stat { padding: 11px 9px; }
  .workspace-shell.ws-shell .ws-stat strong { font-size: 21px; }
  .tpcv-tech-actions { grid-template-columns: minmax(0,1fr); }
  .ops-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .workspace-shell.ws-shell .ws-nav, .tpcv-directory, .tpwd-root .tpwd-tabs { scroll-behavior: auto; }
}


/* Management mobile refinement 1.1 — fewer duplicate links, quieter surfaces. */
@media (max-width: 800px) {
  /* The management top tabs already contain these destinations. Keep only
     additional tools in the secondary navigation; preserve Setup & activation. */
  .workspace-shell.ws-shell:has(> .wrap > .ws-management-nav)
    .ws-nav a[href^="#/dashboard?section="]:not([href="#/dashboard?section=activation"]) {
    display: none;
  }
  .workspace-shell.ws-shell:has(> .wrap > .ws-management-nav) .ws-nav {
    background: #f8fbfa;
    border-color: #e2ebe7;
    box-shadow: none;
    padding: 7px 8px;
    gap: 6px;
    margin-bottom: 3px;
  }
  .workspace-shell.ws-shell:has(> .wrap > .ws-management-nav) .ws-nav::before {
    content: "TOOLS";
    flex: 0 0 auto;
    align-self: center;
    color: #78928b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
    padding: 0 5px 0 2px;
  }
  .workspace-shell.ws-shell:has(> .wrap > .ws-management-nav) .ws-nav > a,
  .workspace-shell.ws-shell:has(> .wrap > .ws-management-nav) .ws-nav > button {
    border: 1px solid #e1eae6;
    background: #fff;
    border-radius: 9px;
    color: #365e5a;
    font-weight: 680;
    box-shadow: none;
  }
  .workspace-shell.ws-shell .ws-management-nav {
    gap: 7px;
    padding: 1px 0 11px;
    margin-bottom: 12px;
    scrollbar-width: thin;
  }
  .workspace-shell.ws-shell .ws-management-nav a {
    min-height: 44px;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12px;
    box-shadow: none;
  }
  .workspace-shell.ws-shell .ws-management-nav a.active {
    background: #eaf5ef;
    border-color: #b6d6c4;
    color: #155f52;
  }
}
@media (max-width: 650px) {
  .workspace-shell.ws-shell:has(> .wrap > .ws-management-nav) .workspace-topline {
    margin-bottom: 12px;
    gap: 9px;
  }
  .workspace-shell.ws-shell:has(> .wrap > .ws-management-nav) .workspace-topline h1 {
    margin: 5px 0 6px;
    letter-spacing: -.035em;
  }
  .workspace-shell.ws-shell:has(> .wrap > .ws-management-nav) .workspace-topline p {
    line-height: 1.4;
    font-size: 12.5px;
  }
  .workspace-shell.ws-shell:has(> .wrap > .ws-management-nav) .workspace-indicator {
    border-radius: 999px;
    padding: 7px 10px;
    white-space: normal;
    font-size: 10px;
    line-height: 1.4;
  }
  .workspace-shell.ws-shell:has(> .wrap > .ws-management-nav) .ws-stats { margin-bottom: 12px; }
  .workspace-shell.ws-shell:has(> .wrap > .ws-management-nav) .ws-stat,
  .workspace-shell.ws-shell:has(> .wrap > .ws-management-nav) .ws-panel {
    border-color: #e0e9e5;
    border-radius: 12px;
    box-shadow: none;
  }
  .workspace-shell.ws-shell:has(> .wrap > .ws-management-nav) .ws-stat {
    padding: 13px 12px;
    min-height: 106px;
  }
  .workspace-shell.ws-shell:has(> .wrap > .ws-management-nav) .ws-stat small {
    font-size: 11px;
    line-height: 1.35;
    color: #657f7a;
  }
  .workspace-shell.ws-shell:has(> .wrap > .ws-management-nav) .ws-stat strong {
    margin-top: 7px;
    letter-spacing: -.03em;
  }
  .workspace-shell.ws-shell:has(> .wrap > .ws-management-nav) .ws-section-title {
    margin-bottom: 14px;
  }
  .workspace-shell.ws-shell:has(> .wrap > .ws-management-nav) .ws-panel-title {
    padding: 14px 15px;
  }
  .workspace-shell.ws-shell:has(> .wrap > .ws-management-nav) .ws-scope-note {
    border-radius: 10px;
    background: #f6faf8;
    border-color: #84b6a4;
    padding: 12px 14px;
    margin-bottom: 13px;
  }
  /* The management command center is already functional; make its cards
     read like one cohesive mobile surface instead of competing callouts. */
  .workspace-shell.ws-shell .tpcc-hero { padding: 18px 17px; }
  .workspace-shell.ws-shell .tpcc-hero h2 { font-size: 24px; line-height: 1.2; }
  .workspace-shell.ws-shell .tpcc-hero p { font-size: 12.5px; line-height: 1.5; }
  .workspace-shell.ws-shell .tpcc-hero-cta {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 13px;
    margin-top: 13px;
    border-radius: 9px;
    font-size: 12px;
  }
  .workspace-shell.ws-shell .tpcc-metrics > div {
    padding: 13px 17px;
    gap: 3px;
  }
  .workspace-shell.ws-shell .tpcc-metrics strong { font-size: 25px; }
  .workspace-shell.ws-shell .tpcc-actions-heading { padding: 16px 16px 9px; }
  .workspace-shell.ws-shell .tpcc-action-grid {
    gap: 8px;
    padding: 3px 12px 16px;
  }
  .workspace-shell.ws-shell .tpcc-action {
    border-radius: 11px;
    padding: 13px 12px;
    min-height: 80px;
    gap: 10px;
    box-shadow: none;
  }
  .workspace-shell.ws-shell .tpcc-action:hover { transform: none; }
  .workspace-shell.ws-shell .tpcc-action small { margin-top: 3px; }
  .tpcv-root .tpcv-heading { margin-bottom: 11px; }
  .tpcv-root .tpcv-editor > h3 {
    font-size: 16px;
    line-height: 1.3;
    overflow-wrap: anywhere;
    margin-bottom: 11px;
  }
  .tpcv-root .tpcv-tech-section {
    background: #fff;
    border-color: #e2eae6;
    border-radius: 11px;
    margin: 13px 0;
    padding: 12px;
  }
  .tpcv-root .tpcv-tech-row {
    border-color: #e4ebe8;
    border-radius: 10px;
    box-shadow: none;
  }
  .tpcv-root .tpcv-form button[type=submit],
  .tpcv-root .tpcv-secondary {
    border-radius: 9px;
    font-weight: 720;
  }
  .tpcv-root .tpcv-service-types { border-radius: 10px; }
  .ops-panel, .ops-metric, .ops-order-row {
    box-shadow: none;
    border-radius: 11px;
  }
  .ops-panel-head { gap: 10px; }
  .ops-order-row { border-color: #e0e9e6; }
  .ops-actions .btn { border-radius: 9px; }
  .tp-finance-page-v3 .tpf-intro {
    background: #f8fbf9;
    border-color: #dce9e2;
    box-shadow: none;
    border-radius: 12px;
  }
  .tp-finance-page-v3 .tpf-accordion,
  .tp-finance-page-v3 .tpmcp-panel {
    border-radius: 12px;
    box-shadow: none;
  }
  .tp-finance-page-v3 .tpf-progress-step { border-radius: 9px; }
  .tpcm-root .tpcm-event { border-radius: 11px; }
  .tpwd-root .tpwd-info-card { border-radius: 12px; }
}
