: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: 27px;
  }

  .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;
}


/* Rebalance Talent columns so full Dayforce times have more room */
.talent-table th:nth-child(1) { width: 24%; }
.talent-table th:nth-child(2) { width: 18%; }
.talent-table th:nth-child(3) { width: 20%; }
.talent-table th:nth-child(4) { width: 13%; }
.talent-table th:nth-child(5) { width: 11%; }
.talent-table th:nth-child(6) { width: 14%; }


/* Famous Footwear red table headers + clean white promotions panel */
.form-table th,
.form-table td.row-label {
  background: #df0038;
  color: #fff;
  border-color: #b9b4b1;
}

.promotions-box {
  background: #fff;
  border-color: #d7d2cf;
}

.promotions-box textarea {
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 28px,
      #494549 29px,
      #494549 30px
    );
}


/* Cloud sync */
.cloud-sync-button {
  white-space: nowrap;
}

.cloud-sync-button.cloud-connected {
  border-color: #b7b2af;
  background: #f7f5f3;
  color: #111;
}

.cloud-dialog {
  width: min(470px, calc(100vw - 28px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .22);
}

.cloud-dialog::backdrop {
  background: rgba(20, 18, 18, .52);
  backdrop-filter: blur(3px);
}

.cloud-dialog-card {
  padding: 24px;
  border-top: 4px solid #df0038;
  border-radius: 7px;
  background: #fff;
}

.cloud-dialog-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.cloud-dialog-heading h2 {
  margin: 2px 0 0;
  color: #111;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.dialog-close {
  position: relative;
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid #d2cdca;
  border-radius: 4px;
  background: #fff;
  color: transparent;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
}

.dialog-close::before,
.dialog-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.6px;
  border-radius: 2px;
  background: #3d3937;
  transform-origin: center;
}

.dialog-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.dialog-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.dialog-close:hover::before,
.dialog-close:hover::after,
.dialog-close:focus-visible::before,
.dialog-close:focus-visible::after {
  background: #171717;
}

.cloud-dialog-copy {
  margin: 14px 0 18px;
  color: #5d5855;
  font-size: 13px;
  line-height: 1.45;
}

.cloud-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cloud-fields label {
  display: grid;
  gap: 6px;
}

.cloud-fields label > span {
  color: #3f3a37;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cloud-fields input {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #cfc9c5;
  border-radius: 4px;
  outline: 0;
  background: #fff;
  color: #111;
  font-size: 14px;
}

.cloud-fields input:focus {
  border-color: #df0038;
  box-shadow: 0 0 0 2px rgba(223, 0, 56, .1);
}

.cloud-primary-button,
.cloud-secondary-button,
.cloud-signout-button {
  width: 100%;
  min-height: 42px;
  margin-top: 14px;
  border-radius: 4px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.cloud-primary-button {
  border: 1px solid #111;
  background: #111;
  color: #fff;
}

.cloud-secondary-button {
  border: 1px solid #df0038;
  background: #df0038;
  color: #fff;
}

.cloud-signout-button {
  border: 1px solid #cbc6c2;
  background: #fff;
  color: #111;
}

.cloud-message {
  min-height: 18px;
  margin: 12px 0 0;
  color: #5e5956;
  font-size: 12px;
  line-height: 1.35;
}

.cloud-message.is-error {
  min-height: 0;
  padding: 10px 12px;
  border: 1px solid #d93025;
  border-radius: 4px;
  background: #fce8e6;
  color: #b3261e;
  font-weight: 650;
}

.cloud-message.is-error:empty {
  display: none;
}

.cloud-setup {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e1dcda;
}

.cloud-setup summary {
  color: #222;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.cloud-setup p {
  margin: 9px 0 12px;
  color: #6b6561;
  font-size: 12px;
  line-height: 1.4;
}

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

  .cloud-dialog-card {
    padding: 20px 16px;
  }

  .cloud-fields {
    grid-template-columns: 1fr;
  }
}


/* Worksheet output controls */
.output-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px clamp(16px, 3vw, 38px);
  border-bottom: 1px solid #e1ddda;
  background: #fff;
}

.output-button {
  min-height: 36px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #cbc6c2;
  border-radius: 4px;
  background: #fff;
  color: #171717;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.output-button:hover {
  border-color: #918b87;
  background: #f7f5f3;
}

.output-button:disabled {
  opacity: .6;
  cursor: wait;
}

.output-button-icon {
  color: #df0038;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

/* Return worksheet tables to the cleaner black treatment */
.form-table th,
.form-table td.row-label {
  background: #171717;
  color: #fff;
  border-color: #2b2928;
}

/* Keep Today's Promotions neutral */
.promotions-box {
  background: #fff;
  border-color: #d7d2cf;
}

/* Prevent the writing guide from doubling against the textarea bottom border */
.customer-copy textarea,
.promotions-box textarea {
  border-bottom: 0;
}

/* Keep major blocks together more reliably in exported PDFs */
.sheet-top,
.talent-section,
.customer-section,
.tasks-section,
.results-title-row,
.power-title,
.manager-notes,
.form-table tr {
  break-inside: avoid;
  page-break-inside: avoid;
}

@media (max-width: 580px) {
  .output-actions {
    justify-content: stretch;
  }

  .output-button {
    flex: 1 1 0;
  }
}

@media print {
  .output-actions,
  .cloud-dialog {
    display: none !important;
  }
}


/* Simplified week navigation */
.week-display {
  min-width: 176px;
  min-height: 40px;
  padding: 5px 12px;
  display: grid;
  align-content: center;
  gap: 2px;
  border: 1px solid #cbc6c2;
  border-radius: 4px;
  background: #fff;
}

.week-display span {
  color: #8a6255;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.week-display strong {
  color: #171717;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.15;
}

.work-date-display {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid #ddd8d5;
  border-radius: 4px;
  background: #faf9f8;
  color: #2b2928;
  font-size: 13px;
  font-weight: 600;
}

/* Searchable store selector */
.header-store-selector {
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 210px;
}

.store-selector-label {
  color: #5f5b58;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
}

.store-selector-button {
  min-width: 210px;
  padding: 7px 10px 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #cbc6c2;
  border-radius: 4px;
  background: #fff;
  color: #111;
  text-align: left;
  cursor: pointer;
}

.store-selector-button:hover {
  border-color: #918b87;
  background: #faf9f8;
}

.store-selector-button.cloud-connected {
  border-color: #b9b4b1;
}

.store-selector-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.store-selector-copy strong {
  overflow: hidden;
  color: #111;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-selector-copy small {
  overflow: hidden;
  color: #77716e;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-selector-button.cloud-connected .store-selector-copy small::before {
  content: "● ";
  color: #2f7d4a;
}

.store-selector-chevron {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 0;
  line-height: 0;
}

.store-selector-chevron::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.6px solid #6a6460;
  border-bottom: 1.6px solid #6a6460;
  transform: translateY(-2px) rotate(45deg);
}

.store-selector-button:hover .store-selector-chevron::before,
.store-selector-button:focus-visible .store-selector-chevron::before {
  border-color: #2f2b29;
}

/* Store search inside cloud sync */
.store-search-block {
  margin-bottom: 12px;
}

.store-search-label {
  display: block;
  margin-bottom: 6px;
  color: #3f3a37;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.store-search-control {
  min-height: 44px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cfc9c5;
  border-radius: 4px;
  background: #fff;
}

.store-search-control:focus-within {
  border-color: #df0038;
  box-shadow: 0 0 0 2px rgba(223, 0, 56, .1);
}

.store-search-control > span {
  color: #847e7a;
  font-size: 18px;
}

.store-search-control input {
  width: 100%;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111;
  font: inherit;
  font-size: 14px;
}

.store-search-results {
  max-height: 220px;
  overflow-y: auto;
  border: 0 solid #ded9d6;
  border-radius: 0 0 4px 4px;
}

.store-search-results:not(:empty) {
  border-width: 0 1px 1px;
}

.store-search-result {
  width: 100%;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 0;
  border-top: 1px solid #eeeae8;
  background: #fff;
  color: #111;
  text-align: left;
  cursor: pointer;
}

.store-search-result:first-child {
  border-top: 0;
}

.store-search-result:hover,
.store-search-result:focus-visible {
  background: #f7f5f3;
}

.store-search-result strong {
  font-size: 12px;
}

.store-search-result span {
  overflow: hidden;
  color: #5f5956;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-search-empty {
  margin: 0;
  padding: 10px 12px;
  color: #77716e;
  font-size: 12px;
}

.selected-store-card {
  margin-top: 9px;
  padding: 10px 12px;
  display: grid;
  gap: 3px;
  border-left: 3px solid #df0038;
  background: #f7f5f3;
}

.selected-store-card span {
  color: #807a76;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.selected-store-card strong {
  color: #181716;
  font-size: 13px;
}

.cloud-pin-row {
  grid-template-columns: 1fr;
}

@media (max-width: 980px) {
  .header-store-selector {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
  }
}

@media (max-width: 760px) {
  .week-display {
    min-width: 150px;
  }
}

@media (max-width: 580px) {
  .header-store-selector {
    min-width: 154px;
  }

  .store-selector-button {
    min-width: 154px;
    max-width: 180px;
  }

  .store-selector-copy strong {
    font-size: 13px;
  }

  .store-selector-copy small {
    font-size: 9px;
  }

  .calendar-controls {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
  }

  .week-display {
    min-width: 0;
  }
}

@media print {
  .work-date-display {
    padding: 0;
    border: 0;
    background: transparent;
  }
}


/* Restored selectable week control */
.week-picker {
  min-width: 198px;
  min-height: 44px;
  padding: 5px 10px 6px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "label label"
    "input range";
  align-items: center;
  gap: 1px 10px;
  border: 1px solid #cbc6c2;
  border-radius: 4px;
  background: #fff;
}

.week-picker > span {
  grid-area: label;
  color: #8a6255;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.week-picker input {
  grid-area: input;
  width: 118px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #171717;
  font-size: 12px;
  font-weight: 650;
}

.week-picker small {
  grid-area: range;
  color: #77716e;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}

/* Proper SVG icon for print */
.output-button-svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: #171717;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* One-page print/PDF clone that mirrors the worksheet */
.print-stage {
  position: fixed;
  top: 0;
  left: -100000px;
  z-index: -1;
  overflow: hidden;
  background: #fff;
}

.print-export-sheet {
  width: 1160px !important;
  max-width: 1160px !important;
  margin: 0 !important;
  border: 1px solid #d7d2cf !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #171717 !important;
  font-family: Inter, Arial, sans-serif !important;
}

/* Force the same desktop worksheet geometry regardless of phone/tablet viewport. */
.print-export-sheet .sheet-top {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 24px !important;
  padding: 28px 44px 18px 64px !important;
}

.print-export-sheet .sheet-top h2 {
  margin: 0 0 12px !important;
  font-size: 30px !important;
  font-weight: 600 !important;
}

.print-export-sheet .brand-wordmark {
  margin-top: 0 !important;
  justify-items: end !important;
}

.print-export-sheet .brand-wordmark span {
  font-size: 58px !important;
}

.print-export-sheet .brand-wordmark small {
  font-size: 27px !important;
}

.print-export-sheet .work-date-display {
  min-height: 30px !important;
  padding: 4px 10px !important;
  border: 1px solid #ddd8d5 !important;
  border-radius: 4px !important;
  background: #faf9f8 !important;
  font-size: 13px !important;
}

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

.print-export-sheet .section-rail {
  font-size: 19px !important;
  background: #fff !important;
  color: #111 !important;
}

.print-export-sheet .section-rail::before {
  background: #df0038 !important;
}

.print-export-sheet .section-rail.tall {
  min-height: 460px !important;
}

.print-export-sheet .section-content {
  padding: 14px 18px 16px !important;
}

.print-export-sheet .section-help {
  margin: 0 0 9px !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}

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

.print-export-sheet .zone-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  padding-top: 2px !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}

.print-export-sheet .table-scroll {
  overflow: visible !important;
}

.print-export-sheet .form-table {
  width: 100% !important;
}

.print-export-sheet .form-table th {
  padding: 8px 6px !important;
  font-size: 11px !important;
}

.print-export-sheet .form-table td {
  height: 32px !important;
}

.print-export-sheet .form-table input {
  min-height: 31px !important;
  padding: 5px 7px !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}

.print-export-sheet .talent-table td:nth-child(1) input {
  font-weight: 500 !important;
}

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

.print-export-sheet .customer-section h3,
.print-export-sheet .tasks-section h3,
.print-export-sheet .financial-content h3 {
  font-size: 19px !important;
}

.print-export-sheet .customer-copy p,
.print-export-sheet .section-heading-inline p,
.print-export-sheet .financial-content p {
  margin: 4px 0 9px !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
}

.print-export-sheet textarea {
  min-height: 90px;
  font-size: 12px !important;
  line-height: 30px !important;
  overflow: hidden !important;
}

.print-export-sheet .promotions-box {
  padding: 10px !important;
  background: #fff !important;
}

.print-export-sheet .tasks-section {
  padding: 15px 48px 18px 70px !important;
}

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

.print-export-sheet .task-slot {
  min-height: 34px !important;
}

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

.print-export-sheet .spread-field {
  margin-top: 0 !important;
}

.print-export-sheet .power-title {
  margin-top: 14px !important;
}

.print-export-sheet .manager-notes {
  margin-top: 18px !important;
}

.print-export-sheet .manager-notes textarea {
  min-height: 76px !important;
}

@page {
  size: letter portrait;
  margin: 0.18in;
}

@media print {
  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  body > *:not(#printStage) {
    display: none !important;
  }

  #printStage.print-mode {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    z-index: auto !important;
    display: block !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    background: #fff !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  #printStage.print-mode .print-export-sheet {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: var(--print-sheet-width, 1160px) !important;
    max-width: none !important;
    margin: 0 !important;
    transform: scale(var(--one-page-scale, 1)) !important;
    transform-origin: top left !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
}

@media (max-width: 580px) {
  .week-picker {
    min-width: 0;
    width: 100%;
  }

  .week-picker input {
    width: 112px;
  }

  .week-picker small {
    font-size: 8px;
  }
}


/* Make missing D1 setup obvious instead of looking like a broken button */
.cloud-config-warning {
  margin: 0 0 16px;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
  border: 1px solid #e0aaa8;
  border-left: 4px solid #df0038;
  border-radius: 4px;
  background: #fff4f3;
  color: #3d2d2c;
}

.cloud-config-warning strong {
  font-size: 12px;
}

.cloud-config-warning span {
  font-size: 11px;
  line-height: 1.4;
}

.cloud-config-warning code {
  padding: 1px 4px;
  border-radius: 3px;
  background: #fff;
  font-size: 10px;
  font-weight: 700;
}

.cloud-primary-button:disabled,
.cloud-secondary-button:disabled {
  opacity: .48;
  cursor: not-allowed;
}


/* Dayforce import help */
.import-dayforce-group {
  display: inline-flex;
  align-items: stretch;
  gap: 6px;
}

.dayforce-help-button {
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid #cbc6c2;
  border-radius: 4px;
  background: #fff;
  color: #df0038;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.dayforce-help-button:hover {
  border-color: #918b87;
  background: #f7f5f3;
}

.dayforce-help-dialog {
  width: min(520px, calc(100vw - 28px));
}

.dayforce-file-card {
  margin: 4px 0 18px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #ded9d6;
  border-radius: 5px;
  background: #f8f7f6;
}

.dayforce-file-badge {
  min-width: 52px;
  padding: 7px 8px;
  border-radius: 4px;
  background: #171717;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
}

.dayforce-file-card div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.dayforce-file-card strong {
  color: #171717;
  font-size: 13px;
}

.dayforce-file-card small {
  color: #6d6763;
  font-size: 11px;
}

.dayforce-help-steps {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  counter-reset: dayforce-step;
  list-style: none;
}

.dayforce-help-steps li {
  position: relative;
  min-height: 34px;
  padding-left: 42px;
  display: grid;
  gap: 2px;
  counter-increment: dayforce-step;
}

.dayforce-help-steps li::before {
  content: counter(dayforce-step);
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #df0038;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.dayforce-help-steps strong {
  color: #1d1b1a;
  font-size: 12px;
}

.dayforce-help-steps span {
  color: #5f5956;
  font-size: 11px;
  line-height: 1.4;
}

.dayforce-help-note {
  margin-top: 18px;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
  border-left: 3px solid #df0038;
  background: #f7f5f3;
}

.dayforce-help-note strong {
  color: #222;
  font-size: 11px;
}

.dayforce-help-note span {
  color: #625d59;
  font-size: 11px;
  line-height: 1.4;
}

@media (max-width: 580px) {
  .import-dayforce-group {
    width: 100%;
  }

  .import-dayforce-group .import-button {
    flex: 1 1 auto;
  }

  .dayforce-help-button {
    flex: 0 0 36px;
  }
}

@media print {
  .dayforce-help-dialog {
    display: none !important;
  }
}


/* Preserve the worksheet's dark table fills in print and exported PDF */
.print-export-sheet,
.print-export-sheet * {
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

.print-export-sheet .form-table th,
.print-export-sheet .form-table td.row-label {
  background: #171717 !important;
  color: #ffffff !important;
  border-color: #2b2928 !important;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

@media print {
  #printStage,
  #printStage * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  #printStage .form-table th,
  #printStage .form-table td.row-label {
    background: #171717 !important;
    color: #ffffff !important;
  }
}


/* Reliable snapshot-based print/PDF output */
.print-export-sheet .section-rail {
  position: relative !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  overflow: hidden !important;
}

.print-export-sheet .print-rail-label {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center;
  color: #111;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1;
}

.print-export-sheet .section-rail.tall .print-rail-label {
  font-size: 18px;
}

.print-snapshot-stage {
  width: 8.14in !important;
  height: 10.64in !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  background: #fff !important;
}

.print-page-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

@media print {
  html,
  body {
    width: 8.5in !important;
    height: 11in !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
  }

  body > *:not(#printStage) {
    display: none !important;
  }

  #printStage.print-snapshot-stage {
    position: fixed !important;
    inset: 0 !important;
    width: 8.14in !important;
    height: 10.64in !important;
    margin: 0.18in auto !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    break-after: avoid !important;
    page-break-after: avoid !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  #printStage.print-snapshot-stage .print-page-image {
    display: block !important;
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
  }
}


