.terminal-qr {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--zg-border);
  border-radius: 12px;
  background: #fff;
}

.terminal-qr img {
  display: block;
  width: 132px;
  height: 132px;
}

.terminal-qr p {
  margin: 4px 0 10px;
  color: var(--zg-muted);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 520px) {
  .terminal-qr {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

.manual-time-workspace { display: grid; gap: 18px; }
.time-person-controls { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(280px, 1.2fr); gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--zg-border); }
.time-period-controls { display: grid; grid-template-columns: repeat(3, minmax(170px, 1fr)); gap: 12px; align-items: end; padding: 14px 24px; border-bottom: 1px solid var(--zg-border); background: var(--zg-surface-subtle, #f8fafc); }
.time-period-summary { align-self: center; color: var(--zg-muted); font-size: 13px; font-weight: 600; }
.time-table-wrap { overflow-x: auto; }
.time-table { width: 100%; border-collapse: collapse; min-width: 1080px; }
.time-table th, .time-table td { padding: 13px 12px; text-align: left; border-bottom: 1px solid var(--zg-border); white-space: nowrap; font-size: 13px; }
.time-table th { color: var(--zg-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.time-table tbody tr:hover { background: var(--zg-surface-subtle, #f8fafc); }
.break-editor { padding: 16px; border: 1px solid var(--zg-border); border-radius: var(--zg-radius, 12px); background: var(--zg-surface-subtle, #f8fafc); }
.break-editor-heading, .break-editor-row { display: flex; align-items: end; gap: 12px; }
.break-editor-heading { align-items: center; justify-content: space-between; margin-bottom: 12px; }
.break-editor-heading div { display: grid; gap: 3px; }
.break-editor-heading small { color: var(--zg-muted); }
.break-editor-row { margin-top: 10px; }
.break-editor-row .field { flex: 1; }
.position-exception-button { align-self: start; margin-top: 8px; }
.shift-tag-picker { margin: 0; padding: 14px; border: 1px solid var(--zg-border); border-radius: var(--zg-radius, 12px); }
.shift-tag-picker legend { padding: 0 5px; font-weight: 700; }
.shift-tag-picker > p { margin: 0 0 10px; color: var(--zg-muted); font-size: 12px; }
.shift-tag-picker > div { display: flex; flex-wrap: wrap; gap: 8px; }
.shift-tag-picker label { cursor: pointer; }
.shift-tag-picker input { position: absolute; opacity: 0; pointer-events: none; }
.shift-tag-picker label span { display: inline-flex; padding: 7px 11px; border: 2px solid transparent; border-radius: 999px; color: var(--tag-color); background: var(--tag-bg); font-size: 12px; font-weight: 700; }
.shift-tag-picker input:checked + span { border-color: currentColor; box-shadow: 0 0 0 2px #fff inset; }
.shift-tag-picker input:focus-visible + span { outline: 3px solid var(--zg-focus, #38bdf8); outline-offset: 2px; }
@media (max-width: 720px) { .time-person-controls, .time-period-controls { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .break-editor-heading, .break-editor-row { align-items: stretch; flex-direction: column; } }
