/* screens_canteen_auth.css — Direction A (Focus)
   Canteen run-sheet/week screens and the auth (login/password/invitation) screens.
   Owned by Slice U5. Add screen-specific selectors here; shared components live in components.css. */

/* ============================================================
   CANTEEN — today run sheet
   ============================================================ */
.pagehead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.covers {
  text-align: right;
}

.covers .n {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
}

.covers .l {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 34px;
}

.tot {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.tot .l {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.tot .n {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  margin: 6px 0 4px;
}

.tot .s {
  font-size: 13px;
  color: var(--muted);
}

.runsheet {
  display: grid;
  gap: 12px;
}

.task {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  transition: .16s;
}

.task .time {
  font-size: 18px;
  font-weight: 700;
  width: 58px;
  flex: none;
}

.task .info {
  flex: 1;
}

.task .info strong {
  font-size: 18px;
  display: block;
  letter-spacing: -.01em;
}

.task .info span {
  font-size: 14px;
  color: var(--muted);
}

.task .count {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-right: 6px;
}

.checkbtn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2.5px solid var(--line);
  background: #fff;
  cursor: pointer;
  flex: none;
  display: grid;
  place-items: center;
  transition: .16s;
  padding: 0;
}

.checkbtn svg {
  width: 26px;
  height: 26px;
  stroke: #fff;
  stroke-width: 3;
  fill: none;
}

.checkbtn:hover {
  border-color: var(--ok);
}

/* button_to renders a <form>; keep it from adding layout box around the button. */
.task form {
  flex: none;
  margin: 0;
}

.task.done {
  background: var(--ok-soft);
  border-color: #bcdcb6;
}

.task.done .checkbtn,
.checkbtn.delivered {
  background: var(--ok);
  border-color: var(--ok);
}

.task.done .info strong {
  color: #2c5132;
}

.task.late {
  opacity: .85;
  background: #f6efe7;
  border-color: #ecd9c2;
}

.task.late .info strong {
  text-decoration: line-through;
  color: var(--warn);
}

.late-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--warn);
  background: #fbf0e2;
  border: 1px solid #ecd9c2;
  border-radius: 999px;
  padding: 6px 12px;
  flex: none;
}

.runnote {
  font-size: 13px;
  color: var(--muted);
  margin: 18px 2px 0;
  display: flex;
  gap: 8px;
}

.runnote b {
  color: var(--ink);
  font-weight: 600;
}

/* ============================================================
   CANTEEN — this week
   ============================================================ */
.subhead {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 28px;
}

.week {
  display: grid;
  gap: 12px;
}

.wday {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  transition: .15s;
}

.wday.today {
  border-color: var(--clay);
  /* Inset ring so the highlighted row keeps the same outer box and internal
     alignment as its siblings (an outset ring shifted it visually). */
  box-shadow: inset 0 0 0 2px var(--clay-soft);
}

.wday .date strong {
  display: block;
  font-size: 16px;
}

.wday .date span {
  font-size: 12.5px;
  color: var(--muted);
}

.bar {
  height: 30px;
  border-radius: 8px;
  background: #ece9dd;
  position: relative;
  overflow: hidden;
}

.bar .fill {
  position: absolute;
  inset: 0;
  width: var(--w);
  background: linear-gradient(90deg, #f57030, #c4502d);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.wday .tot {
  display: grid;
  justify-items: center;
  min-width: 64px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
}

.wday .tot small {
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px 2px 0;
  font-size: 12.5px;
  color: var(--muted);
}

.legend b {
  color: var(--ink);
}

/* ============================================================
   AUTH — minimal centered login/password/invitation screens
   (The .auth layout + .auth-card frame come from shell.css.)
   ============================================================ */
.auth-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 6px;
}

.auth-lead {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 22px;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.auth-form .form-group {
  display: grid;
  gap: 6px;
}

.auth-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.auth-form .form-control {
  font: inherit;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  transition: .15s;
}

.auth-form .form-control:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px var(--clay-soft);
}

.auth-errors {
  border: 1px solid #e0b8b2;
  background: #f6ebe9;
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--red);
  font-size: 13.5px;
}

.auth-errors p {
  margin: 0;
}

.auth-errors p + p {
  margin-top: 4px;
}

.auth-alt {
  text-align: center;
  font-size: 13px;
  margin: 4px 0 0;
}

.auth-alt a {
  color: var(--muted);
}

/* ============================================================
   MOBILE (<=760px)
   ============================================================ */
@media (max-width: 760px) {
  .covers .n {
    font-size: 32px;
  }

  .totals {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 26px;
  }

  .tot {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
  }

  .tot .n {
    font-size: 34px;
    margin: 0;
    order: -1;
    min-width: 54px;
  }

  .task {
    gap: 12px;
    padding: 15px 16px;
    flex-wrap: wrap;
  }

  .task .info strong {
    font-size: 16px;
  }

  .task .count {
    font-size: 24px;
  }

  .checkbtn {
    width: 46px;
    height: 46px;
  }

  .wday {
    grid-template-columns: 84px 1fr;
    grid-template-areas:
      "date tot"
      "bar bar";
    row-gap: 10px;
    padding: 14px 16px;
  }

  .wday .date {
    grid-area: date;
  }

  .wday .tot {
    grid-area: tot;
  }

  .bar {
    grid-area: bar;
  }
}
