:root {
  --page-bg: #ececec;
  --paper: #ffffff;
  --ink: #242124;
  --muted: #666166;
  --soft: #e9e9e9;
  --soft-2: #f5f5f5;
  --line: #262326;
  --accent: #1f5fbf;
  --accent-soft: #eaf2ff;
  --shadow: 0 18px 55px rgba(0,0,0,.12);
}

* { box-sizing: border-box; }

html {
  background: var(--page-bg);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
}

body {
  margin: 0;
  min-width: 320px;
}

button,
input,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(16px, 3vw, 38px);
  border-bottom: 1px solid #d3d3d3;
  background: rgba(247,247,247,.96);
  backdrop-filter: blur(14px);
}

.app-header h1 {
  margin: 1px 0 0;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.15;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.save-status {
  color: #5f666d;
  font-size: 12px;
}

.secondary-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #c9c9c9;
  border-radius: 9px;
  background: #fff;
  color: #262326;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.secondary-button:hover {
  background: #f4f4f4;
}

.day-tabs {
  position: sticky;
  top: 77px;
  z-index: 25;
  display: flex;
  gap: 8px;
  padding: 11px clamp(16px, 3vw, 38px);
  overflow-x: auto;
  border-bottom: 1px solid #d0d0d0;
  background: #f6f6f6;
  scrollbar-width: thin;
}

.day-tab {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #c9c9c9;
  border-radius: 999px;
  background: #fff;
  color: #474347;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.day-tab.active {
  border-color: #1f1f1f;
  background: #242124;
  color: #fff;
}

.day-tab.has-update:not(.active)::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-radius: 999px;
  background: var(--accent);
  vertical-align: middle;
}

.app-shell {
  padding: 28px 16px 60px;
}

.worksheet {
  width: min(1160px, 100%);
  margin: 0 auto;
  border: 1px solid #d2d2d2;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.sheet-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 44px 18px 64px;
}

.sheet-top h2 {
  margin: 0 0 12px;
  font-size: clamp(21px, 2.5vw, 30px);
  font-weight: 600;
}

.date-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
}

.date-line input {
  width: 180px;
  border: 0;
  border-bottom: 1.5px solid #333;
  border-radius: 0;
  padding: 3px 4px;
  background: transparent;
}

.brand-wordmark {
  display: grid;
  justify-items: end;
  line-height: .8;
  color: #000;
  user-select: none;
}

.brand-wordmark span {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 500;
  letter-spacing: -.07em;
}

.brand-wordmark small {
  padding-right: 4px;
  font-size: clamp(17px, 2.4vw, 27px);
  font-weight: 500;
  letter-spacing: -.05em;
}

.sheet-section {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
}

.section-rail {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  border-bottom-width: 1px;
  border-left-width: 2px;
  background: #f2f2f2;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .03em;
  writing-mode: vertical-rl;
}

.section-rail.tall {
  min-height: 460px;
}

.section-content {
  min-width: 0;
  padding: 14px 18px 16px;
  background: var(--soft);
}

.section-help {
  margin: 0 0 9px;
  font-size: 12px;
  line-height: 1.25;
}

.talent-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 172px;
  gap: 18px;
}

.table-scroll {
  min-width: 0;
  overflow-x: auto;
}

.form-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
}

.form-table th,
.form-table td {
  border: 1px solid var(--line);
}

.form-table th {
  padding: 8px 6px;
  background: #242124;
  color: white;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.05;
  text-align: center;
}

.form-table td {
  height: 32px;
  padding: 0;
  background: rgba(255,255,255,.32);
}