/* Cleaner worksheet date presentation */
.work-date-display {
  min-height: 0;
  padding: 0;
  gap: 3px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #2b2928;
  font-size: 14px;
  font-weight: 500;
}

.work-date-display #activeDayLabel {
  font-weight: 600;
}

.print-export-sheet .work-date-display {
  min-height: 0 !important;
  padding: 0 !important;
  gap: 3px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

/* Use fixed print lines for manager notes to avoid raster/downscale distortion */
.print-manager-notes-area {
  position: relative;
  min-height: 86px;
  margin-top: 2px;
  overflow: hidden;
  background: #fff;
}

.print-manager-notes-lines {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  pointer-events: none;
}

.print-manager-notes-lines span {
  display: block;
  border-bottom: 1px solid #4a4745;
}

.print-manager-notes-text {
  position: relative;
  z-index: 1;
  padding: 3px 2px;
  color: #171717;
  font-size: 12px;
  line-height: 28px;
  white-space: pre-wrap;
}


/* Keep Manager Notes writing lines evenly spaced with breathing room at the bottom */
.manager-notes textarea {
  min-height: 92px;
  border-bottom: 0;
  background:
    linear-gradient(#494549, #494549) 0 27px / 100% 1px no-repeat,
    linear-gradient(#494549, #494549) 0 55px / 100% 1px no-repeat,
    linear-gradient(#494549, #494549) 0 83px / 100% 1px no-repeat;
  line-height: 28px;
}

/* Printable Manager Notes lines: never place the last rule on the bottom edge */
.print-manager-notes-area {
  min-height: 96px;
}

.print-manager-notes-lines {
  position: absolute;
  inset: 0;
  display: block;
}

.print-manager-notes-lines span {
  position: absolute;
  left: 0;
  right: 0;
  display: block;
  border: 0;
  border-top: 1px solid #4a4745;
}

.print-manager-notes-lines span:nth-child(1) {
  top: 28%;
}

.print-manager-notes-lines span:nth-child(2) {
  top: 56%;
}

.print-manager-notes-lines span:nth-child(3) {
  top: 84%;
}


/* Weekly schedule view + output alignment */
.output-actions {
  justify-content: space-between;
}

.output-actions-left,
.output-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.output-actions-right {
  margin-left: auto;
}

.schedule-view-button .output-button-svg {
  stroke: #df0038;
}

.schedule-dialog {
  width: min(1180px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .24);
}

.schedule-dialog::backdrop {
  background: rgba(20, 18, 18, .55);
  backdrop-filter: blur(3px);
}

.schedule-dialog-card {
  max-height: calc(100vh - 28px);
  padding: 24px;
  overflow: auto;
  border-top: 4px solid #df0038;
  border-radius: 7px;
  background: #fff;
}

.schedule-dialog-card h2 {
  margin: 2px 0 0;
  color: #111;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.schedule-dialog-subtitle {
  margin: 6px 0 0;
  color: #6a6561;
  font-size: 12px;
  font-weight: 600;
}

.schedule-week-meta {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.schedule-week-meta .schedule-dialog-subtitle,
.schedule-week-meta .schedule-week-number {
  margin: 0;
  color: #6a6561;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.schedule-week-divider {
  width: 1px;
  height: 13px;
  flex: 0 0 1px;
  background: #c8c3bf;
}

.schedule-summary {
  display: flex;
  gap: 8px;
  margin: 18px 0 14px;
}

.schedule-summary-chip {
  min-width: 116px;
  padding: 9px 12px;
  display: grid;
  gap: 2px;
  border: 1px solid #ded9d6;
  border-radius: 4px;
  background: #f8f7f6;
}

.schedule-summary-chip span {
  color: #77716d;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.schedule-summary-chip strong {
  color: #171717;
  font-size: 17px;
}

.schedule-sales-plan-chip {
  min-width: 156px;
}

.schedule-table-wrap {
  overflow-x: auto;
  border: 1px solid #282625;
  background: #fff;
}

.weekly-schedule-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  table-layout: fixed;
  color: #171717;
}

.weekly-schedule-table th,
.weekly-schedule-table td {
  padding: 9px 7px;
  border-right: 1px solid #bbb6b2;
  border-bottom: 1px solid #bbb6b2;
  vertical-align: middle;
  text-align: center;
  font-size: 10px;
  line-height: 1.25;
}

.weekly-schedule-table thead th {
  background: #171717;
  color: #fff;
  font-weight: 700;
}

.weekly-schedule-table thead th:first-child {
  width: 170px;
}

.weekly-schedule-table thead th strong,
.weekly-schedule-table thead th span {
  display: block;
}

.weekly-schedule-table thead th span {
  margin-top: 2px;
  color: #cfcac7;
  font-size: 8px;
  font-weight: 500;
}

.weekly-schedule-table tbody th {
  padding-left: 10px;
  background: #f5f3f2;
  color: #171717;
  text-align: left;
  font-size: 11px;
  font-weight: 650;
}

.weekly-schedule-table tr:last-child th,
.weekly-schedule-table tr:last-child td {
  border-bottom: 0;
}

.weekly-schedule-table th:last-child,
.weekly-schedule-table td:last-child {
  border-right: 0;
}

.weekly-schedule-table .schedule-total-column {
  width: 82px;
  font-weight: 700;
}

.weekly-schedule-table tbody .schedule-total-column {
  background: #faf9f8;
}

.weekly-schedule-table .schedule-total-column-split {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

.weekly-schedule-table .schedule-total-breakdown {
  width: 100%;
  display: grid;
  align-content: center;
}

.weekly-schedule-table .schedule-total-breakdown-section {
  min-width: 0;
  min-height: 22px;
  padding: 3px 1px;
  display: grid;
  place-items: center;
}

.weekly-schedule-table .schedule-total-breakdown-week {
  margin-top: 1px;
  padding-top: 4px;
  border-top: 1px solid rgba(23, 23, 23, .25);
}

.weekly-schedule-table .schedule-total-breakdown-value {
  display: block;
  color: currentColor;
  font: inherit;
  font-weight: 800;
  line-height: 1;
}

.weekly-schedule-table .schedule-off {
  color: #aaa4a0;
}

.weekly-schedule-table .schedule-shift-off,
.weekly-schedule-table .schedule-shift-off .schedule-shift-text {
  color: #aaa4a0;
  font-weight: 600;
}

/* Borrowed-store assignments stay visible but use a softer treatment so
   associates can immediately distinguish them from shifts at this store. */
.weekly-schedule-table .schedule-other-store-shift {
  color: #8d8884;
  background: #f1f1f1;
}

.weekly-schedule-table .schedule-other-store-shift:hover,
.weekly-schedule-table .schedule-other-store-shift:focus-visible {
  background: #e9e9e9;
}

.weekly-schedule-table .schedule-other-store-shift .schedule-other-store {
  color: #77726e;
  font-weight: 500;
}

.schedule-dialog-card:not(.schedule-print-card) .schedule-other-store-shift .schedule-shift-text,
.schedule-dialog-card:not(.schedule-print-card) .schedule-other-store-shift .schedule-other-store,
.schedule-dialog-card:not(.schedule-print-card) .schedule-other-store-shift .schedule-shift-start,
.schedule-dialog-card:not(.schedule-print-card) .schedule-other-store-shift .schedule-shift-end,
.schedule-dialog-card:not(.schedule-print-card) .schedule-other-store-shift .schedule-shift-separator {
  color: #77726e !important;
}

.schedule-empty {
  padding: 30px 18px !important;
  color: #706a66;
  font-size: 12px !important;
}

.schedule-hours-note {
  margin: 10px 0 0;
  color: #77716d;
  font-size: 10px;
  line-height: 1.35;
}

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

  .output-actions-left {
    flex: 1 1 auto;
  }

  .output-actions-right {
    flex: 0 0 auto;
  }

  .schedule-view-button {
    width: 100%;
  }

  .output-actions-right .output-button {
    flex: 0 0 auto;
    padding-inline: 10px;
  }

  .schedule-dialog-card {
    padding: 18px 14px;
  }

  .schedule-summary {
    flex-wrap: wrap;
  }
}

@media print {
  .schedule-dialog {
    display: none !important;
  }
}


/* Neutral black / white / gray palette — remove all warm/tan worksheet tones */
:root {
  --page-bg: #f4f4f4;
  --paper: #ffffff;
  --ink: #171717;
  --muted: #666666;
  --soft: #f2f2f2;
  --soft-2: #fafafa;
  --line: #1b1b1b;
  --accent: #df0038;
  --accent-soft: #f2f2f2;
  --brand-warm: #ffffff;
}

html,
body {
  background: #f4f4f4;
}

.section-rail {
  background: #ffffff;
  border-color: #d7d7d7;
  color: #171717;
}

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

.financial-content,
.customer-section,
.promotions-box {
  background: #ffffff;
}

.form-table td,
.form-table td input {
  background: #ffffff;
}

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

.secondary-button:hover,
.calendar-step:hover,
.today-button:hover,
.output-button:hover,
.store-selector-button:hover,
.store-search-result:hover,
.store-search-result:focus-visible,
.dayforce-help-button:hover {
  background: #f5f5f5;
}

.cloud-sync-button.cloud-connected,
.selected-store-card,
.dayforce-help-note {
  background: #f5f5f5;
}

.dayforce-file-card,
.schedule-summary-chip {
  background: #f7f7f7;
}

.weekly-schedule-table tbody th {
  background: #f3f3f3;
}

.weekly-schedule-table tbody .schedule-total-column {
  background: #fafafa;
}

.work-date-display,
.print-export-sheet .work-date-display {
  background: transparent !important;
}

/* Export/print must stay neutral too */
.print-export-sheet {
  background: #ffffff !important;
}

.print-export-sheet .section-rail {
  background: #ffffff !important;
  border-color: #d7d7d7 !important;
}

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

.print-export-sheet .financial-content,
.print-export-sheet .customer-section,
.print-export-sheet .promotions-box {
  background: #ffffff !important;
}

.print-export-sheet .form-table td,
.print-export-sheet .form-table td input {
  background: #ffffff !important;
}

.print-export-sheet .form-table th,
.print-export-sheet .form-table td.row-label {
  background: #171717 !important;
  color: #ffffff !important;
}

@media print {
  html,
  body,
  #printStage,
  #printStage .print-page-image {
    background: #ffffff !important;
  }
}


/* Fit the full weekly schedule without horizontal scrolling */
.schedule-table-wrap {
  overflow-x: hidden;
}

.weekly-schedule-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.weekly-schedule-table thead th:first-child {
  width: 15%;
}

.weekly-schedule-table thead th:nth-child(n+2):nth-child(-n+8) {
  width: 11%;
}

.weekly-schedule-table .schedule-total-column {
  width: 8%;
}

.weekly-schedule-table th,
.weekly-schedule-table td {
  padding: 7px 3px;
  font-size: 8.5px;
  line-height: 1.15;
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
}

.weekly-schedule-table tbody th {
  padding-left: 7px;
  font-size: 9.5px;
}

.weekly-schedule-table thead th {
  font-size: 8.5px;
}

.weekly-schedule-table thead th span {
  font-size: 7.5px;
}

.weekly-schedule-table .schedule-total-column {
  font-size: 9px;
}

@media (max-width: 900px) {
  .schedule-dialog {
    width: calc(100vw - 18px);
  }

  .schedule-dialog-card {
    padding: 18px 12px;
  }

  .weekly-schedule-table th,
  .weekly-schedule-table td {
    padding: 6px 2px;
    font-size: 8px;
  }

  .weekly-schedule-table tbody th {
    padding-left: 5px;
    font-size: 8.5px;
  }

  .weekly-schedule-table thead th {
    font-size: 8px;
  }

  .weekly-schedule-table thead th span {
    font-size: 7px;
  }
}


/* Respect semantic hidden state even when component styles define display */
[hidden] {
  display: none !important;
}


/* Weekly schedule print controls */
.schedule-dialog-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.schedule-print-button {
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #c9c9c9;
  border-radius: 4px;
  background: #fff;
  color: #171717;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.schedule-print-button:hover {
  background: #f5f5f5;
  border-color: #8f8f8f;
}

.schedule-print-button:disabled {
  opacity: .55;
  cursor: wait;
}

.schedule-print-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #df0038;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Off-screen schedule capture uses a stable desktop/landscape width */
.schedule-capture-stage {
  position: fixed;
  top: 0;
  left: -100000px;
  z-index: -1;
  width: 1240px;
  background: #fff;
}

.schedule-print-card {
  width: 1240px !important;
  max-width: none !important;
  max-height: none !important;
  padding: 22px !important;
  overflow: visible !important;
  border-top: 4px solid #df0038 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
}

.schedule-print-card .schedule-table-wrap {
  overflow: visible !important;
}

.schedule-print-card .weekly-schedule-table {
  width: 100% !important;
  min-width: 0 !important;
}

.schedule-print-card .schedule-summary {
  margin-top: 14px !important;
  margin-bottom: 12px !important;
}

.schedule-print-card .schedule-hours-note {
  margin-bottom: 0 !important;
}

/* One landscape Letter page */
@media print {
  body.printing-schedule {
    width: 11in !important;
    height: 8.5in !important;
    overflow: hidden !important;
  }

  #printStage.schedule-print-snapshot-stage {
    position: fixed !important;
    inset: 0 !important;
    width: 10.64in !important;
    height: 8.14in !important;
    margin: 0.18in auto !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #fff !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  #printStage.schedule-print-snapshot-stage .schedule-print-page-image {
    display: block !important;
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
  }
}

@media (max-width: 580px) {
  .schedule-dialog-actions {
    gap: 6px;
  }

  .schedule-print-button {
    padding-inline: 9px;
    font-size: 10px;
  }
}


/* Compact weekly schedule print control */
.schedule-dialog-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.schedule-print-button {
  width: auto !important;
  min-width: 0 !important;
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 11px !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  border: 1px solid #c9c9c9 !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  color: #171717 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.schedule-print-button svg {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  flex: 0 0 14px !important;
  display: block !important;
}

.schedule-dialog-actions .dialog-close {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  flex: 0 0 34px !important;
}

@media (max-width: 580px) {
  .schedule-print-button {
    height: 32px !important;
    min-height: 32px !important;
    padding-inline: 9px !important;
    font-size: 10px !important;
  }

  .schedule-print-button svg {
    width: 13px !important;
    height: 13px !important;
    min-width: 13px !important;
    min-height: 13px !important;
    max-width: 13px !important;
    max-height: 13px !important;
    flex-basis: 13px !important;
  }

  .schedule-dialog-actions .dialog-close {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    flex-basis: 32px !important;
  }
}


/* Prevent Android/Chrome from duplicating the landscape schedule page */
@media print {
  body.printing-schedule {
    width: 10.64in !important;
    height: 8.14in !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  body.printing-schedule #printStage.schedule-print-snapshot-stage {
    position: static !important;
    inset: auto !important;
    width: 10.64in !important;
    height: 8.14in !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    break-before: avoid !important;
    break-after: avoid !important;
    break-inside: avoid !important;
    page-break-before: avoid !important;
    page-break-after: avoid !important;
    page-break-inside: avoid !important;
  }

  body.printing-schedule #printStage.schedule-print-snapshot-stage .schedule-print-page-image {
    display: block !important;
    max-width: 10.64in !important;
    max-height: 8.14in !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
  }
}


/* Configured-store dropdown */
.store-directory-label {
  display: block;
  margin: 10px 0 6px;
  color: #3f3a37;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.store-select-wrap {
  position: relative;
}

.store-select-wrap select {
  width: 100%;
  min-height: 44px;
  padding: 8px 38px 8px 11px;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  outline: 0;
  background: #ffffff;
  color: #171717;
  font: inherit;
  font-size: 13px;
  appearance: none;
  cursor: pointer;
}

.store-select-wrap select:focus {
  border-color: #df0038;
  box-shadow: 0 0 0 2px rgba(223, 0, 56, .1);
}

.store-select-chevron {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  color: transparent;
  font-size: 0;
  line-height: 0;
  pointer-events: none;
}

.store-select-chevron::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 3px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #6a6460;
  border-bottom: 1.5px solid #6a6460;
  transform: rotate(45deg);
}

.store-select-wrap:focus-within .store-select-chevron::before {
  border-color: #2f2b29;
}

.store-directory-status {
  min-height: 16px;
  margin-top: 5px;
  color: #777;
  font-size: 10px;
}

.store-search-block .selected-store-card {
  margin-top: 10px;
}


/* Date header: single continuous value with natural punctuation spacing */
.work-date-display {
  display: inline;
  gap: 0 !important;
  white-space: nowrap;
  letter-spacing: normal;
}

.print-export-sheet .work-date-display {
  display: inline !important;
  gap: 0 !important;
  white-space: nowrap !important;
  letter-spacing: normal !important;
}


/* Live digital task completion counter */
.tasks-heading {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.tasks-heading-copy {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.task-progress {
  flex: 0 0 auto;
  min-width: 104px;
  padding: 6px 9px;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  background: #ffffff;
  color: #4f4f4f;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.task-progress.all-complete {
  border-color: #171717;
  background: #171717;
  color: #ffffff;
}

@media (max-width: 580px) {
  .tasks-heading {
    align-items: flex-start;
  }

  .tasks-heading-copy {
    display: block;
  }

  .task-progress {
    min-width: 92px;
    padding-inline: 7px;
    font-size: 9px;
  }
}

@media print {
  .screen-only {
    display: none !important;
  }
}

.print-export-sheet .screen-only {
  display: none !important;
}


/* Multi-select Zone picker */
.zone-cell {
  padding: 0 !important;
  background: #ffffff !important;
}

.zone-cell-button {
  width: 100%;
  min-height: 31px;
  padding: 3px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #171717;
  font: inherit;
  cursor: pointer;
}

.zone-cell-button:hover,
.zone-cell-button:focus-visible {
  background: #f5f5f5;
  box-shadow: inset 0 0 0 2px #df0038;
}

/* Associate names, shifts, and breaks are display-only because Dayforce owns the schedule. */
.zone-cell-button.schedule-source-readonly:disabled {
  opacity: 1;
  cursor: default;
  pointer-events: none;
}

.zone-cell-button.schedule-source-readonly:disabled:hover,
.zone-cell-button.schedule-source-readonly:disabled:focus-visible {
  background: transparent;
  box-shadow: none;
}

.zone-cell-value {
  min-width: 0;
  overflow: hidden;
  color: #171717;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.08;
  text-align: center;
  overflow-wrap: anywhere;
  white-space: normal;
}

.zone-cell-chevron {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 0;
  line-height: 0;
}

.zone-cell-chevron::before {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1.5px solid #777777;
  border-bottom: 1.5px solid #777777;
  transform: translateY(-1px) rotate(45deg);
}

.zone-cell-button:hover .zone-cell-chevron::before,
.zone-cell-button:focus-visible .zone-cell-chevron::before {
  border-color: #333333;
}

.zone-dialog {
  width: min(480px, calc(100vw - 28px));
}

.zone-dialog-card {
  padding-bottom: 18px;
}

.zone-dialog-subtitle {
  margin: 5px 0 0;
  color: #666;
  font-size: 12px;
  font-weight: 600;
}

.zone-picker-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 18px;
}

.zone-picker-option {
  min-height: 48px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
}

.zone-picker-option:hover {
  background: #f5f5f5;
}

.zone-picker-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 18px;
  accent-color: #df0038;
}

