:root {
  color-scheme: light;
  --paper: #e7eef2;
  --ink: #1a3144;
  --accent: #0c5f66;
  --muted: #5d6e7e;
  --line: #d3dee6;
  --fill: #ffffff;
  --good: #0f7a4b;
  --bad: #9b2c2c;
  --alert-bg: #fdecea;
  --alert-line: #f0c4be;
  --ok-bg: #e7f5ee;
  --ok-line: #b7dcc8;
  --shadow: 0 1px 2px rgba(26, 49, 68, 0.05), 0 8px 24px rgba(26, 49, 68, 0.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  display: grid;
  place-items: center;
  padding:
    max(16px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    calc(16px + env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}

main {
  width: min(100%, 420px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 8px;
  font-size: 2.4rem;
  line-height: 1.05;
  font-weight: 650;
  letter-spacing: -0.03em;
}

p { margin: 0; line-height: 1.4; }

.card {
  margin-top: 28px;
  display: grid;
  gap: 14px;
  padding: 16px;
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--fill);
  color: var(--ink);
  border-radius: 12px;
  padding: 16px 14px;
  font: inherit;
  font-size: 1.15rem;
}

button, .link {
  font: inherit;
}

button {
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--paper);
  padding: 18px 16px;
  font-size: 1.15rem;
  font-weight: 650;
  cursor: pointer;
}

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

button.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

button:disabled { opacity: 0.4; }

.link {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
  font-size: 0.95rem;
}

.time {
  margin-top: 8px;
  font-size: 4rem;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.sub { color: var(--muted); margin-top: 10px; }

.aviso {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--fill);
}

.aviso.warn,
.aviso.bad {
  color: var(--bad);
  background: var(--alert-bg);
  border-color: var(--alert-line);
}

.aviso.ok {
  color: var(--good);
  background: var(--ok-bg);
  border-color: var(--ok-line);
}

.aviso p { margin: 0 0 6px; }

.aviso ul {
  margin: 0;
  padding-left: 1.15rem;
}

.aviso li + li { margin-top: 4px; }

.good { color: var(--good); }
.bad { color: var(--bad); }

.qr {
  margin-top: 24px;
  background: white;
  border-radius: 16px;
  padding: 12px;
}

.qr svg {
  display: block;
  width: 100%;
  height: auto;
}

body.panel {
  display: block;
}

body.panel main {
  width: min(100%, 1440px);
  margin: 0 auto;
}

body.panel h1 {
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

body.panel input,
body.panel select {
  padding: 10px 12px;
  font-size: 1rem;
  border-radius: 10px;
}

body.panel input[type="checkbox"] {
  width: 18px;
  height: 18px;
  padding: 0;
}

body.panel button {
  padding: 12px 14px;
  font-size: 1rem;
}

.login { margin-top: 10vh; }

.top, .tools {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
}

.who {
  color: var(--muted);
  margin-top: 2px;
  font-size: 0.95rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 22px 0 12px;
}

.metrics.attention { margin-top: 0; }

.tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  position: sticky;
  top: 0;
  z-index: 3;
  margin: 14px 0 16px;
  padding: 4px;
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

body.panel .tabs button {
  min-height: 44px;
  padding: 8px 4px;
  font-size: 0.92rem;
  background: transparent;
  color: var(--muted);
  border: 0;
  border-radius: 12px;
  box-shadow: none;
}

body.panel .tabs button.on {
  background: var(--accent);
  color: var(--paper);
}

.filters {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  overflow: auto;
}

body.panel .filters button {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 14px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 550;
  box-shadow: none;
}

body.panel .filters button b { font-weight: 650; }

body.panel .filters button.on {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}

body.panel .filters button.alert {
  background: var(--alert-bg);
  border-color: var(--alert-line);
}

.page-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.assign-dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--accent);
  color: var(--paper);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(12, 95, 102, 0.28);
}

.assign-dock p { margin-right: auto; font-weight: 650; white-space: nowrap; }

body.panel .assign-dock .secondary {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
}

body.panel .assign-dock button { min-height: 44px; white-space: nowrap; }

body.has-assign main { padding-bottom: 88px; }

.sheet {
  position: fixed;
  inset: 0;
  z-index: 6;
  display: grid;
  align-items: end;
  background: rgba(26, 49, 68, 0.45);
}

.sheet form {
  display: grid;
  gap: 12px;
  width: min(100%, 640px);
  max-height: 92vh;
  margin: 0 auto;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  overflow: auto;
  background: var(--paper);
  border-radius: 20px 20px 0 0;
}

.sheet label.check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.sheet label.check input {
  width: 18px;
  height: 18px;
  padding: 0;
}

button.perfil {
  width: auto;
  justify-self: start;
  padding: 8px 0;
  min-height: 44px;
  background: transparent;
  color: var(--accent);
  font-size: 0.95rem;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.person-top button.perfil {
  margin: 0;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  font-size: 0.85rem;
  text-decoration: none;
}

.hour-table button.perfil { margin-top: 0; }

.casa-editor {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 110px auto;
  gap: 10px;
  align-items: end;
}

.casa-lista {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.casa-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.casa-item.on { background: var(--fill); }

button.casa-elegir,
button.casa-activa {
  background: transparent;
  color: var(--ink);
  text-align: left;
}

button.casa-elegir {
  padding: 10px 8px;
  min-height: 44px;
  font-size: 1rem;
  font-weight: 650;
}

button.casa-elegir small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 450;
}

button.casa-activa {
  min-height: 36px;
  padding: 6px 10px;
  color: var(--accent);
  font-size: 0.85rem;
  border: 1px solid var(--accent);
}

.sheet-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.sheet-top h2 { margin: 0; font-size: 1.2rem; }

@media (min-width: 760px) {
  .sheet { align-items: center; padding: 24px; }
  .sheet form { border-radius: 20px; }
}

.metric {
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}

.metric b {
  display: block;
  font-size: 1.5rem;
  line-height: 1.1;
}

.metric span {
  color: var(--muted);
  font-size: 0.8rem;
}

.metric.quiet b,
.metric.quiet span { color: var(--muted); }

.metric.alert {
  background: var(--alert-bg);
  border-color: var(--alert-line);
}

.metric.alert span { color: var(--bad); }

.fold {
  margin-top: 12px;
  padding: 4px 14px 12px;
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.fold summary,
.informe details summary,
.report-doc details summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
  font-weight: 650;
}

.fold summary::-webkit-details-marker,
.informe details summary::-webkit-details-marker,
.report-doc details summary::-webkit-details-marker { display: none; }

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}

.mini-chip {
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.85rem;
}

.search { margin: 14px 0; }

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--fill);
  box-shadow: var(--shadow);
}

