/* One mobile layer; immutable older releases and desktop typography stay intact. */
.tenant-ui #app .operations-summary { min-width: 0; min-height: 0; background: #fff; }
.tenant-ui #app .operations-summary > summary { display: none; }
@media (max-width: 1100px) {
  .tenant-ui { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
  .tenant-ui #app { width: 100%; max-width: 100%; overflow: hidden; }
  .tenant-ui #app .content-shell { min-width: 0; max-width: 100%; overflow: hidden; }
  .tenant-ui #app button, .tenant-ui #app input, .tenant-ui #app select, .tenant-ui #app textarea,
  .tenant-ui .rs-root, .tenant-ui .rs-root .rs-btn { font-family: inherit; }
  .tenant-ui #app .topbar { box-sizing: border-box; max-width: 100%; }
  .tenant-ui #app .tenant-title h1 { font-size: 16px !important; font-weight: 600; line-height: 1.3 !important; text-transform: none; letter-spacing: 0; }
  .tenant-ui #app .topbar-zeroing-btn { font-size: 14px; font-weight: 600; line-height: 1.25; }
  .tenant-ui #app .top-metrics .metric.balance { min-width: 0; gap: 4px; }
  .tenant-ui #app .top-metrics .metric.balance b { font-size: 14px !important; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow-wrap: normal; }
  .tenant-ui #app .tenant-hub-menu, .tenant-ui #app .side-menu { box-sizing: border-box; width: min(88vw, 340px) !important; }
  .tenant-ui #app .tenant-hub-menu::before { display: none; }
  .tenant-ui #app .tenant-hub-menu__brand { min-height: 76px !important; padding: 12px !important; grid-template-columns: minmax(0, 1fr) 44px !important; }
  /* Tenant-uploaded logos have arbitrary aspect ratios; identity text stays clear. */
  .tenant-ui #app .tenant-hub-menu__brand .tenant-logo-button { display: none !important; }
  .tenant-ui #app .tenant-hub-menu__brand-copy { grid-area: 1 / 1 !important; }
  .tenant-ui #app .tenant-hub-menu__brand-copy b { font-size: 16px !important; font-weight: 600; line-height: 1.35 !important; overflow-wrap: anywhere !important; }
  .tenant-ui #app .tenant-hub-menu__brand-copy span { font-size: 11px !important; font-weight: 400; letter-spacing: .03em; }
  .tenant-ui #app #mobileHubCollapseBtn { grid-area: 1 / 2 !important; }
  .tenant-ui #app .tenant-hub-menu__nav, .tenant-ui #app .side-menu__nav { padding: 8px 10px calc(20px + env(safe-area-inset-bottom, 0px)) !important; scroll-padding-block: 12px 32px; }
  .tenant-ui #app .tenant-hub-menu__item, .tenant-ui #app .side-menu__item { min-height: 46px !important; gap: 10px !important; padding: 7px 10px !important; letter-spacing: 0; }
  .tenant-ui #app .tenant-hub-menu__item b, .tenant-ui #app .side-menu__item b { min-width: 0; font-size: 14px !important; font-weight: 500 !important; line-height: 1.4 !important; white-space: normal; overflow-wrap: anywhere; }
  .tenant-ui #app .tenant-hub-menu__item .material-icons, .tenant-ui #app .side-menu__item .material-icons { font-size: 21px !important; background: transparent; }
  .tenant-ui #app .tenant-hub-menu__caption { font-size: 10px; font-weight: 500; text-align: left; }
  .tenant-ui #app .hub-future summary { font-size: 13px; min-height: 44px; padding: 12px 10px; box-sizing: border-box; }
  .tenant-ui #app .tenant-hub-menu__primary { flex: 0 0 auto; }
  .tenant-ui #app #section-zeroings { min-width: 0; overflow: hidden; }
  .tenant-ui #app #section-zeroings .filterbar { min-width: 0; box-sizing: border-box; }
  .tenant-ui #app #section-zeroings .search-box { min-width: 0; padding-inline: 10px; }
  .tenant-ui #app #section-zeroings .search-box input { min-width: 0; font-weight: 400; }
  .tenant-ui #app #section-zeroings .date-box { min-width: 0; overflow: hidden; box-shadow: none; border-radius: 8px; }
  .tenant-ui #app #section-zeroings .date-box input { min-width: 0; max-width: 100%; min-height: 44px; font-weight: 400; text-align: center; }
  .tenant-ui #app #section-zeroings .date-box input::-webkit-date-and-time-value { min-width: 0; text-align: center; }
  .tenant-ui #app #section-zeroings .table-shell { max-width: 100%; cursor: auto; }
  .tenant-ui #app #addDrawer { box-sizing: border-box; max-width: 100%; padding-top: env(safe-area-inset-top, 0px); }
  .tenant-ui #app #addDrawer .drawer-step { min-width: 0; overflow-wrap: anywhere; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important; }
  .tenant-ui #app #addDrawer .drawer-tabs strong { font-size: 16px; font-weight: 600; }
  .tenant-ui #app #addDrawer .stepper { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; overflow: hidden; }
  .tenant-ui #app #addDrawer .stepper button { min-width: 0 !important; padding: 8px 5px !important; font-size: 12px; font-weight: 500; line-height: 1.4; white-space: normal !important; overflow-wrap: anywhere; }
  .tenant-ui #app #addDrawer .review-block h3 { font-size: 18px; }
  .tenant-ui #app #addDrawer .review-grid b { font-weight: 500; }
}
@media (max-width: 760px), (max-width: 1100px) and (max-height: 500px) {
  .tenant-ui #app #section-zeroings .filterbar { grid-template-rows: 44px 46px !important; }
  .tenant-ui #app #section-zeroings .date-box { height: 46px !important; padding: 0 6px; gap: 4px; }
  .tenant-ui #app #section-zeroings .date-picker-btn { display: none; }
  .tenant-ui #app #section-zeroings .date-box .dash { font-size: 13px; }
  .tenant-ui #app #section-zeroings .ops-table th { height: 44px !important; font-size: 12px !important; font-weight: 600; padding: 8px 10px !important; line-height: 1.35; }
  .tenant-ui #app #section-zeroings .ops-table td { height: 44px !important; font-size: 13px !important; padding: 8px 10px !important; line-height: 1.4; }
  .tenant-ui #app #section-zeroings .ops-table .type-cell { gap: 7px; }
  .tenant-ui #app #section-zeroings .ops-table .percent-icon { width: 20px; height: 20px; font-size: 11px; }
  .tenant-ui #app #section-zeroings .operations-summary { border-top: 1px solid #dce1e8; }
  .tenant-ui #app .operations-summary > summary { display: list-item; box-sizing: border-box; min-height: 44px; padding: 13px 16px; font-size: 13px; font-weight: 500; color: #475569; cursor: pointer; }
  .tenant-ui #app #section-zeroings .summarybar { border: 0; max-height: 35dvh; overflow: auto; padding: 0; }
  .tenant-ui #app #section-zeroings .summarybar > div { padding: 10px 12px !important; gap: 5px; }
  .tenant-ui #app #section-zeroings .summarybar b { font-size: 12px !important; font-weight: 600; }
  .tenant-ui #app #section-zeroings .summarybar span { font-size: 12px !important; font-weight: 400; line-height: 1.45 !important; overflow-wrap: normal; }
}
@media (max-width: 540px) {
  .tenant-ui #app .topbar { grid-template-columns: 40px minmax(0, 1fr); gap: 0 6px; padding: 2px 10px 8px !important; }
  .tenant-ui #app #mobileMenuToggle { width: 40px !important; min-width: 40px !important; }
  .tenant-ui #app .top-metrics { gap: 4px; }
  .tenant-ui #app .top-metrics .metric.balance { padding: 0 4px; justify-content: center; }
  .tenant-ui #app .top-metrics .metric.balance .icon { display: none; }
  .tenant-ui #app .topbar-zeroing-btn { flex: 0 1 auto; padding: 8px 10px; }
  .tenant-ui #app.hub-service .topbar { grid-template-columns: 40px minmax(0, 1fr) 44px; }
}
@media (max-width: 360px) {
  .tenant-ui #app .topbar-zeroing-btn { padding-inline: 7px; font-size: 13px; }
  .tenant-ui #app .top-metrics .metric.balance b { font-size: 13px !important; }
}
@media (max-width: 1100px) and (max-height: 500px) {
  .tenant-ui #app .topbar { display: flex !important; min-height: 52px !important; padding: 4px 10px !important; }
  .tenant-ui #app .top-metrics { width: auto !important; flex: 0 1 auto; }
  .tenant-ui #app #section-zeroings .filterbar { grid-template-columns: minmax(120px, 1fr) minmax(250px, 1.5fr) 44px 44px !important; grid-template-rows: 46px !important; }
  .tenant-ui #app #section-zeroings .date-box { grid-column: 2 !important; grid-row: 1 !important; }
  .tenant-ui #app #section-zeroings .refresh-btn { grid-column: 3 !important; }
  .tenant-ui #app #section-zeroings .export-btn { grid-column: 4 !important; }
}