.zone-picker-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.zone-picker-copy strong {
  color: #171717;
  font-size: 11px;
  line-height: 1.1;
}

.zone-picker-copy small {
  color: #777;
  font-size: 9px;
  font-weight: 700;
}

.zone-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.zone-dialog-actions .zone-done-button {
  width: auto;
  min-width: 112px;
  margin: 0;
  padding-inline: 18px;
}

.zone-clear-button {
  min-width: 72px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  background: #ffffff;
  color: #333;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.zone-clear-button:hover {
  background: #f5f5f5;
}

.print-export-sheet .zone-cell-button {
  min-height: 31px !important;
  padding: 3px 3px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  cursor: default !important;
}

.print-export-sheet .zone-cell-value {
  font-size: 9px !important;
  line-height: 1.05 !important;
}

@media (max-width: 580px) {
  .zone-picker-list {
    grid-template-columns: 1fr;
  }

  .zone-cell-value {
    font-size: 9px;
  }
}

@media print {
  .zone-dialog {
    display: none !important;
  }
}


/* Printed/PDF Zone cells: plain text only; blank when unassigned */
.print-export-sheet .print-zone-value {
  width: 100%;
  min-height: 31px;
  padding: 4px 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #171717;
  background: #ffffff;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.05;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}


/* Keep preset tasks first and group user-added tasks underneath */
.tasks-grid {
  display: block;
}

.task-group-block {
  width: 100%;
}

.task-subgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 26px;
}

.required-task-grid {
  margin-top: 10px;
}

.custom-task-block {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #d5d5d5;
}

.additional-tasks-heading {
  margin-bottom: 9px;
  color: #555;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.custom-task-grid {
  gap: 9px 26px;
}

.print-export-sheet .task-subgrid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px 22px !important;
}

.print-export-sheet .custom-task-block {
  margin-top: 12px !important;
  padding-top: 10px !important;
}

.print-export-sheet .additional-tasks-heading {
  margin-bottom: 7px !important;
  font-size: 9px !important;
}

@media (max-width: 580px) {
  .task-subgrid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .custom-task-block {
    margin-top: 14px;
    padding-top: 12px;
  }
}


/* Match Coach subtasks to the Store Fulfillment indentation */
.coach-group {
  padding-left: 27px;
}

.coach-group .subtask-check {
  width: auto;
  max-width: 100%;
}

.coach-group .subtask-check + .subtask-check {
  margin-top: 3px;
}


/* Keep print/PDF Tasks section aligned with the live 12-slot layout */
.print-export-sheet .tasks-grid {
  display: block !important;
  margin-top: 9px !important;
}

.print-export-sheet .task-group-block {
  width: 100% !important;
}

.print-export-sheet .task-subgrid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px 20px !important;
}

.print-export-sheet .required-task-grid {
  margin-top: 7px !important;
}

.print-export-sheet .custom-task-block {
  margin-top: 10px !important;
  padding-top: 8px !important;
  border-top: 1px solid #d5d5d5 !important;
}

.print-export-sheet .additional-tasks-heading {
  margin-bottom: 6px !important;
  color: #555 !important;
  font-size: 8.5px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

.print-export-sheet .task-slot {
  min-height: 27px !important;
}

.print-export-sheet .task-check,
.print-export-sheet .subtask-check {
  min-height: 16px !important;
  gap: 5px !important;
}

.print-export-sheet .task-check input[type="checkbox"],
.print-export-sheet .task-slot.custom > input[type="checkbox"] {
  width: 15px !important;
  height: 15px !important;
  flex: 0 0 15px !important;
}

.print-export-sheet .subtask-check input[type="checkbox"] {
  width: 10px !important;
  height: 10px !important;
  flex: 0 0 10px !important;
}

.print-export-sheet .task-check span,
.print-export-sheet .task-slot.custom input[type="text"] {
  font-size: 10px !important;
  line-height: 1.08 !important;
}

.print-export-sheet .subtask-check span {
  font-size: 9px !important;
  line-height: 1.05 !important;
}

.print-export-sheet .coach-group {
  padding-left: 22px !important;
}

.print-export-sheet .coach-group .subtask-check {
  width: auto !important;
  max-width: 100% !important;
}

.print-export-sheet .coach-group .subtask-check + .subtask-check {
  margin-top: 2px !important;
}

.print-export-sheet .fulfillment-group .task-check {
  margin-bottom: 1px !important;
}

.print-export-sheet .fulfillment-times {
  padding-left: 22px !important;
  gap: 2px 7px !important;
}

.print-export-sheet .fulfillment-times .subtask-check {
  width: auto !important;
}

.print-export-sheet .task-slot.custom {
  gap: 5px !important;
}

.print-export-sheet .task-slot.custom input[type="text"] {
  padding: 1px 0 2px !important;
}

.print-export-sheet .tasks-heading {
  align-items: center !important;
}

.print-export-sheet .tasks-heading-copy {
  display: flex !important;
  align-items: baseline !important;
  gap: 5px !important;
}

.print-export-sheet .tasks-section {
  padding-top: 13px !important;
  padding-bottom: 14px !important;
}


/* Tighten preset task spacing while keeping grouped subtasks indented */
.required-task-grid {
  row-gap: 4px;
}

.required-task-grid > .task-slot {
  min-height: 28px;
}

.required-task-grid > .coach-group {
  padding-top: 0;
  padding-bottom: 0;
}

.required-task-grid > .fulfillment-group {
  padding-top: 0;
  padding-bottom: 0;
}

.print-export-sheet .required-task-grid {
  row-gap: 2px !important;
}

.print-export-sheet .required-task-grid > .task-slot {
  min-height: 23px !important;
}

.print-export-sheet .required-task-grid > .coach-group,
.print-export-sheet .required-task-grid > .fulfillment-group {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

@media (max-width: 580px) {
  .required-task-grid {
    row-gap: 4px;
  }

  .required-task-grid > .task-slot {
    min-height: 30px;
  }
}


/* Mobile financial tables: preserve readable columns instead of squeezing them */
@media (max-width: 640px) {
  .results-section {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .results-section .section-rail {
    font-size: 10px;
    letter-spacing: .02em;
  }

  .results-section .financial-content {
    padding: 12px 7px 14px;
    overflow: hidden;
  }

  .results-section .results-title-row {
    display: block;
    margin-bottom: 9px;
  }

  .results-section .spread-field {
    margin-top: 7px;
    justify-content: flex-start;
  }

  .results-section .spread-field input {
    width: 108px;
  }

  .results-section .table-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .results-title-row + .table-scroll .results-table {
    width: 660px;
    min-width: 660px;
    table-layout: fixed;
  }

  .power-title + .table-scroll .results-table {
    width: 760px;
    min-width: 760px;
    table-layout: fixed;
  }

  .results-section .results-table th {
    padding: 7px 4px;
    font-size: 9.5px;
    line-height: 1.08;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
  }

  .results-section .results-table td {
    height: 34px;
  }

  .results-section .results-table input {
    min-height: 33px;
    padding: 4px 5px;
    font-size: 11px;
  }

  .results-section .results-table th:first-child,
  .results-section .results-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
  }

  .results-section .results-table thead th:first-child {
    z-index: 5;
    background: #171717;
  }

  .results-section .results-table td.row-label {
    z-index: 4;
    background: #171717;
    color: #fff;
    font-size: 11px;
  }

  .results-section .power-title {
    margin-top: 16px;
  }

  .results-section .financial-content h3 {
    font-size: 17px;
  }

  .results-section .financial-content p {
    font-size: 10.5px;
    line-height: 1.3;
  }

  .results-section .manager-notes {
    margin-top: 16px;
  }

  .results-section .manager-notes label {
    font-size: 11px;
  }
}


/* Full phone layout — keep the worksheet readable without desktop compression */
@media screen and (max-width: 640px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 154px;
    column-gap: 10px;
    row-gap: 12px;
    padding: 13px 12px 11px;
  }

  .header-title-block {
    min-width: 0;
  }

  .app-header h1 {
    max-width: 270px;
    font-size: 21px;
    line-height: 1.08;
  }

  .eyebrow {
    font-size: 9px;
    letter-spacing: .14em;
  }

  .save-status {
    max-width: 100%;
    margin-top: 6px;
    font-size: 9.5px;
    line-height: 1.25;
    white-space: normal;
  }

  .header-store-selector {
    width: 154px;
    min-width: 0;
  }

  .store-selector-button {
    width: 154px;
    min-width: 154px;
    max-width: 154px;
    padding: 7px 8px 8px 10px;
    gap: 6px;
  }

  .store-selector-copy strong {
    font-size: 12.5px;
  }

  .store-selector-copy small {
    font-size: 8.5px;
  }

  .header-actions {
    grid-column: 1 / -1;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .calendar-controls {
    width: 100%;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 7px;
  }

  .calendar-step {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
  }

  .week-picker {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1px 7px;
    padding: 5px 9px 6px;
  }

  .week-picker input {
    width: 108px;
    font-size: 11.5px;
  }

  .week-picker small {
    font-size: 8px;
  }

  .today-button {
    display: none;
  }

  .import-dayforce-group {
    width: 100%;
    display: flex;
  }

  .import-dayforce-group .import-button {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 44px;
  }

  .dayforce-help-button {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    flex: 0 0 44px;
  }

  .output-actions {
    padding: 8px 10px;
    gap: 7px;
  }

  .output-actions-left {
    flex: 1 1 auto;
    min-width: 0;
  }

  .output-actions-right {
    flex: 0 0 auto;
    gap: 6px;
  }

  .output-button {
    min-height: 42px;
    padding-inline: 10px;
    font-size: 11px;
  }

  .schedule-view-button {
    width: 100%;
  }

  .day-tabs {
    top: 0;
    justify-content: flex-start;
    gap: 6px;
    padding: 8px 8px 9px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .day-tabs::-webkit-scrollbar {
    display: none;
  }

  .day-tab {
    min-width: 94px;
    min-height: 50px;
    padding: 5px 10px;
    scroll-snap-align: start;
  }

  .day-tab-name {
    font-size: 12px;
  }

  .day-tab-date {
    font-size: 9px;
  }

  .app-shell {
    width: 100%;
    padding: 12px 0 28px;
  }

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

  .sheet-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    padding: 17px 14px 16px;
  }

  .sheet-top h2 {
    margin-bottom: 9px;
    font-size: 21px;
    line-height: 1.08;
  }

  .date-line {
    gap: 5px;
    font-size: 12.5px;
    line-height: 1.25;
  }

  .work-date-display {
    font-size: 12.5px;
  }

  .brand-wordmark {
    margin-top: 0;
    justify-items: end;
    align-self: start;
  }

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

  .brand-wordmark small {
    padding-right: 2px;
    font-size: 15px;
  }

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

  .section-rail {
    font-size: 10px;
    letter-spacing: .04em;
  }

  .section-rail::before {
    width: 3px;
  }

  .section-content {
    padding: 11px 8px 13px;
  }

  .section-help {
    margin-bottom: 9px;
    font-size: 10.5px;
    line-height: 1.35;
  }

  .talent-layout {
    display: block;
  }

  .talent-layout > .table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .talent-table {
    width: 720px;
    min-width: 720px;
    table-layout: fixed;
  }

  .talent-table th {
    padding: 7px 4px;
    font-size: 9.5px;
    line-height: 1.05;
  }

  .talent-table td {
    height: 34px;
  }

  .talent-table input {
    min-height: 33px;
    padding: 4px 5px;
    font-size: 11px;
  }

  .talent-table th:nth-child(1) { width: 160px; }
  .talent-table th:nth-child(2) { width: 125px; }
  .talent-table th:nth-child(3) { width: 135px; }
  .talent-table th:nth-child(4) { width: 95px; }
  .talent-table th:nth-child(5) { width: 80px; }
  .talent-table th:nth-child(6) { width: 125px; }

  .talent-table th:first-child,
  .talent-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
  }

  .talent-table thead th:first-child {
    z-index: 5;
    background: #171717;
  }

  .talent-table td:first-child {
    background: #ffffff;
  }

  .talent-table td:first-child input {
    background: #ffffff;
  }

  .zone-cell-button {
    min-height: 33px;
  }

  .zone-list {
    margin-top: 11px;
    padding: 10px 3px 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 12px;
    font-size: 10px;
    line-height: 1.35;
  }

  .zone-list strong {
    grid-column: 1 / -1;
    margin-bottom: 2px;
  }

  .customer-section {
    display: block;
    padding: 16px 14px 17px;
  }

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

  .customer-copy p {
    font-size: 10.5px;
    line-height: 1.35;
  }

  .customer-copy textarea {
    min-height: 96px;
  }

  .promotions-box {
    margin-top: 18px;
    padding: 11px;
  }

  .promotions-box h3 {
    font-size: 17px;
  }

  .promotions-box textarea {
    min-height: 116px;
  }

  .tasks-section {
    padding: 15px 14px 17px;
  }

  .tasks-heading {
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }

  .tasks-heading-copy {
    min-width: 0;
    flex: 1 1 auto;
    display: block;
  }

  .tasks-heading-copy p {
    margin-top: 4px;
    font-size: 10px;
    line-height: 1.3;
  }

  .task-progress {
    min-width: 88px;
    padding: 6px 7px;
    font-size: 8.5px;
  }

  .task-subgrid {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .required-task-grid > .task-slot {
    min-height: 31px;
  }

  .task-check span,
  .task-slot.custom input[type="text"] {
    font-size: 11.5px;
  }

  .coach-group,
  .fulfillment-times {
    padding-left: 24px;
  }

  .subtask-check span {
    font-size: 10.5px;
  }

  .custom-task-block {
    margin-top: 13px;
    padding-top: 11px;
  }

  .additional-tasks-heading {
    margin-bottom: 7px;
    font-size: 9px;
  }

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

  .results-section .financial-content {
    padding: 12px 7px 14px;
  }

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

  .cloud-dialog,
  .zone-dialog,
  .dayforce-help-dialog {
    width: calc(100vw - 16px);
  }

  .cloud-dialog-card,
  .zone-dialog-card {
    padding: 18px 14px;
  }

  .zone-picker-list {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 430px) {
  .app-header {
    grid-template-columns: minmax(0, 1fr) 138px;
    padding-inline: 10px;
  }

  .app-header h1 {
    font-size: 19px;
  }

  .header-store-selector,
  .store-selector-button {
    width: 138px;
    min-width: 138px;
    max-width: 138px;
  }

  .store-selector-copy small {
    display: none;
  }

  .output-button {
    padding-inline: 8px;
    font-size: 10px;
  }

  .sheet-top h2 {
    font-size: 19px;
  }

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

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


/* Keep Coach In/Out visually attached to Review Spark like Store Fulfillment subtasks */
.review-coach-group {
  min-width: 0;
  display: block;
}

.review-coach-group .review-main-task {
  min-height: 0;
}

.review-coach-group .review-main-task .task-check {
  margin-bottom: 1px;
}

.review-coach-group .review-coach-subtasks {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 0;
  padding-left: 27px;
  padding-bottom: 0;
}

.review-coach-group .review-coach-subtasks .subtask-check {
  width: auto;
  max-width: 100%;
  min-height: 18px;
}

.review-coach-group .review-coach-subtasks .subtask-check + .subtask-check {
  margin-top: 1px;
}

.required-task-grid > .review-coach-group {
  align-self: start;
}

/* Add breathing room only after the grouped Review/Coach block */
.required-task-grid > .review-coach-group + .task-slot,
.required-task-grid > .review-coach-group + .task-group {
  margin-top: 5px;
}

.print-export-sheet .review-coach-group .review-main-task {
  min-height: 0 !important;
}

.print-export-sheet .review-coach-group .review-main-task .task-check {
  margin-bottom: 1px !important;
}

.print-export-sheet .review-coach-group .review-coach-subtasks {
  margin-top: 0 !important;
  padding-left: 22px !important;
  padding-bottom: 0 !important;
}

.print-export-sheet .review-coach-group .review-coach-subtasks .subtask-check {
  width: auto !important;
  max-width: 100% !important;
}

.print-export-sheet .review-coach-group .review-coach-subtasks .subtask-check + .subtask-check {
  margin-top: 1px !important;
}

@media screen and (max-width: 640px) {
  .review-coach-group .review-coach-subtasks {
    padding-left: 24px;
  }

  .review-coach-group .review-coach-subtasks .subtask-check span {
    font-size: 10.5px;
  }
}


/* Live worksheet only: automatically calculated prior-results variance status */
#worksheet #priorWeekRows td.variance-positive input.variance-auto-value {
  background: #e6f4ea;
  color: #137333;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px #9fd4ad;
}

#worksheet #priorWeekRows td.variance-negative input.variance-auto-value {
  background: #fce8e6;
  color: #b3261e;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px #e6aaa5;
}

#worksheet #priorWeekRows input.variance-auto-value {
  cursor: default;
}


/* Dayforce associate picker for Name cells */
.name-cell-button {
  justify-content: space-between;
  padding: 4px 6px;
}

.name-cell-value {
  flex: 1 1 auto;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.name-picker-list {
  max-height: min(430px, 58vh);
  overflow-y: auto;
  align-content: start;
}

.name-picker-option input[type="radio"] {
  accent-color: #df0038;
}

.name-picker-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px;
  border: 1px dashed #cccccc;
  border-radius: 4px;
  color: #666666;
  font-size: 11px;
  text-align: center;
}

.print-export-sheet .print-name-value {
  width: 100%;
  min-height: 31px;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  color: #171717;
  background: #ffffff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.05;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}

@media (max-width: 580px) {
  .name-cell-value {
    font-size: 11px;
  }
}


/* Weekly associate picker + shift editor */
.name-custom-field {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
}

.name-custom-field > span,
.shift-time-fields label > span {
  color: #333333;
  font-size: 11px;
  font-weight: 700;
}

.name-custom-field input,
.shift-time-fields input {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  outline: 0;
  background: #ffffff;
  color: #171717;
  font: inherit;
  font-size: 13px;
}

.name-custom-field input:focus,
.shift-time-fields input:focus {
  border-color: #df0038;
  box-shadow: 0 0 0 1px #df0038;
}

.name-custom-field small {
  color: #777777;
  font-size: 9.5px;
  line-height: 1.25;
}

.name-picker-option .zone-picker-copy {
  display: block;
}

.name-picker-option .zone-picker-copy strong {
  font-size: 12px;
}

.shift-cell-button {
  justify-content: space-between;
  padding: 4px 5px;
}

.shift-cell-value {
  flex: 1 1 auto;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.08;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shift-time-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 10px;
}

.shift-time-fields label {
  display: grid;
  gap: 6px;
}

.shift-other-store-field {
  display: grid;
  gap: 6px;
  margin: 0 0 10px;
}

.shift-other-store-field[hidden] {
  display: none !important;
}

.shift-other-store-field > span {
  color: #333333;
  font-size: 11px;
  font-weight: 700;
}

.shift-other-store-control {
  min-height: 42px;
  display: flex;
  align-items: center;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  background: #f3f3f3;
  overflow: hidden;
}

.shift-other-store-control > span {
  align-self: stretch;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-right: 1px solid #cfcfcf;
  color: #666666;
  background: #ebebeb;
  font-size: 11px;
  font-weight: 700;
}

.shift-other-store-control input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0 11px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #171717;
  font: 650 13px/1 "Inter", Arial, sans-serif;
}

.shift-other-store-control:focus-within {
  border-color: #df0038;
  box-shadow: 0 0 0 1px #df0038;
}

.shift-other-store-field small {
  color: #777777;
  font-size: 9.5px;
  line-height: 1.3;
}

.shift-preview {
  min-height: 38px;
  margin: 0 0 18px;
  padding: 9px 10px;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  background: #f7f7f7;
  color: #333333;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
}

.shift-preview:empty {
  display: none;
}

.shift-preview-error {
  border-color: #e6aaa5;
  background: #fce8e6;
  color: #b3261e;
}

.print-export-sheet .print-shift-value {
  width: 100%;
  min-height: 31px;
  padding: 4px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #171717;
  background: #ffffff;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.05;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 580px) {
  .shift-time-fields {
    grid-template-columns: 1fr;
  }

  .name-picker-list {
    max-height: 42vh;
  }

  .shift-cell-value {
    font-size: 9.5px;
  }
}

@media print {
  .name-dialog,
  .shift-dialog {
    display: none !important;
  }
}

/* custom associate split-field layout */


/* Split custom associate name fields */
.name-custom-section {
  display: grid;
  gap: 7px;
  margin: 0 0 18px;
}

.name-custom-heading {
  color: #333333;
  font-size: 11px;
  font-weight: 700;
}

.name-custom-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.name-custom-section .name-custom-field {
  margin: 0;
}

.name-custom-section .name-custom-field input {
  min-width: 0;
}

.name-custom-help {
  color: #777777;
  font-size: 9.5px;
  line-height: 1.25;
}

/* Shift time entry with 15-minute increment controls */
.shift-time-control {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: stretch;
  gap: 4px;
}

.shift-time-control input {
  min-width: 0;
  text-align: center;
}

.shift-step-button {
  min-width: 34px;
  min-height: 42px;
  padding: 0;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  background: #ffffff;
  color: #444444;
  font: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.shift-step-button:hover,
.shift-step-button:focus-visible {
  border-color: #df0038;
  color: #df0038;
  outline: 0;
  box-shadow: inset 0 0 0 1px #df0038;
}

.shift-step-button:active {
  background: #f5f5f5;
}

@media (max-width: 580px) {
  .name-custom-fields {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .shift-time-control {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
  }

  .shift-step-button {
    min-width: 32px;
  }
}


/* Custom associate first/last fields */
.name-custom-section {
  margin: 0 0 18px;
}

.name-custom-heading {
  display: block;
  margin-bottom: 7px;
  color: #333333;
  font-size: 11px;
  font-weight: 700;
}

.name-custom-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.name-custom-fields .name-custom-field {
  margin: 0;
}

.name-custom-help {
  display: block;
  margin-top: 6px;
  color: #777777;
  font-size: 9.5px;
  line-height: 1.25;
}

/* 15-minute shift time steppers */
.shift-time-control {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: stretch;
}

.shift-time-control input {
  min-width: 0;
  border-radius: 0;
  text-align: center;
}

.shift-step-button {
  min-width: 36px;
  min-height: 42px;
  padding: 0;
  border: 1px solid #cfcfcf;
  background: #f7f7f7;
  color: #333333;
  font: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.shift-step-button:first-child {
  border-radius: 4px 0 0 4px;
  border-right: 0;
}

.shift-step-button:last-child {
  border-radius: 0 4px 4px 0;
  border-left: 0;
}

.shift-step-button:hover,
.shift-step-button:focus-visible {
  background: #eeeeee;
  color: #df0038;
  outline: 0;
}

.shift-step-button:active {
  background: #e3e3e3;
}


/* Print/PDF output: show plain worksheet values, never interactive controls */
.print-export-sheet .print-control-value {
  display: inline-flex;
  width: 100%;
  min-height: 31px;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: transparent;
  color: #171717;
  font: inherit;
  line-height: 1.05;
  text-align: center;
}

.print-export-sheet button,
.print-export-sheet select,
.print-export-sheet .zone-cell-chevron,
.print-export-sheet .shift-step-button,
.print-export-sheet .dialog-close,
.print-export-sheet .zone-dialog-actions {
  display: none !important;
}


/* Signed-in store rename controls */
.cloud-rename-block {
  margin-top: 16px;
  padding-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  border-top: 1px solid #e1dcda;
}

.cloud-rename-block[hidden] {
  display: none !important;
}

.cloud-rename-block label {
  display: grid;
  gap: 6px;
}

.cloud-rename-block label > span {
  color: #3f3a37;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cloud-rename-block input {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #cfc9c5;
  border-radius: 4px;
  outline: 0;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 14px;
}

.cloud-rename-block input:focus {
  border-color: #df0038;
  box-shadow: 0 0 0 2px rgba(223, 0, 56, .1);
}

.cloud-rename-button {
  width: auto;
  min-width: 116px;
  margin-top: 0;
  padding-inline: 14px;
}

.cloud-rename-button:disabled {
  opacity: .6;
  cursor: wait;
}

@media (max-width: 580px) {
  .cloud-rename-block {
    grid-template-columns: 1fr;
  }

  .cloud-rename-button {
    width: 100%;
  }
}


/* Cleaner worksheet dropdown indicators */
.name-cell-button,
.shift-cell-button,
.zone-cell-button {
  gap: 5px;
}

.name-cell-button .zone-cell-chevron,
.shift-cell-button .zone-cell-chevron,
.zone-cell-button .zone-cell-chevron {
  margin-left: 2px;
  opacity: .8;
}

.name-cell-button:hover .zone-cell-chevron,
.shift-cell-button:hover .zone-cell-chevron,
.zone-cell-button:hover .zone-cell-chevron,
.name-cell-button:focus-visible .zone-cell-chevron,
.shift-cell-button:focus-visible .zone-cell-chevron,
.zone-cell-button:focus-visible .zone-cell-chevron {
  opacity: 1;
}


/* Center worksheet numeric/result entry text */
.results-table input,
.results-table td:not(.row-label) {
  text-align: center;
}

.talent-table td:nth-child(5) input,
.talent-table td:nth-child(6) input {
  text-align: center;
}

.print-export-sheet .results-table input,
.print-export-sheet .results-table td:not(.row-label),
.print-export-sheet .talent-table td:nth-child(5) input,
.print-export-sheet .talent-table td:nth-child(6) input {
  text-align: center !important;
}


/* Seven-page weekly worksheet printing */
.weekly-print-snapshot-stage {
  width: 8.14in !important;
  background: #ffffff !important;
}

.weekly-print-page {
  width: 8.14in;
  height: 10.64in;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #ffffff;
}

.weekly-print-page .print-page-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

@media print {
  html:has(body.printing-week),
  body.printing-week {
    width: 8.14in !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #ffffff !important;
  }

  body.printing-week #printStage.weekly-print-snapshot-stage {
    position: static !important;
    inset: auto !important;
    left: auto !important;
    top: auto !important;
    z-index: auto !important;
    width: 8.14in !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    overflow: visible !important;
    background: #ffffff !important;
  }

  body.printing-week #printStage .weekly-print-page {
    width: 8.14in !important;
    height: 10.64in !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    break-after: page !important;
    page-break-after: always !important;
  }

  body.printing-week #printStage .weekly-print-page:last-child {
    break-after: auto !important;
    page-break-after: auto !important;
  }

  body.printing-week #printStage .weekly-print-page .print-page-image {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
  }
}


