/* Estilos base del diseño de Juan Ignacio (handoff land-reservas-diseno), formateados. */

:root {
  --navy: #162f46;
  --ink: #21384a;
  --muted: #718295;
  --teal: #17a89b;
  --aqua: #e7f6f3;
  --line: #e4ebef;
  --bg: #f4f7f8;
  --white: #fff;
  --gold: #f0b64b;
  --red: #d66c6c;
  --shadow: 0 12px 35px #18324b12;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  font: 14px/1.45 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color: var(--ink);
}

button,input,select,textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.top {
  height: 66px;
  background: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: .02em;
}

.mark {
  height: 32px;
  width: 32px;
  border-radius: 10px;
  background: var(--teal);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: white;
}

.top small {
  color: #a9bdc9;
}

.shell {
  max-width: 1440px;
  margin: auto;
  padding: 25px 28px 50px;
}

.head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 20px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
}

h1 {
  font-size: 27px;
  letter-spacing: -.04em;
  margin: 4px 0 3px;
  color: var(--navy);
}

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

.actions {
  display: flex;
  gap: 9px;
  align-items: center;
}

.btn {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
}

.btn:hover {
  border-color: #b8c9d1;
}

.btn.primary {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
  box-shadow: 0 4px 10px #17a89b29;
}

.btn.primary:hover {
  background: #128f84;
}

.btn.ghost {
  background: #eff8f7;
  color: #138f85;
  border-color: #d1efea;
}

.weeknav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.weeknav button {
  border: 0;
  background: transparent;
  border-radius: 7px;
  padding: 6px 10px;
  color: var(--ink);
  font-size: 17px;
}

.weeknav span {
  font-size: 12px;
  font-weight: 750;
  min-width: 148px;
  text-align: center;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4,minmax(120px,1fr));
  gap: 12px;
  margin: 0 0 17px;
}

.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px 16px;
  box-shadow: 0 2px 8px #18324b05;
}

.kpi label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

.kpi strong {
  display: block;
  font-size: 21px;
  color: var(--navy);
  margin-top: 5px;
  letter-spacing: -.03em;
}

.kpi em {
  font-size: 11px;
  color: var(--muted);
  font-style: normal;
  margin-left: 5px;
}

.layout {
  display: block;
}

.side {
  display: grid;
  grid-template-columns: minmax(0,2fr) minmax(220px,1fr);
  gap: 14px;
  margin-top: 16px;
}

.calendar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.calhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.calhead h2 {
  margin: 0;
  font-size: 15px;
  color: var(--navy);
}

.calhead p {
  margin: 3px 0 0;
  font-size: 11px;
  color: var(--muted);
}

.days {
  display: block;
  overflow: auto;
}

.timeGrid {
  display: grid;
  grid-template-columns: 48px repeat(5,minmax(0,calc((100% - 48px)/5)));
  min-width: 0;
  width: 100%;
}

