.input-content {
  max-width: 1500px;
}
.input-heading {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: flex-end;
  margin-bottom: 22px;
}
.input-heading h1 {
  font: 800 30px/1.2 Manrope;
  margin: 7px 0 4px;
}
.input-heading p {
  margin: 0;
  color: var(--muted);
}
.save-state {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 17px;
  text-align: right;
}
.save-state > span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  left: 0;
  top: 7px;
}
.save-state strong {
  font-size: 13px;
}
.save-state small {
  font-size: 11px;
  color: var(--muted);
}
.section-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  margin-bottom: 18px;
  box-shadow: 0 5px 20px rgba(20, 46, 66, 0.04);
}
.section-tab {
  border: 0;
  background: transparent;
  border-radius: 7px;
  padding: 12px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #667984;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.section-tab > span {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #edf2f5;
  color: #7d8c96;
  font-size: 11px;
}
.section-tab b {
  margin-left: auto;
  color: #a7b4bc;
}
.section-tab.active {
  background: #edf4f7;
  color: var(--ink);
}
.section-tab.active > span {
  background: var(--ink);
  color: white;
}
.section-tab.complete b {
  color: var(--teal);
}
.input-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}
.form-column {
  min-width: 0;
}
.input-section {
  display: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: var(--shadow);
  padding: 25px;
}
.input-section.active {
  display: block;
}
.section-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 19px;
  border-bottom: 1px solid #e7edef;
  margin-bottom: 20px;
}
.section-title h2 {
  font: 700 21px Manrope;
  margin: 3px 0;
}
.section-title p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  max-width: 680px;
}
.section-status {
  background: #eef2f4;
  border-radius: 20px;
  padding: 5px 10px;
  height: max-content;
  font-size: 10px;
  font-weight: 700;
  color: #70818c;
}
.section-status.complete {
  background: #e6f6f2;
  color: #2b8d84;
}
.daily-table-wrap {
  overflow-x: auto;
}
.daily-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 720px;
}
.daily-table th {
  text-align: left;
  color: #6e808c;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 9px;
  border-bottom: 1px solid var(--line);
}
.daily-table td {
  padding: 8px;
  border-bottom: 1px solid #edf1f3;
  font-size: 13px;
}
.daily-table td:first-child {
  font-weight: 700;
}
.daily-table input {
  width: 100%;
  min-width: 100px;
  border: 1px solid #dbe4e9;
  border-radius: 7px;
  padding: 9px 9px 9px 22px;
  font: 13px DM Sans;
  background: #fbfcfd;
}
.daily-table input:focus,
.form-grid input:focus,
textarea:focus {
  outline: 2px solid #8bc6c0;
  border-color: transparent;
}
.money-input {
  position: relative;
}
.money-input:before {
  content: "$";
  position: absolute;
  left: 17px;
  top: 16px;
  color: #87959e;
  z-index: 1;
  font-size: 12px;
}
.daily-table tfoot th {
  background: #f3f7f9;
  padding: 11px 9px;
  color: var(--ink);
  font-size: 12px;
  text-transform: none;
}
.daily-table tfoot th:first-child {
  border-radius: 7px 0 0 7px;
}
.daily-table tfoot th:last-child {
  border-radius: 0 7px 7px 0;
}
.section-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 21px;
  padding-top: 18px;
  border-top: 1px solid #e8edef;
}
.section-actions > span {
  font-size: 11px;
  color: var(--muted);
}
.next-button,
.back-button {
  border: 0;
  background: none;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
  padding: 9px;
}
.next-button {
  background: var(--ink);
  color: #fff;
  border-radius: 7px;
  padding: 10px 14px;
}
.form-grid {
  display: grid;
  gap: 15px;
  margin: 16px 0;
}
.form-grid.two {
  grid-template-columns: 1fr 1fr;
}
.form-grid.three {
  grid-template-columns: repeat(3, 1fr);
}
.form-grid label,
.notes-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  position: relative;
}
.form-grid label span {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: #80909a;
}
.form-grid input,
textarea {
  border: 1px solid #d7e1e6;
  border-radius: 8px;
  padding: 11px 35px 11px 12px;
  font: 14px DM Sans;
  background: #fbfcfd;
}
textarea {
  resize: vertical;
  padding-right: 12px;
}
.formula-banner {
  background: #eef5f7;
  color: #4e6573;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12px;
  text-align: center;
  margin-bottom: 18px;
}
.food-method-card {
  display: grid;
  gap: 7px;
  margin-bottom: 13px;
  padding: 15px 17px;
  border: 1px solid #cfe2dc;
  border-radius: 10px;
  background: #f4faf8;
}
.food-method-card label {
  display: grid;
  gap: 7px;
  color: #244f43;
  font-size: 12px;
  font-weight: 800;
}
.food-method-card select {
  height: 43px;
  border: 1px solid #bcd4cc;
  border-radius: 8px;
  padding: 0 11px;
  background: #fff;
  color: #173d33;
  font: 700 13px DM Sans;
}
.food-method-card p {
  margin: 0;
  color: #60766f;
  font-size: 11px;
  line-height: 1.5;
}
.food-method-estimate .inventory-count-field {
  display: none;
}
.calculation-card small {
  display: block;
  color: #9db1c0;
  font-size: 11px;
}
.food-estimate-note {
  color: #e8bd76 !important;
}
.calculation-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--nav);
  color: white;
  border-radius: 10px;
  margin-top: 21px;
}
.calculation-card span {
  padding: 16px 18px;
  color: #9db1c0;
  font-size: 11px;
  border-right: 1px solid #263e52;
}
.calculation-card span:last-child {
  border: 0;
}
.calculation-card strong {
  display: block;
  color: white;
  font: 700 20px Manrope;
  margin-top: 4px;
}
.finish-button {
  padding: 11px 16px;
}
.rollup-panel {
  position: sticky;
  top: 102px;
  background: var(--nav);
  color: white;
  border-radius: 11px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.rollup-panel .eyebrow {
  color: #61d4c8;
}
.rollup-panel h2 {
  font: 700 19px Manrope;
  margin: 4px 0;
}
.rollup-panel > p {
  font-size: 12px;
  color: #94a8b6;
  margin: 0 0 17px;
}
.rollup-list {
  border-top: 1px solid #284053;
}
.rollup-list > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #243b4e;
  padding: 13px 0;
}
.rollup-list span {
  font-size: 12px;
  color: #a8bac6;
}
.rollup-list strong {
  font: 700 16px Manrope;
}
.rollup-list .prime-rollup strong {
  color: #ffad73;
}
.quality-check {
  margin-top: 20px;
  background: #122b3e;
  border-radius: 8px;
  padding: 14px;
}
.quality-check h3 {
  font: 700 12px Manrope;
  margin: 0 0 7px;
  color: #61d4c8;
}
.quality-check ul {
  padding-left: 17px;
  margin: 0;
  color: #9eb1be;
  font-size: 11px;
  line-height: 1.65;
}
.input-progress {
  margin-top: 28px;
  padding: 16px 10px;
  border-top: 1px solid #20384b;
  border-bottom: 1px solid #20384b;
  display: flex;
  flex-direction: column;
}
.input-progress span {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #657f91;
}
.input-progress strong {
  font-size: 12px;
  margin: 4px 0 9px;
}
.progress-track {
  height: 4px;
  background: #233c50;
  border-radius: 4px;
  overflow: hidden;
}
.progress-track i {
  display: block;
  background: var(--teal);
  height: 100%;
  width: 0;
  transition: 0.25s;
}
@media (max-width: 1100px) {
  .input-layout {
    grid-template-columns: 1fr;
  }
  .rollup-panel {
    position: static;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px 24px;
  }
  .rollup-panel > p {
    grid-column: 1;
  }
  .rollup-list {
    grid-column: 2;
    grid-row: 1/5;
  }
  .quality-check {
    grid-column: 1;
  }
  .section-tabs {
    overflow-x: auto;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
  }
}
@media (max-width: 680px) {
  .input-heading {
    display: block;
  }
  .save-state {
    margin-top: 15px;
    text-align: left;
  }
  .section-tabs {
    margin-left: -15px;
    margin-right: -15px;
    border-radius: 0;
  }
  .input-section {
    padding: 17px;
    margin: 0 -15px;
    border-radius: 0;
  }
  .form-grid.two,
  .form-grid.three,
  .calculation-card {
    grid-template-columns: 1fr;
  }
  .calculation-card span {
    border-right: 0;
    border-bottom: 1px solid #263e52;
  }
  .rollup-panel {
    display: block;
    margin: 0 -5px;
  }
  .input-progress {
    display: none;
  }
  .section-actions > span {
    display: none;
  }
  .top-actions .link-button {
    display: none;
  }
}
.input-week-control {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.input-week-control select {
  min-width: 190px;
  border: 0 !important;
  border-radius: 0 !important;
  border-left: 1px solid var(--line) !important;
  border-right: 1px solid var(--line) !important;
}
.input-week-control button {
  min-width: max-content;
  border: 0;
  background: #eef4f2;
  color: #173f3b;
  padding: 8px 12px;
  font:
    700 12px Manrope,
    sans-serif;
  cursor: pointer;
}
.input-week-control button:hover {
  background: #dcece8;
}
.input-week-control #inputCurrentWeek {
  background: #fff;
  color: #1f736b;
}
.input-week-control button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
@media (max-width: 900px) {
  .location-wrap {
    align-items: stretch;
  }
  .input-week-control {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .input-week-control select {
    grid-column: 1/-1;
    grid-row: 1;
    border: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }
  .input-week-control #inputPrevWeek,
  .input-week-control #inputCurrentWeek,
  .input-week-control #inputNextWeek {
    grid-row: 2;
  }
  .input-week-control {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
@media (max-width: 700px) {
  .input-content {
    padding-bottom: 92px;
  }
  .section-tabs {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .section-tab {
    min-width: 152px;
    scroll-snap-align: start;
  }
  .daily-table-wrap {
    overflow-x: auto;
  }
  .daily-table {
    min-width: 690px;
  }
  .input-section {
    padding: 18px;
  }
  .form-grid.two,
  .form-grid.three {
    grid-template-columns: 1fr;
  }
  .top-actions {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 80;
    background: #fff;
    border: 1px solid #dce6e3;
    border-radius: 15px;
    padding: 8px;
    box-shadow: 0 14px 35px rgba(17, 50, 46, 0.2);
  }
  .top-actions .primary-button {
    flex: 1;
    justify-content: center;
    min-height: 46px;
  }
  .top-actions .ghost-button {
    display: none;
  }
  .rollup-panel {
    position: static;
  }
  .next-button,
  .back-button,
  .finish-button {
    min-height: 46px;
  }
}
