@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --famous-red: #df0038;
  --famous-black: #111111;
  --famous-text: #202020;
  --famous-muted: #666666;
  --famous-line: #d2d2d2;
  --famous-soft: #f3f3f3;
  --famous-soft-2: #f7f7f7;
  --famous-white: #ffffff;
}

html,
body,
button,
input,
textarea,
select {
  font-family: "Poppins", Arial, Helvetica, sans-serif !important;
}

html,
body {
  background: #f4f4f4 !important;
  color: var(--famous-text);
}

/* Famous-style site chrome: crisp white, black type, light gray dividers, red accents. */
.app-header {
  border-bottom: 1px solid #d7d7d7 !important;
  background: rgba(255, 255, 255, .98) !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

.app-header h1,
.sheet-top h2,
.customer-section h3,
.tasks-section h3,
.financial-content h3,
.cloud-dialog-heading h2,
.schedule-dialog h2,
.shoe-search-heading h2 {
  color: var(--famous-black) !important;
  font-family: "Poppins", Arial, Helvetica, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: -.025em !important;
}

.app-header h1 {
  line-height: 1.12 !important;
}

.eyebrow,
.store-selector-label,
.store-search-label,
.store-directory-label,
.name-custom-heading,
.promo-guide-admin-label {
  color: var(--famous-red) !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
}

.save-status,
.section-help,
.customer-copy p,
.section-heading-inline p,
.financial-content p,
.cloud-dialog-copy,
.zone-dialog-subtitle,
.schedule-dialog-subtitle {
  color: var(--famous-muted) !important;
}

.header-store-selector,
.header-actions,
.calendar-controls,
.output-actions {
  color: var(--famous-black);
}

.secondary-button,
.output-button,
.calendar-step,
.today-button,
.dayforce-help-button,
.store-selector-button,
.cloud-secondary-button,
.cloud-done-button,
.cloud-primary-button,
.zone-clear-button,
.schedule-print-button,
.promo-guide-view,
.promo-pdf-download-button,
.dayforce-clock-external {
  border-color: #c9c9c9 !important;
  border-radius: 2px !important;
  background: #ffffff !important;
  color: var(--famous-black) !important;
  box-shadow: none !important;
  font-weight: 600 !important;
}

.secondary-button:hover,
.output-button:hover,
.calendar-step:hover,
.today-button:hover,
.dayforce-help-button:hover,
.store-selector-button:hover,
.cloud-secondary-button:hover,
.cloud-done-button:hover,
.zone-clear-button:hover,
.schedule-print-button:hover,
.promo-guide-view:hover,
.promo-pdf-download-button:hover {
  border-color: #8b8b8b !important;
  background: #f5f5f5 !important;
}

.cloud-primary-button {
  border-color: var(--famous-black) !important;
  background: var(--famous-black) !important;
  color: #ffffff !important;
}

.cloud-primary-button:hover {
  background: #2a2a2a !important;
}

.output-actions {
  border-bottom-color: #dadada !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.output-button svg,
.output-button-svg,
.spark-icon,
.shoe-search-icon {
  stroke: var(--famous-red) !important;
}

.output-button .workbench-icon rect,
.output-button .power-bi-icon rect {
  fill: var(--famous-red) !important;
}

.day-tabs {
  border-bottom-color: #d7d7d7 !important;
  background: #ffffff !important;
}

.day-tab {
  border-color: #c8c8c8 !important;
  border-radius: 2px !important;
  background: #ffffff !important;
  color: #333333 !important;
  font-weight: 600 !important;
}

.day-tab:hover {
  border-color: #888888 !important;
  background: #f6f6f6 !important;
}

.day-tab.active {
  border-color: var(--famous-black) !important;
  background: var(--famous-black) !important;
  color: #ffffff !important;
}

.day-tab.has-update:not(.active)::after {
  background: var(--famous-red) !important;
}

.worksheet {
  border-color: #d2d2d2 !important;
  background: #ffffff !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .08) !important;
}

.section-rail,
.section-content,
.tasks-section,
.customer-section,
.financial-content,
.promotions-box,
.form-table td,
.form-table td input,
.zone-cell,
.zone-cell-button {
  filter: none !important;
}

.section-rail {
  background: #ffffff !important;
  color: var(--famous-black) !important;
}

.section-content,
.tasks-section {
  background: #f2f2f2 !important;
}

.customer-section,
.financial-content,
.promotions-box,
.form-table td,
.form-table td input,
.zone-cell,
.zone-cell-button {
  background: #ffffff !important;
}

.form-table th,
.form-table td.row-label {
  background: var(--famous-black) !important;
  color: #ffffff !important;
}

input:focus,
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline-color: var(--famous-red) !important;
}

/* Store search gets the same prominent outlined field language as Famous. */
.store-search-control {
  min-height: 52px !important;
  border: 2px solid #7d8386 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.store-search-control:focus-within {
  border-color: var(--famous-black) !important;
  box-shadow: none !important;
}

.store-search-control input {
  color: var(--famous-black) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.store-search-control input::placeholder {
  color: #727272 !important;
  opacity: 1;
}

.store-select-wrap select,
.cloud-fields input,
.name-custom-field input,
.shift-time-control input,
.promo-pdf-toolbar input {
  border-color: #c8c8c8 !important;
  border-radius: 2px !important;
  background: #ffffff !important;
  color: var(--famous-black) !important;
}

.store-select-wrap select:focus,
.cloud-fields input:focus,
.name-custom-field input:focus,
.shift-time-control input:focus,
.promo-pdf-toolbar input:focus {
  border-color: var(--famous-black) !important;
  box-shadow: 0 0 0 1px var(--famous-black) !important;
}

/* Search modal and field: based on the large outlined Famous search field. */
.shoe-search-dialog {
  width: min(800px, calc(100vw - 28px)) !important;
  border-radius: 0 !important;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .26) !important;
}

.shoe-search-dialog::backdrop {
  background: rgba(0, 0, 0, .48) !important;
  backdrop-filter: none !important;
}

.shoe-search-card {
  border-top: 4px solid var(--famous-red) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
}

.shoe-search-heading .dialog-close {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--famous-black) !important;
}

