/* Admin refinement v6: compact mobile controls, stable selection UI, complete dark surfaces. */
.v6-contact-link{color:var(--teal,#087e83);font-weight:750;text-decoration:none;word-break:break-word}.v6-contact-link:hover{text-decoration:underline}
#preferences[data-v6-autosave="1"]:after,#appearance[data-v6-autosave="1"]:after{content:"Changes save automatically";display:block;margin-top:9px;font-size:.72rem;color:#667d84}

@media(max-width:760px){
  /* Schedule calendar selection stays visually secondary. */
  body[data-staff-view="schedule"] .calendar-day input[type="checkbox"]{width:9px!important;height:9px!important;min-width:9px!important;min-height:9px!important;padding:0!important;margin:0!important;border-radius:2px!important;box-shadow:none!important}
  body[data-staff-view="schedule"] .calendar-day>div:first-child{gap:2px!important}
  body[data-staff-view="schedule"] .calendar-day b{font-size:.55rem!important}
  body[data-staff-view="schedule"] .calendar-day .badge{padding:1px 3px!important;font-size:.34rem!important;line-height:1.3!important}
  .v5-schedule-select{min-height:19px!important;height:19px!important;padding:1px 4px!important;gap:2px!important;border-radius:6px!important}
  .v5-schedule-select input{width:10px!important;height:10px!important;min-width:10px!important;min-height:10px!important;padding:0!important;margin:0!important}
  .v5-schedule-select span{font-size:.43rem!important;line-height:1!important}

  /* Schedule selection is a real compact dropdown instead of a clipped nested button. */
  body[data-staff-view="schedule"] .v5-schedule-toolbar,body[data-staff-view="schedule"] .staff-schedule-tools,body[data-staff-view="schedule"] .staff-schedule-tools>div{overflow:visible!important}
  body[data-staff-view="schedule"] .staff-schedule-tools>div{align-items:flex-start!important}
  body[data-staff-view="schedule"] .staff-schedule-tools .schedule-selection{position:relative!important;display:inline-block!important;width:auto!important;min-width:0!important;min-height:0!important;margin:0!important;overflow:visible!important}
  body[data-staff-view="schedule"] .staff-schedule-tools .schedule-selection>summary{display:inline-flex!important;align-items:center!important;gap:4px!important;width:auto!important;min-width:0!important;min-height:30px!important;height:30px!important;padding:4px 8px!important;border:1px solid #d4e0de!important;border-radius:8px!important;background:#eef4f3!important;color:#17343e!important;font-size:.56rem!important;font-weight:800!important;line-height:1!important;list-style:none!important;white-space:nowrap!important}
  body[data-staff-view="schedule"] .staff-schedule-tools .schedule-selection>summary:after{content:"⌄";font-size:.65rem;color:#698088}
  body[data-staff-view="schedule"] .staff-schedule-tools .schedule-selection[open]>summary:after{content:"⌃"}
  body[data-staff-view="schedule"] .staff-schedule-tools .schedule-selection>.menu-fields{position:absolute!important;right:0!important;left:auto!important;top:calc(100% + 5px)!important;z-index:560!important;display:grid!important;grid-template-columns:1fr!important;gap:6px!important;width:min(270px,calc(100vw - 28px))!important;min-width:0!important;padding:10px!important;border:1px solid #d4e0de!important;border-radius:12px!important;background:#fff!important;box-shadow:0 14px 35px rgba(18,54,65,.2)!important}
  body[data-staff-view="schedule"] .staff-schedule-tools .schedule-selection>.menu-fields label{margin:0!important;font-size:.53rem!important}
  body[data-staff-view="schedule"] .staff-schedule-tools .schedule-selection>.menu-fields input{min-height:32px!important;height:32px!important;padding:4px 6px!important;font-size:.66rem!important}
  body[data-staff-view="schedule"] .staff-schedule-tools .schedule-selection>.menu-fields button{width:100%!important;min-height:31px!important;height:31px!important;padding:4px 7px!important;font-size:.56rem!important}

  /* Manifest date selector is intentionally compact and centered. */
  .v5-manifest-nav,.staff-manifest-nav{grid-template-columns:30px minmax(128px,152px) 30px!important;justify-content:center!important;align-items:center!important;gap:5px!important;padding:6px!important}
  .v5-manifest-nav #manifest-prev,.v5-manifest-nav #manifest-next,.staff-manifest-nav #manifest-prev,.staff-manifest-nav #manifest-next{width:30px!important;min-width:30px!important;height:30px!important;min-height:30px!important;padding:0!important;border-radius:8px!important;font-size:.82rem!important}
  .v5-manifest-nav #manifestdate,.staff-manifest-nav #manifestdate{width:100%!important;max-width:152px!important;min-width:0!important;height:30px!important;min-height:30px!important;padding:2px 4px!important;border-radius:8px!important;font-size:.65rem!important;line-height:1!important;text-align:center!important;box-sizing:border-box!important}
  .v5-manifest-nav #manifestdate::-webkit-date-and-time-value,.staff-manifest-nav #manifestdate::-webkit-date-and-time-value{text-align:center!important;margin:0!important}
  .v5-manifest-nav #manifest-run-slot,.staff-manifest-nav #manifest-run-slot{margin-top:1px!important}
  .v5-manifest-nav #print-manifest,.staff-manifest-nav #print-manifest{min-height:28px!important;height:28px!important;padding:3px 7px!important;font-size:.52rem!important}
}

/* Complete explicit dark theme coverage for remaining light staff/admin surfaces. */
html[data-theme="dark"] .sidebar{background:#0b2028!important;border-right:1px solid #243c46!important;box-shadow:none!important}
html[data-theme="dark"] .topline{border-color:#29414b!important}
html[data-theme="dark"] .calendar-day,html[data-theme="dark"] .calendar-blank,html[data-theme="dark"] .manifest-run,html[data-theme="dark"] .staff-manifest-run-card,html[data-theme="dark"] .staff-route-timeline,html[data-theme="dark"] .staff-route-step,html[data-theme="dark"] .staff-filter-panel,html[data-theme="dark"] .staff-filter-fields,html[data-theme="dark"] .staff-schedule-tools,html[data-theme="dark"] .staff-reservation-cards tr,html[data-theme="dark"] .staff-schedule-list-cards tr,html[data-theme="dark"] .v5-staff-calendar-list>article,html[data-theme="dark"] .staff-measurement-card,html[data-theme="dark"] .parking-more-menu{background:#13262f!important;color:#e7f0f3!important;border-color:#2d4651!important}
html[data-theme="dark"] .calendar-day.closed{background:#2b2023!important}html[data-theme="dark"] .calendar-day.full{background:#2c281c!important}html[data-theme="dark"] .calendar-day.holiday-day{background:#30291d!important}
html[data-theme="dark"] .day-inspect,html[data-theme="dark"] .calendar-day b,html[data-theme="dark"] .staff-schedule-tools>summary{color:#e7f0f3!important}
html[data-theme="dark"] .calendar-head,html[data-theme="dark"] .day-inspect small,html[data-theme="dark"] .staff-schedule-tools>summary span{color:#a9bdc5!important}
html[data-theme="dark"] .staff-route-step,html[data-theme="dark"] .v5-staff-calendar-list span{background:#1a343d!important}
html[data-theme="dark"] .v5-staff-calendar-list span.pending{background:#453c24!important;color:#f3dfaa!important}html[data-theme="dark"] .v5-staff-calendar-list span.closure{background:#432b2c!important;color:#efc7c7!important}
html[data-theme="dark"] .v5-schedule-select{background:#1a343d!important;color:#d9e8ec!important;border-color:#35515c!important}
html[data-theme="dark"] .staff-schedule-tools{border-color:#2c444e!important}
html[data-theme="dark"] .staff-schedule-tools .schedule-selection>summary{background:#1a343d!important;color:#e7f0f3!important;border-color:#35515c!important}
html[data-theme="dark"] .staff-schedule-tools .schedule-selection>.menu-fields,html[data-theme="dark"] .action-menu .menu-fields{background:#10222a!important;color:#e7f0f3!important;border-color:#35515c!important}
html[data-theme="dark"] .staff-drawer-group>button{background:#142932!important;color:#e7f0f3!important;border-color:#304953!important}
html[data-theme="dark"] .drawer-icon{background:#1b3941!important;color:#73d1cc!important}
html[data-theme="dark"] .staff-drawer-links a{background:#18343c!important;color:#e7f0f3!important}html[data-theme="dark"] .staff-drawer-links button{background:#2b2023!important;color:#efb9b9!important;border-color:#5a393d!important}
html[data-theme="dark"] .customer-table tbody tr:hover,html[data-theme="dark"] .customer-table tbody tr:focus{background:#17353e!important}
html[data-theme="dark"] .staff-core-nav button.current{color:#67d2cd!important}
html[data-theme="dark"] .staff-core-nav button.current:before{background:#67d2cd!important}
html[data-theme="dark"] .staff-mobile-scrim{background:rgba(0,0,0,.58)!important}
html[data-theme="dark"] #preferences[data-v6-autosave="1"]:after,html[data-theme="dark"] #appearance[data-v6-autosave="1"]:after{color:#a9bdc5!important}

@media(prefers-color-scheme:dark){
  html[data-theme="system"] .sidebar{background:#0b2028!important;border-right:1px solid #243c46!important;box-shadow:none!important}
  html[data-theme="system"] .topline{border-color:#29414b!important}
  html[data-theme="system"] .calendar-day,html[data-theme="system"] .calendar-blank,html[data-theme="system"] .manifest-run,html[data-theme="system"] .staff-manifest-run-card,html[data-theme="system"] .staff-route-timeline,html[data-theme="system"] .staff-route-step,html[data-theme="system"] .staff-filter-panel,html[data-theme="system"] .staff-filter-fields,html[data-theme="system"] .staff-schedule-tools,html[data-theme="system"] .staff-reservation-cards tr,html[data-theme="system"] .staff-schedule-list-cards tr,html[data-theme="system"] .v5-staff-calendar-list>article,html[data-theme="system"] .staff-measurement-card,html[data-theme="system"] .parking-more-menu{background:#13262f!important;color:#e7f0f3!important;border-color:#2d4651!important}
  html[data-theme="system"] .calendar-day.closed{background:#2b2023!important}html[data-theme="system"] .calendar-day.full{background:#2c281c!important}html[data-theme="system"] .calendar-day.holiday-day{background:#30291d!important}
  html[data-theme="system"] .day-inspect,html[data-theme="system"] .calendar-day b,html[data-theme="system"] .staff-schedule-tools>summary{color:#e7f0f3!important}
  html[data-theme="system"] .calendar-head,html[data-theme="system"] .day-inspect small,html[data-theme="system"] .staff-schedule-tools>summary span{color:#a9bdc5!important}
  html[data-theme="system"] .staff-route-step,html[data-theme="system"] .v5-staff-calendar-list span{background:#1a343d!important}
  html[data-theme="system"] .v5-staff-calendar-list span.pending{background:#453c24!important;color:#f3dfaa!important}html[data-theme="system"] .v5-staff-calendar-list span.closure{background:#432b2c!important;color:#efc7c7!important}
  html[data-theme="system"] .v5-schedule-select{background:#1a343d!important;color:#d9e8ec!important;border-color:#35515c!important}
  html[data-theme="system"] .staff-schedule-tools{border-color:#2c444e!important}
  html[data-theme="system"] .staff-schedule-tools .schedule-selection>summary{background:#1a343d!important;color:#e7f0f3!important;border-color:#35515c!important}
  html[data-theme="system"] .staff-schedule-tools .schedule-selection>.menu-fields,html[data-theme="system"] .action-menu .menu-fields{background:#10222a!important;color:#e7f0f3!important;border-color:#35515c!important}
  html[data-theme="system"] .staff-drawer-group>button{background:#142932!important;color:#e7f0f3!important;border-color:#304953!important}
  html[data-theme="system"] .drawer-icon{background:#1b3941!important;color:#73d1cc!important}
  html[data-theme="system"] .staff-drawer-links a{background:#18343c!important;color:#e7f0f3!important}html[data-theme="system"] .staff-drawer-links button{background:#2b2023!important;color:#efb9b9!important;border-color:#5a393d!important}
  html[data-theme="system"] .customer-table tbody tr:hover,html[data-theme="system"] .customer-table tbody tr:focus{background:#17353e!important}
  html[data-theme="system"] .staff-core-nav button.current{color:#67d2cd!important}html[data-theme="system"] .staff-core-nav button.current:before{background:#67d2cd!important}
  html[data-theme="system"] #preferences[data-v6-autosave="1"]:after,html[data-theme="system"] #appearance[data-v6-autosave="1"]:after{color:#a9bdc5!important}
}
