.pwa-install-button{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 11px;border:1px solid #d6e2ff;border-radius:9px;background:#edf3ff;color:#274eb9;font:600 12px 'Segoe UI',sans-serif;cursor:pointer;white-space:nowrap}
.pwa-install-button[hidden]{display:none!important}.pwa-install-floating{position:fixed;bottom:20px;right:20px;z-index:900;box-shadow:0 4px 18px #2148b524}
.pwa-install-dialog{box-sizing:border-box;width:min(440px,calc(100vw - 28px));max-height:85dvh;overflow:auto;margin:auto;padding:24px;border:1px solid #dce5f5;border-radius:18px;background:#fff;color:#24395f;font:14px/1.6 'Segoe UI',sans-serif;box-shadow:0 20px 80px #13265333}
.pwa-install-dialog::backdrop{background:#0c173878}.pwa-install-dialog h2{font-size:22px;margin:0 0 12px}.pwa-install-dialog p{margin:0 0 14px}.pwa-help-note{font-size:12px;color:#62728c}.pwa-close-help{border:0;border-radius:8px;background:#3159cf;color:#fff;padding:10px 20px;cursor:pointer;font:600 13px 'Segoe UI',sans-serif}
.pwa-install-button:focus-visible,.pwa-close-help:focus-visible{outline:3px solid #8aa9ff;outline-offset:3px}
html[data-workspace-theme=dark] .pwa-install-button{background:#243b60;color:#c4d8ff;border-color:#405b87}
html[data-workspace-theme=dark] .pwa-install-dialog{background:#172338;color:#d9e4f7;border-color:#405b87}html[data-workspace-theme=dark] .pwa-help-note{color:#adbeda}
@media(max-width:600px){.pwa-install-button{padding:7px 8px;min-height:34px;font-size:11px}.workspace-tools{flex-wrap:wrap}}
@media(display-mode:standalone){.pwa-install-button{display:none!important}body.owner-app{padding-bottom:env(safe-area-inset-bottom)!important}.workspace-bar{padding-top:max(13px,env(safe-area-inset-top))!important}}
/* Installation promotion belongs to mobile browsers only. */
@media(min-width:961px){.pwa-install-button{display:none!important}}
@media(hover:hover) and (pointer:fine){.pwa-install-button{display:none!important}}
.pwa-bottom-nav{display:none}
@media(max-width:960px){
 html.pwa-standalone body.owner-app{min-height:100dvh!important;overscroll-behavior-y:none;padding-bottom:0!important}
 html.pwa-standalone body.owner-app .layout>aside.sidebar{position:sticky!important;top:0!important;z-index:120!important;padding:calc(8px + env(safe-area-inset-top)) 12px 8px!important;box-shadow:0 2px 12px #1b3a6d0b!important}
 html.pwa-standalone body.owner-app .layout>aside.sidebar .brand{min-height:48px!important;grid-template-columns:48px minmax(0,1fr)!important;padding-right:48px!important;column-gap:10px!important}
 html.pwa-standalone body.owner-app .layout>aside.sidebar .brand img{width:48px!important;height:48px!important;max-width:48px!important;max-height:48px!important;border-radius:13px!important}
 html.pwa-standalone body.owner-app .layout>aside.sidebar .brand div{font-size:15px!important}
 html.pwa-standalone body.owner-app .layout>aside.sidebar .brand small{font-size:7px!important;letter-spacing:.7px!important}
 html.pwa-standalone .workspace-mobile-menu{top:calc(10px + env(safe-area-inset-top))!important;width:44px!important;height:44px!important}
 html.pwa-standalone body.owner-app .layout>main.main{padding-bottom:calc(88px + env(safe-area-inset-bottom))!important}
 html.pwa-standalone body.owner-app .mobile-topbar{display:none!important}
 html.pwa-standalone body.owner-app .workspace-bar{min-height:58px!important;padding-top:8px!important;padding-bottom:8px!important;margin-bottom:14px!important;justify-content:flex-end!important}
 html.pwa-standalone .workspace-context{display:none!important}
 html.pwa-standalone .workspace-tools{width:100%!important;justify-content:flex-end!important;gap:7px!important}
 html.pwa-standalone .workspace-tools .top-profile{margin-left:0!important}
 html.pwa-standalone .top-profile-btn{max-width:130px!important;min-height:44px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;padding:9px!important}
 html.pwa-standalone .workspace-theme-toggle,html.pwa-standalone .workspace-tools .workspace-add{min-height:44px!important;box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
 html.pwa-standalone .workspace-tools .workspace-avatar{display:none!important}
 html.pwa-standalone .pwa-bottom-nav:not([hidden]){display:grid!important;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);position:fixed;bottom:0;left:0;right:0;z-index:100;padding:6px max(6px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));background:#fff;border-top:1px solid #dce5f3;box-shadow:0 -3px 18px #1f3c7010}
 .pwa-bottom-nav :is(a,button){min-width:0;min-height:50px;border:0;background:transparent;color:#6b7c97;border-radius:10px;text-decoration:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font:600 10px/1.2 'Segoe UI',sans-serif;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
 .pwa-bottom-nav svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 .pwa-bottom-nav :is(a,button).active{background:#edf2ff;color:#2855dc}
 .pwa-bottom-nav :is(a,button):focus-visible{outline:3px solid #8aa9ff;outline-offset:-2px}
 html.pwa-standalone body.owner-app .main :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){font-size:16px!important;min-height:44px!important}
 html.pwa-standalone body.owner-app .main :is(.btn,.settings-tab,.sa-tab,.pricing-module-tabs button,.seats-shift,.seats-status){min-height:44px!important}
 html.pwa-standalone body.owner-app .main :is(.table-wrap,.profile-table,.payments-ledger-scroll){overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
 html.pwa-standalone body.owner-app .main :is(dialog,.sa-modal-card,.profile-action-dialog){max-height:calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;overflow-y:auto!important;scroll-padding-bottom:70px}
 html.pwa-standalone body.owner-app .main .seat-drawer{padding-bottom:calc(90px + env(safe-area-inset-bottom))!important}
 html.pwa-standalone body.owner-app .main .dash-auto-status{display:none!important}
 html.pwa-standalone body.owner-app .subscription-summary.subscription-premium{padding:15px!important;gap:11px!important}
 html.pwa-standalone body.owner-app .subscription-premium .subscription-summary-metric{min-width:0!important;padding:0 8px!important;flex:1 1 35%!important}
 html.pwa-standalone body.owner-app .subscription-premium .subscription-summary-metric strong{font-size:16px!important}
 html.pwa-standalone body.owner-app .subscription-premium .subscription-summary-title{font-size:17px!important}
 html.pwa-standalone body.owner-app .subscription-premium .subscription-clock{width:36px!important;height:36px!important;flex:0 0 36px!important}
 html.pwa-standalone body.owner-app .main .expense-history-card .btn{min-height:36px!important}
 html.pwa-standalone[data-workspace-theme=dark] .pwa-bottom-nav{background:#142138!important;border-color:#334766!important}
 html.pwa-standalone[data-workspace-theme=dark] .pwa-bottom-nav :is(a,button){color:#9fb2d1}
 html.pwa-standalone[data-workspace-theme=dark] .pwa-bottom-nav :is(a,button).active{background:#263e66;color:#c4d8ff}
}
@media print{.pwa-bottom-nav,.pwa-install-button{display:none!important}}
/* Refined against live installed-layout previews at phone widths. */
@media(max-width:960px){
 html.pwa-standalone .floating-table-scroll{display:none!important;pointer-events:none!important}
 html.pwa-standalone body.owner-app .main .dash-head h1{font-size:22px!important;line-height:1.3!important}
 html.pwa-standalone body.owner-app .subscription-summary.subscription-premium{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;padding:14px!important}
 html.pwa-standalone body.owner-app .subscription-premium .subscription-summary-main{grid-column:1/-1!important;min-width:0!important;padding:0!important}
 html.pwa-standalone body.owner-app .subscription-premium .subscription-summary-copy>div:not(.subscription-summary-title){display:none!important}
 html.pwa-standalone body.owner-app .subscription-premium .subscription-summary-metric{min-width:0!important;max-width:none!important;padding:0!important;border:0!important}
 html.pwa-standalone body.owner-app .subscription-premium .subscription-expiry{grid-column:1/-1!important;display:flex!important;align-items:center!important;gap:8px!important}
 html.pwa-standalone body.owner-app .subscription-premium .subscription-expiry strong{font-size:13px!important}
 html.pwa-standalone body.owner-app .subscription-premium .subscription-upgrade{grid-column:1/-1!important;width:100%!important;padding:9px!important;margin:0!important;box-sizing:border-box!important}
 html.pwa-standalone body.owner-app .main .student-list-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin-bottom:12px!important}
 html.pwa-standalone body.owner-app .main .student-list-summary .card{min-height:0!important;padding:11px 8px!important;border-radius:11px!important}
 html.pwa-standalone body.owner-app .main .student-list-summary .stat{font-size:24px!important;margin-top:5px!important}
 html.pwa-standalone body.owner-app .main .student-list-summary .stat-label{font-size:11px!important;line-height:1.35!important}
 html.pwa-standalone body.owner-app .main .student-list-summary .muted{font-size:10px!important}
 html.pwa-standalone body.owner-app .main .student-live-search{gap:7px!important;flex-wrap:wrap!important}
 html.pwa-standalone body.owner-app .main .payments-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin-bottom:10px!important}
 html.pwa-standalone body.owner-app .main .payments-summary section{padding:12px!important;min-width:0!important}
 html.pwa-standalone body.owner-app .main .payments-summary section:first-child{grid-column:1/-1!important}
 html.pwa-standalone body.owner-app .main .payments-summary section:not(:first-child){display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:5px!important}
 html.pwa-standalone body.owner-app .main .payments-summary section small{font-size:11px!important}
 html.pwa-standalone .pwa-staff-breakdown{border:1px solid #dce5f3;border-radius:11px;background:#fff;margin-bottom:12px;overflow:hidden}
 html.pwa-standalone .pwa-staff-breakdown>summary{padding:13px 14px;min-height:44px;box-sizing:border-box;cursor:pointer;font-size:13px;font-weight:650;color:#34527e}
 html.pwa-standalone body.owner-app .main .pwa-staff-breakdown .payments-collectors{border:0!important;border-top:1px solid #dce5f3!important;border-radius:0!important}
 html.pwa-standalone .pwa-staff-breakdown .payments-collectors>header{display:none!important}
 html.pwa-standalone body.owner-app .main .payments-collectors table{min-width:0!important;width:100%!important;table-layout:fixed!important}
 html.pwa-standalone body.owner-app .main .payments-collectors table :is(th,td){padding:10px 8px!important;font-size:11px!important;white-space:normal!important;overflow-wrap:anywhere!important}
 html.pwa-standalone body.owner-app .main .payments-collectors table :is(th,td):first-child{width:43%!important}
 html.pwa-standalone body.owner-app .main .payments-collectors table :is(th,td):nth-child(2){width:22%!important}
 html.pwa-standalone body.owner-app .main .payments-collectors table :is(th,td):last-child{width:35%!important}
 html.pwa-standalone body.owner-app .main .seats-v223 .seats-search-wrap{flex:1 1 100%!important;width:100%!important}
 html.pwa-standalone body.owner-app .main .seats-v223 .seats-search-wrap :is(kbd,.seats-search-key){display:none!important}
 html.pwa-standalone body.owner-app .main .seats-v223 .seats-status-filters{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;gap:6px!important;max-width:100%!important;min-width:0!important;width:100%!important}
 html.pwa-standalone body.owner-app .main .seats-v223 .seats-status{flex:0 0 auto!important;white-space:nowrap!important;padding:8px 11px!important}
 html.pwa-standalone body.owner-app .main .seats-v223 .seats-kpis{gap:8px!important;margin:12px 0!important}
 html.pwa-standalone[data-workspace-theme=dark] .pwa-staff-breakdown{background:#172338;border-color:#3d5373}
 html.pwa-standalone[data-workspace-theme=dark] .pwa-staff-breakdown>summary{color:#c4d8ff}
}
@media(max-width:960px){
 html.pwa-standalone body.owner-app .layout>aside.sidebar.is-mobile-open nav.nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;max-height:calc(100dvh - 240px)!important}
 html.pwa-standalone body.owner-app .layout>aside.sidebar.is-mobile-open .nav-section{display:contents!important}
 html.pwa-standalone body.owner-app .layout>aside.sidebar.is-mobile-open .nav-section-title{display:none!important}
 html.pwa-standalone body.owner-app .layout>aside.sidebar.is-mobile-open nav.nav a{min-height:46px!important;font-size:12px!important;margin:0!important;grid-column:auto!important}
 html.pwa-standalone body.owner-app .main .card:has(.students-table){padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
 html.pwa-standalone body.owner-app .main .students-table,html.pwa-standalone body.owner-app .main .students-table>tbody,html.pwa-standalone body.owner-app .main .students-table>thead{display:block!important;min-width:0!important;width:100%!important;max-width:100%!important;background:transparent!important}
 html.pwa-standalone body.owner-app .main .students-table .pwa-student-sort-row{display:flex!important;gap:7px!important;overflow-x:auto!important;width:100%!important;margin:0 0 12px!important;padding:4px 0!important}
 html.pwa-standalone body.owner-app .main .students-table .pwa-student-sort-row th{display:block!important;flex:0 0 auto!important;min-width:0!important;width:auto!important;padding:10px!important;border:1px solid #dce5f3!important;border-radius:9px!important;font-size:11px!important;white-space:nowrap!important}
 html.pwa-standalone body.owner-app .main .students-table .pwa-student-sort-row :is(th.col-photo,th:last-child){display:none!important}
 html.pwa-standalone body.owner-app .main .students-table .pwa-student-row{position:relative!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px 12px!important;padding:14px!important;margin:0 0 12px!important;background:#fff!important;border:1px solid #dce5f3!important;border-radius:14px!important}
 html.pwa-standalone body.owner-app .main .students-table .pwa-student-row td{display:block!important;min-width:0!important;width:auto!important;max-width:none!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important;white-space:normal!important;overflow-wrap:anywhere!important;font-size:13px!important;line-height:1.4!important;box-sizing:border-box!important}
 html.pwa-standalone body.owner-app .main .students-table .pwa-student-row td:before{content:attr(data-app-label);display:block;color:#7888a1;font-size:10px;font-weight:600;margin-bottom:2px}
 html.pwa-standalone body.owner-app .main .students-table .pwa-student-row td.col-photo{position:absolute!important;top:14px!important;left:14px!important;width:48px!important;height:60px!important}
 html.pwa-standalone body.owner-app .main .students-table .pwa-student-row td.col-photo :is(img,div){width:48px!important;height:60px!important;object-fit:cover!important;border-radius:9px!important}
 html.pwa-standalone body.owner-app .main .students-table .pwa-student-row :is(td.col-library,td.col-student){grid-column:1/-1!important;padding-left:61px!important}
 html.pwa-standalone body.owner-app .main .students-table .pwa-student-row td.col-library{font-size:11px!important;color:#6a7e9c!important}
 html.pwa-standalone body.owner-app .main .students-table .pwa-student-row :is(td.col-photo,td.col-library,td.col-student):before{display:none!important}
 html.pwa-standalone body.owner-app .main .students-table .pwa-student-row td:nth-child(4),html.pwa-standalone body.owner-app .main .students-table .pwa-student-row td:last-child{grid-column:1/-1!important}
 html.pwa-standalone body.owner-app .main .students-table .pwa-student-row td:last-child:before{display:none!important}
 html.pwa-standalone body.owner-app .main .students-table .pwa-student-row .actions{gap:7px!important;flex-wrap:wrap!important;padding-top:7px!important;border-top:1px solid #e6ecf6!important}
 html.pwa-standalone body.owner-app .main .students-table .pwa-student-row .actions .btn{min-width:40px!important;min-height:40px!important}
 html.pwa-standalone[data-workspace-theme=dark] body.owner-app .main .students-table .pwa-student-row{background:#172338!important;border-color:#3d5373!important}
 html.pwa-standalone[data-workspace-theme=dark] body.owner-app .main .students-table .pwa-student-row td:before{color:#a6bad8!important}
}
@media(max-width:960px){
 html.pwa-standalone body.owner-app .main .pwa-seat-filters{width:100%;border-top:1px solid #dce5f3;padding-top:3px}
 html.pwa-standalone body.owner-app .main .pwa-seat-filters>summary{min-height:42px;box-sizing:border-box;padding:10px 8px;cursor:pointer;font-size:12px;font-weight:650;color:#34527e}
 html.pwa-standalone .pwa-seat-filter-content{display:grid;gap:10px;padding:5px 0}
 html.pwa-standalone .pwa-seat-filter-content .seats-room-filter-v17{display:flex!important;flex-wrap:wrap!important}
 html.pwa-standalone[data-workspace-theme=dark] body.owner-app .main .pwa-seat-filters{border-color:#3d5373}
 html.pwa-standalone[data-workspace-theme=dark] body.owner-app .main .pwa-seat-filters>summary{color:#c4d8ff}
}
@media(max-width:960px){
 html.pwa-standalone body.owner-app .main .student-profile-page .profile-top{display:block!important;padding:16px!important;text-align:left!important}
 html.pwa-standalone body.owner-app .main .student-profile-page .profile-actions{display:flex!important;justify-content:flex-start!important;gap:8px!important;margin-top:13px!important}
 html.pwa-standalone body.owner-app .main .pwa-profile-more{flex:1 1 100%;min-width:0;border-top:1px solid #dce5f3;padding-top:5px}
 html.pwa-standalone body.owner-app .main .pwa-profile-more>summary{min-height:42px;box-sizing:border-box;padding:10px 2px;cursor:pointer;font-size:12px;font-weight:650;color:#34527e}
 html.pwa-standalone .pwa-profile-more-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:5px 0}
 html.pwa-standalone body.owner-app .main .student-profile-page .profile-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
 html.pwa-standalone body.owner-app .main .student-profile-page .profile-stats .profile-card{padding:11px 8px!important;border-radius:11px!important;min-width:0!important}
 html.pwa-standalone body.owner-app .main .student-profile-page .profile-stats .muted{font-size:10px!important;line-height:1.35!important}
 html.pwa-standalone body.owner-app .main .student-profile-page .profile-stats strong{font-size:22px!important;letter-spacing:-.5px!important}
 html.pwa-standalone body.owner-app .main .student-profile-page .profile-stats small{font-size:10px!important;line-height:1.35!important;overflow-wrap:anywhere!important}
 html.pwa-standalone[data-workspace-theme=dark] body.owner-app .main .pwa-profile-more{border-color:#3d5373}
 html.pwa-standalone[data-workspace-theme=dark] body.owner-app .main .pwa-profile-more>summary{color:#c4d8ff}
}
/* Reading records should never require a desktop-width table on a phone. */
@media(max-width:960px){
 html.pwa-standalone body.owner-app .main .pwa-record-table,html.pwa-standalone body.owner-app .main .pwa-record-table>:is(thead,tbody,tfoot){display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;table-layout:auto!important;background:transparent!important}
 html.pwa-standalone body.owner-app .main .pwa-record-table .pwa-record-heading{display:none!important}
 html.pwa-standalone body.owner-app .main .pwa-record-table .pwa-record-heading.pwa-record-sortable{display:flex!important;overflow-x:auto!important;gap:6px!important;margin-bottom:10px!important}
 html.pwa-standalone body.owner-app .main .pwa-record-table .pwa-record-heading.pwa-record-sortable th{display:block!important;min-width:100px!important;width:auto!important;flex:0 0 auto!important}
 html.pwa-standalone body.owner-app .main table.pwa-record-table .pwa-record-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px 12px!important;margin:0 0 10px!important;padding:12px!important;background:#fff!important;border:1px solid #dce5f3!important;border-radius:12px!important;min-width:0!important}
 html.pwa-standalone body.owner-app .main table.pwa-record-table .pwa-record-row>:is(td,th){display:block!important;min-width:0!important;width:auto!important;max-width:none!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;font-size:13px!important;line-height:1.45!important;text-align:left!important;position:static!important;box-sizing:border-box!important}
 html.pwa-standalone body.owner-app .main table.pwa-record-table .pwa-record-row>:is(td,th):before{content:attr(data-app-label);display:block;font-size:10px;font-weight:600;color:#7486a1;margin-bottom:3px}
 html.pwa-standalone body.owner-app .main table.pwa-record-table .pwa-record-row>[data-app-wide=true]{grid-column:1/-1!important}
 html.pwa-standalone body.owner-app .main table.pwa-record-table .pwa-record-row>:first-child{grid-column:1/-1!important;font-weight:600!important}
 html.pwa-standalone body.owner-app .main table.pwa-record-table .pwa-record-row :is(.badge,b,strong,span){max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important}
 html.pwa-standalone body.owner-app .main table.pwa-record-table .pwa-record-row .btn{min-height:38px!important;padding:7px 11px!important}
 html.pwa-standalone body.owner-app .main table.pwa-record-table .pwa-record-group{display:block!important;margin:8px 0!important;width:100%!important}
 html.pwa-standalone body.owner-app .main table.pwa-record-table .pwa-record-group>:is(td,th){display:block!important;min-width:0!important;max-width:100%!important;width:100%!important;box-sizing:border-box!important;white-space:normal!important;overflow-wrap:anywhere!important;padding:10px!important}
 html.pwa-standalone body.owner-app .main table.pwa-record-table tr[hidden]{display:none!important}
 html.pwa-standalone body.owner-app .main .card:has(> .table-wrap>.pwa-record-table){padding:12px!important}
 html.pwa-standalone body.owner-app .main .expense-layout{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:12px 0!important}
 html.pwa-standalone body.owner-app .main .pwa-expense-disclosure{min-width:0;background:#fff;border:1px solid #dce5f3;border-radius:11px;overflow:hidden}
 html.pwa-standalone body.owner-app .main .pwa-expense-disclosure[open]{grid-column:1/-1}
 html.pwa-standalone body.owner-app .main .pwa-expense-disclosure>summary{min-height:48px;box-sizing:border-box;display:list-item;padding:12px 10px;cursor:pointer;color:#315580;font-size:12px;font-weight:650}
 html.pwa-standalone body.owner-app .main .pwa-expense-disclosure>.card{border:0!important;border-top:1px solid #dce5f3!important;margin:0!important;border-radius:0!important;padding:12px!important}
 html.pwa-standalone body.owner-app .main .pwa-expense-disclosure .panel-title{display:none!important}
 html.pwa-standalone body.owner-app .main .expense-kpis>.card{padding:12px!important}
 html.pwa-standalone body.owner-app .main .expense-history-card{padding:10px!important}
 html.pwa-standalone body.owner-app .main #expenseHistoryTable .pwa-record-row>td:nth-child(2){order:-2!important;font-size:15px!important;font-weight:650!important}
 html.pwa-standalone body.owner-app .main #expenseHistoryTable .pwa-record-row>td:nth-child(2):before{display:none!important}
 html.pwa-standalone body.owner-app .main #expenseHistoryTable .pwa-record-row>td:nth-child(4){order:-1!important;grid-column:1/-1!important}
 html.pwa-standalone body.owner-app .main #expenseHistoryTable .pwa-record-row>td:nth-child(4) b{font-size:21px!important;color:#ae3950!important}
 html.pwa-standalone body.owner-app .main .pwa-record-table :is(input,select,textarea){max-width:100%!important;width:100%!important;min-width:0!important}
 html.pwa-standalone[data-workspace-theme=dark] body.owner-app .main table.pwa-record-table .pwa-record-row{background:#172338!important;border-color:#3d5373!important}
 html.pwa-standalone[data-workspace-theme=dark] body.owner-app .main table.pwa-record-table .pwa-record-row>:is(td,th):before{color:#a9bedc!important}
 html.pwa-standalone[data-workspace-theme=dark] body.owner-app .main .pwa-expense-disclosure{background:#172338;border-color:#3d5373}
 html.pwa-standalone[data-workspace-theme=dark] body.owner-app .main .pwa-expense-disclosure>summary{color:#c4d8ff}
 html.pwa-standalone[data-workspace-theme=dark] body.owner-app .main #expenseHistoryTable .pwa-record-row>td:nth-child(4) b{color:#ffb6c5!important}
 html.pwa-standalone[data-workspace-theme=dark] body.owner-app .main table.pwa-record-table .pwa-record-row.cycle-settlement-row{background:#28223e!important;border-color:#604b83!important}
 html.pwa-standalone .pwa-bottom-nav :is(a,button){min-height:50px;gap:4px;font-size:9px;padding:4px 1px;box-sizing:border-box}
 html.pwa-standalone .pwa-bottom-nav svg{width:20px;height:20px}
}
@media(max-width:960px){
 html.pwa-standalone body.owner-app .main .pwa-expense-more-filters{margin-top:8px;border-top:1px solid #dce5f3;padding-top:3px}
 html.pwa-standalone body.owner-app .main .pwa-expense-more-filters>summary{min-height:40px;box-sizing:border-box;cursor:pointer;padding:9px 0;font-size:12px;font-weight:600;color:#426085}
 html.pwa-standalone .pwa-expense-filter-content{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:5px 0}
 html.pwa-standalone .pwa-expense-filter-content label{display:grid;gap:4px;font-size:11px;font-weight:600;min-width:0}
 html.pwa-standalone[data-workspace-theme=dark] body.owner-app .main .pwa-expense-more-filters{border-color:#3d5373}
 html.pwa-standalone[data-workspace-theme=dark] body.owner-app .main .pwa-expense-more-filters>summary{color:#b4c9e8}
}
@media(max-width:960px){
 html.pwa-standalone body.owner-app .main table:not(.pwa-record-table):not(.students-table){width:100%!important;max-width:100%!important;min-width:0!important;table-layout:fixed!important}
 html.pwa-standalone body.owner-app .main table:not(.pwa-record-table):not(.students-table) :is(th,td){min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important}
}

/* Comfortable touch targets in the owner app navigation and payment history. */
@media(max-width:960px){
 html.pwa-standalone .pwa-bottom-nav :is(a,button){min-height:56px;font-size:11px;gap:5px;padding:5px 2px}
 html.pwa-standalone .pwa-bottom-nav svg{width:25px;height:25px;stroke-width:1.9}
 html.pwa-standalone body.owner-app .main .payment-row-actions{display:flex;width:100%;max-width:100%;min-width:0;box-sizing:border-box;gap:8px;flex-wrap:wrap}
 html.pwa-standalone body.owner-app .main .payment-row-actions .btn{width:46px!important;min-width:0!important;max-width:100%!important;height:46px!important;min-height:46px!important;padding:10px!important;border-radius:10px!important;box-sizing:border-box!important;flex:0 0 46px}
 html.pwa-standalone .payment-row-actions svg{width:22px;height:22px}
}

@media(max-width:960px){
 html.pwa-standalone .pwa-bottom-nav{box-sizing:border-box;width:auto;max-width:100%}
 html.pwa-standalone .pwa-bottom-nav :is(a,button){box-sizing:border-box;max-width:100%}
}

@media(max-width:960px){
 html.pwa-standalone body.owner-app .main .payments-ledger table.pwa-record-table .pwa-record-row>td{height:auto!important;min-height:0}
}

/* Two-row mobile finance records retain every field and touch action. */
@media(max-width:960px){
 html.pwa-standalone body.owner-app .main :is(.payments-ledger,#expenseHistoryTable) .pwa-record-row{grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:8px 6px!important;padding:10px!important}
 html.pwa-standalone body.owner-app .main :is(.payments-ledger,#expenseHistoryTable) .pwa-record-row>td{grid-column:span 2!important;order:0!important;height:auto!important;font-size:11px!important}
 html.pwa-standalone body.owner-app .main :is(.payments-ledger,#expenseHistoryTable) .pwa-record-row>td:before{font-size:9px!important;line-height:1.25;margin-bottom:3px}
 html.pwa-standalone body.owner-app .main :is(.payments-ledger,#expenseHistoryTable) .pwa-record-row>td:nth-child(5),
 html.pwa-standalone body.owner-app .main :is(.payments-ledger,#expenseHistoryTable) .pwa-record-row>td:nth-child(6){grid-column:span 1!important}
 html.pwa-standalone body.owner-app .main :is(.payments-ledger,#expenseHistoryTable) .pwa-record-row>td:nth-child(8){grid-column:span 4!important;display:flex!important;flex-wrap:wrap;align-content:start;align-items:center;gap:5px}
 html.pwa-standalone body.owner-app .main :is(.payments-ledger,#expenseHistoryTable) .pwa-record-row>td:nth-child(8):before{width:100%}
 html.pwa-standalone body.owner-app .main .payment-row-actions{gap:5px;justify-content:flex-start}
 html.pwa-standalone body.owner-app .main .payment-row-actions .btn{width:44px!important;height:44px!important;min-height:44px!important;flex-basis:44px}
 html.pwa-standalone body.owner-app .main #expenseHistoryTable .pwa-record-row>td:nth-child(2){font-size:12px!important}
 html.pwa-standalone body.owner-app .main #expenseHistoryTable .pwa-record-row>td:nth-child(2):before{display:block!important}
 html.pwa-standalone body.owner-app .main #expenseHistoryTable .pwa-record-row>td:nth-child(4) b{font-size:16px!important}
 html.pwa-standalone body.owner-app .main #expenseHistoryTable .pwa-record-row>td:nth-child(8) .btn{min-height:44px!important;padding:7px!important;font-size:11px!important;box-sizing:border-box}
}

@media(max-width:960px){
 html.pwa-standalone body.owner-app .main #expenseHistoryTable .pwa-record-row>td:nth-child(n){order:0!important;grid-column:span 2!important}
 html.pwa-standalone body.owner-app .main #expenseHistoryTable .pwa-record-row>td:nth-child(5),
 html.pwa-standalone body.owner-app .main #expenseHistoryTable .pwa-record-row>td:nth-child(6){grid-column:span 1!important}
 html.pwa-standalone body.owner-app .main #expenseHistoryTable .pwa-record-row>td:nth-child(8){grid-column:span 4!important}
 html.pwa-standalone body.owner-app .main .payments-ledger .payment-method{font-size:10px;padding:3px 2px;white-space:nowrap!important;overflow-wrap:normal!important}
}

@media(max-width:960px){
 html.pwa-standalone body.owner-app .main #expenseHistoryTable .pwa-record-row>td:nth-child(5),
 html.pwa-standalone body.owner-app .main #expenseHistoryTable .pwa-record-row>td:nth-child(6),
 html.pwa-standalone body.owner-app .main #expenseHistoryTable .pwa-record-row>td:nth-child(8){grid-column:span 2!important}
 html.pwa-standalone body.owner-app .main #expenseHistoryTable .pwa-record-row>td:nth-child(5):before{content:"Paid by"}
 html.pwa-standalone body.owner-app .main #expenseHistoryTable .pwa-record-row>td:nth-child(6):before{content:"Entry by"}
 html.pwa-standalone body.owner-app .main #expenseHistoryTable .pwa-record-row>td:nth-child(8){gap:4px}
 html.pwa-standalone body.owner-app .main #expenseHistoryTable .pwa-record-row>td:nth-child(8) .btn{width:100%}
 html.pwa-standalone body.owner-app .main #expenseHistoryTable .pwa-record-row>td:nth-child(8) form{width:100%}
}

.pwa-entry-details{display:none!important}
.pwa-finance-details{box-sizing:border-box;width:min(460px,calc(100% - 24px));max-height:85dvh;overflow:auto;border:1px solid #dce5f3;border-radius:16px;padding:20px;background:#fff;color:#172b4d}
.pwa-finance-details::backdrop{background:rgb(10 23 45 / 55%)}
.pwa-finance-details h2{font-size:20px;margin:0 0 16px}
.pwa-finance-details dl{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:12px}
.pwa-finance-details dt{color:#63758d;font-size:12px}
.pwa-finance-details dd{margin:0;white-space:pre-line;overflow-wrap:anywhere;font-size:14px}
html[data-workspace-theme=dark] .pwa-finance-details{background:#172338;color:#e1ebff;border-color:#3d5373}
html[data-workspace-theme=dark] .pwa-finance-details dt{color:#a9bedc}
@media(max-width:960px){
 html.pwa-standalone body.owner-app .main :is(.payments-ledger,#expenseHistoryTable) .pwa-record-row{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 html.pwa-standalone body.owner-app .main :is(.payments-ledger,#expenseHistoryTable) .pwa-record-row>td:nth-child(n){grid-column:span 1!important}
 html.pwa-standalone body.owner-app .main .payments-ledger .pwa-record-row>td:nth-child(n+4):not(:nth-child(8)),
 html.pwa-standalone body.owner-app .main #expenseHistoryTable .pwa-record-row>td:nth-child(3),
 html.pwa-standalone body.owner-app .main #expenseHistoryTable .pwa-record-row>td:nth-child(n+5):not(:nth-child(8)){display:none!important}
 html.pwa-standalone body.owner-app .main :is(.payments-ledger,#expenseHistoryTable) .pwa-record-row>td:nth-child(8){grid-column:1/-1!important;display:flex!important;flex-wrap:wrap;gap:6px}
 html.pwa-standalone body.owner-app .main :is(.payments-ledger,#expenseHistoryTable) .pwa-record-row>td:nth-child(8):before{display:none!important}
 html.pwa-standalone body.owner-app .main .pwa-entry-details{display:inline-flex!important;align-items:center;justify-content:center;min-height:44px!important;width:auto!important;flex:0 0 auto!important;padding:8px 12px!important}
 html.pwa-standalone body.owner-app .main .payment-row-actions{width:100%;gap:6px}
 html.pwa-standalone body.owner-app .main #expenseHistoryTable .pwa-record-row>td:nth-child(8) :is(form,.btn){width:auto}
}

@media(max-width:960px){
 html.pwa-standalone body.owner-app .main .pwa-finance-clickable{cursor:pointer}
}

/* Compact membership movement in the mobile owner dashboard. */
@media(max-width:960px){
 html.pwa-standalone body.owner-app .main .dash-section:has(>.movement-grid){padding:12px!important;margin-block:12px!important}
 html.pwa-standalone body.owner-app .main .dash-section:has(>.movement-grid) .dash-section-head{margin-bottom:9px!important}
 html.pwa-standalone body.owner-app .main .dash-section:has(>.movement-grid) h2{font-size:15px!important;line-height:1.3!important;margin:0!important}
 html.pwa-standalone body.owner-app .main .dash-section:has(>.movement-grid) .dash-section-head span{font-size:10px!important;line-height:1.35!important}
 html.pwa-standalone body.owner-app .main .movement-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
 html.pwa-standalone body.owner-app .main .movement-card{display:flex!important;flex-direction:column;gap:3px!important;min-width:0!important;min-height:0!important;padding:9px 7px!important;border-radius:9px!important}
 html.pwa-standalone body.owner-app .main .movement-card>span{font-size:10px!important;line-height:1.3!important}
 html.pwa-standalone body.owner-app .main .movement-card>strong{font-size:21px!important;line-height:1.2!important;margin:0!important}
 html.pwa-standalone body.owner-app .main .movement-card>small{font-size:9px!important;line-height:1.3!important;overflow-wrap:anywhere}
}