.shoe-search-heading .dialog-close:hover {
  background: #f3f3f3 !important;
}

.shoe-search-heading h2 {
  font-size: 27px !important;
}

.shoe-search-heading p:not(.eyebrow) {
  color: #666666 !important;
  font-size: 13px !important;
}

.shoe-search-form > label {
  color: #4d4d4d !important;
  font-weight: 600 !important;
}

.shoe-search-control {
  min-height: 58px !important;
  grid-template-columns: minmax(0, 1fr) 58px !important;
  gap: 0 !important;
  padding: 0 !important;
  border: 2px solid #7d8386 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.shoe-search-control:focus-within {
  border-color: var(--famous-black) !important;
  box-shadow: none !important;
}

.shoe-search-control > svg {
  display: none !important;
}

.shoe-search-input-wrap {
  min-height: 54px !important;
  padding-left: 14px !important;
}

.shoe-search-control input {
  height: 54px !important;
  padding: 0 42px 0 0 !important;
  color: var(--famous-black) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 54px !important;
}

.shoe-search-control input::placeholder {
  color: #727272 !important;
  opacity: 1;
}

.shoe-search-control button#shoeSearchSubmit {
  min-width: 58px !important;
  width: 58px !important;
  min-height: 54px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-left: 0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: var(--famous-black) !important;
}

.shoe-search-control button#shoeSearchSubmit:hover {
  background: #f3f3f3 !important;
}

.shoe-search-control button#shoeSearchSubmit:disabled {
  background: #f7f7f7 !important;
  opacity: .65 !important;
}