.form-table td.row-label {
  padding: 0 9px;
  background: #292629;
  color: white;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.form-table input {
  width: 100%;
  height: 100%;
  min-height: 31px;
  padding: 5px 7px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #161416;
  font-size: 12px;
}

.form-table input:focus {
  box-shadow: inset 0 0 0 2px var(--accent);
  background: #fff;
}

.talent-table {
  min-width: 0;
  width: 100%;
}

.talent-table th:nth-child(1) { width: 26%; }
.talent-table th:nth-child(2) { width: 15%; }
.talent-table th:nth-child(3) { width: 14%; }
.talent-table th:nth-child(4) { width: 14%; }
.talent-table th:nth-child(5) { width: 14%; }
.talent-table th:nth-child(6) { width: 17%; }

.zone-list {
  display: flex;
  flex-direction: column;
  padding-top: 2px;
  color: #302d30;
  font-size: 12px;
  line-height: 1.55;
}

.zone-list strong {
  margin-bottom: 2px;
}

.customer-section {
  display: grid;
  grid-template-columns: 1.6fr .86fr;
  gap: 22px;
  padding: 16px 48px 16px 70px;
}

.customer-section h3,
.tasks-section h3,
.financial-content h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.1;
}

.customer-copy p,
.section-heading-inline p,
.financial-content p {
  margin: 4px 0 9px;
  color: #3e3a3e;
  font-size: 11px;
  line-height: 1.35;
}

textarea {
  width: 100%;
  resize: vertical;
  border: 0;
  border-bottom: 1px solid #393639;
  outline: none;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 28px,
      #494549 29px,
      #494549 30px
    );
  color: #181618;
  line-height: 30px;
}

textarea:focus {
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.promotions-box {
  padding: 10px;
  border: 1.5px solid #3b383b;
}

.promotions-box h3 {
  text-align: center;
}

.tasks-section {
  padding: 15px 48px 18px 70px;
  background: var(--soft);
}

.section-heading-inline {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.tasks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 22px;
  margin-top: 10px;
}

.task-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.task-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #252225;
  flex: 0 0 auto;
}

.task-row label {
  flex: 1;
  padding-bottom: 2px;
  border-bottom: 1px solid #5c585c;
  font-size: 12px;
  line-height: 1.15;
}

.task-row.custom input[type="text"] {
  width: 100%;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid #5c585c;
  outline: none;
  background: transparent;
  font-size: 12px;
}

.results-section {
  border-top: 1px solid #d0d0d0;
}

.financial-content {
  background: #fff;
}

.results-title-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 7px;
}

.spread-field {
  align-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
}

.spread-field input {
  width: 125px;
  border: 0;
  border-bottom: 1px solid #4e4a4e;
  outline: none;
}

.results-table th:first-child {
  width: 112px;
}

.results-table td {
  background: #fff;
}

.power-title {
  margin-top: 14px;
}

.manager-notes {
  margin-top: 18px;
}

.manager-notes label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 650;
}

.manager-notes textarea {
  min-height: 76px;
}

input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

@media (max-width: 860px) {
  .app-header {
    position: static;
    align-items: flex-start;
  }

  .day-tabs {
    top: 0;
  }

  .save-status {
    display: none;
  }

  .sheet-top {
    padding: 24px 22px 18px;
  }

  .brand-wordmark span {
    font-size: 38px;
  }

  .brand-wordmark small {
    font-size: 19px;
  }

  .sheet-section {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .section-rail {
    font-size: 15px;
  }

  .talent-layout {
    grid-template-columns: 1fr;
  }

  .zone-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px 10px;
  }

  .zone-list strong {
    grid-column: 1 / -1;
  }

  .customer-section {
    grid-template-columns: 1fr;
    padding: 18px 20px 18px 58px;
  }

  .tasks-section {
    padding: 18px 20px 18px 58px;
  }

  .tasks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .results-title-row {
    display: block;
  }

  .spread-field {
    margin-top: 8px;
  }
}

@media (max-width: 580px) {
  .app-header {
    display: block;
    padding: 14px 14px 12px;
  }

  .header-actions {
    justify-content: space-between;
    margin-top: 10px;
  }

  .secondary-button {
    min-height: 36px;
    font-size: 12px;
  }

  .day-tabs {
    padding: 9px 10px;
  }

  .day-tab {
    min-height: 36px;
    padding: 0 13px;
  }

  .app-shell {
    padding: 12px 6px 36px;
  }

  .worksheet {
    border-left: 0;
    border-right: 0;
  }

  .sheet-top {
    display: block;
    padding: 20px 16px 15px;
  }

  .brand-wordmark {
    margin-top: 18px;
    justify-items: start;
  }

  .sheet-section {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .section-content {
    padding: 12px 9px;
  }

  .section-rail {
    font-size: 12px;
  }

  .zone-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    font-size: 11px;
  }

  .customer-section,
  .tasks-section {
    padding-left: 40px;
    padding-right: 10px;
  }

  .customer-section h3,
  .tasks-section h3,
  .financial-content h3 {
    font-size: 17px;
  }

  .section-heading-inline {
    display: block;
  }

  .tasks-grid {
    grid-template-columns: 1fr;
  }

  .results-title-row {
    margin-bottom: 10px;
  }

  .date-line input {
    width: 145px;
  }
}

