/* Panda Bus V32 · finish / typography, contrast, system theme, message placement. */
/* Fully readable numerals: no condensed ligatures or aggressive tracking. */
.pb-portal :is(.pb-stat strong,.stat strong,.pb-row-date strong,.line-date strong,
 .pb-timeline-date b,.pb-task-date b,.school-day-number,.unified-day-top strong,
 .unified-day-top small,.pb-section-number,.pb-finance-hero h1,.pb-order-number,
 .pb-cal-meta strong,.pb-period-controls strong,.monthcontrols strong,
 .pb-f14-order-id,.pb-order-row strong,.pb-date-calendar .day,
 .pb-welcome h1) {
  font-family:"DM Sans",system-ui,-apple-system,sans-serif!important;
  font-variant-numeric:tabular-nums lining-nums!important;
  font-feature-settings:"tnum" 1,"lnum" 1!important;
  font-kerning:normal!important;letter-spacing:0!important;text-transform:none;
  font-style:normal!important;text-shadow:none!important;
}
.pb-portal .pb-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0 22px}
.pb-portal .pb-stat{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important;
 padding:20px 23px!important;min-width:0;min-height:135px!important;border-radius:15px!important;
 text-align:left!important}
.pb-portal .pb-stat>span{display:block!important;font-size:14px!important;line-height:1.35!important;font-weight:650!important;letter-spacing:0!important;overflow-wrap:normal}
.pb-portal .pb-stat>strong{display:block!important;font-size:clamp(29px,3vw,42px)!important;line-height:1!important;font-weight:750!important;color:inherit!important;margin:0!important;max-width:100%;white-space:nowrap}
.pb-portal .pb-stat>small{display:flex!important;align-items:center!important;gap:7px!important;font-size:12px!important;line-height:1.25!important;font-weight:600!important;white-space:normal!important}
.pb-portal .pb-stat:focus-visible{outline:3px solid #8a8a8a!important;outline-offset:3px!important}
.pb-portal :is(.pb-timeline-date b,.pb-row-date strong,.school-day-number,.line-date strong,.unified-day-top strong){line-height:1.18!important}
.pb-portal .pb-row-date{min-width:56px!important}
.pb-portal .pb-order-number{overflow-wrap:anywhere!important}
.pb-portal button,.pb-portal input,.pb-portal select,.pb-portal textarea{font-family:inherit}
.pb-portal :is(.pb-table,.pb-timeline,.pb-quick-list,.pb-unified-calendar,.pb-order-section){min-width:0}
.pb-portal :is(.pb-quick-list,.pb-timeline,.panel,.pb-table-wrap){overflow-wrap:break-word}
.pb-portal :is(.pb-card-title,.pb-timeline-copy strong,.line-title,.pb-quick-list b,.pb-section-top h2,.pb24-section-heading h2){letter-spacing:-.014em!important;line-height:1.33!important}
.pb-portal :is(.pb-row-route,.pb-row-meta,.pb-quick-list small,.pb-table-title small,.pb-timeline-copy small){letter-spacing:0!important;line-height:1.48!important}
/* High contrast in both color schemes; do not whitewash semantic error/warning text. */
html[data-pb-theme="day"] .pb-portal :is(.pb-stat,.pb-stat span,.pb-stat strong,.pb-stat small){color:#202020!important}
html[data-pb-theme="night"] .pb-portal :is(.pb-stat,.pb-stat span,.pb-stat strong,.pb-stat small){color:#f4f4f4!important}
html[data-pb-theme="day"] .pb-portal :is(.pb-welcome,.pb-stats,.pb24-home-grid){color:#1c1c1c}
html[data-pb-theme="night"] .pb-portal :is(.pb-welcome,.pb-stats,.pb24-home-grid){color:#f3f3f3}
html[data-pb-theme="day"] .pb-portal :is(.pb-timeline-copy strong,.pb-table-title strong,.pb-row-primary>strong,.pb-quick-list b,.pb-section-top h2,.pb24-section-heading h2,.unified-day-top strong,.school-day-number,.line-date strong){color:#202020!important}
html[data-pb-theme="night"] .pb-portal :is(.pb-timeline-copy strong,.pb-table-title strong,.pb-row-primary>strong,.pb-quick-list b,.pb-section-top h2,.pb24-section-heading h2,.unified-day-top strong,.school-day-number,.line-date strong){color:#f2f2f2!important}
html[data-pb-theme="day"] .pb-portal :is(.pb-row-route,.pb-row-meta,.pb-timeline-copy small,.pb-table-title small,.pb-quick-list small,.pb-result-count,.pb-mini-toggle button,.pb-date-calendar .day){color:#595959!important}
html[data-pb-theme="night"] .pb-portal :is(.pb-row-route,.pb-row-meta,.pb-timeline-copy small,.pb-table-title small,.pb-quick-list small,.pb-result-count,.pb-mini-toggle button,.pb-date-calendar .day){color:#c8c8c8!important}
html[data-pb-theme="day"] .pb-portal :is(.pb24-home-grid .panel,.pb-quick-block,.pb-timeline,.pb-stat){background:#fff!important;border-color:#d8d8d8!important}
html[data-pb-theme="night"] .pb-portal :is(.pb24-home-grid .panel,.pb-quick-block,.pb-timeline,.pb-stat){background:#242424!important;border-color:#505050!important}
html[data-pb-theme="night"] .pb-portal :is(.pb-timeline-row,.pb-quick-list button,.pb-trip-row,.rowline,.pb-table td,.pb-table th){color:#efefef!important;border-color:#505050!important}
html[data-pb-theme="day"] .pb-portal :is(.pb-timeline-row,.pb-quick-list button,.pb-trip-row,.rowline,.pb-table td,.pb-table th){color:#212121!important;border-color:#e3e3e3!important}
html[data-pb-theme="night"] .pb-portal :is(.pb-quick-list button,.pb-timeline-row,.pb-trip-row){background:#242424!important}
html[data-pb-theme="day"] .pb-portal :is(.pb-quick-list button,.pb-timeline-row,.pb-trip-row){background:#fff!important}
html[data-pb-theme="night"] .pb-portal :is(.pb-quick-list button,.pb-timeline-row,.pb-trip-row):hover{background:#373737!important}
html[data-pb-theme="day"] .pb-portal :is(.pb-quick-list button,.pb-timeline-row,.pb-trip-row):hover{background:#f5f5f5!important}
html[data-pb-theme="night"] .pb-portal :is(.pb-mini-toggle button.selected,.pb-period-button,.pb-scale-toggle button.active,.pb-view-toggle button.active){color:#fff!important}
html[data-pb-theme="day"] .pb-portal :is(.pb-mini-toggle button.selected,.pb-period-button,.pb-scale-toggle button.active,.pb-view-toggle button.active){color:#222!important}
html[data-pb-theme="night"] .pb-portal :is(.pb-search input,.pb-lookupbar input,.pb-filter-fields input,.pb-filter-fields select,.pb-one-form input,.pb-one-form select,.pb-one-form textarea,textarea,input:not([type=checkbox]):not([type=radio])){color:#f4f4f4!important;caret-color:#f4f4f4;}
html[data-pb-theme="day"] .pb-portal :is(.pb-search input,.pb-lookupbar input,.pb-filter-fields input,.pb-filter-fields select,.pb-one-form input,.pb-one-form select,.pb-one-form textarea,textarea,input:not([type=checkbox]):not([type=radio])){color:#222!important;caret-color:#222;}
html[data-pb-theme="night"] .pb-portal input::placeholder{color:#bdbdbd!important}
html[data-pb-theme="day"] .pb-portal input::placeholder{color:#747474!important}
html[data-pb-theme="night"] .pb-portal .pb-welcome h1{color:#f5f5f5!important}
html[data-pb-theme="night"] .pb-portal .pb-welcome p:not(.pb-eyebrow){color:#c4c4c4!important}
/* Avoid old floating message button obscuring the form submit buttons. Header shortcuts open the same chat. */
#pb25-chat{pointer-events:none!important;position:fixed!important;right:0!important;bottom:0!important;z-index:10050!important}
#pb25-chat .pb25-launcher{display:none!important}
#pb25-chat .pb25-panel{pointer-events:auto!important;position:fixed!important;right:clamp(12px,2vw,26px)!important;bottom:clamp(12px,2vw,26px)!important;
 width:min(400px,calc(100vw - 24px))!important;height:min(600px,calc(100dvh - 110px))!important}
.pb-portal .pb32-message-shortcut{position:relative!important;flex:0 0 38px!important;color:var(--ink)!important}
html[data-pb-theme="night"] .pb-portal .pb32-message-shortcut{color:#f5f5f5!important}
.pb-portal .pb32-message-shortcut[aria-expanded="true"]{outline:2px solid #888;outline-offset:2px}
.pb-portal .pb-small-tag.completed{color:#565656!important;background:#eee!important;border-color:#ddd!important}
html[data-pb-theme="night"] .pb-portal .pb-small-tag.completed{color:#e5e5e5!important;background:#404040!important;border-color:#555!important}
/* Keep login labels and typography legible before authentication. */
html[data-pb-theme="day"] .authscreen{background:#f5f5f5!important;color:#222!important}
html[data-pb-theme="night"] .authscreen{background:#171717!important;color:#f5f5f5!important}
html[data-pb-theme="day"] .authscreen :is(h1,h2,label,strong,p){color:#262626}
html[data-pb-theme="night"] .authscreen :is(h1,h2,label,strong,p){color:#f1f1f1}
html[data-pb-theme="night"] .authscreen :is(input,select){background:#292929!important;color:#f4f4f4!important;border-color:#646464!important}
html[data-pb-theme="day"] .authscreen :is(input,select){background:#fff!important;color:#222!important;border-color:#ccc!important}
/* Mobile: tidy text without squeezing values or hiding actions. */
@media(max-width:1000px){.pb-portal .pb-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){
 .pb-portal .pb-stats{grid-template-columns:1fr;gap:10px!important}
 .pb-portal .pb-stat{min-height:100px!important;padding:17px 19px!important;gap:10px!important}
 .pb-portal .pb-stat>strong{font-size:34px!important}
 #pb25-chat .pb25-panel{right:8px!important;bottom:calc(75px + env(safe-area-inset-bottom))!important;
  width:calc(100vw - 16px)!important;height:min(620px,calc(100dvh - 165px))!important}
 .pb-portal .pb32-message-shortcut{flex:0 0 38px!important}
}
@media(min-width:701px) and (max-width:900px){.pb-portal .pb-stats{gap:10px!important}.pb-portal .pb-stat{padding:15px!important}}
@media print{.pb32-message-shortcut,#pb25-chat{display:none!important}}