.axisHead {
  height: 72px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.day {
  min-width: 0;
  border-right: 1px solid var(--line);
}

.dayhead {
  height: 72px;
  padding: 8px 9px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.dayhead.today {
  background: #edf9f6;
}

.daytop {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dayname {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  font-weight: 800;
}

.daydate {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin-top: 0;
}

.reserveDay {
  border: 0;
  border-radius: 7px;
  color: #168b82;
  background: #eaf8f5;
  padding: 5px 7px;
  font-size: 10px;
  font-weight: 800;
}

.availability {
  margin-top: 3px;
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  overflow: hidden;
  white-space: nowrap;
}

.ava {
  font-size: 9px;
  border: 0;
  border-radius: 20px;
  padding: 2px 6px;
  background: #e7f6f3;
  color: #15887f;
  white-space: nowrap;
}

.ava.busy {
  background: #f0f2f4;
  color: #8a96a1;
}

.timeAxis {
  height: 540px;
  position: relative;
  background: #fbfcfd;
}

.timeLabel {
  position: absolute;
  right: 8px;
  transform: translateY(-50%);
  font-size: 9px;
  color: #80909c;
}

.track {
  height: 540px;
  position: relative;
  cursor: crosshair;
  background: repeating-linear-gradient(to bottom,transparent 0,transparent 53px,#e7edf0 53px,#e7edf0 54px);
  border-right: 1px solid var(--line);
}

.track:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,transparent 0,transparent 100%);
  pointer-events: none;
}

.track.drag-over {
  background-color: #e7f6f3;
}

.booking {
  position: absolute;
  overflow: hidden;
  border-radius: 7px;
  padding: 4px 5px 3px 7px;
  border: 1px solid color-mix(in srgb,var(--person-color) 42%,white);
  border-left: 3px solid var(--person-color);
  background: color-mix(in srgb,var(--person-color) 15%,white);
  cursor: grab;
  z-index: 2;
  transition: box-shadow .12s,filter .12s,opacity .12s;
}

.booking:active {
  cursor: grabbing;
}

.booking.dragging {
  opacity: .35;
}

.booking:hover {
  z-index: 4;
  filter: saturate(1.15);
  box-shadow: 0 4px 12px #18324b2a;
}

.booking strong {
  display: block;
  font-size: 11px;
  line-height: 1.15;
  color: #173449;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking .time {
  font-size: 10px;
  font-weight: 800;
  color: #315169;
  white-space: nowrap;
}

.booking .meta {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 9px;
  color: #4f6878;
  line-height: 1.12;
  margin-top: 2px;
  overflow: hidden;
  overflow-wrap: anywhere;
  white-space: normal;
}

.booking .meta b {
  color: #315169;
  font-weight: 800;
}

.resizeHandle {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  cursor: ns-resize;
  touch-action: none;
  z-index: 5;
}

.resizeHandle:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  transform: translateX(-50%);
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #31516970;
}

.booking.resizing {
  z-index: 6;
  filter: saturate(1.15);
  box-shadow: 0 4px 12px #18324b35;
}

.noReservations {
  position: absolute;
  left: 7px;
  top: 50%;
  font-size: 10px;
  color: #a4afb6;
  pointer-events: none;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px;
  box-shadow: 0 2px 8px #18324b05;
}

.panelhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}

.panel h3 {
  font-size: 13px;
  margin: 0;
  color: var(--navy);
}

.panel .hint {
  font-size: 10px;
  color: var(--muted);
}

.person {
  padding: 11px 0;
  border-top: 1px solid #edf1f3;
}

.person:first-of-type {
  border-top: 0;
}

#peopleProgress {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  column-gap: 18px;
}

.phead {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  align-items: center;
}

.progress {
  height: 6px;
  background: #edf1f3;
  border-radius: 8px;
  margin: 7px 0 5px;
  overflow: hidden;
}

.progress i {
  display: block;
  height: 100%;
  border-radius: 8px;
  background: var(--teal);
}

.brandline {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #718295;
  margin: 3px 0;
}

.brandline .locked {
  color: #bf5b5b;
  font-weight: 700;
}

.brandline .remaining {
  color: #178f85;
  font-weight: 700;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 8px;
  display: inline-block;
  margin-right: 5px;
}

.notice {
  background: #fff8e9;
  border: 1px solid #f4e4be;
  border-radius: 11px;
  padding: 12px;
  color: #785c24;
  font-size: 11px;
}

.notice strong {
  display: block;
  color: #6e521c;
  margin-bottom: 2px;
}

.tabs {
  display: flex;
  gap: 7px;
  margin: 0 0 15px;
}

.agendaFilters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: -2px 0 15px;
}