@media print {
  .app-header,
  .day-tabs {
    display: none !important;
  }

  body,
  html {
    background: #fff;
  }

  .app-shell {
    padding: 0;
  }

  .worksheet {
    width: 100%;
    border: 0;
    box-shadow: none;
  }

  .table-scroll {
    overflow: visible;
  }
}

/* Day-specific task layout */
.task-slot {
  min-width: 0;
  min-height: 34px;
  display: flex;
  align-items: flex-start;
}

.task-check,
.subtask-check {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.task-check input[type="checkbox"],
.task-slot.custom > input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: #252225;
}

.task-check span {
  flex: 1;
  min-width: 0;
  padding: 2px 0 3px;
  border-bottom: 1px solid #5c585c;
  font-size: 12px;
  line-height: 1.15;
}

.task-group {
  display: block;
}

.coach-group {
  padding-left: 27px;
}

.subtask-check {
  gap: 5px;
  min-height: 18px;
}

.subtask-check input[type="checkbox"] {
  width: 12px;
  height: 12px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: #252225;
}

.subtask-check span {
  font-size: 11px;
  line-height: 1.15;
}

.coach-group .subtask-check span {
  border-bottom: 1px solid #5c585c;
  padding-bottom: 1px;
}

.fulfillment-group .task-check {
  margin-bottom: 1px;
}

.fulfillment-times {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 8px;
  padding-left: 27px;
}

.fulfillment-times .subtask-check {
  width: auto;
}

.task-slot.custom {
  align-items: center;
  gap: 7px;
}

.task-slot.custom input[type="text"] {
  width: 100%;
  min-width: 0;
  padding: 2px 0 3px;
  border: 0;
  border-bottom: 1px solid #5c585c;
  outline: none;
  background: transparent;
  font-size: 12px;
}

.task-slot.custom input[type="text"]:focus {
  border-bottom-color: var(--accent);
}

@media (max-width: 860px) {
  .coach-group {
    padding-left: 0;
  }

  .fulfillment-times {
    padding-left: 27px;
  }
}

@media (max-width: 580px) {
  .task-slot {
    min-height: 38px;
  }

  .coach-group {
    padding-left: 27px;
  }
}


@media (max-width: 860px) {
  .talent-table {
    min-width: 0;
    width: 100%;
  }

  .talent-table th {
    padding-inline: 5px;
    font-size: 11px;
  }

  .talent-table input {
    padding-inline: 6px;
    font-size: 12px;
  }
}


/* Fit both financial results tables on tablet without shrinking their overall appearance */
.results-title-row + .table-scroll .results-table,
.power-title + .table-scroll .results-table {
  min-width: 0;
  width: 100%;
}

.results-title-row + .table-scroll .results-table th:first-child,
.results-title-row + .table-scroll .results-table td:first-child {
  width: 15%;
}

.results-title-row + .table-scroll .results-table th:nth-child(2) { width: 15%; }
.results-title-row + .table-scroll .results-table th:nth-child(3) { width: 15%; }
.results-title-row + .table-scroll .results-table th:nth-child(4) { width: 16%; }
.results-title-row + .table-scroll .results-table th:nth-child(5) { width: 13%; }
.results-title-row + .table-scroll .results-table th:nth-child(6) { width: 14%; }
.results-title-row + .table-scroll .results-table th:nth-child(7) { width: 12%; }

.power-title + .table-scroll .results-table th:first-child,
.power-title + .table-scroll .results-table td:first-child {
  width: 16%;
}