/* Larger weekly print/PDF worksheet — match the original paper scale more closely */
.print-export-sheet .sheet-top {
  padding-top: 18px !important;
  padding-bottom: 12px !important;
}

.print-export-sheet .section-content {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.print-export-sheet .form-table td {
  height: 29px !important;
}

.print-export-sheet .form-table input,
.print-export-sheet .print-name-value,
.print-export-sheet .print-shift-value,
.print-export-sheet .print-zone-value,
.print-export-sheet .print-control-value {
  min-height: 28px !important;
}

.print-export-sheet .customer-section {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

.print-export-sheet textarea {
  min-height: 72px !important;
}

.print-export-sheet .tasks-section {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.print-export-sheet .required-task-grid > .task-slot {
  min-height: 21px !important;
}

.print-export-sheet .power-title {
  margin-top: 8px !important;
}

.print-export-sheet .manager-notes {
  margin-top: 10px !important;
}

.print-export-sheet .print-manager-notes-area {
  min-height: 72px !important;
}

.weekly-print-snapshot-stage,
.weekly-print-page {
  width: 8.32in !important;
}

.weekly-print-page {
  height: 10.82in !important;
}

@page {
  size: letter portrait;
  margin: 0.09in;
}

@media print {
  html:has(body.printing-week),
  body.printing-week {
    width: 8.32in !important;
  }

  body.printing-week #printStage.weekly-print-snapshot-stage {
    width: 8.32in !important;
  }

  body.printing-week #printStage .weekly-print-page {
    width: 8.32in !important;
    height: 10.82in !important;
  }
}


/* Reliable print/PDF writing lines for Customer Connection and Promotions */
.print-export-sheet .print-writing-area {
  position: relative;
  min-height: 72px;
  overflow: hidden;
  background: #ffffff;
}

.print-export-sheet .print-writing-lines {
  position: absolute;
  inset: 0;
  display: grid;
  pointer-events: none;
}

.print-export-sheet .print-customer-writing-area .print-writing-lines {
  grid-template-rows: repeat(3, 1fr);
}

.print-export-sheet .print-promotions-writing-area .print-writing-lines {
  grid-template-rows: repeat(4, 1fr);
}

.print-export-sheet .print-writing-lines span {
  display: block;
  border-bottom: 1px solid #4a4745;
}

.print-export-sheet .print-writing-text {
  position: relative;
  z-index: 1;
  min-height: 72px;
  padding: 2px 1px;
  color: #171717;
  font-size: 12px;
  line-height: 18px;
  white-space: pre-wrap;
}

.print-export-sheet .print-custom-task-line {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 20px;
  padding: 1px 0 2px;
  border-bottom: 1px solid #5c585c;
  color: #171717;
  font-size: 12px;
  line-height: 1.15;
}

.print-export-sheet .custom-task-block:not(:has(.print-custom-task-line:not(:empty))) .additional-tasks-heading {
  display: none !important;
}


/* Larger print/PDF typography to match the original worksheet */
.print-export-sheet .sheet-top h2 {
  font-size: 36px !important;
}

.print-export-sheet .brand-wordmark span {
  font-size: 64px !important;
}

.print-export-sheet .brand-wordmark small {
  font-size: 30px !important;
}

.print-export-sheet .work-date-display {
  font-size: 15px !important;
  font-weight: 600 !important;
}

.print-export-sheet .print-rail-label,
.print-export-sheet .section-rail {
  font-size: 21px !important;
}

.print-export-sheet .section-rail.tall .print-rail-label {
  font-size: 20px !important;
}

.print-export-sheet .section-help,
.print-export-sheet .zone-list {
  font-size: 14px !important;
}

.print-export-sheet .form-table th {
  padding: 6px 5px !important;
  font-size: 13px !important;
  line-height: 1.1 !important;
}

.print-export-sheet .form-table td,
.print-export-sheet .form-table td.row-label {
  font-size: 13px !important;
}

.print-export-sheet .form-table input,
.print-export-sheet .print-name-value,
.print-export-sheet .print-shift-value,
.print-export-sheet .print-zone-value,
.print-export-sheet .print-control-value {
  font-size: 14px !important;
  line-height: 1.05 !important;
}

.print-export-sheet .customer-section h3,
.print-export-sheet .tasks-section h3,
.print-export-sheet .financial-content h3 {
  font-size: 22px !important;
}

.print-export-sheet .customer-copy p,
.print-export-sheet .section-heading-inline p,
.print-export-sheet .financial-content p {
  margin-top: 3px !important;
  margin-bottom: 6px !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
}

.print-export-sheet .task-check span,
.print-export-sheet .print-custom-task-line {
  font-size: 12.5px !important;
  line-height: 1.08 !important;
}

.print-export-sheet .subtask-check span {
  font-size: 11px !important;
  line-height: 1.05 !important;
}

.print-export-sheet .additional-tasks-heading {
  font-size: 10.5px !important;
}

.print-export-sheet .spread-field,
.print-export-sheet .manager-notes label {
  font-size: 13px !important;
}

.print-export-sheet .print-writing-text,
.print-export-sheet .print-manager-notes-text {
  font-size: 13px !important;
}

/* Recover vertical room so the larger type still fits on one letter-size page. */
.print-export-sheet .sheet-top {
  padding-top: 14px !important;
  padding-bottom: 8px !important;
}

.print-export-sheet .section-content {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.print-export-sheet .customer-section {
  padding-top: 9px !important;
  padding-bottom: 9px !important;
}

.print-export-sheet .tasks-section {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.print-export-sheet .form-table td {
  height: 27px !important;
}

.print-export-sheet .form-table input,
.print-export-sheet .print-name-value,
.print-export-sheet .print-shift-value,
.print-export-sheet .print-zone-value,
.print-export-sheet .print-control-value {
  min-height: 26px !important;
  padding-top: 3px !important;
  padding-bottom: 3px !important;
}

.print-export-sheet .required-task-grid > .task-slot {
  min-height: 19px !important;
}

.print-export-sheet .custom-task-block {
  margin-top: 6px !important;
  padding-top: 5px !important;
}

.print-export-sheet .power-title {
  margin-top: 6px !important;
}

.print-export-sheet .manager-notes {
  margin-top: 7px !important;
}


/* Updated Famous Footwear logo */
.brand-wordmark {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  line-height: 1;
}

.brand-logo {
  display: block;
  width: clamp(190px, 19vw, 250px);
  height: auto;
  max-width: 100%;
}

@media (max-width: 860px) {
  .brand-logo {
    width: 190px;
  }
}

@media (max-width: 580px) {
  .brand-wordmark {
    margin-top: 0;
    justify-content: flex-end;
  }

  .brand-logo {
    width: 152px;
  }
}

@media screen and (max-width: 430px) {
  .brand-logo {
    width: 138px;
  }
}

.print-export-sheet .brand-wordmark {
  margin-top: 0 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-end !important;
}

.print-export-sheet .brand-logo {
  width: 250px !important;
  height: auto !important;
  max-width: none !important;
}


/* Original worksheet section flow: TALENT + CULTURE + OPERATIONS = FINANCIAL RESULTS */
.culture-section,
.operations-section {
  border-top: 1px solid #d0d0d0;
}

.culture-section > .customer-section {
  padding: 16px 28px 16px 18px;
}

.operations-section > .tasks-section {
  padding: 15px 28px 18px 18px;
}

.culture-section .section-rail,
.operations-section .section-rail {
  background: var(--brand-warm);
}

@media (max-width: 860px) {
  .culture-section > .customer-section,
  .operations-section > .tasks-section {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 580px) {
  .culture-section > .customer-section,
  .operations-section > .tasks-section {
    padding-left: 10px;
    padding-right: 10px;
  }
}

.print-export-sheet .culture-section > .customer-section {
  display: grid !important;
  grid-template-columns: 1.6fr .86fr !important;
  gap: 22px !important;
  padding: 12px 28px 12px 18px !important;
}

.print-export-sheet .operations-section > .tasks-section {
  padding: 10px 28px 10px 18px !important;
}

.print-export-sheet .culture-section .section-rail,
.print-export-sheet .operations-section .section-rail {
  background: #ffffff !important;
  color: #111111 !important;
  border-color: #d7d7d7 !important;
}


/* Print/PDF refinement: raise page, remove outer top border, enlarge type */
.print-export-sheet {
  border: 0 !important;
}

.print-export-sheet .sheet-top {
  padding-top: 4px !important;
  padding-bottom: 6px !important;
  border-top: 0 !important;
}

.print-export-sheet .sheet-top h2 {
  font-size: 42px !important;
  line-height: 1.02 !important;
}

.print-export-sheet .brand-logo {
  width: 280px !important;
}

.print-export-sheet .work-date-display,
.print-export-sheet .date-line {
  font-size: 17px !important;
}

.print-export-sheet .section-help,
.print-export-sheet .zone-list {
  font-size: 16px !important;
  line-height: 1.3 !important;
}

.print-export-sheet .form-table th {
  font-size: 15px !important;
  line-height: 1.05 !important;
}

.print-export-sheet .form-table td,
.print-export-sheet .form-table td.row-label,
.print-export-sheet .form-table input,
.print-export-sheet .print-name-value,
.print-export-sheet .print-shift-value,
.print-export-sheet .print-zone-value,
.print-export-sheet .print-control-value {
  font-size: 16px !important;
}

.print-export-sheet .customer-section h3,
.print-export-sheet .tasks-section h3,
.print-export-sheet .financial-content h3 {
  font-size: 25px !important;
}

.print-export-sheet .customer-copy p,
.print-export-sheet .section-heading-inline p,
.print-export-sheet .financial-content p {
  font-size: 15px !important;
  line-height: 1.18 !important;
}

.print-export-sheet .task-check span,
.print-export-sheet .print-custom-task-line {
  font-size: 14.5px !important;
}

.print-export-sheet .subtask-check span {
  font-size: 13px !important;
}

.print-export-sheet .additional-tasks-heading {
  display: block !important;
  font-size: 12px !important;
}

.print-export-sheet .spread-field,
.print-export-sheet .manager-notes label,
.print-export-sheet .print-writing-text,
.print-export-sheet .print-manager-notes-text {
  font-size: 14.5px !important;
}

/* Recover vertical room so the larger print type stays on one page. */
.print-export-sheet .section-content {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

.print-export-sheet .culture-section > .customer-section {
  padding-top: 7px !important;
  padding-bottom: 7px !important;
}

.print-export-sheet .operations-section > .tasks-section {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

.print-export-sheet .form-table td {
  height: 24px !important;
}

.print-export-sheet .form-table input,
.print-export-sheet .print-name-value,
.print-export-sheet .print-shift-value,
.print-export-sheet .print-zone-value,
.print-export-sheet .print-control-value {
  min-height: 23px !important;
  padding-top: 2px !important;
  padding-bottom: 2px !important;
}

.print-export-sheet .required-task-grid > .task-slot {
  min-height: 17px !important;
}

.print-export-sheet .custom-task-block {
  margin-top: 4px !important;
  padding-top: 3px !important;
}

.print-export-sheet .power-title {
  margin-top: 4px !important;
}

.print-export-sheet .manager-notes {
  margin-top: 5px !important;
}

.weekly-print-page,
body.printing-week #printStage .weekly-print-page {
  align-items: flex-start !important;
  justify-content: center !important;
}

.print-export-sheet .custom-task-block:not(:has(.print-custom-task-line:not(:empty))) .additional-tasks-heading {
  display: block !important;
}


/* Keep the Famous Footwear logo clean in rasterized print/PDF output */
.brand-logo {
  object-fit: contain;
  object-position: top right;
  vertical-align: top;
  background: transparent;
  filter: none;
}

.print-export-sheet .brand-logo {
  object-fit: contain !important;
  object-position: top right !important;
  vertical-align: top !important;
  background: transparent !important;
  filter: none !important;
}


/* Clean interactive Talent cells: blank by default, subtle + on hover/focus */
.talent-table .zone-cell-button {
  position: relative;
  justify-content: flex-start;
  padding: 4px 9px;
  text-align: left;
}

.talent-table .zone-cell-value {
  width: 100%;
  text-align: left;
}

.talent-table .empty-cell-button::after {
  content: "+";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid #cfcfcf;
  border-radius: 50%;
  background: #ffffff;
  color: #777777;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease, border-color .12s ease, color .12s ease;
}

.talent-table .empty-cell-button:hover::after,
.talent-table .empty-cell-button:focus-visible::after {
  opacity: 1;
}

.talent-table .empty-cell-button:hover::after,
.talent-table .empty-cell-button:focus-visible::after {
  border-color: #999999;
  color: #333333;
}

/* No permanent dropdown affordance in Name / Shift / Break / Zone cells */
.talent-table .zone-cell-chevron {
  display: none !important;
}

/* Keep populated cells visually simple */
.talent-table .name-cell-value,
.talent-table .shift-cell-value {
  color: #171717;
  font-weight: 400;
}

.talent-table .zone-cell:not(.name-cell):not(.shift-cell) .zone-cell-value {
  text-align: center;
  font-weight: 600;
}

/* Touch devices stay completely clean until tapped. */
@media (hover: none) {
  .talent-table .empty-cell-button::after {
    display: none;
  }
}

/* Print/PDF never shows interaction hints. */
.print-export-sheet .empty-cell-button::after {
  display: none !important;
}

@media print {
  .talent-table .empty-cell-button::after {
    display: none !important;
  }
}


/* Promotion guide controls */
.promotions-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.promotions-heading h3 {
  margin: 0;
}

.promo-guide-view {
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  background: #fff;
  color: #222;
  font: inherit;
  font-size: 9.5px;
  font-weight: 700;
  cursor: pointer;
}

.promo-guide-view:hover {
  border-color: #999;
  background: #f6f6f6;
}

.promo-guide-admin {
  margin-top: 14px;
  padding-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #ddd;
}

.promo-guide-admin-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.promo-guide-admin-label {
  color: #555;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.promo-guide-admin-copy strong {
  min-width: 0;
  overflow: hidden;
  color: #222;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promo-guide-admin-copy small {
  color: #777;
  font-size: 9.5px;
  line-height: 1.25;
}

.promo-guide-upload-button {
  white-space: nowrap;
}

@media (max-width: 580px) {
  .promotions-heading {
    justify-content: space-between;
  }

  .promo-guide-admin {
    grid-template-columns: 1fr;
  }

  .promo-guide-upload-button {
    width: 100%;
  }
}

@media print {
  .promo-guide-view {
    display: none !important;
  }
}

.print-export-sheet .promo-guide-view {
  display: none !important;
}


/* Keep cloud-sync close controls accessible and surface promo upload failures */
.cloud-dialog {
  max-height: calc(100dvh - 20px);
  overflow: hidden;
}

.cloud-dialog-card {
  max-height: calc(100dvh - 20px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cloud-dialog-heading {
  position: sticky;
  top: -24px;
  z-index: 20;
  margin: -24px -24px 0;
  padding: 24px 24px 12px;
  background: #fff;
}

.cloud-done-button {
  width: 100%;
  min-height: 42px;
  margin-top: 16px;
  border: 1px solid #c9c5c2;
  border-radius: 4px;
  background: #fff;
  color: #171717;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.cloud-done-button:hover {
  border-color: #8f8985;
  background: #f7f7f7;
}

.promo-guide-admin-copy small.promo-guide-error {
  color: #b00020;
  font-weight: 650;
}

@media (max-width: 580px) {
  .cloud-dialog-heading {
    top: -20px;
    margin: -20px -16px 0;
    padding: 20px 16px 11px;
  }
}


/* Keep Cloud Sync Done action visible while scrolling */
.cloud-dialog-footer {
  position: sticky;
  bottom: -24px;
  z-index: 25;
  margin: 16px -24px -24px;
  padding: 12px 24px 20px;
  border-top: 1px solid #e3dfdc;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(8px);
}

.cloud-dialog-footer .cloud-done-button {
  margin-top: 0;
}

@media (max-width: 580px) {
  .cloud-dialog-footer {
    bottom: -20px;
    margin: 16px -16px -20px;
    padding: 11px 16px 16px;
  }
}


/* In-app promotion guide PDF viewer */
.promo-pdf-dialog {
  width: min(980px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .28);
}

.promo-pdf-dialog::backdrop {
  background: rgba(20, 18, 18, .62);
  backdrop-filter: blur(3px);
}

.promo-pdf-card {
  height: min(900px, calc(100dvh - 24px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-top: 4px solid #df0038;
  border-radius: 7px;
  background: #fff;
}

.promo-pdf-heading {
  padding: 18px 20px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #e5e2df;
}

.promo-pdf-heading h2 {
  margin: 2px 0 0;
  color: #111;
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: -.02em;
}

.promo-pdf-heading small {
  display: block;
  margin-top: 5px;
  color: #6e6966;
  font-size: 10px;
}

.promo-pdf-toolbar {
  min-height: 48px;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-bottom: 1px solid #ddd9d6;
  background: #fafafa;
}

.promo-pdf-toolbar button {
  width: 38px;
  height: 34px;
  padding: 0;
  border: 1px solid #c9c5c2;
  border-radius: 4px;
  background: #fff;
  color: #171717;
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.promo-pdf-toolbar button:disabled {
  opacity: .35;
  cursor: default;
}

.promo-pdf-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #494542;
  font-size: 11px;
  font-weight: 600;
}

.promo-pdf-toolbar input {
  width: 54px;
  height: 34px;
  padding: 4px 6px;
  border: 1px solid #c9c5c2;
  border-radius: 4px;
  background: #fff;
  color: #171717;
  font: inherit;
  font-size: 12px;
  text-align: center;
}

.promo-pdf-viewer {
  position: relative;
  min-height: 0;
  overflow: auto;
  padding: 12px;
  display: grid;
  justify-items: center;
  align-items: start;
  background: #ececec;
  -webkit-overflow-scrolling: touch;
}

.promo-pdf-viewer canvas {
  display: block;
  max-width: 100%;
  background: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .16);
}

.promo-pdf-status {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(236, 236, 236, .94);
  color: #4f4a47;
  font-size: 12px;
  font-weight: 650;
  text-align: center;
}

.promo-pdf-status[hidden] {
  display: none;
}

.promo-pdf-footer {
  padding: 10px 14px 12px;
  border-top: 1px solid #ddd9d6;
  background: #fff;
}

.promo-pdf-footer .cloud-done-button {
  max-width: 220px;
  min-height: 38px;
  margin: 0 auto;
  display: block;
}

@media (max-width: 580px) {
  .promo-pdf-dialog {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
  }

  .promo-pdf-card {
    height: calc(100dvh - 12px);
  }

  .promo-pdf-heading {
    padding: 14px 12px 10px;
  }

  .promo-pdf-heading h2 {
    max-width: 250px;
    font-size: 18px;
  }

  .promo-pdf-toolbar {
    min-height: 44px;
    padding: 5px 8px;
  }

  .promo-pdf-toolbar button {
    width: 36px;
    height: 34px;
  }

  .promo-pdf-viewer {
    padding: 6px;
  }

  .promo-pdf-footer {
    padding: 8px 10px 10px;
  }

  .promo-pdf-footer .cloud-done-button {
    max-width: none;
  }
}

@media print {
  .promo-pdf-dialog {
    display: none !important;
  }
}


/* Cleaner promo-guide document title + download action */
.promo-pdf-file-label {
  display: block;
  max-width: 760px;
  margin-top: 3px;
  overflow: hidden;
  color: #8a8582 !important;
  font-size: 9px !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promo-pdf-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.promo-pdf-footer .cloud-done-button,
.promo-pdf-download-button {
  width: min(220px, 100%);
  min-height: 38px;
  margin: 0;
  border-radius: 4px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.promo-pdf-download-button {
  border: 1px solid #df0038;
  background: #df0038;
  color: #fff;
}

.promo-pdf-download-button:hover {
  border-color: #c90032;
  background: #c90032;
}

@media (max-width: 580px) {
  .promo-pdf-file-label {
    max-width: 250px;
  }

  .promo-pdf-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .promo-pdf-footer .cloud-done-button,
  .promo-pdf-download-button {
    width: 100%;
    max-width: none;
  }
}


/* Preserve interactive links/buttons embedded in promo PDFs */
.promo-pdf-page-wrap {
  position: relative;
  display: block;
  max-width: 100%;
  background: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .16);
}

.promo-pdf-page-wrap canvas {
  box-shadow: none;
}

.promo-pdf-annotation-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.promo-pdf-link-hotspot {
  position: absolute;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  outline: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  cursor: pointer;
  pointer-events: auto;
  text-decoration: none;
}

.promo-pdf-link-hotspot:hover,
.promo-pdf-link-hotspot:focus-visible {
  outline: 2px solid rgba(223, 0, 56, .55);
  outline-offset: -2px;
  background: rgba(223, 0, 56, .06);
}

@media (hover: none) {
  .promo-pdf-link-hotspot:hover {
    outline: 0;
    background: transparent;
  }

  .promo-pdf-link-hotspot:active {
    background: rgba(223, 0, 56, .08);
  }
}


/* Compact promo PDF header and 85% desktop document view */
.promo-pdf-card {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.promo-pdf-heading {
  padding: 11px 14px 9px;
  align-items: center;
  gap: 14px;
}

.promo-pdf-title-block {
  min-width: 0;
  flex: 1 1 auto;
}

.promo-pdf-title-block .eyebrow {
  margin-bottom: 1px;
  font-size: 8px;
}

.promo-pdf-heading h2 {
  margin: 0;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.08;
}

.promo-pdf-heading small {
  margin-top: 2px;
  font-size: 8.5px;
}

.promo-pdf-file-label {
  margin-top: 1px;
  font-size: 8px !important;
}

.promo-pdf-header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.promo-pdf-toolbar {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  gap: 6px;
}

.promo-pdf-toolbar button {
  width: 32px;
  height: 30px;
  font-size: 18px;
}

.promo-pdf-toolbar label {
  gap: 5px;
  font-size: 9.5px;
}

.promo-pdf-toolbar input {
  width: 44px;
  height: 30px;
  padding: 3px 4px;
  font-size: 10.5px;
}

.promo-pdf-header-actions .dialog-close {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

.promo-pdf-viewer {
  padding: 8px;
}

.promo-pdf-page-wrap {
  margin-inline: auto;
}

.promo-pdf-footer {
  padding-top: 7px;
  padding-bottom: 8px;
}

@media (max-width: 760px) {
  .promo-pdf-heading {
    align-items: flex-start;
    padding: 10px 10px 8px;
  }

  .promo-pdf-heading h2 {
    max-width: none;
    font-size: 16px;
  }

  .promo-pdf-header-actions {
    align-items: flex-start;
  }

  .promo-pdf-toolbar label > span:first-child {
    display: none;
  }
}

@media (max-width: 580px) {
  .promo-pdf-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 8px;
  }

  .promo-pdf-title-block {
    grid-column: 1 / 2;
  }

  .promo-pdf-header-actions {
    grid-column: 2 / 3;
    grid-row: 1;
  }

  .promo-pdf-toolbar {
    position: absolute;
    left: 50%;
    top: 86px;
    transform: translateX(-50%);
    z-index: 6;
    padding: 4px 6px;
    border: 1px solid #ddd9d6;
    border-radius: 4px;
    background: rgba(255, 255, 255, .96);
  }

  .promo-pdf-viewer {
    padding-top: 48px;
  }
}


/* Compact Promo Guide footer buttons */
.promo-pdf-footer {
  gap: 10px;
}

.promo-pdf-footer .cloud-done-button,
.promo-pdf-download-button {
  width: 170px;
  max-width: 170px;
  min-height: 36px;
  padding-inline: 14px;
}

@media (max-width: 580px) {
  .promo-pdf-footer {
    display: flex;
    justify-content: center;
    gap: 8px;
  }

  .promo-pdf-footer .cloud-done-button,
  .promo-pdf-download-button {
    width: 145px;
    max-width: 145px;
  }
}


/* Final one-sheet weekly schedule print geometry */
.schedule-capture-stage {
  width: 1080px !important;
}

.schedule-print-card {
  width: 1080px !important;
  padding: 16px !important;
}

.schedule-print-card .cloud-dialog-heading {
  padding-top: 10px !important;
  padding-bottom: 8px !important;
}

.schedule-print-card .schedule-summary {
  margin-top: 8px !important;
  margin-bottom: 8px !important;
}

.schedule-print-card .weekly-schedule-table th,
.schedule-print-card .weekly-schedule-table td {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}

.schedule-print-card .schedule-hours-note {
  margin-top: 8px !important;
}

@media print {
  html:has(body.printing-schedule),
  body.printing-schedule {
    width: 10.76in !important;
    height: 8.26in !important;
    min-width: 10.76in !important;
    min-height: 8.26in !important;
    max-width: 10.76in !important;
    max-height: 8.26in !important;
    overflow: hidden !important;
  }

  body.printing-schedule #printStage.schedule-print-snapshot-stage {
    width: 10.76in !important;
    height: 8.26in !important;
    overflow: hidden !important;
  }

  body.printing-schedule #printStage.schedule-print-snapshot-stage .schedule-print-page-image {
    width: 10.52in !important;
    max-width: 10.52in !important;
    height: auto !important;
    max-height: 8.02in !important;
    margin: 0.12in auto 0 !important;
  }
}


/* Larger, easier-to-read weekly schedule print typography */
.schedule-print-card {
  padding: 22px 24px !important;
}

.schedule-print-card h2 {
  font-size: 34px !important;
  line-height: 1.04 !important;
}

.schedule-print-card .eyebrow {
  font-size: 11px !important;
  letter-spacing: .13em !important;
}

.schedule-print-card .schedule-dialog-subtitle {
  margin-top: 6px !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
}

.schedule-print-card .schedule-summary {
  gap: 12px !important;
  margin-top: 16px !important;
  margin-bottom: 14px !important;
}

.schedule-print-card .schedule-summary-chip {
  min-width: 142px !important;
  padding: 11px 14px !important;
}

.schedule-print-card .schedule-summary-chip span {
  font-size: 10.5px !important;
}

.schedule-print-card .schedule-summary-chip strong {
  font-size: 23px !important;
  line-height: 1.05 !important;
}

.schedule-print-card .weekly-schedule-table th,
.schedule-print-card .weekly-schedule-table td {
  height: 43px !important;
  padding: 7px 4px !important;
  font-size: 12.5px !important;
  line-height: 1.16 !important;
  white-space: normal !important;
}

.schedule-print-card .weekly-schedule-table thead th {
  height: 48px !important;
  font-size: 12px !important;
  line-height: 1.08 !important;
}

.schedule-print-card .weekly-schedule-table thead th span {
  margin-top: 3px !important;
  font-size: 9.5px !important;
  line-height: 1.05 !important;
}

.schedule-print-card .weekly-schedule-table tbody th {
  padding-left: 10px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.schedule-print-card .weekly-schedule-table .schedule-total-column {
  font-size: 13px !important;
  font-weight: 750 !important;
}

.schedule-print-card .schedule-hours-note {
  margin-top: 11px !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
}

/* Preserve a single landscape sheet even with the larger print text */
@media print {
  body.printing-schedule #printStage.schedule-print-snapshot-stage .schedule-print-page-image {
    max-width: 10.52in !important;
    max-height: 8.02in !important;
    object-fit: contain !important;
  }
}


/* Tighter Promo Guide frame with 80% desktop document view */
@media (min-width: 641px) {
  .promo-pdf-dialog {
    width: min(860px, calc(100vw - 32px));
  }

  .promo-pdf-viewer {
    padding: 6px;
  }
}

@media (min-width: 1100px) {
  .promo-pdf-dialog {
    width: min(900px, calc(100vw - 40px));
  }
}


/* Weekly schedule role/title + daily-hours enhancements */
.schedule-associate-name {
  display: block;
}

.weekly-schedule-table .schedule-job-title {
  display: block;
  margin-top: 2px;
  color: #77716d;
  font-size: 7.25px;
  font-weight: 600;
  line-height: 1.15;
}

.weekly-schedule-table tfoot th,
.weekly-schedule-table tfoot td {
  padding: 8px 3px;
  border-top: 2px solid #df0038;
  border-right: 1px solid #bbb6b2;
  background: #eceae8;
  color: #171717;
  text-align: center;
  font-size: 9px;
  font-weight: 750;
}

.weekly-schedule-table tfoot th {
  padding-left: 7px;
  text-align: left;
}

.weekly-schedule-table tfoot th:last-child,
.weekly-schedule-table tfoot td:last-child {
  border-right: 0;
}

.weekly-schedule-table tfoot .schedule-total-column {
  background: #e2dfdc;
}

.schedule-print-card .weekly-schedule-table .schedule-job-title {
  margin-top: 3px !important;
  font-size: 9.5px !important;
  line-height: 1.1 !important;
  font-weight: 600 !important;
}

.schedule-print-card .weekly-schedule-table tfoot th,
.schedule-print-card .weekly-schedule-table tfoot td {
  height: 38px !important;
  padding: 7px 4px !important;
  font-size: 12px !important;
  font-weight: 750 !important;
}


/* Larger on-screen weekly schedule typography */
.schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table th,
.schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table td {
  padding: 9px 4px;
  font-size: 10.5px;
  line-height: 1.2;
}

.schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table tbody th {
  padding-left: 9px;
  font-size: 11.5px;
  line-height: 1.18;
}

.schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table thead th {
  font-size: 10.5px;
  line-height: 1.15;
}

.schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table thead th span {
  margin-top: 3px;
  font-size: 8.75px;
}

.schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table .schedule-job-title {
  margin-top: 3px;
  font-size: 9.25px;
  line-height: 1.15;
}

.schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table .schedule-total-column {
  font-size: 11px;
}

.schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table tfoot th,
.schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table tfoot td {
  padding: 9px 4px;
  font-size: 10.5px;
}

@media (max-width: 900px) {
  .schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table th,
  .schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table td {
    padding: 8px 3px;
    font-size: 9.5px;
  }

  .schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table tbody th {
    padding-left: 7px;
    font-size: 10.5px;
  }

  .schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table thead th {
    font-size: 9.5px;
  }

  .schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table thead th span {
    font-size: 8px;
  }

  .schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table .schedule-job-title {
    font-size: 8.5px;
  }
}


/* Slightly larger dates in weekly schedule headers */
.schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table thead th span {
  font-size: 9.75px;
}

@media (max-width: 900px) {
  .schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table thead th span {
    font-size: 8.75px;
  }
}


/* Match weekly schedule day/date sizing to the main day tabs */
.schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table thead th strong {
  font-size: 13px;
  line-height: 1.1;
}

.schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table thead th span {
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.1;
}

@media (max-width: 900px) {
  .schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table thead th strong {
    font-size: 12px;
  }

  .schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table thead th span {
    font-size: 9.5px;
  }
}


/* Easier week/date picker */
.week-picker {
  grid-template-columns: 118px auto 28px;
  grid-template-areas:
    "label label label"
    "input range open";
  cursor: pointer;
}

.week-picker-open {
  grid-area: open;
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #77716e;
  line-height: 1;
  cursor: pointer;
}

.week-picker-open svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.week-picker-open:hover,
.week-picker-open:focus-visible {
  background: #f3f1ef;
  color: #171717;
  outline: none;
}

@media (max-width: 580px) {
  .week-picker {
    grid-template-columns: 108px minmax(0, 1fr) 28px;
  }
}


/* Match week picker height to its adjacent navigation arrows */
.week-picker {
  height: 40px;
  min-height: 40px;
  box-sizing: border-box;
  padding-top: 5px;
  padding-bottom: 3px;
}

@media (max-width: 580px) {
  .week-picker {
    height: 44px;
    min-height: 44px;
  }
}


/* Embedded Dayforce clock */
.output-actions-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dayforce-clock-button .output-button-svg {
  stroke: #df0038;
}

.dayforce-clock-dialog {
  width: min(1120px, calc(100vw - 28px));
  max-width: none;
  height: min(840px, calc(100vh - 28px));
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .24);
}

.dayforce-clock-dialog::backdrop {
  background: rgba(20, 18, 18, .55);
  backdrop-filter: blur(3px);
}

.dayforce-clock-card {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-top: 4px solid #df0038;
  border-radius: 7px;
  background: #fff;
}

.dayforce-clock-heading {
  border-bottom: 1px solid #ded9d6;
}

.dayforce-clock-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dayforce-clock-external {
  min-height: 34px;
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbc6c2;
  border-radius: 4px;
  background: #fff;
  color: #171717;
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
}

.dayforce-clock-external:hover {
  background: #f5f3f2;
}

.dayforce-clock-frame-wrap {
  min-height: 0;
  padding: 8px;
  background: #efefef;
}

.dayforce-clock-frame {
  width: 100%;
  height: 100%;
  min-height: 560px;
  display: block;
  border: 1px solid #d2cdca;
  border-radius: 4px;
  background: #fff;
}

.dayforce-clock-footer {
  min-height: 54px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #ded9d6;
  background: #fff;
}

.dayforce-clock-footer span {
  color: #77716d;
  font-size: 10px;
  line-height: 1.3;
}

@media (max-width: 640px) {
  .output-actions-left {
    flex-wrap: wrap;
  }

  .dayforce-clock-dialog {
    width: calc(100vw - 12px);
    height: calc(100vh - 12px);
  }

  .dayforce-clock-heading {
    padding: 10px;
  }

  .dayforce-clock-header-actions {
    gap: 6px;
  }

  .dayforce-clock-external {
    padding-inline: 8px;
    font-size: 10px;
  }

  .dayforce-clock-frame-wrap {
    padding: 4px;
  }

  .dayforce-clock-frame {
    min-height: 480px;
  }

  .dayforce-clock-footer {
    padding: 8px 10px;
  }
}


/* Tighter View Week label/date spacing */
.week-picker {
  align-content: center;
  row-gap: 0;
}

.week-picker > span {
  margin: 0;
  line-height: 1;
  transform: translateY(4px);
}

.week-picker input {
  line-height: 1.05;
}

.week-picker small {
  line-height: 1.05;
}

.week-picker-open {
  align-self: end;
}


/* Centered Spark shortcut */
.output-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}

.output-actions-left {
  justify-self: start;
}

.output-actions-center {
  justify-self: center;
}

.output-actions-right {
  justify-self: end;
  margin-left: 0;
}

.spark-button {
  min-width: 86px;
  text-decoration: none;
}

@media (max-width: 760px) {
  .output-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .output-actions-center {
    order: 2;
    margin-inline: auto;
  }

  .output-actions-right {
    order: 3;
    margin-left: auto;
  }

  .output-actions-left {
    order: 1;
  }
}


/* Spark sun/star icon */
.spark-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: #df0038;
  stroke: #df0038;
  stroke-width: 1.7;
  stroke-linecap: round;
}


/* Refine Spark button sizing/alignment */
.output-actions-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.spark-button {
  width: auto;
  min-width: 0;
  min-height: 36px;
  height: 36px;
  padding: 0 14px;
  flex: 0 0 auto;
  gap: 7px;
  white-space: nowrap;
  border-color: #cbc6c2;
  background: #fff;
}

@media (max-width: 760px) {
  .output-actions-center {
    flex: 0 0 auto;
  }

  .spark-button {
    width: auto;
    flex: 0 0 auto;
  }
}


/* Spark + Power BI centered shortcuts */
.output-actions-center {
  gap: 8px;
}

.power-bi-button {
  width: auto;
  min-width: 0;
  min-height: 36px;
  height: 36px;
  padding: 0 14px;
  flex: 0 0 auto;
  gap: 7px;
  white-space: nowrap;
  text-decoration: none;
  border-color: #cbc6c2;
  background: #fff;
}

.power-bi-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: #df0038;
}

@media (max-width: 760px) {
  .output-actions-center {
    gap: 7px;
  }

  .power-bi-button {
    width: auto;
    flex: 0 0 auto;
  }
}


/* Famous Footwear Home centered shortcut */
.famous-home-button {
  width: auto;
  min-width: 0;
  min-height: 36px;
  height: 36px;
  padding: 0 14px;
  flex: 0 0 auto;
  gap: 7px;
  white-space: nowrap;
  text-decoration: none;
  border-color: #cbc6c2;
  background: #fff;
}

.workbench-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: #df0038;
}

@media (max-width: 760px) {
  .famous-home-button {
    width: auto;
    flex: 0 0 auto;
  }
}


/* Mobile-friendly weekly schedule */
.schedule-mobile-hint {
  display: none;
}

@media (max-width: 700px) {
  .schedule-dialog {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .schedule-dialog-card {
    width: 100%;
    height: 100%;
    max-height: 100dvh;
    padding: 0 0 16px;
    border-radius: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-sizing: border-box;
  }

  .schedule-dialog-card > .cloud-dialog-heading {
    position: sticky;
    top: 0;
    margin: 0;
    padding: 14px 14px 10px;
    align-items: flex-start;
    gap: 10px;
    background: #fff;
  }

  .schedule-dialog-card h2 {
    max-width: 250px;
    font-size: 24px;
    line-height: 1.08;
  }

  .schedule-dialog-subtitle {
    margin-top: 5px;
    font-size: 13px;
  }

  .schedule-dialog-actions {
    gap: 6px;
  }

  .schedule-print-button {
    min-height: 38px;
    padding: 0 10px;
    font-size: 11px;
    white-space: nowrap;
  }

  .schedule-dialog-actions .dialog-close {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .schedule-summary {
    margin: 18px 14px 8px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .schedule-summary-chip {
    min-width: 0;
    padding: 10px 12px;
  }

  .schedule-summary-chip span {
    font-size: 9.5px;
  }

  .schedule-summary-chip strong {
    font-size: 19px;
  }

  .schedule-mobile-hint {
    display: block;
    margin: 0 14px 8px;
    color: #77716d;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.25;
  }

  .schedule-table-wrap {
    margin: 0;
    overflow-x: auto;
    overflow-y: visible;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table {
    width: 820px;
    min-width: 820px;
    table-layout: fixed;
  }

  .schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table thead th:first-child {
    width: 130px;
  }

  .schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table thead th:nth-child(n+2):nth-child(-n+8) {
    width: 88px;
  }

  .schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table .schedule-total-column {
    width: 74px;
  }

  .schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table th,
  .schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table td {
    padding: 9px 5px;
    font-size: 10.5px;
    line-height: 1.2;
  }

  .schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table thead th {
    font-size: 10px;
    white-space: nowrap;
  }

  .schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table thead th strong {
    font-size: 12px;
  }

  .schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table thead th span {
    margin-top: 3px;
    font-size: 9px;
  }

  .schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table tbody th {
    padding-left: 10px;
    font-size: 11px;
    line-height: 1.15;
  }

  .schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table .schedule-job-title {
    margin-top: 3px;
    font-size: 9px;
    line-height: 1.1;
  }

  .schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table .schedule-total-column {
    font-size: 11px;
  }

  .schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table thead th:first-child,
  .schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table tbody th,
  .schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table tfoot th:first-child {
    position: sticky;
    left: 0;
  }

  .schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table thead th:first-child {
    z-index: 5;
    background: #171717;
  }

  .schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table tbody th {
    z-index: 3;
    background: #f5f3f2;
    box-shadow: 5px 0 8px -8px rgba(0, 0, 0, .55);
  }

  .schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table tfoot th:first-child {
    z-index: 4;
    background: #eceae8;
    box-shadow: 5px 0 8px -8px rgba(0, 0, 0, .55);
  }

  .schedule-hours-note {
    margin: 12px 14px 0;
    font-size: 10.5px;
    line-height: 1.4;
  }
}

@media print {
  .schedule-mobile-hint {
    display: none !important;
  }
}


/* Cleaner phone layout for the main worksheet */
@media screen and (max-width: 640px) {
  .output-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }

  .output-actions-left,
  .output-actions-center,
  .output-actions-right {
    width: 100%;
    margin: 0;
    justify-self: stretch;
  }

  .output-actions-left {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .output-actions-center {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .output-actions-right {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .output-actions .output-button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    height: 44px;
    padding: 0 8px;
    justify-content: center;
    font-size: 11px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .output-actions .spark-button,
  .output-actions .power-bi-button,
  .output-actions .famous-home-button {
    min-width: 0;
    height: 44px;
    padding-inline: 7px;
  }

  .output-actions .output-button-svg,
  .spark-icon,
  .power-bi-icon,
  .workbench-icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }

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

  .day-tab {
    min-width: 88px;
    min-height: 50px;
    padding: 5px 8px;
  }

  .sheet-top {
    grid-template-columns: minmax(0, 1fr) 122px;
    gap: 8px;
    padding: 16px 12px 15px;
  }

  .sheet-top h2 {
    max-width: 220px;
    margin-bottom: 8px;
    font-size: 20px;
    line-height: 1.06;
  }

  .brand-logo {
    width: 122px;
    max-width: 122px;
  }

  .section-content {
    padding-inline: 10px;
  }

  .talent-layout > .table-scroll {
    margin-right: -10px;
    padding-right: 10px;
    box-shadow: inset -12px 0 12px -14px rgba(0, 0, 0, .7);
  }

  .talent-table {
    width: 660px;
    min-width: 660px;
  }

  .talent-table th:nth-child(1) { width: 145px; }
  .talent-table th:nth-child(2) { width: 115px; }
  .talent-table th:nth-child(3) { width: 125px; }
  .talent-table th:nth-child(4) { width: 90px; }
  .talent-table th:nth-child(5) { width: 70px; }
  .talent-table th:nth-child(6) { width: 115px; }
}

@media screen and (max-width: 430px) {
  .output-actions .output-button {
    font-size: 10.5px;
    padding-inline: 6px;
  }

  .output-actions-center {
    gap: 6px;
  }

  .output-actions .spark-button,
  .output-actions .power-bi-button,
  .output-actions .famous-home-button {
    gap: 5px;
    padding-inline: 5px;
  }

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

  .sheet-top h2 {
    font-size: 19px;
  }

  .brand-logo {
    width: 112px;
    max-width: 112px;
  }
}


/* Cloud Sync primary submit action */
#cloudDoneButton,
.cloud-dialog-footer #cloudDoneButton {
  border-color: #111 !important;
  background: #111 !important;
  color: #fff !important;
}

#cloudDoneButton:hover,
.cloud-dialog-footer #cloudDoneButton:hover {
  border-color: #111 !important;
  background: #111 !important;
  color: #fff !important;
}


/* Weekly schedule imported sales-plan totals */
.weekly-schedule-table tfoot th,
.weekly-schedule-table tfoot td {
  background: #f1f1f1;
  font-weight: 700;
}

.weekly-schedule-table tfoot th {
  padding-left: 10px;
  text-align: left;
}

.weekly-schedule-table .schedule-sales-plan-row th,
.weekly-schedule-table .schedule-sales-plan-row td {
  border-top: 1px solid #8f8f8f;
  font-size: 9.5px;
}

.weekly-schedule-table .schedule-sales-plan-row .schedule-total-column {
  background: #e9e9e9;
  font-weight: 800;
}


/* Custom associate position selector */
.name-custom-position-field {
  display: grid;
  gap: 5px;
}

.name-custom-position {
  width: 100%;
  min-height: 42px;
  padding: 0 42px 0 12px;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23171717' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 7px;
  color: #171717;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.name-custom-position:hover {
  border-color: #99938f;
}

.name-custom-position:focus {
  border-color: #171717;
  outline: 2px solid rgba(23, 23, 23, .08);
  outline-offset: 1px;
}




/* Align the Notes / export quick-action row with the worksheet card */
.quick-output-actions {
  width: min(1160px, calc(100% - 32px));
  margin: 14px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

@media screen and (max-width: 640px) {
  .quick-output-actions {
    width: 100%;
    padding-inline: 0;
  }
}


/* Cloud account heading now owns the autosave status. */
.cloud-dialog-heading .save-status {
  margin-top: 8px;
  font-size: 11px;
}

.cloud-dialog-heading .save-status::before {
  width: 7px;
  height: 7px;
  flex-basis: 7px;
}


/* Mobile quick actions: compact strip with PDF + Print kept together on the right. */
.quick-output-cluster {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

@media screen and (max-width: 999px) {
  .quick-output-actions {
    position: relative !important;
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    box-sizing: border-box !important;
  }

  .quick-output-actions .quick-output-cluster {
    position: absolute !important;
    top: calc(50% + 2px) !important;
    right: 12px !important;
    height: 42px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    flex: 0 0 auto !important;
    transform: translateY(-50%) !important;
  }

  .quick-output-actions .quick-output-button {
    width: auto !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    gap: 6px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .quick-output-actions .quick-output-button .output-icon-label {
    display: inline-block !important;
    margin: 0 !important;
    color: #171717 !important;
    font-size: 11px !important;
    font-weight: 650 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .quick-output-actions .quick-output-button svg {
    width: 19px !important;
    height: 19px !important;
    display: block !important;
    margin: 0 !important;
    flex: 0 0 19px !important;
    align-self: center !important;
    transform: none !important;
  }
}

@media screen and (max-width: 640px) {
  .quick-output-actions {
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 0 10px !important;
  }

  .quick-output-actions .quick-output-cluster {
    right: 10px !important;
    height: 40px !important;
  }

  .quick-output-actions .quick-output-button {
    width: auto !important;
    min-width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 0 9px !important;
    flex: 0 0 auto !important;
    gap: 5px !important;
  }

  .quick-output-actions .quick-output-button .output-icon-label {
    font-size: 10.5px !important;
  }

  .quick-output-actions .quick-output-button svg {
    width: 18px !important;
    height: 18px !important;
    flex-basis: 18px !important;
  }
}


/* Compact mobile shift editor */
@media screen and (max-width: 580px) {
  .shift-dialog {
    width: min(340px, calc(100vw - 36px)) !important;
  }

  .shift-dialog .zone-dialog-card {
    padding: 18px 14px 16px !important;
  }

  .shift-dialog .cloud-dialog-heading {
    margin-left: -14px !important;
    margin-right: -14px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .shift-dialog .cloud-dialog-copy {
    margin-bottom: 14px !important;
  }

  .shift-dialog .shift-time-fields {
    width: min(252px, 100%) !important;
    margin: 12px auto 10px !important;
  }

  .shift-dialog .shift-time-control {
    grid-template-columns: 34px minmax(0, 1fr) 34px !important;
  }

  .shift-dialog .shift-time-fields input {
    min-height: 40px !important;
    padding-inline: 8px !important;
  }

  .shift-dialog .shift-step-button {
    min-width: 34px !important;
    min-height: 40px !important;
  }

  .shift-dialog .shift-other-store-field {
    width: min(252px, 100%) !important;
    margin: 0 auto 10px !important;
  }

  .shift-dialog .shift-preview {
    width: min(252px, 100%) !important;
    min-height: 36px !important;
    margin: 0 auto 16px !important;
  }

  .shift-dialog .zone-dialog-actions {
    width: min(252px, 100%) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}


/* Hover affordance for editable Shift / Break / Zone cells */
#talentRows td.shift-cell .shift-cell-button,
#talentRows td.zone-cell:not(.name-cell):not(.shift-cell) .zone-cell-button {
  position: relative;
}

@media (hover: hover) and (pointer: fine) {
  #talentRows td.shift-cell .shift-cell-button::after,
  #talentRows td.zone-cell:not(.name-cell):not(.shift-cell) .zone-cell-button::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 4px;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border: 1px solid #b8b8b8;
    border-radius: 2px;
    background: #ffffff;
    color: #4b4b4b;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%);
    transition: opacity 120ms ease, border-color 120ms ease, background 120ms ease;
  }

  #talentRows td.shift-cell .shift-cell-button:hover::after,
  #talentRows td.shift-cell .shift-cell-button:focus-visible::after,
  #talentRows td.zone-cell:not(.name-cell):not(.shift-cell) .zone-cell-button:hover::after,
  #talentRows td.zone-cell:not(.name-cell):not(.shift-cell) .zone-cell-button:focus-visible::after {
    opacity: 1;
    border-color: #8e8e8e;
    background: #fafafa;
  }

  #talentRows td.shift-cell .shift-cell-button.empty-cell-button::after,
  #talentRows td.zone-cell:not(.name-cell):not(.shift-cell) .zone-cell-button.empty-cell-button::after {
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
  }
}


/* Standalone editable weekly schedule page */
body.schedule-page-open {
  min-height: 100dvh;
  overflow-x: hidden;
  background: #ffffff;
}

body.schedule-page-open > .app-header,
body.schedule-page-open > .output-actions,
body.schedule-page-open > .day-tabs,
body.schedule-page-open > .quick-output-actions,
body.schedule-page-open > .app-shell {
  display: none !important;
}

.schedule-dialog.schedule-page {
  width: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block;
  border: 0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.schedule-dialog.schedule-page[hidden] {
  display: none !important;
}

.schedule-page .schedule-dialog-card {
  width: min(1220px, 100%);
  min-height: 100dvh;
  max-height: none !important;
  margin: 0 auto;
  padding: 24px;
  overflow: visible !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.schedule-page .schedule-page-heading {
  position: static;
  margin: 0;
  padding: 0 0 14px;
  border-bottom: 1px solid #e1e1e1;
}

.schedule-page-week-nav {
  margin: 16px 0 4px;
  display: flex;
  align-items: stretch;
  gap: 7px;
}

.schedule-page-week-nav .schedule-week-picker {
  width: min(430px, 100%);
  flex: 1 1 430px;
}

.schedule-page-week-nav .calendar-step,
.schedule-page-week-nav .schedule-today-button {
  flex: 0 0 auto;
}

.weekly-schedule-table td.schedule-display-cell {
  padding: 0 !important;
}


.schedule-shift-display {
  width: 100%;
  min-height: 46px;
  padding: 8px 6px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #171717;
  font: inherit;
  font-size: inherit;
  line-height: 1.2;
  cursor: default;
  user-select: text;
}

.schedule-shift-text {
  display: block;
  text-align: center;
}

.schedule-shift-display.schedule-shift-empty {
  padding-inline: 6px;
}

.schedule-print-shift-value {
  display: block;
  width: 100%;
  text-align: center;
}

@media screen and (max-width: 640px) {
  .schedule-page .schedule-dialog-card {
    padding: 18px 0 24px;
  }

  .schedule-page .schedule-page-heading,
  .schedule-page .schedule-summary,
  .schedule-page .schedule-mobile-hint,
  .schedule-page .schedule-hours-note,
  .schedule-page .schedule-page-week-nav {
    margin-left: 14px;
    margin-right: 14px;
  }

  .schedule-page .schedule-page-heading {
    padding-bottom: 12px;
  }

  .schedule-page-week-nav {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 6px;
  }

  .schedule-page-week-nav .schedule-week-picker {
    width: 100%;
    min-width: 0;
  }

  .schedule-page-week-nav .schedule-today-button {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
  }

  .schedule-page .schedule-summary {
    margin-top: 14px;
  }

  .schedule-shift-display {
    min-height: 54px;
    padding: 8px 5px;
  }
}

@media print {
  body.schedule-page-open .schedule-page-week-nav {
    display: none !important;
  }
}


/* Shared mobile shell for Schedule and future standalone pages */
@media screen and (max-width: 999px) {
  body.schedule-page-open .site-shared-compact-bar {
    display: block !important;
  }

  .schedule-page .schedule-page-heading {
    margin: 0 14px !important;
    padding: 12px 0 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    border-bottom: 1px solid #e1e1e1 !important;
  }

  .schedule-page .schedule-page-heading > div:first-child {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  .schedule-page .schedule-page-heading .eyebrow,
  .schedule-page .schedule-page-heading h2 {
    display: none !important;
  }

  .schedule-page .schedule-week-meta {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .schedule-page .schedule-dialog-actions {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .schedule-page .schedule-dialog-actions .dialog-close {
    display: none !important;
  }

  .schedule-page .schedule-print-button {
    min-height: 38px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    white-space: nowrap !important;
  }

  .schedule-page .schedule-page-week-nav {
    margin-top: 12px !important;
  }
}

@media screen and (max-width: 580px) {
  .schedule-page .schedule-page-heading {
    margin-left: 14px !important;
    margin-right: 14px !important;
  }

  .schedule-page .schedule-week-meta {
    font-size: 12px !important;
  }

  .schedule-page .schedule-print-button {
    min-height: 36px !important;
    padding-inline: 9px !important;
    font-size: 11px !important;
  }
}


/* Schedule uses the shared top week selector only */
.schedule-page .schedule-page-week-nav {
  display: none !important;
}


/* Schedule print icon uses canonical charcoal */
.schedule-print-button svg,
.schedule-print-button svg * {
  fill: none !important;
  stroke: #171717 !important;
}


/* Tight mobile schedule header spacing */
@media screen and (max-width: 999px) {
  .schedule-page .schedule-dialog-card {
    padding-top: 0 !important;
  }

  .schedule-page .schedule-page-heading {
    margin-top: 0 !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    min-height: 0 !important;
  }

  .schedule-page .schedule-week-meta {
    min-height: 36px !important;
  }

  .schedule-page .schedule-dialog-actions {
    min-height: 36px !important;
  }

  .schedule-page .schedule-summary {
    margin-top: 8px !important;
  }
}

@media screen and (max-width: 640px) {
  .schedule-page .schedule-dialog-card {
    padding: 0 0 20px !important;
  }

  .schedule-page .schedule-page-heading {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
  }

  .schedule-page .schedule-summary {
    margin-top: 7px !important;
  }
}


/* Compact schedule summary: keep only hours and sales plan */
@media screen and (max-width: 999px) {
  .schedule-page .schedule-associate-chip {
    display: none !important;
  }

  .schedule-page .schedule-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .schedule-page .schedule-sales-plan-chip {
    grid-column: auto !important;
  }
}


/* Final compact schedule summary: two cards on one row */
@media screen and (max-width: 999px) {
  body.schedule-page-open .schedule-associate-chip {
    display: none !important;
  }

  body.schedule-page-open .schedule-summary {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.schedule-page-open .schedule-summary-chip {
    width: auto !important;
    min-width: 0 !important;
    grid-column: auto !important;
  }
}


/* Restore compact week range label */
@media screen and (max-width: 999px) {
  .calendar-controls .week-picker {
    grid-template-columns: 118px minmax(0, 1fr) 28px !important;
    grid-template-areas:
      "label label label"
      "input range open" !important;
  }

  .calendar-controls .week-picker #weekRangeLabel {
    grid-area: range !important;
    display: block !important;
    min-width: 0 !important;
    overflow: hidden !important;
    color: #77716e !important;
    font-size: 9px !important;
    font-weight: 600 !important;
    line-height: 1.05 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .calendar-controls .week-picker .week-picker-open {
    grid-area: open !important;
  }
}

@media screen and (max-width: 580px) {
  .calendar-controls .week-picker {
    grid-template-columns: 108px minmax(0, 1fr) 28px !important;
  }

  .calendar-controls .week-picker #weekRangeLabel {
    font-size: 8px !important;
  }
}

/* Schedule navigation cleanup + larger visible week ranges */
.schedule-page .schedule-dialog-card:not(.schedule-print-card) {
  border-top: 0 !important;
}

#weekRangeLabel,
#scheduleWeekRangeLabel,
.week-picker #weekRangeLabel,
.schedule-week-picker #scheduleWeekRangeLabel {
  font-size: 14px !important;
  line-height: 1.1 !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

@media (max-width: 999px) {
  .compact-nav-control-row #weekRangeLabel,
  .schedule-page-week-nav #scheduleWeekRangeLabel {
    font-size: 14px !important;
  }
}

/* Force readable week-range size in shared Worksheet/Schedule picker */
body #weekPicker #weekRangeLabel,
body .schedule-week-picker #scheduleWeekRangeLabel {
  font-size: 16px !important;
  line-height: 1.1 !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

@media screen and (max-width: 999px) {
  body #weekPicker #weekRangeLabel,
  body.schedule-page-open #weekPicker #weekRangeLabel,
  body .schedule-week-picker #scheduleWeekRangeLabel {
    font-size: 16px !important;
  }
}

/* Polished shared week selector layout */
body .calendar-controls #weekPicker.week-picker,
body .schedule-page-week-nav .schedule-week-picker {
  min-height: 52px !important;
  height: 52px !important;
  padding: 5px 10px 6px !important;
  grid-template-columns: 140px minmax(180px, 1fr) 32px !important;
  grid-template-rows: 10px 1fr !important;
  grid-template-areas:
    "label label label"
    "input range open" !important;
  column-gap: 12px !important;
  row-gap: 3px !important;
  align-items: center !important;
  justify-content: stretch !important;
}

body .calendar-controls #weekPicker.week-picker > span,
body .schedule-page-week-nav .schedule-week-picker > span {
  grid-area: label !important;
  align-self: end !important;
  margin: 0 !important;
  font-size: 9px !important;
  line-height: 1 !important;
  letter-spacing: .1em !important;
}

body .calendar-controls #weekPicker #weekDate,
body .schedule-page-week-nav #scheduleWeekDate {
  grid-area: input !important;
  width: 140px !important;
  min-width: 140px !important;
  height: 26px !important;
  margin: 0 !important;
  padding: 0 !important;
  align-self: center !important;
  color: #171717 !important;
  font-size: 15px !important;
  font-weight: 750 !important;
  line-height: 26px !important;
}

body .calendar-controls #weekPicker #weekDate::-webkit-calendar-picker-indicator,
body .schedule-page-week-nav #scheduleWeekDate::-webkit-calendar-picker-indicator {
  width: 16px !important;
  height: 16px !important;
  margin: 0 0 0 6px !important;
  padding: 0 !important;
  opacity: .72 !important;
  cursor: pointer !important;
}

body .calendar-controls #weekPicker #weekRangeLabel,
body .schedule-page-week-nav #scheduleWeekRangeLabel {
  grid-area: range !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 0 0 14px !important;
  align-self: center !important;
  border-left: 1px solid #dedede !important;
  color: #666 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 26px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body .calendar-controls #weekPicker .week-picker-open,
body .schedule-page-week-nav .week-picker-open {
  grid-area: open !important;
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  align-self: center !important;
  justify-self: end !important;
  border-radius: 4px !important;
}

body .calendar-controls #weekPicker .week-picker-open svg,
body .schedule-page-week-nav .week-picker-open svg {
  width: 17px !important;
  height: 17px !important;
}

@media screen and (max-width: 580px) {
  body .calendar-controls #weekPicker.week-picker,
  body .schedule-page-week-nav .schedule-week-picker {
    min-height: 48px !important;
    height: 48px !important;
    grid-template-columns: 112px minmax(0, 1fr) 28px !important;
    column-gap: 7px !important;
    padding-inline: 9px !important;
  }

  body .calendar-controls #weekPicker #weekDate,
  body .schedule-page-week-nav #scheduleWeekDate {
    width: 112px !important;
    min-width: 112px !important;
    font-size: 13px !important;
  }

  body .calendar-controls #weekPicker #weekRangeLabel,
  body .schedule-page-week-nav #scheduleWeekRangeLabel {
    padding-left: 9px !important;
    font-size: 13px !important;
  }
}

/* Final week selector height alignment */
@media screen and (min-width: 1000px) {
  body .calendar-controls #weekPicker.week-picker,
  body .schedule-page-week-nav .schedule-week-picker {
    min-height: 40px !important;
    height: 40px !important;
    padding: 3px 10px 4px !important;
    grid-template-rows: 8px 1fr !important;
    row-gap: 1px !important;
  }

  body .calendar-controls #weekPicker #weekDate,
  body .schedule-page-week-nav #scheduleWeekDate {
    height: 24px !important;
    line-height: 24px !important;
    font-size: 14px !important;
  }

  body .calendar-controls #weekPicker #weekRangeLabel,
  body .schedule-page-week-nav #scheduleWeekRangeLabel {
    line-height: 24px !important;
    font-size: 15px !important;
  }

  body .calendar-controls #weekPicker .week-picker-open,
  body .schedule-page-week-nav .week-picker-open {
    width: 26px !important;
    min-width: 26px !important;
    height: 26px !important;
  }
}

@media screen and (max-width: 999px) {
  body .calendar-controls #weekPicker.week-picker,
  body .schedule-page-week-nav .schedule-week-picker {
    min-height: 52px !important;
    height: 52px !important;
  }
}

@media screen and (max-width: 580px) {
  body .calendar-controls #weekPicker.week-picker,
  body .schedule-page-week-nav .schedule-week-picker {
    min-height: 48px !important;
    height: 48px !important;
  }
}

/* Desktop schedule header cleanup */
@media screen and (min-width: 1000px) {
  body.schedule-page-open .schedule-page .schedule-dialog-actions .dialog-close {
    display: none !important;
  }

  body.schedule-page-open .schedule-page .schedule-dialog-actions {
    gap: 0 !important;
  }

  body.schedule-page-open .schedule-page .schedule-print-button {
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 16px !important;
    gap: 8px !important;
    border: 1px solid #bdbdbd !important;
    border-radius: 4px !important;
    background: #fff !important;
    color: #171717 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
  }

  body.schedule-page-open .schedule-page .schedule-print-button svg {
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    min-height: 17px !important;
    max-width: 17px !important;
    max-height: 17px !important;
    flex: 0 0 17px !important;
    stroke: #171717 !important;
    stroke-width: 1.8 !important;
  }

  body.schedule-page-open .schedule-page .schedule-print-button:hover,
  body.schedule-page-open .schedule-page .schedule-print-button:focus-visible {
    border-color: #171717 !important;
    background: #f4f4f4 !important;
    outline: none !important;
  }
}

/* Smaller unified week navigation controls */
@media screen and (min-width: 1000px) {
  body .calendar-controls .calendar-step,
  body .calendar-controls .today-button,
  body .calendar-controls #weekPicker.week-picker {
    min-height: 36px !important;
    height: 36px !important;
  }

  body .calendar-controls #weekPicker.week-picker {
    padding: 2px 10px 3px !important;
    grid-template-rows: 7px 1fr !important;
    row-gap: 1px !important;
  }

  body .calendar-controls #weekPicker #weekDate {
    height: 22px !important;
    line-height: 22px !important;
    font-size: 13.5px !important;
  }

  body .calendar-controls #weekPicker #weekRangeLabel {
    line-height: 22px !important;
    font-size: 14px !important;
  }

  body .calendar-controls #weekPicker .week-picker-open {
    width: 24px !important;
    min-width: 24px !important;
    height: 24px !important;
  }
}

