/* HX106: visible reminders, a large original Leaflet map and an always-visible operations column. */
.dashboard-main{height:auto;min-height:100dvh;max-height:none;padding:26px 30px 20px;display:flex;flex-direction:column;gap:16px;background:#f3f5f5;color:#162d37;overflow:visible}
.dashboard-main::before{content:none}.dashboard-main [hidden]{display:none!important}.dashboard-main .brand-banner{flex:0 0 60px;min-height:60px;margin:0;padding:0;background:none;border:0;box-shadow:none;display:flex;align-items:center;justify-content:space-between;gap:20px}.dashboard-main .brand-banner::before,.dashboard-main .brand-banner::after{content:none}.dashboard-main .brand-kicker,.dashboard-main .brand-emblem{display:none}.dashboard-main .brand-info h1{font-family:'Microsoft YaHei','PingFang SC',sans-serif;font-size:var(--ui-font-30, 30px);font-weight:600;line-height:1.35;letter-spacing:.02em;color:#162d37;white-space:nowrap;text-shadow:none;margin:0}.dashboard-main .brand-info h1 span+span{color:inherit}.dashboard-main .brand-date{display:block;padding:0;border:0;text-align:right;flex-shrink:0}.dashboard-main .brand-date .date-big{display:flex;justify-content:flex-end;gap:12px;font-size:var(--ui-font-14, 14px);font-weight:600;color:#294751;letter-spacing:0;white-space:nowrap}.dashboard-main .brand-date .date-small{margin-top:6px;font-size:var(--ui-font-12, 12px);font-weight:400;color:#7b8c91;letter-spacing:0}.dashboard-main .brand-info h1 span{display:inline}
.dashboard-main .dash-grid,body.finance-dashboard-hidden .dashboard-main .dash-grid{flex:none;min-height:0;height:auto;display:grid;grid-template-columns:minmax(0,2fr) minmax(340px,1fr);grid-template-areas:'stats stats' 'alerts alerts' 'map operations' 'finance finance';grid-template-rows:74px 348px auto auto;gap:16px 20px;align-items:stretch}.dashboard-main .dashboard-left-column{grid-area:map;display:flex;min-width:0;min-height:0;align-self:stretch}.dashboard-main .dashboard-right-column{grid-area:operations;display:flex;flex-direction:column;gap:12px;min-width:0}.dashboard-main .stats-grid{grid-area:stats;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:0}.dashboard-main .stat-tile{height:74px;min-height:0;padding:12px 20px;border:1px solid #e1e7e7;border-radius:10px;background:#fff;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:14px;text-align:left;box-shadow:0 3px 12px #16313703}.dashboard-main .stat-tile-main{display:flex;gap:17px;align-items:center}.dashboard-main .tile-top{margin:0}.dashboard-main .tile-icon{width:36px;height:36px;border-radius:10px;background:#f0f6f4;color:#648681}.dashboard-main .tile-icon svg{width:22px;height:22px}.dashboard-main .tile-icon.orange{background:#f8f3e7;color:#a28b58}.dashboard-main .tile-icon.red{background:#faefed;color:#b37b71}.dashboard-main .stat-tile .tile-num{font-size:var(--ui-font-28, 28px);font-weight:650;line-height:1.2;color:#162d37;letter-spacing:-.02em}.dashboard-main .stat-tile .tile-label{font-size:var(--ui-font-12, 12px);font-weight:500;line-height:1.5;margin:0;color:#76898e;letter-spacing:0;white-space:normal;text-align:left}.dashboard-main .tile-label-contract span{display:inline}
.dashboard-main .chart-card,.dashboard-main .finance-card,.dashboard-main .alert-card,.dashboard-main .gps-map-module,.dashboard-main .dashboard-calendar-card,.dashboard-finance-unavailable{min-width:0;min-height:0;height:auto;max-height:none;padding:16px 18px;border:1px solid #e1e7e7;border-radius:12px;background:#fff;box-shadow:0 4px 20px #16313703;display:flex;flex-direction:column;gap:10px;overflow:visible}.dashboard-main h3,.dashboard-main #gps-map-heading{font-size:var(--ui-font-16, 16px);font-weight:600;line-height:1.5;letter-spacing:0;color:#213d45;margin:0}.dashboard-main .section-title-icon{width:21px;height:21px;border-radius:0;background:none;color:#527d7c;flex-shrink:0}.dashboard-main .section-title-icon svg{width:19px;height:19px}
.dashboard-main .alert-card{grid-area:alerts;padding:16px 20px;gap:4px}.dashboard-main .alert-card-head{margin:0;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:nowrap;flex:0 0 auto}.dashboard-main .dashboard-view-tabs{height:auto;background:none;border-radius:0;padding:0;gap:14px;display:flex;align-items:center}.dashboard-main .dashboard-view-tabs button{font-family:inherit;font-size:var(--ui-font-14, 14px);font-weight:600;padding:0;color:#647e83;background:none;border:0;border-radius:0;line-height:1.6;cursor:pointer}.dashboard-main #dashboard-warning-tab{font-size:var(--ui-font-16, 16px);color:#213d45}.dashboard-main .dashboard-view-tabs button:hover{text-decoration:underline}.dashboard-main .alert-card-tools{display:flex;align-items:center;gap:12px;font-size:var(--ui-font-12, 12px)}.dashboard-main .alert-total{font-size:var(--ui-font-12, 12px);color:#85969a;white-space:nowrap}.dashboard-main .alert-status-filter{display:flex;align-items:center;gap:8px;font-size:var(--ui-font-12, 12px);color:#758b8f}.dashboard-main #alert-status-filter{height:29px;font-size:var(--ui-font-12, 12px);min-width:110px;padding:4px 8px;border-color:#e0e7e5;border-radius:6px}.dashboard-main #dashboard-warning-view{flex:1;min-height:0;display:flex;flex-direction:column;gap:6px}.dashboard-main #alert-warning-lists{flex:1;min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px;margin:0;padding:0;overflow:visible;scrollbar-gutter:auto}.dashboard-main #alert-warning-lists .alert-group{display:flex;flex-direction:column;min-height:0;padding:0;margin:0;gap:7px;background:none;border:0;border-radius:0;max-height:none}.dashboard-main #alert-warning-lists .alert-group+section{border-left:1px solid #eaf0ed;padding-left:26px}.dashboard-main .alert-group-head{display:flex;align-items:center;justify-content:space-between;margin:0;flex:0 0 auto}.dashboard-main .alert-group-head h4{font-size:var(--ui-font-13, 13px);line-height:1.5;font-weight:600;color:#647b81;margin:0}.dashboard-main .alert-group-head .alert-count{font-size:var(--ui-font-12, 12px);font-weight:500;background:none;color:#8b9fa2;padding:0}.dashboard-main #alert-warning-lists .alert-group-list{flex:1;min-height:0;max-height:none;display:flex;flex-direction:column;gap:0;padding:0;overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain}.dashboard-main #alert-warning-lists .alert-item{flex:0 0 auto;min-height:54px;display:grid;grid-template-columns:100px minmax(0,1fr) 80px;grid-template-rows:auto auto;gap:3px 9px;padding:7px 0;margin:0;background:none;border:0;border-bottom:1px solid #edf1ef;border-radius:0;box-shadow:none;color:#29434c;font-size:var(--ui-font-12, 12px);line-height:1.4;overflow:visible}.dashboard-main #alert-warning-lists .alert-item:hover{transform:none;background:#f7faf8}.dashboard-main #alert-warning-lists .a-badge{font-size:var(--ui-font-11, 11px);font-weight:500;padding:4px 6px;grid-column:1;grid-row:1/3;text-align:center;border:1px solid #ead9d3;background:#fcf4f1;color:#a5695d;border-radius:4px;white-space:normal}.dashboard-main #alert-warning-lists .a-badge.yellow{color:#a08750;border-color:#ece2c7;background:#fbf8ed}.dashboard-main #alert-warning-lists .a-badge.blue{color:#527c89;border-color:#d7e5e8;background:#f1f7f9}.dashboard-main #alert-warning-lists .a-plate{font-size:var(--ui-font-14, 14px);font-weight:600;grid-column:2;grid-row:1;overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere}.dashboard-main #alert-warning-lists .a-detail{grid-column:2;grid-row:2;display:block;font-size:var(--ui-font-12, 12px);line-height:1.5;color:#7b8e94;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}.dashboard-main #alert-warning-lists .a-days{grid-column:3;grid-row:1/3;font-size:var(--ui-font-11, 11px);line-height:1.5;white-space:normal;text-align:right;max-width:none;overflow-wrap:anywhere}.dashboard-main #alert-warning-lists .rent-alert{grid-template-columns:minmax(0,1fr) 80px}.dashboard-main #alert-warning-lists .a-rent-top{grid-column:1/-1;grid-row:1;display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:0}.dashboard-main #alert-warning-lists .a-rent-top .a-badge{width:100px;flex:0 0 100px}.dashboard-main #alert-warning-lists .a-rent-top .a-plate{flex:0 1 auto;min-width:0}.dashboard-main #alert-warning-lists .a-periods{font-size:var(--ui-font-12, 12px);color:#7c9296;margin:0;white-space:nowrap;font-weight:500}.dashboard-main #alert-warning-lists .rent-alert .a-detail{grid-column:1;grid-row:2;padding-left:107px}.dashboard-main #alert-warning-lists .rent-alert .a-days{grid-column:2;grid-row:2;max-width:none}.dashboard-main .a-rent-contract,.dashboard-main .a-rent-risk{display:block}.dashboard-main .a-rent-risk{color:#ab655b;margin-top:3px}.dashboard-main .a-trust-badge,.dashboard-overview-dialog .a-trust-badge{display:inline-block;vertical-align:1px;margin-left:5px;padding:1px 4px;border:1px solid #d0e4dc;border-radius:3px;background:#edf6f2;color:#548776;font-size:var(--ui-font-11, 11px);font-weight:500;line-height:1.4;white-space:nowrap}.dashboard-main .alert-empty,.dashboard-main .alert-group-empty{font-size:var(--ui-font-12, 12px);line-height:1.6;color:#7d9398;padding:10px 0;margin:0}.dashboard-main #alert-read-retry{align-self:flex-start}
.dashboard-overview-link{font-family:inherit;align-self:flex-start;font-size:var(--ui-font-12, 12px);line-height:1.5;color:#497d79;background:none;border:0;padding:3px 0;cursor:pointer;font-weight:500}.dashboard-overview-link:hover{text-decoration:underline}.dashboard-overview-link:focus-visible,.dashboard-area-tabs button:focus-visible,.dashboard-view-tabs button:focus-visible{outline:3px solid #7ab3ab;outline-offset:3px}.dashboard-main .chart-card{grid-area:auto;min-height:162px;padding:14px 16px;gap:8px}.dashboard-main .chart-card h3{font-size:var(--ui-font-15, 15px)}.dashboard-main .chart-inner{flex:none;min-height:0;display:grid;grid-template-columns:1fr 88px 1fr;grid-template-areas:'legend-left donut legend-right';align-items:center;justify-items:stretch;gap:10px;overflow:visible}.dashboard-main .donut-wrap{grid-area:donut;width:88px;height:88px;min-height:0}.dashboard-main #donut-canvas{height:100%;width:100%}.dashboard-main .legend-left{grid-area:legend-left}.dashboard-main .legend-right{grid-area:legend-right}.dashboard-main .legend-compact{display:flex;flex-direction:column;gap:6px;min-width:0;width:100%;align-items:stretch}.dashboard-main .legend-row{font-size:var(--ui-font-11, 11px);line-height:1.5;display:flex;align-items:center;gap:5px;padding:0;color:#7a9094;width:100%;min-width:0}.dashboard-main .legend-row .lbl{white-space:normal;margin:0;overflow:visible;text-overflow:clip}.dashboard-main .legend-row .val{margin-left:auto;font-weight:500;color:#2d555c}.dashboard-main .legend-row .dot{width:6px;height:6px;flex:0 0 6px;margin:0;border-radius:50%}.dashboard-main #dashboard-all-statuses{align-self:flex-end;font-size:var(--ui-font-11, 11px);margin-top:0}
.dashboard-main .dashboard-calendar-card{padding:14px 16px}.dashboard-main .dashboard-calendar-card h3{font-size:var(--ui-font-15, 15px)}.dashboard-main .rent-calendar{flex:none;min-height:0;height:auto;display:flex;flex-direction:column;gap:8px;overflow:visible}.dashboard-main .rent-calendar-head{display:flex;flex-wrap:wrap;gap:8px;padding:0;flex:none}.dashboard-main .rent-calendar-filter{font-size:var(--ui-font-11, 11px);flex:1;min-width:100%;gap:8px}.dashboard-main .rent-calendar-filter select{height:28px;min-height:28px;font-size:var(--ui-font-11, 11px);padding:3px 6px;width:0;max-width:none;border-color:#dfe7e3;color:#45656c}.dashboard-main .rent-calendar-nav{margin-left:auto;gap:4px}.dashboard-main .rent-calendar-nav button{height:27px;width:23px;border-color:#e1e8e5;background:#fff;color:#4f7c79}.dashboard-main .rent-calendar-nav input{width:129px;height:27px;font-size:var(--ui-font-12, 12px);border-color:#e1e8e5;color:#4b6d72}.dashboard-main .rent-calendar-week{flex:none;line-height:17px;font-size:var(--ui-font-11, 11px);color:#91a3a4}.dashboard-main .rent-calendar-grid{flex:none;grid-template-rows:repeat(6,minmax(29px,auto));min-height:194px;gap:3px}.dashboard-main .rent-day{min-height:29px;padding:3px;background:#fff;border:1px solid #edf2ee;border-radius:4px;color:#718c90;overflow-wrap:anywhere}.dashboard-main .rent-day.blank{border:0;background:none}.dashboard-main .rent-day-number{flex-wrap:wrap;gap:2px}.dashboard-main .rent-day-date{font-size:var(--ui-font-12, 12px);font-weight:500}.dashboard-main .rent-day-summary{font-size:var(--ui-font-11, 11px)}.dashboard-main .rent-day-amount{display:none}.dashboard-main .rent-day.due{background:#f1f7f3;border-color:#d2e2d9;box-shadow:inset 2px 0 #82ac96}.dashboard-main .rent-day.overdue{background:#fbf4e9;border-color:#e7d7b5;box-shadow:inset 2px 0 #b59a60}.dashboard-main .rent-day.today .rent-day-date{color:white;background:#357e75;border-radius:3px}.dashboard-main .rent-day[aria-pressed=true]{outline:2px solid #397e75;outline-offset:-2px}.dashboard-main .rent-owner-dots{display:flex;gap:2px;margin-top:2px}.dashboard-main .rent-owner-dot{height:4px;width:4px;flex-basis:4px;margin:0}.dashboard-main .rent-calendar-status{font-size:var(--ui-font-11, 11px);line-height:1.5;color:#899c9f}.dashboard-main .rent-calendar-status.error{color:#ab6756}.dashboard-main .rent-calendar-detail{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:7px;padding-top:8px;min-height:0;font-size:var(--ui-font-11, 11px);border-color:#e3ece7}.dashboard-main .rent-calendar-selected-info{display:flex;flex-wrap:wrap;flex-direction:row;gap:4px 8px}.dashboard-main .rent-calendar-detail strong{font-size:var(--ui-font-11, 11px)}.dashboard-main .rent-calendar-detail-actions{display:flex;gap:10px;margin:0}.dashboard-main .rent-calendar-foot{display:none}
.dashboard-main .finance-card{grid-area:finance;padding:18px 20px;gap:16px;min-height:0}.dashboard-main .finance-card-head{display:flex;align-items:flex-start;flex-wrap:wrap;gap:6px;margin:0}.dashboard-main .finance-income-title{display:flex;align-items:center;justify-content:space-between;flex:1 1 auto;min-width:0;gap:8px}.dashboard-main .finance-income-title h3{font-size:var(--ui-font-15, 15px);gap:5px}.dashboard-main .finance-income-details-open{font-size:var(--ui-font-12, 12px);white-space:nowrap}.dashboard-main .finance-card-head>small{display:none}.dashboard-main .finance-owner-filter{display:flex;align-items:center;font-size:var(--ui-font-11, 11px);gap:6px;min-width:0;flex-wrap:nowrap;margin:0;flex:none}.dashboard-main .finance-owner-filter .form-control{width:0;flex:1;min-width:0;height:27px;min-height:27px;font-size:var(--ui-font-11, 11px);padding:3px 6px;border-color:#e1e7e4}.dashboard-main .finance-owner-filter small{display:none}.dashboard-main .finance-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0}.dashboard-main .finance-summary{border:0;border-radius:0;background:none;padding:0;min-width:0}.dashboard-main .finance-summary-label{font-size:var(--ui-font-11, 11px);line-height:1.5;color:#7d949a}.dashboard-main .finance-summary-value{font-size:clamp(19px,1.45vw,25px);line-height:1.4;color:#183740;font-weight:650;margin:4px 0;overflow-wrap:anywhere;white-space:normal;letter-spacing:-.02em}.dashboard-main .finance-summary-compare{display:block;font-size:var(--ui-font-11, 11px);line-height:1.6;margin:0;overflow-wrap:anywhere}.dashboard-main .finance-summary>small{display:none}.dashboard-main .finance-chart-wrap{min-height:85px;height:85px;flex:none;border-top:0;margin:0;padding:0;position:relative}.dashboard-main #finance-line-canvas{width:100%;height:100%;position:absolute;inset:0}.dashboard-main .finance-chart-foot{display:flex;flex-wrap:wrap;gap:6px;font-size:var(--ui-font-11, 11px);margin:0;line-height:1.5}.dashboard-main .finance-legend{font-size:var(--ui-font-11, 11px);gap:10px}.dashboard-main .finance-legend i{width:10px;height:2px}.dashboard-main #finance-chart-status{font-size:var(--ui-font-11, 11px);overflow-wrap:anywhere;color:#87999e}.dashboard-main #finance-chart-status.has-review{color:#a37c42;font-weight:500}.dashboard-finance-unavailable{grid-area:finance;font-size:var(--ui-font-12, 12px);line-height:1.8;align-items:center;justify-content:center;text-align:center;color:#758f94;min-height:140px}.dashboard-finance-unavailable strong{font-size:var(--ui-font-14, 14px)}
.dashboard-main .gps-map-module{grid-area:auto;width:100%;min-height:0;height:auto;padding:16px 18px 12px;display:flex}.dashboard-main .gps-map-shell{flex:1;min-height:0;height:auto;display:flex;flex-direction:column;gap:10px}.dashboard-main .gps-map-head{order:0;margin:0;padding:0;display:flex;align-items:center;justify-content:space-between;gap:12px}.dashboard-main .gps-map-title small{display:none}.dashboard-main .gps-map-actions{display:flex;gap:7px;width:auto;flex:none}.dashboard-main .gps-map-action{font-family:inherit;font-size:var(--ui-font-12, 12px);min-height:30px;padding:5px 9px;line-height:1.4;border-radius:6px;background:#fff;color:#416b71;border-color:#dbe6e1;box-shadow:none;flex:none}.dashboard-main .gps-map-vehicle-form{order:0;margin:0;display:flex;align-items:center;justify-content:flex-end;gap:8px;font-size:var(--ui-font-12, 12px);flex-wrap:wrap}.dashboard-main .gps-map-vehicle-form label{font-size:var(--ui-font-12, 12px);color:#788e93}.dashboard-main .gps-map-vehicle-form select{flex:0 1 190px;height:30px;min-height:30px;font-size:var(--ui-font-12, 12px);width:190px;border-color:#dfe6e3;border-radius:6px;color:#496d72;background:#fff;padding:3px 8px}.dashboard-main #gps-map-view{background:#2e686b;color:#fff;border-color:#2e686b}.dashboard-main #gps-map-module .gps-map-viewport{order:0;flex:1;min-height:534px;height:auto;overflow:hidden;border:1px solid #d9e4dd;border-radius:8px;box-shadow:none;background:#eaf0ed}.dashboard-main .gps-native-map{border-radius:7px;background:#eaf0ed}.dashboard-main .gps-map-foot{order:0;font-size:var(--ui-font-11, 11px);line-height:1.6;display:flex;justify-content:space-between;gap:7px;flex-wrap:wrap;margin:0;padding:0 76px 0 0}.dashboard-main .gps-map-status,.dashboard-main .gps-map-attribution{font-size:var(--ui-font-11, 11px)}.dashboard-main .gps-map-loading{font-size:var(--ui-font-13, 13px);line-height:1.6}.dashboard-main .gps-map-tile-error{font-size:var(--ui-font-12, 12px);max-width:calc(100% - 90px);right:76px;bottom:14px}.dashboard-main .gps-map-tile-error button{font-size:var(--ui-font-12, 12px);line-height:1.4}.dashboard-main .gps-car-marker span{font-size:var(--ui-font-11, 11px);line-height:1.3}.dashboard-main .gps-car-marker-core{max-width:150px;padding:5px 7px}.dashboard-main .gps-car-marker svg{width:14px;height:14px}.dashboard-area-tabs{display:none}.dashboard-main .site-compliance-footer{font-size:var(--ui-font-11, 11px);line-height:1.6;margin-top:0;padding:8px 80px 0 0;flex:none}
.app-layout:has(.dashboard-main) .sidebar{background:#142d37}.app-layout:has(.dashboard-main) .sidebar-nav a{color:#a7bfc7}.app-layout:has(.dashboard-main) .sidebar-nav a.active{background:#2b4e5a;border-left-color:#8bcbbb;color:#fff}.app-layout:has(.dashboard-main) .sidebar-logo .icon{background:#284b53;color:#add6cd}.app-layout:has(.dashboard-main) .sidebar-user{color:#b8cbd0}
/* HX111: align the map with the status/calendar stack, then span income across the next row. */
.dashboard-main .dashboard-calendar-card{flex:1}
.dashboard-main .dashboard-calendar-card .rent-calendar{flex:1}
.dashboard-main .dashboard-calendar-card .rent-calendar-grid{flex:1}
.dashboard-main .finance-content{display:grid;grid-template-columns:minmax(320px,1fr) minmax(0,1.7fr);align-items:center;gap:28px;min-width:0}
.dashboard-main .finance-content .finance-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.dashboard-main .finance-trend{display:flex;flex-direction:column;gap:8px;min-width:0;border-left:1px solid #eaf0ed;padding-left:28px}
.dashboard-main .finance-trend .finance-chart-wrap{height:140px;min-height:140px}
.dashboard-main .finance-card-head{align-items:center;gap:16px}
.dashboard-main .finance-owner-filter{width:220px;margin-left:auto}
@media(max-width:760px){
 .dashboard-main .finance-content{grid-template-columns:1fr;gap:18px}
 .dashboard-main .finance-trend{border-left:0;border-top:1px solid #eaf0ed;padding:14px 0 0}
 .dashboard-main .finance-content .finance-summary-grid{gap:14px}
 .dashboard-main .finance-owner-filter{width:100%;margin-left:0}
 .dashboard-main .dashboard-calendar-card .rent-calendar,.dashboard-main .dashboard-calendar-card .rent-calendar-grid{flex:none}
}

@media(max-width:1450px){.dashboard-main{padding:22px 24px}.dashboard-main .brand-info h1{font-size:var(--ui-font-26, 26px)}.dashboard-main .dash-grid,body.finance-dashboard-hidden .dashboard-main .dash-grid{grid-template-columns:minmax(0,2fr) minmax(320px,1fr)}.dashboard-main .stat-tile{padding:10px;gap:8px}.dashboard-main .stat-tile-main{gap:9px}.dashboard-main .tile-icon{height:29px;width:29px}.dashboard-main .stat-tile .tile-num{font-size:var(--ui-font-25, 25px)}.dashboard-main .stat-tile .tile-label{font-size:var(--ui-font-11, 11px)}.dashboard-main .alert-card{padding:14px 16px}.dashboard-main #alert-warning-lists{gap:18px}.dashboard-main #alert-warning-lists .alert-group+section{padding-left:18px}.dashboard-main #alert-warning-lists .alert-item{grid-template-columns:86px minmax(0,1fr) 70px;gap:3px 6px}.dashboard-main #alert-warning-lists .rent-alert{grid-template-columns:minmax(0,1fr) 70px}.dashboard-main #alert-warning-lists .a-rent-top .a-badge{width:86px;flex-basis:86px}.dashboard-main #alert-warning-lists .rent-alert .a-detail{padding-left:92px}.dashboard-main .gps-map-head{flex-wrap:wrap}.dashboard-main .gps-map-actions{margin-left:auto}.dashboard-main .finance-summary-grid{grid-template-columns:1fr}.dashboard-main .finance-summary-value{font-size:var(--ui-font-25, 25px)}.dashboard-main .chart-inner{grid-template-columns:1fr 80px 1fr;gap:6px}.dashboard-main .donut-wrap{width:80px;height:80px}.dashboard-main .legend-row{font-size:var(--ui-font-11, 11px)}}
@media(max-width:1100px){.dashboard-main .brand-info h1{font-size:var(--ui-font-23, 23px);white-space:normal}.dashboard-main .brand-banner{flex-wrap:wrap;height:auto;flex-basis:auto;min-height:60px}.dashboard-main .dash-grid,body.finance-dashboard-hidden .dashboard-main .dash-grid{grid-template-columns:1fr;grid-template-areas:'stats' 'shortcuts' 'alerts' 'map' 'operations' 'finance';grid-template-rows:auto auto auto auto auto auto;gap:16px}.dashboard-main .dashboard-right-column{display:grid;grid-template-columns:1fr 1fr;align-items:start}.dashboard-main .finance-card,.dashboard-main .dashboard-finance-unavailable{grid-column:1/-1}.dashboard-main .finance-summary-grid{grid-template-columns:1fr 1fr}.dashboard-area-tabs{grid-area:shortcuts;display:flex;gap:7px;flex-wrap:wrap}.dashboard-area-tabs button{font-family:inherit;font-size:var(--ui-font-12, 12px);line-height:1.5;background:#fff;border:1px solid #dbe5df;border-radius:6px;color:#53777c;padding:5px 12px;cursor:pointer}.dashboard-area-tabs button[aria-current]{background:#e7f2ec;color:#28695e;border-color:#b3d2c1}.dashboard-main .alert-card{min-height:330px}.dashboard-main #alert-warning-lists .alert-group-list{max-height:300px}.dashboard-main .gps-map-module{height:auto;min-height:0}}
@media(max-width:760px){.dashboard-main{padding:16px 14px 28px;gap:16px;height:auto;min-height:calc(100dvh - 56px)}.dashboard-main .brand-banner{min-height:0;gap:10px;display:block}.dashboard-main .brand-info{display:block}.dashboard-main .brand-info h1{font-size:var(--ui-font-22, 22px);line-height:1.5;letter-spacing:0;white-space:normal}.dashboard-main .brand-info h1 span{display:inline}.dashboard-main .brand-date{margin-top:8px;text-align:left}.dashboard-main .brand-date .date-big{justify-content:flex-start;flex-direction:row;gap:10px;font-size:var(--ui-font-12, 12px)}.dashboard-main .brand-date .date-small{font-size:var(--ui-font-11, 11px);margin-top:4px}.dashboard-main .stats-grid{gap:5px}.dashboard-main .stat-tile{height:74px;min-height:74px;display:flex;flex-direction:column;justify-content:center;text-align:center;padding:6px 2px;gap:4px}.dashboard-main .stat-tile-main{gap:0}.dashboard-main .tile-top{display:none}.dashboard-main .stat-tile .tile-num{font-size:var(--ui-font-23, 23px)}.dashboard-main .stat-tile .tile-label{font-size:var(--ui-font-11, 11px);line-height:1.4;text-align:center;width:100%}.dashboard-main .tile-label-contract span{display:block}.dashboard-main .dashboard-right-column{display:flex;gap:14px}.dashboard-main .alert-card{padding:14px 12px;min-height:0}.dashboard-main .alert-card-head{flex-wrap:wrap;gap:9px}.dashboard-main .alert-card-tools{width:100%;justify-content:space-between;gap:5px}.dashboard-main .dashboard-view-tabs button{font-size:var(--ui-font-12, 12px)}.dashboard-main #dashboard-warning-tab{font-size:var(--ui-font-15, 15px)}.dashboard-main #alert-warning-lists{display:flex;flex-direction:column;gap:18px;padding:0;overflow:visible;min-height:0}.dashboard-main #alert-warning-lists .alert-group{flex:none}.dashboard-main #alert-warning-lists .alert-group+section{border-left:0;border-top:1px solid #e5ece6;padding:14px 0 0}.dashboard-main #alert-warning-lists .alert-group-list{flex:none;max-height:none;overflow:visible;scrollbar-gutter:auto}.dashboard-main #alert-warning-lists .alert-item{grid-template-columns:75px minmax(0,1fr) 58px;min-height:65px;gap:4px 6px}.dashboard-main #alert-warning-lists .a-plate{font-size:var(--ui-font-14, 14px)}.dashboard-main #alert-warning-lists .a-detail{font-size:var(--ui-font-12, 12px)}.dashboard-main #alert-warning-lists .a-badge{font-size:var(--ui-font-11, 11px);padding:4px 2px}.dashboard-main #alert-warning-lists .a-days{font-size:var(--ui-font-11, 11px)}.dashboard-main #alert-warning-lists .rent-alert{grid-template-columns:minmax(0,1fr) 58px}.dashboard-main #alert-warning-lists .a-rent-top .a-badge{flex-basis:75px;width:75px}.dashboard-main #alert-warning-lists .rent-alert .a-detail{padding-left:0}.dashboard-main #alert-warning-lists .a-rent-top .a-plate{flex:1}.dashboard-main #alert-warning-lists .a-periods{font-size:var(--ui-font-11, 11px);margin-left:81px}.dashboard-main .chart-card,.dashboard-main .finance-card,.dashboard-main .dashboard-calendar-card{padding:16px}.dashboard-main .chart-inner{grid-template-columns:1fr 94px 1fr;gap:10px}.dashboard-main .donut-wrap{height:94px;width:94px}.dashboard-main .legend-row{font-size:var(--ui-font-12, 12px)}.dashboard-main .finance-summary-grid{grid-template-columns:1fr 1fr}.dashboard-main .finance-summary-value{font-size:var(--ui-font-22, 22px)}.dashboard-main .finance-chart-wrap{height:110px;min-height:110px}.dashboard-main .gps-map-module{padding:14px 12px;height:auto;min-height:0}.dashboard-main .gps-map-head{flex-wrap:wrap;gap:10px}.dashboard-main .gps-map-title{width:100%}.dashboard-main .gps-map-actions{margin:0;gap:5px;flex-wrap:wrap}.dashboard-main .gps-map-action{font-size:var(--ui-font-12, 12px);padding:5px 7px}.dashboard-main .gps-map-vehicle-form{justify-content:flex-start;gap:6px}.dashboard-main .gps-map-vehicle-form select{width:0;flex:1;min-width:0;font-size:var(--ui-font-12, 12px)}.dashboard-main #gps-map-module .gps-map-viewport{min-height:500px;height:500px}.dashboard-main .gps-map-foot{font-size:var(--ui-font-11, 11px);padding-right:72px}.dashboard-main .gps-map-tile-error{font-size:var(--ui-font-11, 11px);right:70px;left:8px;max-width:none;flex-wrap:wrap}.dashboard-main .rent-calendar-grid{grid-template-rows:repeat(6,minmax(34px,auto));min-height:224px}.dashboard-main .rent-calendar-detail{flex-direction:column;align-items:flex-start}.dashboard-main .rent-calendar-detail-actions{margin-right:76px}.dashboard-main .site-compliance-footer{padding-bottom:76px}.dashboard-main .gps-popup{max-width:230px}}

/* Existing body-level dialog and GPS credential form styling, unchanged. */
.dashboard-overview-dialog{width:min(700px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:20px;border:1px solid #d9e3f0;border-radius:16px;box-shadow:0 20px 70px #15345235;color:#24354b;overflow:visible;font-size:var(--ui-font-13, 13px);line-height:1.6}.dashboard-overview-dialog::backdrop{background:#10284470;backdrop-filter:blur(3px)}.dashboard-overview-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.dashboard-overview-dialog h2{font-size:var(--ui-font-16, 16px);margin:0}.dashboard-overview-dialog button{font-size:var(--ui-font-12, 12px);min-height:30px}.dashboard-overview-dialog-content{display:flex;flex-direction:column;gap:8px;min-width:0}.dashboard-overview-dialog-content .alert-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:3px 8px;padding:8px;border:1px solid #e3eaf4;border-radius:8px;font-size:var(--ui-font-12, 12px);line-height:1.5}.dashboard-overview-dialog-content .a-detail{grid-column:1/3;white-space:normal;overflow-wrap:anywhere}.dashboard-overview-dialog-content .a-days{grid-column:3;grid-row:1/3}.dashboard-overview-dialog-content .a-badge,.dashboard-overview-dialog-content .a-plate{font-size:var(--ui-font-12, 12px)}.dashboard-overview-dialog-content .legend-row{display:flex;gap:12px;padding:6px 0}.dashboard-overview-dialog-content .legend-row .val{margin-left:auto}.dashboard-overview-dialog-content .dot{width:10px;height:10px;border-radius:50%;align-self:center}.dashboard-overview-dialog-content .rent-calendar-record{font-size:var(--ui-font-13, 13px);line-height:1.5;padding:9px;border:1px solid #e4ebf4;border-radius:8px;margin:0;display:flex;align-items:center;justify-content:space-between;gap:12px}.dashboard-overview-dialog-content .rent-calendar-record small{font-size:var(--ui-font-12, 12px);display:block;color:#6a7d93;overflow-wrap:anywhere}.dashboard-overview-dialog-content .rent-calendar-record b{white-space:nowrap}.dashboard-overview-dialog-content p{margin:0;overflow-wrap:anywhere}.dashboard-overview-dialog-pages{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:14px;font-size:var(--ui-font-12, 12px)}.dashboard-overview-dialog-pages[hidden]{display:none}
.dashboard-gps-dialog .gps-map-setup{position:static;inset:auto;display:block;padding:0;background:none}.dashboard-gps-dialog .gps-map-setup[hidden]{display:none}.dashboard-gps-dialog .gps-map-setup-card{padding:0;background:none;box-shadow:none;max-width:none;width:auto}.dashboard-gps-dialog .gps-map-setup-card strong{display:none}.dashboard-gps-dialog .gps-map-setup-card p,.dashboard-gps-dialog .gps-map-setup-note,.dashboard-gps-dialog #gps-map-admin-only{font-size:var(--ui-font-13, 13px);line-height:1.5}.dashboard-gps-dialog .gps-map-setup-form{display:grid;gap:10px;grid-template-columns:1fr;margin:14px 0}.dashboard-gps-dialog input,.dashboard-gps-dialog #gps-map-save{width:100%;height:38px;font-size:var(--ui-font-13, 13px);padding:8px 10px;min-width:0}.dashboard-gps-connect{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);white-space:nowrap;background:#fff;border:1px solid #90aacb;border-radius:8px;padding:10px;color:#2b547f;font-size:var(--ui-font-12, 12px);z-index:2}.dashboard-gps-connect[hidden]{display:none}.dashboard-gps-dialog [hidden]{display:none!important}
.dashboard-gps-notice{position:absolute;inset:50% 12px auto;transform:translateY(-50%);margin:0;text-align:center;font-size:var(--ui-font-12, 12px);line-height:1.6;color:#375c88;z-index:2;background:#f7fbff;border:1px solid #c4d5e9;border-radius:8px;padding:12px}.dashboard-gps-notice[hidden]{display:none}
/* Compact default guide; existing saved/dragged positions and the full guide panel remain intact. */
body:not(.dashboard-module-open) #haoxing-bee-assistant.dashboard-guide-docked{width:52px;height:60px;left:auto!important;top:12px!important;right:330px!important;bottom:auto!important}
@media(max-width:760px){body:not(.dashboard-module-open) #haoxing-bee-assistant.dashboard-guide-docked{width:42px;height:48px;top:3px!important;right:100px!important}}

@media screen {
 .dashboard-overview-dialog { width:min(var(--ui-dialog-medium,700px),calc(100vw - 2 * var(--ui-gap,16px))); max-height:calc(100dvh - 2 * var(--ui-gap,16px)); overflow:auto; }
 .dashboard-main { padding:clamp(16px,1.36vw,26px) clamp(14px,1.56vw,30px) 20px; gap:var(--ui-gap,16px); }
 .dashboard-main .dash-grid,body.finance-dashboard-hidden .dashboard-main .dash-grid { gap:var(--ui-gap,16px) calc(var(--ui-gap,16px) + 4px); }
 .dashboard-main :is(.finance-card,.chart-card,.dashboard-calendar-card,.gps-map-module) { padding:var(--ui-padding,18px); }
}
@media screen and (max-width:760px) {
 .dashboard-main { padding:16px 14px 28px; gap:16px; }
 .dashboard-main .dash-grid,body.finance-dashboard-hidden .dashboard-main .dash-grid { gap:16px; }
 .dashboard-main :is(.finance-card,.chart-card,.dashboard-calendar-card) { padding:16px; }
 .dashboard-main .gps-map-module { padding:14px 12px; }
}

/* HX113: business dashboard preview. Original controls, IDs and scripts remain authoritative. */
@media screen {
 body.business-dashboard { background:#f4f3ef; color:#223548; }
 body.business-dashboard .app-layout { --ui-sidebar-fill:#152b40; }
 body.business-dashboard .dashboard-main { background:#f4f3ef; padding:clamp(16px,1.36vw,26px) clamp(16px,1.56vw,30px) 20px; gap:20px; }
 body.business-dashboard .app-layout .sidebar { background:var(--ui-sidebar-fill); box-shadow:none; }
 body.business-dashboard .app-layout .sidebar-logo .icon { background:#294358; box-shadow:none; color:#d1dedf; }
 body.business-dashboard .app-layout .sidebar-nav a { color:#aebdca; border-radius:7px; }
 body.business-dashboard .app-layout .sidebar-nav a.active { background:#2a4357; box-shadow:inset 3px 0 #86ada5; color:#fff; }
 body.business-dashboard .app-layout .sidebar-nav a.nav-ai-assistant { background:#264257; border-color:#3e596a; box-shadow:none; }
 body.business-dashboard .app-layout .sidebar-nav a.nav-ai-assistant::after { content:none; }
 body.business-dashboard .app-layout .sidebar-nav a.nav-ai-assistant:hover { background:#304e63; }
 body.business-dashboard .brand-banner { min-height:56px; flex-basis:56px; }
 body.business-dashboard .brand-banner.shell-account-header { height:auto; flex-basis:auto; overflow:visible; flex-wrap:wrap; }
 body.business-dashboard .brand-info h1 { color:#203347; font-size:var(--ui-font-28,28px); font-weight:650; letter-spacing:0; }
 body.business-dashboard .brand-date .date-big { color:#415264; font-variant-numeric:tabular-nums; font-size:var(--ui-font-13,13px); }
 body.business-dashboard .brand-date .date-small { color:#8a949b; }
 body.business-dashboard .dashboard-main .dash-grid,
 body.business-dashboard.finance-dashboard-hidden .dashboard-main .dash-grid {
   grid-template-columns:minmax(0,50fr) minmax(290px,27fr) minmax(280px,23fr);
   grid-template-areas:'stats stats stats' 'map alerts calendar' 'status finance finance';
   grid-template-rows:82px auto auto; gap:18px; align-items:stretch;
 }
 body.business-dashboard .stats-grid { gap:14px; }
 body.business-dashboard .stat-tile { height:82px; min-height:0; border-color:#e1e3e1; border-radius:9px; padding:14px 18px; gap:12px; box-shadow:0 2px 8px #21334703; }
 body.business-dashboard .stat-tile:hover { transform:translateY(-1px); box-shadow:0 4px 14px #2133470a; }
 body.business-dashboard .stat-tile .tile-num { color:#223548; font-size:var(--ui-font-28,28px); }
 body.business-dashboard .stat-tile .tile-label { color:#78858c; }
 body.business-dashboard .tile-icon { color:#5e817d; background:#edf3ef; border-radius:8px; }
 body.business-dashboard .tile-icon.orange { color:#a68b5d; background:#f7f2e8; }
 body.business-dashboard .tile-icon.red { color:#ae7c76; background:#f8efed; }
 body.business-dashboard .dashboard-main :is(.chart-card,.finance-card,.alert-card,.gps-map-module,.dashboard-calendar-card),
 body.business-dashboard .dashboard-finance-unavailable { border-color:#dfe3df; border-radius:10px; box-shadow:0 2px 9px #22354804; background:#fff; padding:18px; }
 body.business-dashboard .dashboard-main :is(h3,#gps-map-heading) { color:#24394c; font-size:var(--ui-font-15,15px); }
 body.business-dashboard .section-title-icon { color:#668b83; }
 body.business-dashboard .dashboard-right-column { grid-area:calendar; gap:14px; }
 body.business-dashboard #dashboard-status-card { grid-area:status; }
 body.business-dashboard .dashboard-left-column > .gps-map-module { flex:1; }
 body.business-dashboard .chart-card { flex:none; min-height:182px; }
 body.business-dashboard .dashboard-calendar-card { flex:1; }
 body.business-dashboard .dashboard-calendar-card .rent-calendar-grid { flex:1; }
 body.business-dashboard .chart-inner { grid-template-columns:minmax(0,1fr) 80px minmax(0,1fr); gap:6px; }
 body.business-dashboard .donut-wrap { width:80px; height:80px; }
 body.business-dashboard .legend-row { color:#7c8a91; }
 body.business-dashboard .legend-row .val { color:#344e5d; }
 body.business-dashboard .alert-card { gap:14px; overflow:hidden; contain:size; }
 body.business-dashboard .alert-card-head { align-items:stretch; flex-direction:column; gap:13px; }
 body.business-dashboard .dashboard-view-tabs { justify-content:space-between; gap:8px; }
 body.business-dashboard #dashboard-warning-tab { color:#24394c; font-size:var(--ui-font-15,15px); }
 body.business-dashboard #dashboard-calendar-tab { font-size:var(--ui-font-11,11px); color:#66867f; }
 body.business-dashboard .alert-card-tools { justify-content:space-between; gap:6px; flex-wrap:wrap; }
 body.business-dashboard .alert-status-filter { gap:6px; font-size:var(--ui-font-11,11px); }
 body.business-dashboard #alert-status-filter { min-width:106px; }
 body.business-dashboard #dashboard-warning-view { gap:0; }
 body.business-dashboard #alert-warning-lists { display:flex; flex-direction:column; gap:18px; min-height:0; }
 body.business-dashboard #alert-warning-lists .alert-group { flex:1 1 0; min-height:0; gap:8px; }
 body.business-dashboard #alert-warning-lists .alert-group+section { border-left:0; border-top:1px solid #e8ece8; padding:16px 0 0; }
 body.business-dashboard .alert-group-head { padding-bottom:5px; }
 body.business-dashboard .alert-group-head h4 { font-size:var(--ui-font-12,12px); color:#6a7982; }
 body.business-dashboard .alert-group-head .alert-count { color:#9b6d60; background:#f9efeb; border-radius:5px; min-width:24px; padding:0 5px; }
 body.business-dashboard .upcoming .alert-group-head .alert-count { color:#9b8254; background:#f8f3e9; }
 body.business-dashboard #alert-warning-lists .alert-group-list { overflow:auto; min-height:0; max-height:none; }
 body.business-dashboard #alert-warning-lists .alert-item { grid-template-columns:minmax(0,1fr) 88px; grid-template-rows:auto auto auto; gap:4px 6px; padding:10px 0; min-height:92px; border-color:#edf0ec; }
 body.business-dashboard #alert-warning-lists .a-badge { grid-column:1; grid-row:1; justify-self:start; width:auto; padding:2px 6px; border-radius:4px; }
 body.business-dashboard #alert-warning-lists .a-plate { grid-column:1; grid-row:2; color:#304b5b; }
 body.business-dashboard #alert-warning-lists .a-detail { grid-column:1/-1; grid-row:3; padding-left:0; color:#859098; }
 body.business-dashboard #alert-warning-lists .a-days { grid-column:2; grid-row:1/3; font-weight:500; min-width:88px; max-width:none; }
 body.business-dashboard #alert-warning-lists .rent-alert { grid-template-columns:minmax(0,1fr) 88px; grid-template-rows:auto auto; }
 body.business-dashboard #alert-warning-lists .a-rent-top { grid-column:1; grid-row:1; flex-wrap:wrap; gap:5px; }
 body.business-dashboard #alert-warning-lists .a-rent-top .a-badge { width:auto; flex:0 0 auto; }
 body.business-dashboard #alert-warning-lists .rent-alert .a-detail { grid-column:1/-1; grid-row:2; padding-left:0; }
 body.business-dashboard #alert-warning-lists .rent-alert .a-days { grid-column:2; grid-row:1; }
 body.business-dashboard #alert-warning-lists .a-periods { margin:0; }
 body.business-dashboard .gps-map-head { flex-wrap:wrap; gap:10px; }
 body.business-dashboard .gps-map-actions { margin-left:auto; gap:5px; }
 body.business-dashboard .gps-map-action { font-size:var(--ui-font-11,11px); padding:5px 8px; border-color:#dce4df; color:#59776f; }
 body.business-dashboard .gps-map-vehicle-form { justify-content:flex-start; }
 body.business-dashboard .gps-map-vehicle-form select { flex:1; min-width:0; max-width:280px; }
 body.business-dashboard #gps-map-view { background:#527e74; border-color:#527e74; }
 body.business-dashboard #gps-map-module .gps-map-viewport { min-height:480px; border-color:#dce3db; background:#eef1e9; border-radius:7px; }
 body.business-dashboard .gps-native-map { background:#eef1e9; }
 body.business-dashboard .gps-map-foot { padding-right:0; color:#87968f; }
 body.business-dashboard .finance-card { gap:18px; }
 body.business-dashboard .finance-content { grid-template-columns:clamp(240px,18vw,290px) minmax(0,1fr); gap:26px; }
 body.business-dashboard .dashboard-main .finance-content .finance-summary-grid { grid-template-columns:1fr; gap:20px; }
 body.business-dashboard .finance-income-title { width:auto; flex:1 1 auto; justify-content:flex-start; gap:14px; }
 body.business-dashboard .finance-card-head { gap:16px; flex-wrap:nowrap; }
 body.business-dashboard .finance-summary-label { color:#89928e; }
 body.business-dashboard .finance-summary-value { color:#273e4d; }
 body.business-dashboard .finance-trend .finance-chart-wrap { height:148px; min-height:148px; }
 body.business-dashboard .site-compliance-footer { color:#9aA2a2; padding-top:3px; }
}
@media screen and (max-width:1450px) and (min-width:1101px) {
 body.business-dashboard .dashboard-main .dash-grid,
 body.business-dashboard.finance-dashboard-hidden .dashboard-main .dash-grid { grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); grid-template-areas:'stats stats' 'map alerts' 'status calendar' 'finance finance'; grid-template-rows:82px auto auto auto; }
 body.business-dashboard .dashboard-right-column { display:flex; }
 body.business-dashboard #dashboard-status-card { align-self:start; }
 body.business-dashboard .dashboard-calendar-card .rent-calendar-grid { flex:none; }
}
@media screen and (min-width:1451px) {
 /* Stretch the actual weeks, rather than reserve an empty sixth week. */
 body.business-dashboard .dashboard-calendar-card .rent-calendar-grid { grid-template-rows:none; grid-auto-rows:minmax(29px,1fr); }
 body.business-dashboard #dashboard-status-card .chart-inner { flex:1; grid-template-columns:minmax(0,1fr) 120px minmax(0,1fr); }
 body.business-dashboard #dashboard-status-card .donut-wrap { width:120px; height:120px; }
}
@media screen and (max-width:1100px) {
 body.business-dashboard .dashboard-main .dash-grid,
 body.business-dashboard.finance-dashboard-hidden .dashboard-main .dash-grid { grid-template-columns:1fr; grid-template-areas:'stats' 'shortcuts' 'alerts' 'map' 'calendar' 'status' 'finance'; grid-template-rows:auto auto auto auto auto auto auto; gap:16px; }
 body.business-dashboard .alert-card { max-height:none; contain:none; }
 body.business-dashboard #alert-warning-lists { display:grid; grid-template-columns:1fr 1fr; }
 body.business-dashboard #alert-warning-lists .alert-group { min-height:240px; }
 body.business-dashboard #alert-warning-lists .alert-group+section { border-top:0; border-left:1px solid #e8ece8; padding:0 0 0 16px; }
 body.business-dashboard #alert-warning-lists .alert-group-list { max-height:300px; }
 body.business-dashboard .finance-content { grid-template-columns:1fr 1.5fr; }
}

@media screen {
 body.business-dashboard .rent-calendar-inline-records { flex:0 0 100%; width:100%; max-height:190px; min-height:0; overflow:auto; overscroll-behavior:contain; display:flex; flex-direction:column; gap:6px; padding:3px 0; }
 body.business-dashboard .rent-calendar-inline-records .rent-calendar-record { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; padding:8px 7px; border:1px solid #e3ebe5; border-radius:5px; background:#f8faf8; color:#45665d; font-size:var(--ui-font-12,12px); line-height:1.5; }
 body.business-dashboard .rent-calendar-inline-records .rent-calendar-record > span { min-width:0; overflow-wrap:anywhere; }
 body.business-dashboard .rent-calendar-inline-records .rent-calendar-record small { display:block; color:#7e8e89; font-size:var(--ui-font-11,11px); }
 body.business-dashboard .rent-calendar-inline-records .rent-calendar-record b { flex:none; white-space:nowrap; font-weight:600; }
 body.business-dashboard .rent-calendar-inline-empty { color:#87958f; font-size:var(--ui-font-12,12px); padding:8px 0; margin:0; }
}
@media screen and (max-width:760px) {
 body.business-dashboard .dashboard-main { padding:16px 14px 28px; gap:16px; }
 body.business-dashboard .brand-banner { min-height:0; flex-basis:auto; }
 body.business-dashboard .brand-info h1 { font-size:var(--ui-font-22,22px); line-height:1.5; }
 body.business-dashboard .brand-date .date-big { font-size:var(--ui-font-12,12px); }
 body.business-dashboard .stats-grid { gap:5px; }
 body.business-dashboard .stat-tile { height:74px; min-height:74px; padding:6px 2px; gap:4px; }
 body.business-dashboard .stat-tile .tile-num { font-size:var(--ui-font-23,23px); }
 body.business-dashboard .stat-tile .tile-label { font-size:var(--ui-font-11,11px); }
 body.business-dashboard .dashboard-main :is(.chart-card,.finance-card,.alert-card,.gps-map-module,.dashboard-calendar-card) { padding:15px 13px; }
 body.business-dashboard .alert-card-head { gap:12px; }
 body.business-dashboard #alert-warning-lists { display:flex; gap:18px; }
 body.business-dashboard #alert-warning-lists .alert-group { flex:none; min-height:0; }
 body.business-dashboard #alert-warning-lists .alert-group+section { border-left:0; border-top:1px solid #e8ece8; padding:16px 0 0; }
 body.business-dashboard #alert-warning-lists .alert-group-list { max-height:none; overflow:visible; }
 body.business-dashboard .dashboard-right-column { display:flex; }
 body.business-dashboard .gps-map-actions { margin-left:0; }
 body.business-dashboard .gps-map-vehicle-form select { max-width:none; }
 body.business-dashboard #gps-map-module .gps-map-viewport { min-height:500px; height:500px; }
 body.business-dashboard .finance-content { grid-template-columns:1fr; gap:18px; }
 body.business-dashboard .dashboard-main .finance-content .finance-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
 body.business-dashboard .finance-card-head { flex-wrap:wrap; }
 body.business-dashboard .finance-income-title { flex-basis:100%; justify-content:space-between; }
 body.business-dashboard .finance-trend { padding:14px 0 0; }
 body.business-dashboard .chart-inner { grid-template-columns:1fr 94px 1fr; gap:10px; }
 body.business-dashboard .donut-wrap { width:94px; height:94px; }
}

/* HX113 reminder tabs share the original lists and their live counts. */
@media screen {
 body.business-dashboard #alert-warning-lists { gap:0; }
 body.business-dashboard .business-alert-tabs { display:flex; gap:6px; flex:0 0 auto; padding-bottom:12px; margin-bottom:12px; border-bottom:1px solid #e5eae5; }
 body.business-dashboard .business-alert-tab { position:relative; display:flex; align-items:center; justify-content:center; gap:6px; flex:1; min-width:0; min-height:36px; padding:7px 4px; border:0; border-radius:6px; background:none; color:#7b898e; font:inherit; font-size:var(--ui-font-12,12px); cursor:pointer; }
 body.business-dashboard .business-alert-tab[aria-selected="true"] { color:#426c63; background:#edf4f0; font-weight:600; }
 body.business-dashboard .business-alert-tab[aria-selected="true"]::after { content:''; position:absolute; height:2px; bottom:-13px; left:12px; right:12px; background:#86a89c; border-radius:2px; }
 body.business-dashboard .business-alert-tab:focus-visible { outline:2px solid #8bac9f; outline-offset:2px; }
 body.business-dashboard .business-alert-tab .alert-count { min-width:21px; height:22px; padding:0 4px; border-radius:5px; font-size:var(--ui-font-11,11px); color:inherit; background:#e7ece7; }
 body.business-dashboard .business-alert-tab[aria-selected="true"] .alert-count { background:#dce9e2; }
 body.business-dashboard #alert-warning-lists .alert-group { flex:1; min-height:0; gap:0; }
 body.business-dashboard #alert-warning-lists .alert-group[hidden] { display:none!important; }
 body.business-dashboard #alert-warning-lists .alert-group-head { display:none; }
 body.business-dashboard #alert-warning-lists .alert-group+section { border:0; padding:0; }
 body.business-dashboard #alert-warning-lists .alert-group-list { flex:1; min-height:0; overflow:auto; max-height:none; }
}
@media screen and (max-width:1100px) {
 body.business-dashboard #alert-warning-lists { display:flex; flex-direction:column; height:clamp(380px,50dvh,520px); flex:none; }
 body.business-dashboard #alert-warning-lists .alert-group { flex:1; min-height:0; }
}

/* The shell account bar remains available while business modules are open. */
@media screen {
 body.business-dashboard :is(#dashboard-module-frame,#dashboard-module-transition) { top:var(--shell-account-bar-height,56px); height:calc(100vh - var(--shell-account-bar-height,56px)); height:calc(100dvh - var(--shell-account-bar-height,56px)); }
 body.business-dashboard #haoxing-bee-assistant.dashboard-guide-docked { left:calc((100vw + var(--sidebar-width,232px)) / 2 - 26px)!important; top:2px!important; right:auto!important; bottom:auto!important; transform:scale(.86); transform-origin:top center; }
}
@media screen and (max-width:768px) {
 body.business-dashboard #haoxing-bee-assistant.dashboard-guide-docked { left:54px!important; top:3px!important; transform:none; }
}

/* Edge labels overlay the page; only normal content padding remains. */
@media screen and (min-width:769px) {
 body.business-dashboard .app-layout { background-image:none; }
 body.business-dashboard .app-layout .sidebar { background:transparent; border:0; box-shadow:none; }
 body.business-dashboard .dashboard-main { margin-left:0; padding-left:clamp(16px,1.56vw,30px); }
 body.business-dashboard .brand-banner.shell-account-header .brand-info { margin-left:max(40px,calc(64px - clamp(16px,1.56vw,30px))); }
 body.business-dashboard .gps-map-vehicle-form > label { padding-left:max(20px,calc(64px - clamp(16px,1.56vw,30px) - 19px)); }
 body.business-dashboard .gps-native-map .leaflet-left { left:24px; }
 body.business-dashboard :is(#dashboard-module-frame,#dashboard-module-transition) { left:var(--sidebar-edge-gutter,0px); width:calc(100vw - var(--sidebar-edge-gutter,0px)); }
}

/* HX114: desktop cards share the live viewport; small screens keep natural scrolling. */
@media screen {
 body.business-dashboard .stat-tile { justify-content:center; }
 body.business-dashboard #dashboard-calendar-tab { display:none; }
 body.business-dashboard .dashboard-overview-dialog { inset:0; margin:auto; }
 body.business-dashboard .system-updates-overlay { align-items:center; justify-content:center; padding:clamp(10px,2vw,22px); }
 body.business-dashboard .system-updates-panel { max-height:calc(100dvh - 2 * clamp(10px,2vw,22px)); overflow:auto; }
 body.business-dashboard .alert-card-head { flex-direction:row; flex-wrap:wrap; align-items:center; gap:6px; }
 body.business-dashboard .alert-card-tools { flex:1; width:auto; justify-content:flex-end; flex-wrap:nowrap; }
 body.business-dashboard .alert-status-filter { gap:0; font-size:0; }
 body.business-dashboard #alert-status-filter { min-width:88px; max-width:110px; }
 body.business-dashboard .dashboard-calendar-title-row { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
 body.business-dashboard .dashboard-calendar-title-row h3 { flex:none; }
 body.business-dashboard .dashboard-calendar-title-row .rent-calendar-filter { flex:1; min-width:100px; font-size:0; gap:0; }
 body.business-dashboard .dashboard-calendar-title-row select { width:100%; min-width:0; font-size:var(--ui-font-11,11px); }
 body.business-dashboard .rent-calendar-head { justify-content:flex-end; }
 body.business-dashboard .gps-map-head .gps-map-title { width:auto; flex:none; }
 body.business-dashboard .gps-map-head .gps-map-vehicle-form { order:0; flex:1 1 145px; max-width:230px; margin:0; gap:5px; }
 body.business-dashboard .gps-map-head .gps-map-vehicle-form label { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
 body.business-dashboard .gps-map-head .gps-map-vehicle-form .gps-map-action { flex-basis:44px; white-space:nowrap; }
 body.business-dashboard .rent-owner-dots { width:100%; justify-content:center; }
 body.business-dashboard #dashboard-warning-tab,body.business-dashboard .dashboard-calendar-title-row h3 { display:flex; align-items:center; gap:6px; }
 body.business-dashboard #alert-warning-lists .a-plate { font-weight:650; }
 body.business-dashboard #alert-warning-lists .a-periods { font-weight:600; color:#50616c; }
 body.business-dashboard #alert-warning-lists .a-detail { font-size:var(--ui-font-13,13px); color:#596873; }
}
@media screen and (min-width:769px) and (min-height:620px) {
 body.business-dashboard:not(.dashboard-module-open) .dashboard-main { height:100dvh; min-height:0; padding-top:12px; padding-bottom:10px; gap:10px; }
 body.business-dashboard .brand-banner.shell-account-header { flex:0 0 auto; min-height:0; gap:12px; flex-wrap:nowrap; }
 body.business-dashboard .brand-info h1 { font-size:clamp(16px,2.1vw,28px); }
 body.business-dashboard .shell-header-right { flex-direction:row; align-items:center; gap:10px; }
 body.business-dashboard .shell-header-right .sidebar-footer { min-height:36px; }
 body.business-dashboard .brand-date .date-small { margin-top:2px; }
 body.business-dashboard .dashboard-main .dash-grid,
 body.business-dashboard.finance-dashboard-hidden .dashboard-main .dash-grid { flex:1; min-height:0; height:auto; grid-template-columns:minmax(0,47fr) minmax(210px,21fr) minmax(250px,32fr); grid-template-areas:'stats stats stats' 'map alerts calendar' 'status finance finance'; grid-template-rows:60px minmax(0,1fr) clamp(158px,22dvh,208px); gap:10px 12px; }
 body.business-dashboard .stats-grid { gap:12px; }
 body.business-dashboard .dashboard-area-tabs { display:none; }
 body.business-dashboard :is(.finance-card,.dashboard-finance-unavailable) { grid-area:finance; }
 body.business-dashboard .alert-card { min-height:0; contain:size; }
 body.business-dashboard #alert-warning-lists { height:auto; flex:1; }
 body.business-dashboard .stat-tile { height:60px; padding:8px 10px; gap:10px; }
 body.business-dashboard .stat-tile-main { gap:10px; }
 body.business-dashboard .stat-tile .tile-label { flex:none; width:auto; }
 body.business-dashboard .stat-tile .tile-num { font-size:clamp(22px,1.5vw,28px); }
 body.business-dashboard .dashboard-main :is(.finance-card,.alert-card,.gps-map-module,.dashboard-calendar-card) { padding:10px 12px; gap:6px; }
 body.business-dashboard .dashboard-right-column { display:flex; min-height:0; }
 body.business-dashboard #gps-map-module .gps-map-viewport { height:auto; min-height:0; }
 body.business-dashboard .gps-map-shell { gap:6px; }
 body.business-dashboard .gps-map-head { gap:6px; }
 body.business-dashboard .gps-map-actions { gap:4px; }
 body.business-dashboard .gps-map-action { min-height:26px; padding:3px 6px; }
 body.business-dashboard .gps-map-vehicle-form select { height:27px; min-height:27px; }
 body.business-dashboard .gps-map-foot { font-size:10px; line-height:1.4; }
 body.business-dashboard .alert-card-head { gap:6px; }
 body.business-dashboard .alert-card-tools { gap:4px; }
 body.business-dashboard .business-alert-tabs { padding-bottom:7px; margin-bottom:7px; gap:4px; }
 body.business-dashboard .business-alert-tab { min-height:30px; padding:4px 2px; }
 body.business-dashboard .business-alert-tab[aria-selected="true"]::after { bottom:-8px; }
 body.business-dashboard #alert-warning-lists .alert-item { padding:7px 0; min-height:70px; }
 body.business-dashboard .rent-calendar { gap:4px; }
 body.business-dashboard .rent-calendar-head { gap:4px; }
 body.business-dashboard .dashboard-calendar-card .rent-calendar-grid { flex:1; min-height:120px; height:0; grid-template-rows:none; grid-auto-rows:minmax(20px,1fr); gap:2px; }
 body.business-dashboard .rent-day { min-height:0; padding:2px; }
 body.business-dashboard .rent-calendar-week { line-height:14px; flex-basis:14px; }
 body.business-dashboard .rent-calendar-status { font-size:10px; line-height:1.3; }
 body.business-dashboard .rent-calendar-detail { gap:4px; padding-top:4px; }
 body.business-dashboard .rent-calendar-inline-records { max-height:clamp(44px,7dvh,80px); gap:4px; padding:0; }
 body.business-dashboard .rent-calendar-inline-records .rent-calendar-record { padding:5px; }
 body.business-dashboard #dashboard-status-card { position:relative; container-type:size; min-height:0; align-self:stretch; padding:0; gap:0; }
 body.business-dashboard #dashboard-status-card h3 { position:absolute; top:10px; left:12px; z-index:1; font-size:14px; }
 body.business-dashboard #dashboard-status-card .chart-inner { position:absolute; inset:0; flex:none; height:100%; padding:8px 12px; grid-template-columns:minmax(0,max-content) min(93cqh,42cqw) minmax(0,max-content); justify-content:center; gap:10px; }
 body.business-dashboard #dashboard-status-card .donut-wrap { width:min(93cqh,42cqw); height:min(93cqh,42cqw); }
 body.business-dashboard #dashboard-all-statuses { position:absolute; bottom:7px; right:12px; z-index:1; }
 body.business-dashboard .finance-card-head { gap:8px; align-items:center; }
 body.business-dashboard .finance-income-title { gap:8px; }
 body.business-dashboard .finance-content { flex:1; min-height:0; grid-template-columns:minmax(185px,.85fr) minmax(0,1.3fr); gap:14px; }
 body.business-dashboard .dashboard-main .finance-content .finance-summary-grid { gap:7px; }
 body.business-dashboard .finance-summary-value { font-size:clamp(18px,1.4vw,24px); line-height:1.2; margin:2px 0; }
 body.business-dashboard .finance-summary-label,.business-dashboard .finance-summary-compare { font-size:10px; line-height:1.3; }
 body.business-dashboard .finance-trend { min-width:0; padding:0 0 0 12px; }
 body.business-dashboard .finance-trend .finance-chart-wrap { height:clamp(70px,10dvh,102px); min-height:0; }
 body.business-dashboard .finance-chart-foot { font-size:10px; gap:3px; line-height:1.3; }
 body.business-dashboard .site-compliance-footer { font-size:10px; line-height:1.4; padding:0; min-height:14px; }
}

@media screen and (min-width:769px) and (min-height:620px) {
 body.business-dashboard #dashboard-status-card .legend-compact { width:max-content; max-width:100%; }
 body.business-dashboard #dashboard-status-card .legend-row { width:auto; gap:6px; }
 body.business-dashboard #dashboard-status-card .legend-row .lbl { min-width:0; overflow-wrap:anywhere; }
 body.business-dashboard #dashboard-status-card .legend-row .val { margin-left:4px; flex:none; }
}
@media screen and (min-width:769px) and (max-width:980px) and (min-height:620px) {
 body.business-dashboard .shell-account-header .sidebar-identity { grid-template-columns:28px minmax(0,90px); column-gap:5px; }
 body.business-dashboard .shell-account-header .sidebar-username { max-width:90px; }
 body.business-dashboard .shell-account-header .shell-account-bar { gap:5px; }
 body.business-dashboard .shell-account-header .sidebar-footer { gap:5px; }
 body.business-dashboard .shell-account-header .brand-date .date-big { gap:5px; font-size:11px; }
 body.business-dashboard .shell-account-header .brand-date .date-small { font-size:10px; }
 body.business-dashboard .dashboard-main .dash-grid,
 body.business-dashboard.finance-dashboard-hidden .dashboard-main .dash-grid { grid-template-columns:1fr; grid-template-areas:'stats' 'shortcuts' 'status' 'finance'; grid-template-rows:60px 30px minmax(0,1fr) clamp(158px,22dvh,208px); }
 body.business-dashboard .dashboard-area-tabs { display:flex; gap:7px; padding-left:48px; }
 body.business-dashboard .dashboard-area-tabs button { padding:4px 10px; }
 body.business-dashboard :is(.dashboard-left-column,.alert-card,.dashboard-right-column) { display:none; }
 body.business-dashboard[data-dashboard-area="map"] #dashboard-status-card,
 body.business-dashboard[data-dashboard-area="alerts"] #dashboard-status-card,
 body.business-dashboard[data-dashboard-area="calendar"] #dashboard-status-card { display:none; }
 body.business-dashboard[data-dashboard-area="map"] .dashboard-left-column,
 body.business-dashboard[data-dashboard-area="alerts"] .alert-card,
 body.business-dashboard[data-dashboard-area="calendar"] .dashboard-right-column { display:flex; grid-area:status; }
 body.business-dashboard #dashboard-status-card .chart-inner { grid-template-columns:minmax(0,max-content) min(93cqh,calc(100cqw - 230px)) minmax(0,max-content); }
 body.business-dashboard #dashboard-status-card .donut-wrap { width:min(93cqh,calc(100cqw - 230px)); height:min(93cqh,calc(100cqw - 230px)); }
}
@media screen and (max-width:768px) {
 body.business-dashboard .gps-map-head { flex-direction:row; align-items:center; }
 body.business-dashboard .gps-map-head .gps-map-vehicle-form { flex:1 1 180px; max-width:none; height:auto; }
 body.business-dashboard .gps-map-head .gps-map-actions { flex:0 0 100%; justify-content:flex-end; }
}
/* HX115: independent date, record badge and owner-dot positions. */
@media screen {
 body.business-dashboard .dashboard-calendar-card { width:100%; }
 body.business-dashboard .rent-day { position:relative; }
 body.business-dashboard .rent-day-number { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; flex-wrap:nowrap; gap:0; }
 body.business-dashboard .rent-day-date { font-size:var(--ui-font-13,13px); font-weight:650; font-variant-numeric:tabular-nums; line-height:1; color:#344d59; }
 body.business-dashboard .rent-day.due .rent-day-date { transform:translateY(-2px); }
 body.business-dashboard .rent-day-summary { position:absolute; top:1px; right:0; font-size:9px; font-weight:600; line-height:1.1; color:#617d87; flex-basis:auto; }
 body.business-dashboard .rent-day.today .rent-day-date { color:#fff; border-radius:4px; }
 body.business-dashboard .rent-owner-dots { position:absolute; left:0; right:0; bottom:1px; width:auto; margin-top:0; justify-content:center; }
}
@media screen and (max-width:768px) {
 body.business-dashboard .rent-day.due .rent-day-date { transform:translateY(4px); }
}

/* HX116: exact 1.5x title sizes; original controls wrap rather than lose text or hit area. */
@media screen {
 body.business-dashboard .brand-info h1 { font-size:calc(var(--ui-font-28,28px) * 1.5); font-weight:750; white-space:normal; overflow-wrap:anywhere; line-height:1.2; }
 body.business-dashboard .brand-banner.shell-account-header { flex-wrap:wrap; gap:10px 16px; }
 body.business-dashboard .brand-banner .brand-info { min-width:0; max-width:100%; flex:0 1 auto; }
 body.business-dashboard .shell-header-right { max-width:100%; margin-left:auto; }
 body.business-dashboard .dashboard-main :is(#gps-map-heading,#dashboard-warning-tab,#dashboard-status-card h3,#finance-overview-card h3,#dashboard-calendar-heading) {
  font-family:'Microsoft YaHei UI','Microsoft YaHei','PingFang SC','Hiragino Sans GB','SimHei',sans-serif;
  font-size:calc(var(--ui-font-15,15px) * 1.5); font-weight:750; font-style:normal; line-height:1.25; color:#173c52;
  white-space:normal; overflow:visible; text-overflow:clip; overflow-wrap:anywhere; min-width:0;
 }
 body.business-dashboard .dashboard-main .section-title-icon { width:25px; height:25px; color:#497e91; }
 body.business-dashboard .dashboard-main .section-title-icon svg { width:23px; height:23px; }
 body.business-dashboard .gps-map-head .gps-map-title { flex:0 1 auto; min-width:0; max-width:100%; }
 body.business-dashboard .dashboard-calendar-title-row h3 { flex:0 1 auto; min-width:0; }
 body.business-dashboard .finance-income-title { flex-wrap:wrap; }
}
@media screen and (min-width:769px) and (min-height:620px) {
 body.business-dashboard .brand-info h1 { font-size:clamp(24px,3.15vw,42px); }
}
@media screen and (max-width:760px) {
 body.business-dashboard .brand-info h1 { font-size:calc(var(--ui-font-22,22px) * 1.5); }
 body.business-dashboard .rent-calendar-detail { flex-wrap:nowrap; }
}

/* HX116: one compositor opacity layer behind the opaque cards; no canvas, requests or input surface. */
@media screen {
 body.business-dashboard { background:#edf3f9; }
 body.business-dashboard .dashboard-main { background:transparent; }
 body.business-dashboard::before {
  content:''; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background-image:radial-gradient(ellipse at 15% 12%,#73bded32,transparent 45%),radial-gradient(ellipse at 86% 75%,#54c9d429,transparent 48%),linear-gradient(#678bb20a 1px,transparent 1px),linear-gradient(90deg,#678bb20a 1px,transparent 1px);
  background-size:auto,auto,48px 48px,48px 48px;
  opacity:.6; will-change:opacity; animation:hx116-dashboard-glow 22s ease-in-out infinite;
 }
 @keyframes hx116-dashboard-glow { 0%,100% { opacity:.45; } 50% { opacity:.85; } }
}
@media screen and (max-width:768px) {
 body.business-dashboard::before { background-image:radial-gradient(ellipse at 15% 12%,#73bded32,transparent 50%),radial-gradient(ellipse at 86% 75%,#54c9d429,transparent 55%); background-size:auto; animation-duration:28s; }
}
@media screen and (prefers-reduced-motion:reduce) {
 body.business-dashboard::before { animation:none; opacity:.65; will-change:auto; }
}

/* HX116: the original Beijing clock doubles its actual type size; account/exit stay adjacent. */
@media screen {
 body.business-dashboard .brand-date .date-big { font-size:calc(var(--ui-font-13,13px) * 2); flex-wrap:wrap; row-gap:0; white-space:normal; }
 body.business-dashboard .brand-date .date-small { font-size:calc(var(--ui-font-12,12px) * 2); }
 body.business-dashboard .shell-account-header .shell-account-clock { flex:0 1 auto; min-width:0; max-width:100%; }
 body.business-dashboard .shell-account-header .shell-account-bar { min-width:0; }
 body.business-dashboard .shell-account-header .sidebar-footer { gap:4px; }
}
@media screen and (min-width:769px) and (max-width:980px) and (min-height:620px) {
 body.business-dashboard .shell-account-header .brand-date .date-big { font-size:22px; }
 body.business-dashboard .shell-account-header .brand-date .date-small { font-size:20px; }
}
@media screen and (max-width:760px) {
 body.business-dashboard .brand-date .date-big { font-size:calc(var(--ui-font-12,12px) * 2); }
 body.business-dashboard .brand-date .date-small { font-size:calc(var(--ui-font-11,11px) * 2); }
}

/* HX116: fit the actual name instead of reserving an empty account column. */
@media screen {
 body.business-dashboard .shell-account-header .sidebar-identity { grid-template-columns:32px minmax(0,max-content); }
 body.business-dashboard .shell-account-header .sidebar-username { justify-self:end; }
}
@media screen and (max-width:980px) {
 body.business-dashboard .shell-account-header .sidebar-identity { grid-template-columns:28px minmax(0,max-content); }
}
/* HX116: real settlement states and a smaller month leave room for the selected records. */
@media screen {
 body.business-dashboard .dashboard-calendar-card { overflow:auto; overscroll-behavior:contain; }
 body.business-dashboard .dashboard-calendar-card .rent-calendar { flex:1; min-height:0; }
 body.business-dashboard .dashboard-calendar-card .rent-calendar-grid { flex:1.2 1 0; height:0; min-height:calc(var(--calendar-weeks,6) * 36px + (var(--calendar-weeks,6) - 1) * 2px); grid-template-rows:repeat(var(--calendar-weeks,6),minmax(36px,1fr)); grid-auto-rows:auto; gap:2px; }
 body.business-dashboard .rent-day-date { font-size:calc(var(--ui-font-13,13px) * 1.5); font-weight:650; }
 body.business-dashboard .rent-day.due .rent-day-date, body.business-dashboard .rent-day.settled .rent-day-date { transform:translateY(2px); }
 body.business-dashboard .rent-day-summary { top:0; right:1px; font-size:12px; font-weight:650; line-height:1; color:#466676; }
 body.business-dashboard .rent-owner-dots { bottom:3px; }
 body.business-dashboard .rent-day.overdue { background:#fae9eb; border-color:#edcbd2; box-shadow:inset 2px 0 #ca8798; }
 body.business-dashboard .rent-day.settled { background:#e4f3e9; border-color:#bedbc9; box-shadow:inset 2px 0 #79b292; }
 body.business-dashboard .rent-day.today:not(.settled) { background:#254f65; border-color:#254f65; box-shadow:inset 0 0 0 1px #ffffff18; }
 body.business-dashboard .rent-day.today .rent-day-date { background:none; padding:0; color:#fff; }
 body.business-dashboard .rent-day.today:not(.settled) .rent-day-summary { color:#e3f0f2; }
 body.business-dashboard .rent-day.today.settled .rent-day-date { color:#285b45; }
 body.business-dashboard .rent-day[aria-pressed=true] { outline-color:#397e75; }
 body.business-dashboard .rent-day.today:not(.settled)[aria-pressed=true] { outline-color:#a6ccd1; }
 body.business-dashboard .rent-calendar-detail { flex:1 1 0; display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-rows:auto minmax(48px,1fr); align-items:start; align-content:start; min-height:90px; }
 body.business-dashboard .rent-calendar-inline-records { grid-column:1/-1; flex:none; height:100%; max-height:none; min-height:0; }
 body.business-dashboard .rent-calendar-inline-records .rent-calendar-record.is-settled { background:#edf7f0; border-color:#d0e6d7; }
}
@media screen and (max-width:768px), screen and (max-height:619px) {
 body.business-dashboard .dashboard-calendar-card .rent-calendar { flex:none; }
 body.business-dashboard .dashboard-calendar-card .rent-calendar-grid { flex:none; height:calc(var(--calendar-weeks,6) * 38px + (var(--calendar-weeks,6) - 1) * 3px); min-height:0; grid-template-rows:repeat(var(--calendar-weeks,6),minmax(38px,1fr)); gap:3px; }
 body.business-dashboard .rent-calendar-detail { flex:none; grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto minmax(120px,1fr); min-height:0; }
 body.business-dashboard .rent-calendar-inline-records { height:180px; }
 body.business-dashboard .rent-calendar-detail-actions { margin-right:0; }
}

/* HX119: keep the status bars together at the centre of their own pane. */
@media screen {
  body.business-dashboard #dashboard-status-card .status-bars { width:100%; max-width:calc(var(--status-count) * 26px + 14px); justify-self:center; gap:2px; }
}
@media screen and (max-width:768px) {
  body.business-dashboard #dashboard-status-card .status-bars { max-width:calc(var(--status-count) * 26px - 2px); }
}

/* HX119: let only red timing notices reserve their full width to the left. */
@media screen {
  body.business-dashboard #alert-warning-lists .alert-item.lvl-red { grid-template-columns:minmax(0,1fr) max-content; }
  body.business-dashboard #alert-warning-lists .alert-item.lvl-red .a-days { white-space:nowrap; overflow-wrap:normal; max-width:none; flex-shrink:0; }
}
/* HX125: receipt state is independent of due date; every selected record unfolds below. */
@media screen {
 body.business-dashboard .rent-day.due, body.business-dashboard .rent-day.overdue { background:#fff; border-color:#dde5e6; box-shadow:none; }
 body.business-dashboard .rent-day.partial { background:#fae9eb; border-color:#edcbd2; box-shadow:inset 2px 0 #ca8798; }
 body.business-dashboard .rent-day.settled { background:#e4f3e9; border-color:#bedbc9; box-shadow:inset 2px 0 #79b292; }
 body.business-dashboard .rent-day.today:not(.settled) { background:#254f65; border-color:#254f65; box-shadow:inset 0 0 0 1px #ffffff18; }
 body.business-dashboard .dashboard-calendar-card .rent-calendar { flex:none; }
 body.business-dashboard .rent-calendar-detail { flex:none; display:flex; flex-direction:column; align-items:stretch; gap:0; padding:0; min-height:0; }
 body.business-dashboard .rent-calendar-inline-records { flex:none; width:100%; height:auto; max-height:none; overflow:visible; min-height:0; gap:7px; padding:9px; border:1px solid #d7dfde; border-top:0; border-radius:0 0 8px 8px; background:#fcfcf8; }
 body.business-dashboard .rent-calendar-notebook-toggle .rent-calendar-selected-info { min-width:0; display:flex; flex-wrap:wrap; gap:3px 9px; }
 body.business-dashboard .rent-calendar-notebook-toggle .rent-calendar-selected-info strong { white-space:nowrap; }
 body.business-dashboard .rent-calendar-notebook-toggle .rent-calendar-selected-info span { color:#566d70; overflow-wrap:anywhere; }
}
@media screen and (min-width:769px) and (min-height:620px) {
 body.business-dashboard .dashboard-calendar-card .rent-calendar-grid { flex:none; height:calc(var(--calendar-weeks,6) * 36px + (var(--calendar-weeks,6) - 1) * 2px); }
}
/* HX146: one dot per record; ten columns and intrinsic day height keep every row visible. */
@media screen {
 body.business-dashboard .dashboard-calendar-card .rent-calendar-grid { height:auto; grid-template-rows:repeat(var(--calendar-weeks,6),minmax(36px,auto)); }
 body.business-dashboard .rent-day { min-height:max(36px,calc(30px + var(--calendar-dot-rows,0) * 6px)); }
 body.business-dashboard .rent-day-number { bottom:calc(var(--calendar-dot-rows,0) * 6px + 2px); }
 body.business-dashboard .rent-owner-dots { display:grid; grid-template-columns:repeat(10,minmax(0,1fr)); gap:2px 1px; left:2px; right:2px; bottom:2px; max-width:49px; margin:0 auto; }
 body.business-dashboard .rent-owner-dots .rent-owner-dot { width:100%; height:auto; aspect-ratio:1; margin:0; }
}