.power-title + .table-scroll .results-table th:nth-child(2) { width: 13%; }
.power-title + .table-scroll .results-table th:nth-child(3) { width: 13%; }
.power-title + .table-scroll .results-table th:nth-child(4) { width: 14%; }
.power-title + .table-scroll .results-table th:nth-child(5) { width: 12%; }
.power-title + .table-scroll .results-table th:nth-child(6) { width: 11%; }
.power-title + .table-scroll .results-table th:nth-child(7) { width: 11%; }
.power-title + .table-scroll .results-table th:nth-child(8) { width: 10%; }

@media (max-width: 860px) {
  .results-title-row + .table-scroll .results-table th,
  .power-title + .table-scroll .results-table th {
    padding-inline: 4px;
    font-size: 10.5px;
  }

  .results-title-row + .table-scroll .results-table input,
  .power-title + .table-scroll .results-table input {
    padding-inline: 5px;
    font-size: 12px;
  }
}


/* Calendar history controls */
.calendar-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.calendar-picker {
  min-height: 40px;
  padding: 5px 10px;
  display: grid;
  align-content: center;
  gap: 1px;
  border: 1px solid #c9c9c9;
  border-radius: 9px;
  background: #fff;
}

.calendar-picker span {
  color: #6b676b;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
}

.calendar-picker input {
  width: 128px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #262326;
  font-size: 12px;
  font-weight: 600;
}