@media screen and (max-width: 999px) {
  body .compact-nav-control-row .calendar-step,
  body .compact-nav-control-row .today-button,
  body .calendar-controls #weekPicker.week-picker {
    min-height: 46px !important;
    height: 46px !important;
  }
}

@media screen and (max-width: 580px) {
  body .compact-nav-control-row .calendar-step,
  body .calendar-controls #weekPicker.week-picker {
    min-height: 44px !important;
    height: 44px !important;
  }
}

/* Desktop schedule week selector beside summary */
@media screen and (min-width: 1000px) {
  body.schedule-page-open .schedule-page .schedule-dialog-card:not(.schedule-print-card) {
    display: grid !important;
    grid-template-columns: max-content minmax(0, 1fr) !important;
    column-gap: 28px !important;
    align-items: center !important;
  }

  body.schedule-page-open .schedule-page .schedule-page-heading {
    grid-column: 1 / -1 !important;
  }

  body.schedule-page-open .schedule-page .schedule-summary {
    grid-column: 1 !important;
    grid-row: 2 !important;
    margin: 18px 0 14px !important;
    align-self: center !important;
  }

  body.schedule-page-open .schedule-page .schedule-page-week-nav {
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: min(720px, 100%) !important;
    margin: 18px 0 14px auto !important;
    display: grid !important;
    grid-template-columns: 36px minmax(360px, 1fr) 36px 84px !important;
    gap: 8px !important;
    align-items: stretch !important;
    justify-self: end !important;
  }

  body.schedule-page-open .schedule-page .schedule-page-week-nav .calendar-step,
  body.schedule-page-open .schedule-page .schedule-page-week-nav .schedule-today-button,
  body.schedule-page-open .schedule-page .schedule-page-week-nav .schedule-week-picker {
    min-height: 36px !important;
    height: 36px !important;
  }

  body.schedule-page-open .schedule-page .schedule-page-week-nav .calendar-step {
    width: 36px !important;
    min-width: 36px !important;
    padding: 0 !important;
  }

  body.schedule-page-open .schedule-page .schedule-page-week-nav .schedule-today-button {
    width: 84px !important;
    min-width: 84px !important;
    padding: 0 14px !important;
    margin: 0 !important;
  }

  body.schedule-page-open .schedule-page .schedule-page-week-nav .schedule-week-picker {
    width: 100% !important;
    min-width: 0 !important;
    padding: 2px 10px 3px !important;
    grid-template-columns: 136px minmax(160px, 1fr) 26px !important;
    grid-template-rows: 7px 1fr !important;
    grid-template-areas:
      "label label label"
      "input range open" !important;
    column-gap: 10px !important;
    row-gap: 1px !important;
  }

  body.schedule-page-open .schedule-page .schedule-page-week-nav #scheduleWeekDate {
    width: 136px !important;
    min-width: 136px !important;
    height: 22px !important;
    line-height: 22px !important;
    font-size: 13.5px !important;
  }

  body.schedule-page-open .schedule-page .schedule-page-week-nav #scheduleWeekRangeLabel {
    line-height: 22px !important;
    font-size: 14px !important;
  }

  body.schedule-page-open .schedule-page .schedule-page-week-nav .week-picker-open {
    width: 24px !important;
    min-width: 24px !important;
    height: 24px !important;
  }

  body.schedule-page-open .schedule-page .schedule-mobile-hint,
  body.schedule-page-open .schedule-page .schedule-table-wrap,
  body.schedule-page-open .schedule-page .schedule-hours-note {
    grid-column: 1 / -1 !important;
  }
}