.agendaFilter {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  padding: 8px 13px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.agendaFilter.active {
  background: #e7f6f3;
  color: #138f85;
  border-color: #bde8e2;
}

.tab {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.tab.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 10px;
}

.legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.modalback {
  position: fixed;
  inset: 0;
  background: #10283e66;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9;
}

.modalback.open {
  display: flex;
}

.modal {
  width: min(540px,100%);
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 25px 80px #10283e44;
  overflow: hidden;
}

.modalhead {
  background: var(--navy);
  color: white;
  padding: 17px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modalhead h3 {
  font-size: 16px;
  margin: 0;
}

.x {
  border: 0;
  background: #ffffff20;
  color: white;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  font-size: 18px;
}

.modalbody {
  padding: 19px 20px;
}

.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 5px;
}

.field.full {
  grid-column: 1/-1;
}

.field label {
  font-size: 11px;
  font-weight: 750;
  color: #607385;
}

.field input,.field select,.field textarea {
  border: 1px solid #dce5e9;
  border-radius: 9px;
  padding: 10px 11px;
  color: var(--ink);
  background: white;
  min-width: 0;
}

.field input:focus,.field select:focus,.field textarea:focus {
  outline: 2px solid #b6e9e2;
  border-color: var(--teal);
}

.quota {
  background: #eef8f6;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 11px;
  color: #28726d;
  margin: 13px 0;
}

.borrowNote {
  display: none;
  background: #fff8e9;
  border: 1px solid #f4e4be;
  border-radius: 9px;
  padding: 9px 11px;
  margin: -4px 0 10px;
  color: #785c24;
  font-size: 11px;
}

.borrowNote label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  cursor: pointer;
}

.borrowNote input {
  margin: 2px 0 0;
}

.err {
  display: none;
  background: #fff0f0;
  color: #a33;
  border-radius: 9px;
  padding: 9px 11px;
  font-size: 11px;
  margin: 10px 0;
}

.modalfoot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 20px 18px;
}

.settings {
  display: none;
}

.settings.open {
  display: block;
}

.settingsbox {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.settingsbox h2 {
  font-size: 16px;
  color: var(--navy);
  margin: 0 0 3px;
}

.settingsbox>p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 15px;
}

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

.personEditorHead {
  display: grid;
  grid-template-columns: minmax(180px,1fr) auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.personEditorHead input {
  border: 1px solid #dce5e9;
  border-radius: 8px;
  padding: 9px;
  font-weight: 800;
  color: var(--navy);
}

.brandRows {
  display: grid;
  gap: 7px;
}

.brandRow {
  display: grid;
  grid-template-columns: 1fr 120px 34px;
  gap: 8px;
  align-items: center;
}

.brandRow input {
  border: 1px solid #dce5e9;
  border-radius: 8px;
  padding: 8px;
}

.brandRow label {
  font-size: 10px;
  color: var(--muted);
}

.smallBtn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 6px 9px;
  color: #5f7180;
  font-weight: 700;
}

.smallBtn.danger {
  color: #b45b5b;
}

.allocationFoot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
}

.allocationFoot strong {
  color: #148d82;
}

.allocationFoot strong.bad {
  color: #bd5656;
}

.allocBtns {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.pill {
  font-size: 10px;
  font-weight: 750;
  background: #eef3f5;
  color: #647788;
  border-radius: 20px;
  padding: 4px 8px;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: white;
  padding: 11px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 20;
  font-size: 12px;
}

.footnote {
  font-size: 10px;
  color: #93a0a9;
  margin-top: 12px;
}

@media(max-width:1050px) {
  .side {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width:700px) {
  .top {
    padding: 0 15px;
  }
  .shell {
    padding: 20px 12px 35px;
  }
  .head {
    align-items: start;
    flex-direction: column;
  }
  .actions {
    flex-wrap: wrap;
    width: 100%;
  }
  .kpis {
    grid-template-columns: repeat(2,1fr);
    gap: 8px;
  }
  .kpi {
    padding: 11px;
  }
  .side {
    grid-template-columns: 1fr;
  }
  #peopleProgress {
    grid-template-columns: 1fr;
  }
  .weeknav {
    order: 2;
  }
  .allocation input {
    font-size: 11px;
    padding: 8px;
  }
  .formgrid {
    grid-template-columns: 1fr 1fr;
  }
}


/* Planificador: sesión, ingreso, reporte y administración. */

[hidden] {
  display: none !important;
}

.err.show {
  display: block;
}

.userbox {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #cfdde6;
}

.userbox form {
  margin: 0;
}

.linkBtn {
  border: 1px solid #ffffff33;
  background: transparent;
  color: #fff;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.linkBtn:hover {
  background: #ffffff14;
}

.dangerText {
  color: #b45b5b;
  margin-right: auto;
}

.booking .agendaTag {
  display: inline-block;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #4f6878;
  margin-left: 4px;
}

.role-lector .track {
  cursor: default;
}

.role-lector .booking {
  cursor: pointer;
}

.loginPage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px 16px;
}