.calendar-step {
  width: 36px;
  min-height: 40px;
  padding: 0;
  border: 1px solid #c9c9c9;
  border-radius: 9px;
  background: #fff;
  color: #262326;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.calendar-step:hover,
.today-button:hover {
  background: #f4f4f4;
}

.day-tab {
  position: relative;
  min-width: 92px;
  padding: 6px 13px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  line-height: 1.1;
}

.day-tab-name {
  font-size: 13px;
  font-weight: 650;
}

.day-tab-date {
  color: #777278;
  font-size: 10px;
  font-weight: 600;
}

.day-tab.active .day-tab-date {
  color: #d8d8d8;
}

.day-tab.has-update:not(.active)::after {
  position: absolute;
  top: 8px;
  right: 8px;
  margin: 0;
}

@media (max-width: 980px) {
  .app-header {
    flex-wrap: wrap;
  }

  .header-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .calendar-controls {
    flex: 1 1 auto;
  }

  .calendar-picker {
    flex: 1 1 auto;
  }

  .calendar-picker input {
    width: 100%;
    min-width: 120px;
  }
}

@media (max-width: 580px) {
  .header-actions {
    align-items: stretch;
  }

  .calendar-controls {
    width: 100%;
  }

  .today-button {
    display: none;
  }

  .day-tab {
    min-width: 82px;
    padding-inline: 10px;
  }
}


/* Dayforce schedule import */
.import-button {
  white-space: nowrap;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 580px) {
  .import-button {
    flex: 1 1 auto;
  }
}


/* Store identifier */
.sheet-brand-block {
  display: grid;
  justify-items: end;
  gap: 14px;
}

.store-number-field {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}

.store-number-field span::after {
  content: " #";
}

.store-number-field input {
  width: 72px;
  padding: 3px 4px 4px;
  border: 0;
  border-bottom: 1.5px solid #333;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #1d1b1d;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.store-number-field input::placeholder {
  color: #777;
  opacity: 1;
}

.store-number-field input:focus {
  border-bottom-color: var(--accent);
}

@media (max-width: 580px) {
  .sheet-brand-block {
    margin-top: 18px;
    justify-items: start;
  }

  .sheet-brand-block .brand-wordmark {
    margin-top: 0;
  }
}


/* Famous Footwear-inspired visual refresh */
:root {
  --page-bg: #f5f4f2;
  --paper: #ffffff;
  --ink: #171717;
  --muted: #6d6966;
  --soft: #f3f1ef;
  --soft-2: #faf9f8;
  --line: #1b1b1b;
  --accent: #d84f43;
  --accent-soft: #fff0eb;
  --brand-warm: #f2c7b7;
  --shadow: 0 10px 28px rgba(0, 0, 0, .07);
}

html,
body {
  background: var(--page-bg);
}

body {
  color: var(--ink);
}

.app-header {
  border-top: 4px solid #111;
  border-bottom: 1px solid #dedbd8;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .035);
  backdrop-filter: blur(16px);
}

.app-header h1 {
  color: #111;
  font-weight: 700;
  letter-spacing: -.025em;
}

.eyebrow {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: .16em;
}

.save-status {
  color: #77716e;
}

.secondary-button,
.calendar-step,
.calendar-picker {
  border-color: #cbc6c2;
  border-radius: 4px;
  background: #fff;
}

.secondary-button {
  font-weight: 650;
  letter-spacing: -.01em;
}

.secondary-button:hover,
.calendar-step:hover,
.today-button:hover {
  border-color: #99938f;
  background: #f7f5f3;
}

.import-button {
  border-color: #111;
  background: #111;
  color: #fff;
}

.import-button:hover {
  border-color: #2b2b2b;
  background: #2b2b2b;
}

.calendar-picker span {
  color: #8a6255;
}

.calendar-picker input,
.calendar-step {
  color: #111;
}

.day-tabs {
  gap: 6px;
  border-bottom: 1px solid #d8d4d1;
  background: #fff;
}

.day-tab {
  border-color: #d0cbc7;
  border-radius: 4px;
  background: #fff;
  color: #2e2b2a;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.day-tab:hover {
  border-color: #8e8884;
  background: #faf8f7;
}

.day-tab.active {
  border-color: #111;
  background: #111;
  color: #fff;
}

.day-tab-date {
  color: #8b8581;
}

.day-tab.active .day-tab-date {
  color: #e7e2df;
}

.day-tab.has-update:not(.active)::after {
  background: var(--accent);
}

.app-shell {
  padding-top: 30px;
}

.worksheet {
  border-color: #d7d2cf;
  box-shadow: var(--shadow);
}

.sheet-top {
  border-bottom: 1px solid #ece8e5;
}

.sheet-top h2 {
  color: #111;
  font-weight: 700;
  letter-spacing: -.025em;
}

.date-line strong,
.store-number-field {
  color: #201f1e;
}

.date-line input,
.store-number-field input {
  border-bottom-color: #8c8682;
}

.brand-wordmark {
  color: #050505;
}

.section-rail {
  border-color: #242220;
  background: var(--brand-warm);
  color: #161514;
  font-weight: 700;
}

.section-content,
.tasks-section {
  background: var(--soft);
}

.form-table th,
.form-table td.row-label {
  background: #171717;
  color: #fff;
}

.form-table th,
.form-table td {
  border-color: #2b2928;
}

.form-table td {
  background: rgba(255, 255, 255, .58);
}

.form-table input:focus {
  box-shadow: inset 0 0 0 2px var(--accent);
  background: #fff;
}

.zone-list strong,
.customer-section h3,
.tasks-section h3,
.financial-content h3 {
  color: #151414;
  font-weight: 700;
  letter-spacing: -.015em;
}

.customer-copy p,
.section-heading-inline p,
.financial-content p,
.section-help {
  color: #504b48;
}

.promotions-box {
  border-color: #262321;
  background: #fffaf8;
}

.promotions-box h3 {
  letter-spacing: -.02em;
}

.results-section {
  border-top-color: #d8d2ce;
}

.financial-content {
  background: #fff;
}

.spread-field input {
  border-bottom-color: #8b8581;
}

.task-check input[type="checkbox"],
.task-slot.custom > input[type="checkbox"],
.subtask-check input[type="checkbox"] {
  accent-color: var(--accent);
}

input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline-color: var(--accent);
}

.store-number-field input:focus {
  border-bottom-color: var(--accent);
}

@media (max-width: 580px) {
  .app-header {
    border-top-width: 3px;
  }

  .day-tab {
    border-radius: 4px;
  }

  .worksheet {
    box-shadow: none;
  }
}

@media print {
  .app-header {
    border-top: 0;
  }

  .section-rail {
    background: #f2f2f2;
  }
}