@media screen and (max-width: 999px) {
  body.schedule-page-open .schedule-page .schedule-page-week-nav {
    display: none !important;
  }
}

/* Desktop day selector stays in document flow */
@media screen and (min-width: 1000px) {
  body:not(.schedule-page-open) > .day-tabs {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
  }
}

/* Tighten desktop spacing below export/print icons */
@media screen and (min-width: 1000px) {
  body:not(.schedule-page-open) > .app-shell {
    padding-top: 14px !important;
  }
}


/* Compact desktop Schedule week controls so Today stays close to the selector. */
@media screen and (min-width: 1000px) {
  body.schedule-page-open .schedule-page .schedule-page-week-nav {
    width: min(540px, 100%) !important;
    margin: 18px auto 14px 0 !important;
    grid-template-columns: 36px minmax(330px, 1fr) 36px 76px !important;
    gap: 7px !important;
    justify-self: start !important;
  }

  body.schedule-page-open .schedule-page .schedule-page-week-nav .schedule-today-button {
    width: 76px !important;
    min-width: 76px !important;
    padding-inline: 11px !important;
  }

  body.schedule-page-open .schedule-page .schedule-page-week-nav .schedule-week-picker {
    padding-inline: 9px !important;
    grid-template-columns: 128px minmax(145px, 1fr) 24px !important;
    column-gap: 8px !important;
  }

  body.schedule-page-open .schedule-page .schedule-page-week-nav #scheduleWeekDate {
    width: 128px !important;
    min-width: 128px !important;
  }

  body.schedule-page-open .schedule-page .schedule-page-week-nav .week-picker-open {
    width: 22px !important;
    min-width: 22px !important;
  }

  body.schedule-page-open .schedule-page .schedule-roster-button {
    display: inline-flex !important;
  }
}