.loginCard {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 28px;
  box-shadow: var(--shadow);
}

/* En la tarjeta blanca de ingreso, la marca va sobre negro para mantener el contraste del amarillo. */
.loginCard .brand {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--land-black);
}

.googleBtn {
  display: block;
  margin-top: 18px;
  text-align: center;
  text-decoration: none;
}

.devLogin {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.devLogin label {
  font-size: 11px;
  font-weight: 750;
  color: #607385;
}

.devLogin input {
  border: 1px solid #dce5e9;
  border-radius: 9px;
  padding: 10px 11px;
}

.settingsbox + .settingsbox {
  margin-top: 16px;
}

.settingsTools {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.settingsTools .field {
  min-width: 190px;
}

.brandList {
  display: grid;
  gap: 7px;
  max-width: 560px;
}

.brandItem {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.brandItem input[type="text"],
.brandRow select,
.personEditorHead input,
.usersTable select {
  border: 1px solid #dce5e9;
  border-radius: 8px;
  padding: 8px 9px;
  background: #fff;
  color: var(--ink);
  min-width: 0;
}

.check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.personEditorHead {
  grid-template-columns: minmax(150px, 1fr) 46px 120px auto auto;
}

.personEditorHead input[type="color"] {
  height: 38px;
  padding: 3px;
}

.personEditorHead .hoursField {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
}

.personEditorHead .hoursField input {
  width: 64px;
}

.allocation.inactive {
  opacity: .65;
}

.usersWrap {
  overflow-x: auto;
}

.usersTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.usersTable th,
.usersTable td {
  padding: 9px 8px;
  border-top: 1px solid #edf1f3;
  text-align: left;
  vertical-align: middle;
}

.usersTable th {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  border-top: 0;
}

@media(max-width:700px) {
  .userbox span {
    display: none;
  }
  /* Columnas angostas: se reserva tocando el día o con "Reservar horas". */
  .reserveDay,
  .availability {
    display: none;
  }
  .personEditorHead {
    grid-template-columns: 1fr 46px;
  }
  .brandRow {
    grid-template-columns: 1fr 90px 34px;
  }
}

/* Identidad visual LAND: negro, amarillo y controles de alto contraste (handoff 4 de Juan Ignacio). */

:root {
  --land-black: #050505;
  --land-yellow: #ffd21f;
  --navy: var(--land-black);
}

.top {
  background: var(--land-black);
  color: #fff;
  border-bottom: 2px solid var(--land-yellow);
}

.brand {
  gap: 13px;
  letter-spacing: 0;
}

.brand-name {
  color: var(--land-yellow);
  font-size: 25px;
  font-weight: 650;
  letter-spacing: .12em;
  line-height: 1;
}

.brand-section {
  color: #c9c9c9;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
}

.userbox {
  color: #d4d4d4;
}

.linkBtn:hover {
  border-color: var(--land-yellow);
  color: var(--land-yellow);
}

.btn.primary {
  background: var(--land-yellow);
  color: var(--land-black);
  border-color: var(--land-yellow);
  box-shadow: 0 4px 12px #ffd21f35;
}

.btn.primary:hover {
  background: #ffe16a;
  border-color: #ffe16a;
}

.btn.ghost {
  background: #fff8d6;
  color: var(--land-black);
  border-color: #f0d664;
}

.btn.ghost:hover {
  background: #fff0a8;
  border-color: #e6c62b;
}

.weeknav button:hover {
  background: #fff3b5;
  color: var(--land-black);
}

.reserveDay {
  background: var(--land-black);
  color: var(--land-yellow);
}

.reserveDay:hover {
  background: #282828;
  color: #ffe16a;
}

.tab.active {
  background: var(--land-black);
  color: var(--land-yellow);
  border-color: var(--land-black);
}

.btn:focus-visible,
.weeknav button:focus-visible,
.reserveDay:focus-visible,
.agendaFilter:focus-visible,
.tab:focus-visible {
  outline: 3px solid var(--land-yellow);
  outline-offset: 2px;
}

/* Áreas arriba del título, en una sola fila con desplazamiento horizontal. */

.head > div:first-child {
  min-width: 0;
  max-width: 100%;
}

.agendaFilters {
  display: flex;
  flex-wrap: nowrap;
  max-width: 100%;
  margin: 0 0 9px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  white-space: nowrap;
}

.agendaFilters::-webkit-scrollbar {
  display: none;
}

.agendaFilter {
  flex: 0 0 auto;
  white-space: nowrap;
  background: #fff7d1;
  border-color: #ead269;
  color: #4b3c00;
}

.agendaFilter:hover {
  background: #fff0a8;
  border-color: #dfc22e;
}

.agendaFilter.active {
  background: var(--land-yellow);
  color: var(--land-black);
  border-color: var(--land-yellow);
  box-shadow: 0 3px 9px #ffd21f44;
}

/* Reporte por fechas */

.reportView {
  display: none;
}

.reportView.open {
  display: block;
}

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

.reportHead h2 {
  margin: 0 0 4px;
  font-size: 18px;
  color: var(--navy);
}

.reportHead p {
  margin: 0 0 16px;
  font-size: 12px;
  color: var(--muted);
}

.reportActions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.reportFilters {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 4px 0 18px;
}

.reportFilters .field {
  flex: 1;
}

.reportKpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.reportSectionTitle {
  margin: 20px 0 9px;
  font-size: 14px;
  color: var(--navy);
}

.reportTableWrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.reportTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  white-space: nowrap;
}

.reportTable th,
.reportTable td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #edf1f3;
}

.reportTable th {
  background: #f7f9fa;
  color: #53687a;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.reportTable tr:last-child td {
  border-bottom: 0;
}

.reportTable .over {
  color: #b34e4e;
  font-weight: 750;
}

#downloadReport:disabled,
#downloadDetail:disabled {
  opacity: .5;
  cursor: not-allowed;
}

@media(max-width:700px) {
  .brand-name {
    font-size: 22px;
  }
  .brand-section {
    font-size: 9px;
  }
  .head > div:first-child {
    width: 100%;
  }
  .agendaFilters {
    gap: 6px;
    margin-bottom: 8px;
  }
  .agendaFilter {
    padding: 6px 8px;
    font-size: 10px;
  }
  .reportHead {
    flex-direction: column;
  }
  .reportActions {
    justify-content: flex-start;
  }
  .reportFilters {
    max-width: none;
  }
  .reportKpis {
    grid-template-columns: 1fr;
  }
  .reportFilters .field input {
    font-size: 12px;
  }
}

/* Alta de usuarios con rol antes de su primer ingreso. */

.userInvite {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin: 4px 0 14px;
}

.userInvite .field {
  min-width: 170px;
}

.userInvite .field:first-child {
  flex: 1 1 260px;
  max-width: 380px;
}

.usersTable .pending {
  color: var(--muted);
  font-style: italic;
}
