/* v0.6.554 presentation polish. Separate from the shared independent primitives,
   so feature-owned schedule geometry remains in wos.css, not here. */
:root { --wos-bg:#f5f7fb;--wos-border:#dce3ed;--wos-text:#273445;--wos-muted:#718095;--wos-radius:6px }
html,body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif}
.wos-navbar{background:#222;color:#eaf1fc;border:0;box-shadow:0 1px 3px rgba(18,35,58,.08)}
.wos-navbar .wos-ui-dropdown-menu{max-width:280px}
.wos-navbar .wos-user-menu .wos-ui-dropdown-menu{min-width:192px}
.wos-page-header h1,.wos-page-header h2{letter-spacing:-.025em}
.wos-panel,.wos-settings-card,.wos-schedule-card,.wos-daily-warehouse{border-color:#dce3ed;border-radius:4px}
.wos-sidebar{border-right:1px solid #dce3ed}
#pageHost .wos-ui-btn,#wosModal .wos-ui-btn{font-family:inherit}
#pageHost .wos-ui-form-control,#wosModal .wos-ui-form-control{font-family:inherit}
#wosModal .wos-ui-modal-header{background:#fff}
#wosModal .wos-ui-modal-footer{background:#fbfcfe}
.wos-sidebar .wos-ui-nav>li.active>a{border-radius:4px}
.wos-jquery-tooltip{font-family:inherit}

/* Interaction contrast and flex containment audit: v0.6.554.
   Component rules live here rather than accumulating late !important overrides. */
.wos-navbar .wos-ui-navbar-nav>li>a{color:#edf4ff}
.wos-navbar .wos-ui-navbar-nav>li>a:hover,.wos-navbar .wos-ui-navbar-nav>li>a:focus-visible{background:#303030;color:#fff}
.wos-navbar .wos-ui-navbar-nav>li.open>a,.wos-navbar .wos-ui-navbar-nav>li.active>a{background:#303030;color:#fff}
.wos-navbar .wos-ui-dropdown-menu>li>a,.wos-navbar .wos-ui-dropdown-menu>li>button{color:#263a50}
.wos-navbar .wos-ui-dropdown-menu>li>a:hover,.wos-navbar .wos-ui-dropdown-menu>li>a:focus-visible,
.wos-navbar .wos-ui-dropdown-menu>li>button:hover,.wos-navbar .wos-ui-dropdown-menu>li>button:focus-visible{background:#e5f0ff;color:#164d87}
.wos-navbar .wos-ui-navbar-collapse,.wos-navbar .wos-ui-navbar-nav,.wos-navbar .wos-ui-navbar-header{min-width:0}
.wos-page-header,.wos-page-actions,.wos-timeline-toolbar,.wos-timeline-zoom,.wos-timeline-window,
.wos-filter-head,.wos-filter-head>div,.wos-range-toolbar,.wos-range-fields,
.wos-schedule-task-pool-0196>header{min-width:0;max-width:100%}
.wos-page-actions,.wos-timeline-toolbar,.wos-filter-head{flex-wrap:wrap;gap:7px}
.wos-page-actions>.wos-ui-btn{max-width:100%;white-space:normal}
.wos-timeline-window{flex-wrap:wrap;justify-content:center}
.wos-timeline-window strong{min-width:0;max-width:100%;flex:1 1 150px;overflow-wrap:anywhere}
.wos-filter-head>div{flex:1 1 130px}
.wos-filter-grid{max-width:100%}
.wos-filter-grid>*{min-width:0;max-width:100%}
.wos-filter-grid .wos-ui-form-control{min-width:0;width:100%}
.wos-schedule-task-pool-0196>header .wos-task-pool-view-switch-0535{max-width:100%;flex-wrap:wrap}
.wos-schedule-task-pool-0196>header .wos-task-pool-view-switch-0535 .wos-ui-btn{white-space:normal}
#wosModal .wos-ui-modal-body,#wosModal .wos-ui-modal-header,#wosModal .wos-ui-modal-footer{min-width:0}
#wosModal .wos-ui-modal-footer{gap:8px}
#wosModal .wos-ui-modal-footer .wos-ui-btn{max-width:100%;min-width:0}
@media(max-width:767px){
  .wos-navbar .wos-ui-navbar-collapse.is-open{max-height:calc(100dvh - 55px);overflow-y:auto;overflow-x:visible;align-items:stretch}
  .wos-navbar .wos-ui-dropdown-menu{position:static;max-width:100%;min-width:0;box-shadow:none;margin:0 0 7px}
  .wos-page-actions{display:flex;align-items:center}
  .wos-filter-head{align-items:center}
  .wos-filter-head>.wos-ui-btn{flex:0 0 auto}
  .wos-timeline-window{width:100%;margin-left:0}
  .wos-timeline-window strong{flex:1 1 100px}
  #wosModal .wos-ui-modal-footer .wos-ui-btn{flex:0 1 auto}
}