/* Keep Roster beside Print Schedule on phones/tablets too. */
@media screen and (max-width: 999px) {
  body.schedule-page-open .schedule-page .schedule-dialog-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
  }

  body.schedule-page-open .schedule-page .schedule-roster-button {
    display: inline-flex !important;
  }

  body.schedule-page-open .schedule-page .schedule-print-button {
    width: auto !important;
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 0 12px !important;
    flex: 0 0 auto !important;
  }
}


/* Store-level options shown after a store is selected/logged in */
.store-options-block {
  margin-top: 14px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, .8fr);
  gap: 12px 16px;
  align-items: end;
  border: 1px solid #ded9d6;
  background: #f8f7f6;
}

.store-options-block[hidden] {
  display: none !important;
}

.store-options-copy {
  min-width: 0;
}

.store-options-label {
  display: block;
  margin-bottom: 4px;
  color: #df0038;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.store-options-copy strong {
  display: block;
  color: #171717;
  font-size: 15px;
  font-weight: 700;
}

.store-options-copy small {
  display: block;
  margin-top: 4px;
  color: #706b67;
  font-size: 11px;
  line-height: 1.35;
}

.store-options-vault-field {
  display: grid;
  gap: 5px;
}

.store-options-vault-field > span {
  color: #5f5956;
  font-size: 10px;
  font-weight: 700;
}