.shoe-search-submit-icon {
  width: 25px !important;
  height: 25px !important;
  fill: none !important;
  stroke: var(--famous-black) !important;
  stroke-width: 1.7 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.shoe-search-control .shoe-search-clear {
  right: 3px !important;
  border-radius: 50% !important;
  color: #555555 !important;
}

.shoe-search-control .shoe-search-clear:hover {
  background: #eeeeee !important;
}

.shoe-search-status,
.shoe-result-meta small {
  color: #666666 !important;
}

.shoe-result-card {
  border-color: #d9d9d9 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
}

.shoe-result-card:hover {
  border-color: #8d8d8d !important;
  box-shadow: 0 7px 20px rgba(0, 0, 0, .08) !important;
}

.shoe-result-image,
.shoe-image-placeholder {
  background: #f5f5f5 !important;
}

.shoe-result-copy strong {
  color: var(--famous-black) !important;
  font-weight: 600 !important;
}

.shoe-result-open {
  color: var(--famous-red) !important;
}

.shoe-search-fallback {
  color: var(--famous-black) !important;
  border-bottom-color: var(--famous-black) !important;
}

/* Dialogs throughout the site use the same flat Famous-style card language. */
.cloud-dialog-card,
.schedule-dialog-card,
.dayforce-clock-card,
.promo-pdf-card {
  border-radius: 0 !important;
  background: #ffffff !important;
}

.selected-store-card,
.dayforce-help-note,
.dayforce-file-card,
.schedule-summary-chip,
.zone-picker-option,
.name-picker-option {
  border-color: #d7d7d7 !important;
  border-radius: 2px !important;
  background: #f5f5f5 !important;
}

/* Mobile / compact navigation: a real left-side drawer like Famous Footwear. */
@media (max-width: 1100px) {
  html.compact-nav-open,
  html.compact-nav-open body {
    overflow: hidden !important;
  }

  .compact-nav-bar {
    position: relative !important;
    z-index: 70 !important;
    min-height: 58px !important;
    display: flex !important;
    align-items: center !important;
    padding: 6px 12px !important;
    border-bottom: 1px solid #d7d7d7 !important;
    background: #ffffff !important;
  }

  .compact-nav-toggle {
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    color: var(--famous-black) !important;
  }

  .compact-nav-toggle:hover,
  .compact-nav-toggle:focus-visible,
  .compact-nav-bar.is-open .compact-nav-toggle {
    border: 0 !important;
    background: #f4f4f4 !important;
  }

  .compact-nav-toggle-label,
  .compact-nav-toggle > span:nth-child(2),
  .compact-nav-chevron {
    display: none !important;
  }

  .compact-nav-toggle-icon {
    width: 23px !important;
    gap: 5px !important;
  }

  .compact-nav-toggle-icon i {
    width: 23px !important;
    height: 1.5px !important;
    border-radius: 0 !important;
    background: var(--famous-black) !important;
    transform-origin: center;
    transition: transform .18s ease, opacity .18s ease;
  }

  .compact-nav-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 998 !important;
    background: rgba(0, 0, 0, .42) !important;
  }

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

  .compact-nav-menu {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: auto !important;
    z-index: 999 !important;
    width: min(390px, 88vw) !important;
    max-width: 390px !important;
    height: 100dvh !important;
    max-height: none !important;
    overflow-y: auto !important;
    padding: 0 14px 28px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: 12px 0 36px rgba(0, 0, 0, .18) !important;
  }

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

  .compact-nav-menu-head {
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
    min-height: 74px !important;
    margin: 0 -14px 14px !important;
    padding: 14px 16px 12px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    border-bottom: 1px solid #e1e1e1 !important;
    background: #ffffff !important;
  }

  .compact-nav-menu-title {
    min-width: 0;
    display: grid !important;
    gap: 1px !important;
  }

  .compact-nav-menu-title small {
    color: var(--famous-red) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: .07em !important;
    text-transform: uppercase !important;
  }

  .compact-nav-menu-title strong {
    color: var(--famous-black) !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    letter-spacing: -.02em !important;
  }

  .compact-nav-close {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--famous-black) !important;
    font-size: 35px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    cursor: pointer !important;
  }

  .compact-nav-close:hover,
  .compact-nav-close:focus-visible {
    background: #f3f3f3 !important;
  }

  .compact-nav-menu-body {
    display: block !important;
  }

  .compact-nav-section + .compact-nav-section {
    margin-top: 18px !important;
    padding-top: 0 !important;
    border-top: 0 !important;
  }

  .compact-nav-section-title {
    display: block !important;
    margin: 0 2px 8px !important;
    color: #747474 !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: .07em !important;
    text-transform: uppercase !important;
  }

  .compact-nav-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .compact-nav-item {
    position: relative !important;
    width: 100% !important;
    min-height: 62px !important;
    padding: 0 46px 0 15px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #f2f2f2 !important;
    color: var(--famous-black) !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    text-align: left !important;
  }

  .compact-nav-item:hover,
  .compact-nav-item:focus-visible {
    background: #e9e9e9 !important;
  }

  .compact-nav-item svg {
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px !important;
    stroke: var(--famous-red) !important;
  }

  .compact-nav-item .workbench-icon,
  .compact-nav-item .workbench-icon rect,
  .compact-nav-item .power-bi-icon rect,
  .compact-nav-item svg rect[rx="1"] {
    fill: var(--famous-red) !important;
    stroke: none !important;
  }

  .compact-nav-item-dot {
    width: 8px !important;
    height: 8px !important;
    flex: 0 0 8px !important;
    background: var(--famous-red) !important;
  }

  .compact-nav-item-chevron {
    position: absolute !important;
    top: 50% !important;
    right: 18px !important;
    width: 9px !important;
    height: 9px !important;
    border-right: 1.5px solid #222222 !important;
    border-top: 1.5px solid #222222 !important;
    transform: translateY(-50%) rotate(45deg) !important;
  }

  .compact-header-shoe-search {
    border-radius: 0 !important;
    border-color: #c8c8c8 !important;
    background: #ffffff !important;
    color: var(--famous-black) !important;
    font-weight: 600 !important;
  }

  .compact-header-shoe-search:hover,
  .compact-header-shoe-search:focus-visible {
    border-color: #888888 !important;
    background: #f5f5f5 !important;
  }

  .compact-header-shoe-search svg {
    stroke: var(--famous-red) !important;
  }
}