/* Store number moved to the top site header */
.header-right {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.header-store-number {
  min-height: 24px;
  padding: 0 2px;
  color: #201f1e;
}

.header-store-number input {
  width: 64px;
  padding-top: 1px;
  padding-bottom: 2px;
  font-size: 13px;
}

@media (max-width: 980px) {
  .header-right {
    width: 100%;
    justify-items: stretch;
  }

  .header-store-number {
    justify-self: end;
  }
}

@media (max-width: 580px) {
  .header-right {
    margin-top: 10px;
  }

  .header-store-number {
    justify-self: start;
  }
}


/* Official Famous Footwear logo colors */
.brand-wordmark {
  color: inherit;
}

.brand-wordmark span {
  color: #df0038;
}

.brand-wordmark small {
  color: #7a838c;
}


/* Refined store number placement */
.app-header {
  align-items: flex-start;
}

.header-right {
  align-self: start;
  gap: 9px;
}

.header-store-number {
  display: grid;
  justify-items: end;
  align-items: start;
  gap: 2px;
  min-height: 0;
  padding: 0;
  line-height: 1;
}

.header-store-number span {
  color: #5f5b58;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
}

.header-store-number input {
  width: 92px;
  padding: 2px 2px 4px;
  border-bottom: 2px solid #1c1b1a;
  color: #111;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.1;
  text-align: right;
}

.header-store-number input::placeholder {
  color: #8a8581;
  opacity: 1;
}

@media (max-width: 980px) {
  .app-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 18px;
    row-gap: 14px;
  }

  .app-header > div:first-child {
    grid-column: 1;
    grid-row: 1;
  }

  .header-right {
    display: contents;
  }

  .header-store-number {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    margin: 0;
  }

  .header-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    margin-top: 0;
    justify-content: flex-end;
  }
}

@media (max-width: 580px) {
  .app-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .header-right {
    margin-top: 0;
  }

  .header-store-number {
    justify-self: end;
  }

  .header-store-number input {
    width: 78px;
    font-size: 18px;
  }
}


/* Refine vertical section rails to match Famous Footwear's cleaner black/white styling */
.section-rail {
  position: relative;
  border-color: #d8d4d1;
  border-left: 1px solid #d8d4d1;
  background: #fff;
  color: #111;
  font-weight: 700;
  letter-spacing: .08em;
}

.section-rail::before {
  content: "";
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: -1px;
  width: 4px;
  background: #df0038;
}

.section-rail.tall {
  background: #fff;
}

@media print {
  .section-rail,
  .section-rail.tall {
    background: #fff;
    color: #111;
  }

  .section-rail::before {
    background: #111;
  }
}


/* Cleaner imported Dayforce schedule values */
.talent-table th:nth-child(1) { width: 25%; }
.talent-table th:nth-child(2) { width: 16%; }
.talent-table th:nth-child(3) { width: 18%; }
.talent-table th:nth-child(4) { width: 13%; }
.talent-table th:nth-child(5) { width: 12%; }
.talent-table th:nth-child(6) { width: 16%; }

.talent-table td:nth-child(1) input {
  font-weight: 500;
}

.talent-table td:nth-child(2) input,
.talent-table td:nth-child(3) input {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

@media (max-width: 860px) {
  .talent-table td:nth-child(2) input,
  .talent-table td:nth-child(3) input {
    padding-inline: 5px;
    font-size: 11.5px;
  }
}


/* Persistent auto-save status */
.header-title-block {
  min-width: 0;
}

.save-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  color: #6e6966;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.save-status::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #df0038;
}

@media (max-width: 860px) {
  .save-status {
    display: inline-flex;
  }
}

@media (max-width: 580px) {
  .save-status {
    margin-top: 5px;
    font-size: 10.5px;
  }
}


/* Center the weekly day selector and use dots only for unseen updates */
.day-tabs {
  justify-content: center;
}

.day-tab.has-update:not(.active)::after {
  background: #df0038;
}

@media (max-width: 760px) {
  .day-tabs {
    justify-content: flex-start;
  }
}


/* Use regular weight for imported shift and break values */
.talent-table td:nth-child(2) input,
.talent-table td:nth-child(3) input {
  font-weight: 400;
}