.store-options-vault-field > div {
  height: 42px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  border: 1px solid #cbc6c2;
  background: #fff;
}

.store-options-vault-field b {
  color: #6e6966;
  font-size: 14px;
  font-weight: 600;
}

.store-options-vault-field input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 0 0 4px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #171717;
  font: 700 14px/1 Inter, Arial, sans-serif;
}

.store-options-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.store-options-actions > span {
  color: #6e6966;
  font-size: 11px;
  font-weight: 600;
}

@media (max-width: 580px) {
  .store-options-block {
    grid-template-columns: 1fr;
  }

  .store-options-actions {
    grid-column: 1;
  }
}


/* Native store selector no longer renders an avatar; the shared navigation owns it. */
.header-store-selector .store-selector-avatar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
}


/* Final desktop Schedule action sizing: keep Roster and Print compact. */
@media screen and (min-width: 1000px) {
  body.schedule-page-open .schedule-page .schedule-dialog-actions {
    width: auto !important;
    min-width: 0 !important;
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    flex: 0 0 auto !important;
  }

  body.schedule-page-open .schedule-page .schedule-print-button {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 14px !important;
    flex: 0 0 auto !important;
  }

  body.schedule-page-open .schedule-page .schedule-roster-button {
    min-width: 104px !important;
  }

  body.schedule-page-open .schedule-page #printScheduleButton {
    min-width: 148px !important;
  }
}


/* Cleaner weekly schedule shift ranges. */
.schedule-dialog-card:not(.schedule-print-card) .schedule-shift-text {
  width: 100% !important;
  display: grid !important;
  place-items: center !important;
  gap: 2px !important;
  color: #3f3a37 !important;
  font-variant-numeric: tabular-nums !important;
  text-align: center !important;
}

.schedule-dialog-card:not(.schedule-print-card) .schedule-shift-start,
.schedule-dialog-card:not(.schedule-print-card) .schedule-shift-end {
  display: block !important;
  white-space: nowrap !important;
  font-weight: 500 !important;
  line-height: 1.08 !important;
}

.schedule-dialog-card:not(.schedule-print-card) .schedule-shift-end-line {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
  line-height: 1.08 !important;
}

.schedule-dialog-card:not(.schedule-print-card) .schedule-shift-separator {
  color: #9a9490 !important;
  font-size: .82em !important;
  font-weight: 500 !important;
}

@media screen and (min-width: 1000px) {
  .schedule-dialog-card:not(.schedule-print-card) .schedule-shift-display {
    min-height: 52px !important;
    padding: 6px 18px 6px 6px !important;
  }
}


/* Slightly smaller text only inside weekly schedule shift cells. */
.schedule-dialog-card:not(.schedule-print-card) .schedule-shift-text {
  font-size: 9.75px !important;
  letter-spacing: -0.01em !important;
}


.cloud-login-role {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0 10px;
  border: 1px solid #c9c5c1;
  background: #fff;
}

.cloud-login-role button {
  min-height: 44px;
  border: 0;
  background: #fff;
  color: #2d2d2d;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.cloud-login-role button + button {
  border-left: 1px solid #c9c5c1;
}

.cloud-login-role button.is-active {
  background: #2d2d2d;
  color: #fff;
}

.cloud-account-identity {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #dedad6;
  background: #faf9f8;
  display: flex;
  align-items: center;
  gap: 11px;
}

.cloud-manager-avatar {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2d2d2d;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .03em;
}

.cloud-manager-avatar {
  position: relative;
  overflow: hidden;
}

.cloud-manager-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.cloud-account-identity strong,
.cloud-account-identity small {
  display: block;
}

.cloud-account-identity strong {
  font-size: 13px;
}

.cloud-account-identity small {
  margin-top: 2px;
  color: #73706d;
  font-size: 11px;
}

.cloud-access-block,
.cloud-change-pin-block {
  margin-top: 14px;
  padding: 13px;
  border: 1px solid #d8d4d0;
  background: #faf9f8;
}

.cloud-change-pin-button {
  width: 100%;
  margin-top: 10px;
}

.cloud-access-heading,
.cloud-access-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cloud-access-heading span {
  font-size: 13px;
  font-weight: 800;
}

.cloud-access-heading small,
.cloud-access-footer small {
  color: #777;
  font-size: 11px;
}

.cloud-access-fields {
  margin-top: 10px;
}

.cloud-access-footer {
  margin-top: 10px;
}

@media (max-width: 560px) {
  .cloud-access-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .cloud-access-footer .cloud-secondary-button {
    width: 100%;
  }
}


.cloud-login-role[hidden],
.cloud-account-identity[hidden],
.cloud-access-block[hidden],
.cloud-change-pin-block[hidden],
.cloud-territory-store-block[hidden],
.nexus-admin-block[hidden],
.cloud-territory-login-row[hidden] {
  display: none !important;
}


/* Employee accounts can view Schedule and Worksheet, but cannot edit them. */
body.is-staff-readonly .worksheet input:disabled,
body.is-staff-readonly .worksheet textarea:disabled,
body.is-staff-readonly .worksheet select:disabled,
body.is-staff-readonly .worksheet button:disabled {
  opacity: 1 !important;
  color: inherit !important;
  -webkit-text-fill-color: currentColor;
  cursor: default !important;
}

body.is-staff-readonly .worksheet input:disabled,
body.is-staff-readonly .worksheet textarea:disabled,
body.is-staff-readonly .worksheet select:disabled {
  background-color: inherit !important;
}

body.is-staff-readonly .schedule-display-cell {
  cursor: default !important;
}

body.is-staff-readonly .import-dayforce-group {
  display: none !important;
}

/* Famous-style circular X for clearable input fields (v132). */
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin: 0 2px 0 10px;
  border: 1.25px solid #171717;
  border-radius: 50%;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.7 8.7l6.6 6.6M15.3 8.7l-6.6 6.6' fill='none' stroke='%23171717' stroke-width='1.55' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 10px;
  cursor: pointer;
}

.shoe-search-control .shoe-search-clear,
.store-layout-bin-name-clear {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  padding: 0 !important;
  border: 1.25px solid #171717 !important;
  border-radius: 50% !important;
  background-color: #fff !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.7 8.7l6.6 6.6M15.3 8.7l-6.6 6.6' fill='none' stroke='%23171717' stroke-width='1.55' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 10px 10px !important;
}

.shoe-search-control .shoe-search-clear:hover,
.shoe-search-control .shoe-search-clear:focus-visible,
.store-layout-bin-name-clear:hover,
.store-layout-bin-name-clear:focus-visible {
  background-color: #f7f7f7 !important;
  border-color: #171717 !important;
  outline: none !important;
}

.shoe-search-control .shoe-search-clear[hidden],
.store-layout-bin-name-clear[hidden] {
  display: none !important;
}



/* Territory Manager + Nexus Admin */
.cloud-territory-store-block,
.nexus-admin-block {
  margin-top: 14px;
  padding: 13px;
  border: 1px solid #d8d4d0;
  background: #faf9f8;
}

.cloud-territory-store-block label {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.cloud-territory-store-block label > span {
  color: #3f3a37;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cloud-territory-store-block select {
  width: 100%;
  min-height: 42px;
  padding: 8px 34px 8px 10px;
  border: 1px solid #cfc9c5;
  border-radius: 4px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 13px;
}

.nexus-admin-help {
  margin: 7px 0 0;
  color: #6b6561;
  font-size: 11px;
  line-height: 1.4;
}

.nexus-admin-fields label small {
  color: #77716d;
  font-size: 10px;
  line-height: 1.3;
}

.nexus-admin-stores-field {
  grid-column: 1 / -1;
}

.nexus-admin-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.nexus-admin-actions button {
  margin-top: 0;
}

.nexus-admin-message {
  min-height: 16px;
  margin: 9px 0 0;
  color: #5e5956;
  font-size: 11px;
  font-weight: 650;
}

.nexus-admin-message.is-error {
  padding: 8px 10px;
  border: 1px solid #d93025;
  border-radius: 4px;
  background: #fce8e6;
  color: #b3261e;
}

.territory-manager-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.territory-manager-card {
  padding: 10px;
  border: 1px solid #ddd8d4;
  background: #fff;
}

.territory-manager-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.territory-manager-card strong,
.territory-manager-card small {
  display: block;
}

.territory-manager-card strong {
  font-size: 12px;
}

.territory-manager-card small {
  margin-top: 2px;
  color: #77716d;
  font-size: 10px;
}

.territory-manager-card-stores {
  margin-top: 7px;
  color: #44403d;
  font-size: 10.5px;
  line-height: 1.4;
}

.territory-manager-card-actions {
  display: flex;
  gap: 6px;
}

.territory-manager-card-actions button {
  width: auto;
  min-height: 30px;
  margin: 0;
  padding: 0 9px;
  border: 1px solid #c8c3bf;
  border-radius: 3px;
  background: #fff;
  color: #222;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.territory-manager-card-actions button.is-remove {
  border-color: #c90033;
  color: #c90033;
}

body.is-territory-view .app-shell,
body.is-territory-view .day-tabs,
body.is-territory-view .quick-output-actions {
  display: none !important;
}

body.is-territory-view .import-dayforce-group {
  display: none !important;
}

body.is-territory-view.schedule-page-open .schedule-dialog-card:not(.schedule-print-card)::before {
  content: "Territory Manager view · Read only" !important;
}

@media (max-width: 580px) {
  .cloud-login-role {
    grid-template-columns: 1fr;
  }

  .cloud-login-role button + button {
    border-left: 0;
    border-top: 1px solid #c9c5c1;
  }

  .nexus-admin-actions,
  .territory-manager-card-heading {
    flex-direction: column;
  }

  .territory-manager-card-actions {
    width: 100%;
  }

  .territory-manager-card-actions button {
    flex: 1 1 0;
  }
}


.cloud-territory-store-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.cloud-territory-store-actions .cloud-secondary-button {
  margin-top: 0;
}

body.is-territory-view #scheduleDialogClose {
  display: none !important;
}

@media (max-width: 520px) {
  .cloud-territory-store-actions {
    grid-template-columns: 1fr;
  }
}


/* Territory Managers only use the read-only Schedule and Store Layout areas. */
body.is-territory-view #scheduleRosterButton,
body.is-territory-view .schedule-mobile-hint,
body.is-territory-view .site-nav-roster,
body.is-territory-view .site-nav-worksheet,
body.is-territory-view .site-nav-tools,
body.is-territory-view .site-nav-notes,
body.is-territory-view .site-nav-search,
body.is-territory-view .site-nav-workbench,
body.is-territory-view .site-nav-spark,
body.is-territory-view .site-nav-power,
body.is-territory-view .site-nav-import {
  display: none !important;
}


/* Light News-style canvas for the desktop Schedule page */
@media screen and (min-width: 1000px) {
  html:not(.nexus-dark-gray) body.schedule-page-open {
    background: #f4f3f2 !important;
  }

  html:not(.nexus-dark-gray) body.schedule-page-open .schedule-dialog.schedule-page {
    background: #f4f3f2 !important;
  }

  html:not(.nexus-dark-gray) body.schedule-page-open .schedule-page .schedule-dialog-card:not(.schedule-print-card) {
    background:
      linear-gradient(
        to bottom,
        #ffffff 0,
        #ffffff 92px,
        #f4f3f2 92px,
        #f4f3f2 100%
      ) !important;
  }

  html:not(.nexus-dark-gray) body.schedule-page-open .schedule-page .schedule-page-heading {
    background: transparent !important;
  }

  html:not(.nexus-dark-gray) body.schedule-page-open .schedule-page .schedule-table-wrap {
    background: #ffffff !important;
  }
}


/* Flat mobile schedule grid: no raised/shadowed edges on sticky cells or grid lines. */
@media screen and (max-width: 700px) {
  .schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table th,
  .schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table td {
    box-shadow: none !important;
    filter: none !important;
  }

  .schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table tbody th,
  .schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table tfoot th:first-child {
    box-shadow: none !important;
  }
}


/* Keep a flat divider on the sticky Associate column while horizontally scrolling. */
@media screen and (max-width: 700px) {
  .schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table thead th:first-child,
  .schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table tbody th,
  .schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table tfoot th:first-child {
    border-right: 1px solid #aaa6a3 !important;
  }

  .schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table thead th:first-child::after,
  .schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table tbody th::after,
  .schedule-dialog-card:not(.schedule-print-card) .weekly-schedule-table tfoot th:first-child::after {
    content: "";
    position: absolute;
    top: 0;
    right: -1px;
    bottom: 0;
    width: 1px;
    background: #aaa6a3;
    pointer-events: none;
  }
}
