.compact-nav-bar,
.compact-header-shoe-search {
  display: none;
}

@media (max-width: 1100px) {
  .output-actions,
  .import-dayforce-group {
    display: none !important;
  }

  .header-actions {
    width: 100%;
    display: flex;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between;
    gap: 10px;
  }

  .compact-header-shoe-search {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #cbc6c2;
    border-radius: 4px;
    background: #fff;
    color: #171717;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
  }

  .compact-header-shoe-search:hover,
  .compact-header-shoe-search:focus-visible {
    border-color: #99938f;
    background: #f8f6f4;
  }

  .compact-header-shoe-search svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: none;
    stroke: #df0038;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .calendar-controls {
    width: auto !important;
    flex: 0 1 auto !important;
    margin-left: auto !important;
    justify-content: flex-end;
  }

  .compact-nav-bar {
    position: relative;
    z-index: 40;
    display: block;
    padding: 9px 10px;
    border-bottom: 1px solid #ddd8d5;
    background: #fff;
  }

  .compact-nav-toggle {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    border: 1px solid #cbc6c2;
    border-radius: 4px;
    background: #fff;
    color: #171717;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
  }

  .compact-nav-toggle:hover,
  .compact-nav-toggle:focus-visible,
  .compact-nav-bar.is-open .compact-nav-toggle {
    border-color: #99938f;
    background: #faf9f8;
  }

  .compact-nav-toggle-icon {
    width: 18px;
    display: grid;
    gap: 3px;
  }

  .compact-nav-toggle-icon i {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: #df0038;
  }

  .compact-nav-chevron {
    width: 8px;
    height: 8px;
    border-right: 1.6px solid #5e5956;
    border-bottom: 1.6px solid #5e5956;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .16s ease;
  }

  .compact-nav-bar.is-open .compact-nav-chevron {
    transform: translateY(2px) rotate(225deg);
  }

  .compact-nav-menu {
    position: absolute;
    z-index: 2;
    top: calc(100% - 4px);
    left: 10px;
    right: 10px;
    max-height: min(70vh, 560px);
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #d3ceca;
    border-top: 3px solid #df0038;
    border-radius: 0 0 6px 6px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .16);
  }

  .compact-nav-menu[hidden] {
    display: none !important;
  }

  .compact-nav-section + .compact-nav-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #ece8e5;
  }

  .compact-nav-section-title {
    display: block;
    margin: 0 2px 7px;
    color: #817a76;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  .compact-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .compact-nav-item {
    min-width: 0;
    min-height: 42px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #d6d1ce;
    border-radius: 4px;
    background: #fff;
    color: #1b1918;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.15;
    text-align: left;
    cursor: pointer;
  }

  .compact-nav-item:hover,
  .compact-nav-item:focus-visible {
    border-color: #99938f;
    background: #f8f6f4;
  }

  .compact-nav-item svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: none;
    stroke: #df0038;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .compact-nav-item .workbench-icon,
  .compact-nav-item .workbench-icon rect {
    fill: #df0038;
    stroke: none;
  }

  .compact-nav-item .power-bi-icon rect,
  .compact-nav-item svg rect[rx="1"] {
    fill: #df0038;
    stroke: none;
  }

  .compact-nav-item-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #df0038;
  }

  .compact-nav-item > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .day-tabs {
    top: 0;
  }
}

@media (max-width: 580px) {
  .header-actions {
    gap: 8px;
  }

  .compact-header-shoe-search {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
  }

  .compact-header-shoe-search span {
    display: none;
  }

  .calendar-controls {
    display: flex !important;
    align-items: center;
    gap: 5px !important;
  }

  .calendar-controls .calendar-step {
    width: 36px;
    min-width: 36px;
    flex: 0 0 36px;
  }

  .calendar-controls .week-picker {
    width: clamp(145px, calc(100vw - 172px), 190px) !important;
    min-width: 0 !important;
    grid-template-columns: minmax(0, 1fr) 28px !important;
    grid-template-areas:
      "label label"
      "input open" !important;
  }

  .calendar-controls .week-picker input {
    width: 100% !important;
    min-width: 0;
  }

  .calendar-controls .week-picker small {
    display: none !important;
  }

  .calendar-controls .today-button {
    display: none !important;
  }
}

@media (max-width: 460px) {
  .compact-nav-grid {
    grid-template-columns: 1fr;
  }

  .compact-nav-item {
    min-height: 44px;
  }
}

@media print {
  .compact-nav-bar,
  .compact-header-shoe-search {
    display: none !important;
  }
}
