/* Panda Bus V24 - finish pass for BOTH administrator and driver dashboards.
   Keep changes scoped to home blocks; do not alter scheduling, permissions or storage. */
.pb-portal .pb24-home-grid {
  display:grid;
  grid-template-columns:minmax(0, 1.53fr) minmax(305px, 1fr);
  align-items:start;
  column-gap:clamp(18px,2.1vw,30px);
  row-gap:26px;
  max-width:100%;
}
.pb-portal .pb24-home-grid>.pb-stack {min-width:0;gap:14px;}
.pb-portal .pb24-section-heading {
  display:flex;align-items:center;justify-content:space-between;
  min-width:0;gap:14px;margin:0;padding:0 1px;
}
.pb-portal .pb24-section-heading h2 {
  font-size:clamp(20px,1.65vw,24px)!important;
  line-height:1.28;letter-spacing:-.035em;
  font-weight:760;margin:0;min-width:0;
}
.pb-portal .pb24-see-all {
  display:inline-flex;align-items:center;justify-content:flex-end;
  gap:6px;font-size:14px!important;line-height:1.35;
  font-weight:740;white-space:nowrap;
  min-height:42px;padding:9px 3px;
  border-radius:9px;
}
.pb-portal .pb24-see-all svg{flex:none;width:17px;height:17px}
.pb-portal .pb24-section-filters {display:flex;align-items:center;min-width:0;margin-top:0;}
.pb-portal .pb24-section-filters .pb-mini-toggle {
  display:inline-flex!important;align-items:center;gap:4px;
  width:auto!important;max-width:100%;min-height:47px;
  padding:4px;border-radius:13px;
  overflow:visible;
}
.pb-portal .pb24-section-filters .pb-mini-toggle button {
  min-height:38px;padding:9px 16px;white-space:nowrap;
  font-size:14px!important;font-weight:740;line-height:1.2;
  border-radius:9px;transition:background-color .15s,color .15s;
}
.pb-portal .pb24-home-grid .pb-timeline,
.pb-portal .pb24-home-grid .pb-quick-block,
.pb-portal .pb24-home-grid .pb-quick-list {
  border-radius:17px!important;overflow:hidden;
  box-shadow:none!important;
}
.pb-portal .pb24-home-grid .pb-timeline-row {min-height:79px;padding:14px 18px;gap:16px;}
.pb-portal .pb24-home-grid .pb-timeline-date {width:78px;gap:5px;}
.pb-portal .pb24-home-grid .pb-timeline-date b {font-size:14px!important;font-weight:740;}
.pb-portal .pb24-home-grid .pb-timeline-date small {font-size:13px!important;line-height:1.3;}
.pb-portal .pb24-home-grid .pb-timeline-copy{gap:4px}
.pb-portal .pb24-home-grid .pb-timeline-copy strong {font-size:15px!important;line-height:1.4;font-weight:730;}
.pb-portal .pb24-home-grid .pb-timeline-copy small {font-size:12.5px!important;line-height:1.4;}
.pb-portal .pb24-quick-section {gap:15px!important;}
/* Both roles now have exactly one card boundary around quick actions. */
.pb-portal .pb24-quick-section .pb-quick-list.pb-quick-block {
  display:flex;flex-direction:column;margin:0;
  padding:0;border-width:1px!important;
}
.pb-portal .pb24-quick-section .pb-quick-list button {
  display:flex;align-items:center;gap:16px;
  min-height:86px;padding:17px 19px;
  text-align:left;border-left:0;border-right:0;border-top:0;
  border-radius:0!important;
  width:100%;
}
.pb-portal .pb24-quick-section .pb-quick-list button:last-child{border-bottom:0!important;}
.pb-portal .pb24-quick-section .pb-quick-list button>svg:first-child {
  width:22px!important;height:22px!important;flex:0 0 22px;
}
.pb-portal .pb24-quick-section .pb-quick-list button>span {min-width:0;flex:1;display:flex;flex-direction:column;gap:5px;}
.pb-portal .pb24-quick-section .pb-quick-list b {
  font-size:16px!important;line-height:1.28;font-weight:760;letter-spacing:-.016em;
}
.pb-portal .pb24-quick-section .pb-quick-list small {
  font-size:13px!important;line-height:1.4;white-space:normal;
}
.pb-portal .pb24-quick-section .pb-quick-list button>svg:last-child {
  width:17px;height:17px;flex:none;
}
.pb-portal .pb24-home-grid .panel {
  overflow:hidden;border-radius:17px!important;
}
.pb-portal .pb24-home-grid .panel-head {
  padding:17px 20px;min-height:60px;
}
.pb-portal .pb24-home-grid .panel-head h2 {
  font-size:19px!important;line-height:1.28;letter-spacing:-.025em;
}
.pb-portal .pb24-home-grid .panel .rowline {
  min-height:72px;padding:15px 19px;
}
.pb-portal .pb24-home-grid .panel .rowline strong {font-size:14px!important;line-height:1.4;}
.pb-portal .pb24-home-grid .panel .rowline small {font-size:12.5px!important;line-height:1.45;}
.pb-portal .pb24-home-grid .pb-focus-card {
  padding:23px 24px;min-height:205px;
  border-radius:17px!important;
}
.pb-portal .pb24-home-grid .pb-focus-card h2 {font-size:clamp(21px,2vw,26px)!important;line-height:1.24;}
.pb-portal .pb24-home-grid .pb-focus-card p {font-size:14px!important;line-height:1.55;}
.pb-portal .pb24-home-grid :is(button,a):focus-visible {outline:2px solid #b7b7b7!important;outline-offset:2px!important;}

@media (min-width:1450px){
 .pb-portal .pb24-home-grid{grid-template-columns:minmax(0,1.55fr) minmax(350px,1fr);gap:28px;}
}
@media (max-width:1100px){
 .pb-portal .pb24-home-grid{grid-template-columns:minmax(0,1fr);gap:25px;}
 .pb-portal .pb24-home-grid>.pb-stack{gap:13px;}
}
@media (max-width:700px){
 .pb-portal .pb24-home-grid{gap:25px;}
 .pb-portal .pb24-section-heading h2{font-size:22px!important;}
 .pb-portal .pb24-heading-with-link{gap:10px;align-items:center;}
 .pb-portal .pb24-see-all{font-size:13px!important;min-height:38px;}
 .pb-portal .pb24-section-filters .pb-mini-toggle{min-height:46px;}
 .pb-portal .pb24-section-filters .pb-mini-toggle button{font-size:13.5px!important;padding:9px 14px;}
 .pb-portal .pb24-quick-section .pb-quick-list button{min-height:82px;padding:15px 17px;gap:14px;}
 .pb-portal .pb24-quick-section .pb-quick-list b{font-size:16px!important;}
 .pb-portal .pb24-quick-section .pb-quick-list small{font-size:13px!important;}
 .pb-portal .pb24-home-grid .pb-timeline-row{min-height:78px;padding:14px 15px;gap:12px;}
 .pb-portal .pb24-home-grid .pb-timeline-date{width:68px;}
 .pb-portal .pb24-home-grid .pb-timeline-copy strong{font-size:14.5px!important;}
 .pb-portal .pb24-home-grid .pb-timeline-copy small{font-size:12px!important;}
 .pb-portal .pb24-home-grid .panel-head{padding:16px 17px;}
 .pb-portal .pb24-home-grid .pb-focus-card{padding:21px 19px;}
}
@media (max-width:355px){
 .pb-portal .pb24-heading-with-link{flex-wrap:wrap;}
 .pb-portal .pb24-see-all{margin-left:auto;}
}
/* Theme-specific surface correction: avoid a second visible outline and
   preserve readable contrast in the dark palette from V23. */
html[data-pb-theme="night"] .pb-portal .pb24-section-heading h2,
html[data-pb-theme="night"] .pb-portal .pb24-home-grid .panel-head h2 {color:#f6f6f6!important;}
html[data-pb-theme="night"] .pb-portal .pb24-see-all{color:#d9d9d9!important;}
html[data-pb-theme="night"] .pb-portal .pb24-section-filters .pb-mini-toggle {
  background:#343434!important;border:1px solid #5d5d5d!important;
}
html[data-pb-theme="night"] .pb-portal .pb24-section-filters .pb-mini-toggle button{color:#cdcdcd!important;}
html[data-pb-theme="night"] .pb-portal .pb24-section-filters .pb-mini-toggle button.selected{
 background:#636363!important;color:#fff!important;box-shadow:0 1px 3px #0002;
}
html[data-pb-theme="night"] .pb-portal .pb24-quick-section .pb-quick-list.pb-quick-block {
 background:#373737!important;border:1px solid #616161!important;
}
html[data-pb-theme="night"] .pb-portal .pb24-quick-section .pb-quick-list button {
 background:transparent!important;color:#f3f3f3!important;
 border-bottom:1px solid #616161!important;
}
html[data-pb-theme="night"] .pb-portal .pb24-quick-section .pb-quick-list button:hover {background:#4a4a4a!important;}
html[data-pb-theme="night"] .pb-portal .pb24-quick-section .pb-quick-list b {color:#f7f7f7!important;}
html[data-pb-theme="night"] .pb-portal .pb24-quick-section .pb-quick-list small {color:#d2d2d2!important;}
html[data-pb-theme="night"] .pb-portal .pb24-quick-section .pb-quick-list button>svg:first-child {color:#cfcfcf!important;}
html[data-pb-theme="day"] .pb-portal .pb24-quick-section .pb-quick-list.pb-quick-block {
 background:#fff!important;border:1px solid #e0e0e0!important;
}
html[data-pb-theme="day"] .pb-portal .pb24-section-heading h2 {color:#323232!important;}
html[data-pb-theme="day"] .pb-portal .pb24-section-filters .pb-mini-toggle {background:#f3f3f3!important;border-color:#dddddd!important;}
html[data-pb-theme="day"] .pb-portal .pb24-section-filters .pb-mini-toggle button.selected {background:#fff!important;color:#515151!important;}

/* Shared finishing touches on other core screens, both roles.
   Keep selectors limited so forms/calendars retain their established behavior. */
.pb-portal .main :is(.page-title,.pb-page-title) {line-height:1.16;letter-spacing:-.04em;}
.pb-portal :is(.pb-toolrow button,.pb-view-links button,.board-switch button,.operations-view button,.board-filter) {
  min-height:42px;font-weight:720;
}
.pb-portal .drawer :is(.input,.select,textarea,input:not([type="checkbox"]),select) {
  max-width:100%;
}
.pb-portal .drawer :is(.field label,.pb23-staff-one label,.pb23-staff-two label) {
  font-size:13px;line-height:1.45;
}
.pb-portal .drawer .detail-section-title {font-size:15px;}
.pb-portal .pb-trip-list .pb-row-main strong {line-height:1.35;}
.pb-portal :is(.pb-quick-list,.pb-timeline,.pb-trip-list) button {touch-action:manipulation;}
@media(max-width:700px){
  .pb-portal .mobile-bottom button span {font-size:10px;line-height:1.2;}
  .pb-portal .mobile-bottom button svg {width:21px;height:21px;}
  .pb-portal .drawer :is(.input,.select,textarea,input:not([type="checkbox"]),select) {font-size:16px;}
  .pb-portal :is(.pb-toolrow button,.pb-view-links button,.board-switch button,.operations-view button,.board-filter) {min-height:44px;}
}