@media (max-width: 580px) {
  .app-header {
    padding-inline: 14px !important;
  }

  .shoe-search-dialog,
  .shoe-search-dialog:has(.shoe-result-card) {
    width: calc(100vw - 14px) !important;
    max-height: calc(100dvh - 14px) !important;
  }

  .shoe-search-card,
  .shoe-search-dialog:has(.shoe-result-card) .shoe-search-card {
    max-height: calc(100dvh - 14px) !important;
    padding: 20px 14px 18px !important;
  }

  .shoe-search-heading h2 {
    font-size: 23px !important;
  }

  .shoe-search-control {
    min-height: 56px !important;
    grid-template-columns: minmax(0, 1fr) 54px !important;
    padding: 0 !important;
  }

  .shoe-search-control button#shoeSearchSubmit {
    grid-column: auto !important;
    width: 54px !important;
    min-width: 54px !important;
    min-height: 52px !important;
    margin: 0 !important;
    border: 0 !important;
  }

  .shoe-search-input-wrap {
    min-height: 52px !important;
    padding-left: 12px !important;
  }

  .shoe-search-control input {
    height: 52px !important;
    font-size: 14px !important;
    line-height: 52px !important;
  }
}

@media print {
  .compact-nav-backdrop,
  .famous-ui-only {
    display: none !important;
  }
}