.person-top {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px 0;
}

.person-fields,
.person-line.head {
  display: grid;
  grid-template-columns: 28px minmax(150px, 1.2fr) minmax(140px, 1.05fr) minmax(64px, 0.45fr) minmax(120px, 0.75fr);
  gap: 10px;
  align-items: center;
  padding: 0 14px;
}

.person-fields { padding-bottom: 12px; margin-top: 8px; }

.person-line.head {
  padding-top: 10px;
  padding-bottom: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.person + .person { border-top: 1px solid var(--line); }

.person-name {
  line-height: 1.25;
  font-weight: 650;
}

.place-now {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.85rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.panel .pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
}

body.panel .pager button { padding: 8px 12px; font-size: 0.9rem; }

.person-name small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

body.panel .person-fields select,
body.panel .person-line select {
  width: 100%;
  margin: 0;
  padding: 6px 8px;
  font-size: 0.85rem;
  line-height: 1.2;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--fill);
  color: var(--ink);
}

.person-name .historia { white-space: normal; }

.historia-fold { margin-top: 2px; }

.historia-fold summary {
  min-height: 28px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 550;
  cursor: pointer;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.grupo { margin-top: 22px; }

.grupo h2 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.grupo h2 span {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 550;
}

.grupo h2 label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.assign {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  max-width: 100%;
  min-width: 0;
  margin-top: 16px;
  padding: 12px;
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.assign p { margin: 0; margin-right: auto; }

.assign button {
  padding: 8px 14px;
  font-size: 0.9rem;
}

.assign .lugar-partes {
  flex: 1 1 100%;
  min-width: 0;
  max-width: 100%;
}

.assign .lugar-partes input {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
}

.assign label.check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lugar-partes {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
}

.lugar-partes input {
  width: 5.4rem;
  min-width: 0;
  padding: 6px 8px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.person-line .lugar-partes input {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  padding: 6px;
  font-size: 0.8rem;
}

td small.historia {
  max-width: 280px;
  white-space: normal;
  line-height: 1.35;
}

.tablero { margin-top: 36px; }

.tablero h2 { margin: 0 0 8px; font-size: 1.6rem; }

.grupo-lista {
  display: grid;
  gap: 8px;
  max-height: 280px;
  margin-top: 12px;
  overflow: auto;
}

body.panel .grupo-pick {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  background: var(--fill);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 550;
  text-align: left;
  box-shadow: none;
}

body.panel .grupo-pick.on {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}

.grupo-pick small {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: right;
}

.grupo-pick.on small { color: inherit; }

.grupo-work {
  margin-top: 12px;
  padding: 12px;
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.grupo-work h3 {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.grupo-work h3 span {
  color: var(--muted);
  font-weight: 550;
  font-size: 0.85rem;
}

.field-label { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.85rem;
}

body.panel .chip button {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.rack-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.rack-row label.check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rack-row input { padding: 8px 10px; font-size: 0.9rem; }

.rack-totales {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.rack-totales h3 { margin: 12px 0 4px; font-size: 1rem; }

.rack-totales h3:first-child { margin-top: 0; }

.informe {
  position: fixed;
  inset: 0;
  z-index: 5;
  overflow: auto;
  background: var(--fill);
  color: var(--ink);
}

.informe-bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--fill);
  border-bottom: 1px solid var(--line);
}

.informe-bar h1 {
  margin: 0;
  font-size: 1.45rem;
}

.informe-bar .sub { margin-top: 2px; }

.informe article {
  width: min(100% - 32px, 760px);
  margin: 20px auto 64px;
}

.informe details,
.report-doc details {
  margin-top: 12px;
  padding: 4px 14px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.informe details summary small,
.report-doc details summary small {
  color: var(--muted);
  font-weight: 550;
}

.informe-filter { margin-top: 4px; }

.informe-body {
  max-height: 46vh;
  margin-top: 8px;
  overflow: auto;
}

.informe p,
.report-doc p { margin: 0 0 8px; overflow-wrap: anywhere; }

.informe .lead,
.report-doc .lead {
  margin: 16px 0 8px;
  font-size: 1.05rem;
}

.report-doc h2 {
  margin: 28px 0 8px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.report-doc h2:first-child {
  margin-top: 0;
  font-size: 1.7rem;
}

.hours-nav { display: grid; gap: 12px; margin-bottom: 8px; }

.hours-move {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hours-move strong {
  font-size: 1rem;
  text-align: center;
  text-transform: capitalize;
}

body.panel .hours-move button { min-height: 44px; }

.hour-bars {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 8px;
  height: 168px;
  margin: 0 0 16px;
  padding: 12px;
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.hour-bars div {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  height: 100%;
}

.hour-bars b,
.hour-bars small { font-size: 0.72rem; line-height: 1.1; }

.hour-bars small { color: var(--muted); }

.hour-bars span {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.hour-bars i {
  display: block;
  width: min(100%, 28px);
  border-radius: 8px 8px 3px 3px;
  background: var(--accent);
}

.hour-scroll {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--fill);
  box-shadow: var(--shadow);
}

.hour-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.hour-table th,
.hour-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

.hour-table th:first-child,
.hour-table td:first-child,
.hour-table th[scope="row"] {
  text-align: left;
  position: sticky;
  left: 0;
  background: var(--fill);
}

.hour-table thead th { color: var(--muted); font-size: 0.78rem; font-weight: 650; }

.hour-table .total,
.hour-table tfoot td,
.hour-table tfoot th { font-weight: 700; }

.hour-table .parcial { color: var(--accent); }

.hour-table .abierta { color: var(--bad); font-size: 0.78rem; }

label.search { display: grid; gap: 6px; margin: 0 0 12px; }

.hour-own { margin-top: 22px; }

.hour-totals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.hour-totals span {
  display: grid;
  gap: 2px;
  padding: 12px;
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.85rem;
}

.hour-totals b { color: var(--ink); font-size: 1.25rem; }

.week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-top: 10px;
}

.week-strip span {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 8px 0;
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.week-strip small { color: var(--muted); font-size: 0.68rem; }

.week-strip b { font-size: 0.8rem; }

.hour-own h2 { margin: 18px 0 8px; font-size: 1.05rem; }

.hour-own .hours-move { margin-top: 4px; }

.hour-own .hours-move button,
.hour-own .pager button {
  min-height: 44px;
  padding: 10px 12px;
  font-size: 0.95rem;
}

.hour-own .pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.hour-own .pager span { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }

.hour-log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.hour-log li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.hour-log li span { display: grid; gap: 2px; }

.hour-log small { color: var(--muted); }

.hour-log .empty { color: var(--muted); }

.report-doc {
  max-width: 760px;
  padding: 28px 28px 36px;
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  user-select: text;
}

.report-tools {
  position: sticky;
  top: 68px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  background: var(--paper);
}

.report-tools .sub { margin: 0; }

@media (max-width: 420px) {
  h1 { font-size: 2rem; }
  .time { font-size: clamp(2.8rem, 18vw, 4rem); }
}

@media (max-width: 760px) {
  body.panel h1 { font-size: 1.7rem; }

  .top,
  .tools { align-items: stretch; }

  body.panel .top .tools { flex-direction: row; width: 100%; }
  body.panel .top .tools label { flex: 1; width: auto; }
  body.panel .top .tools button { width: auto; }
  .assign,
  .assign > label,
  .assign > button,
  .search label { width: 100%; }

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

  body.panel .filters button { min-height: 44px; }

  .assign .lugar-partes { flex-wrap: wrap; }

  .assign .lugar-partes input {
    flex: 1 1 calc(50% - 4px);
    width: auto;
    min-width: 0;
    min-height: 44px;
    font-size: 16px;
  }

  .table-wrap { overflow: visible; }

  .casa-editor { grid-template-columns: 1fr; }

  .person-line.head { display: none; }

  .person-top { padding: 12px 12px 0; }

  .person-fields {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
    padding: 0 12px 12px;
  }

  .person-fields > span:empty { display: none; }

  .field-label {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .place-now {
    white-space: normal;
    overflow: visible;
  }

  body.panel .person-fields select,
  body.panel .person-line select,
  body.panel .rack-row input,
  body.panel .assign input,
  body.panel .assign select,
  body.panel .search input,
  body.panel .grupo-card select {
    min-height: 44px;
    font-size: 16px;
  }

  .person-top button.perfil { min-height: 44px; padding: 8px 14px; }

  body.panel .person-top .pick,
  body.panel .rack-row input[type="checkbox"] {
    width: 22px;
    height: 22px;
  }

  body.panel .pager { justify-content: stretch; }

  body.panel .pager button {
    flex: 1;
    min-height: 44px;
  }

  .grupo h2 { flex-wrap: wrap; font-size: 1.15rem; }

  .grupo-lista { max-height: 42vh; }

  .grupo-pick small,
  .grupo-work h3 { flex-wrap: wrap; }

  .grupo-work h3 span { font-size: 0.78rem; }

  .chip {
    width: 100%;
    justify-content: space-between;
    padding: 6px 8px 6px 12px;
  }

  body.panel .chip button {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 0.85rem;
  }

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

  .rack-row label.check { min-height: 44px; }

  .informe-filter input { min-height: 44px; font-size: 16px; }

  .informe-bar { align-items: stretch; flex-direction: column; }

  .informe-bar h1 { font-size: 1.35rem; }

  .informe article { width: min(100% - 24px, 760px); margin: 16px auto 40px; }

  .report-tools { top: 60px; }

  .report-tools button { flex: 1; min-height: 44px; }
}

@media print {
  body.panel { display: block; padding: 0; background: white; }
  .tabs, .assign-dock, .filters, .sheet, .tools, .pager, .page-check, .report-tools { display: none !important; }
  .informe { position: static; }
  .informe-bar { position: static; }
  .informe-body { max-height: none; overflow: visible; }
  .informe article { width: auto; margin: 0; }
}
