@font-face {
  font-family: Barlow Condensed;
  src: url(./assets/barlow-condensed-bold.ttf) format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  --ink: #19272c;
  --muted: #5d6d76;
  --line: #dce3e5;
  --green: #00765e;
  --mint: #3cddba;
  --bg: #f4f7f7;
  --side: #101d20;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #189f8e;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  letter-spacing: -0.035em;
}
h2 {
  font-size: 1.17rem;
  line-height: 1.35;
}
a {
  color: inherit;
}
svg.ico {
  width: 1.17rem;
  height: 1.17rem;
  flex: none;
  vertical-align: middle;
}
#sidebar {
  position: fixed;
  z-index: 5;
  inset: 0 auto 0 0;
  width: 236px;
  background: var(--side);
  color: #c8d4d6;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #253335;
}
.side-brand {
  height: 100px;
  padding: 24px;
  display: flex;
  align-items: center;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.brand img {
  width: 44px;
  height: 44px;
}
.brand > div {
  display: grid;
}
.brand b {
  font:
    italic 700 2.12rem/0.85 "Barlow Condensed",
    "Arial Narrow",
    sans-serif;
  letter-spacing: 0.015em;
  color: white;
}
.brand small {
  font-size: 0.63rem;
  line-height: 1.8;
  font-weight: 700;
  letter-spacing: 0.21em;
  color: #a7c1c2;
}
nav {
  padding: 9px 16px;
  overflow-y: auto;
}
.nav-group {
  margin-bottom: 28px;
}
.nav-group h3 {
  color: #96a9ab;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin: 0 14px 11px;
}
.nav-item {
  display: flex;
  gap: 13px;
  align-items: center;
  border-radius: 7px;
  text-decoration: none;
  padding: 12px 14px;
  margin: 3px 0;
  font-size: 0.94rem;
  font-weight: 530;
  color: #c2d0d1;
}
.nav-item .ico {
  width: 19px;
  height: 19px;
}
.nav-item:hover {
  background: #1a2f32;
}
.nav-item.active {
  background: #1c403a;
  color: #72eccb;
  box-shadow: inset 3px 0 #3adab1;
}
.side-bottom {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid #29373a;
}
.shift-card {
  display: flex;
  position: relative;
  align-items: center;
  gap: 11px;
  padding: 10px 9px;
}
.shift-card > i {
  background: #223435;
  color: #c7e8df;
  border: 1px solid #354949;
  border-radius: 9px;
  padding: 8px;
  display: grid;
  place-items: center;
}
.shift-card > div {
  display: grid;
  gap: 3px;
}
.shift-card small {
  font-size: 0.75rem;
  color: #9bafb0;
}
.shift-card b {
  font-size: 0.88rem;
  color: #edf4f3;
}
.shift-card > .ico {
  margin-left: auto;
  width: 14px;
}
.shift-card select,
.date-control input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.shift-card:focus-within,
.date-control:focus-within {
  outline: 2px solid #149781;
}
main {
  margin-left: 236px;
  min-height: 100vh;
  min-width: 0;
}
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  height: 68px;
  padding: 0 clamp(20px, 2.35vw, 42px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.crumb,
.user-tools,
.profile-btn {
  display: flex;
  align-items: center;
  gap: 13px;
}
.crumb {
  font-size: 0.87rem;
}
.crumb-parent,
.muted {
  color: var(--muted);
}
.crumb-line {
  color: #a2aeaf;
}
.crumb b {
  font-weight: 600;
}
.profile-btn {
  border: 0;
  background: none;
  padding: 4px;
  gap: 9px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #cde4dc;
  background: #e6f4ee;
  color: #19604e;
  border-radius: 50%;
  font-size: 0.76rem;
  font-weight: 750;
}
.profile-name {
  display: grid;
  text-align: left;
  gap: 1px;
}
.profile-name b {
  font-size: 0.83rem;
}
.profile-name small {
  font-size: 0.73rem;
  color: var(--muted);
}
.profile-btn > .ico {
  width: 14px;
  margin-left: 3px;
}
.sync {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-size: 0.77rem;
  color: #266555;
  background: #edf6f2;
  border: 1px solid #d3e8df;
  border-radius: 20px;
  padding: 5px 9px;
  font-weight: 600;
}
.sync i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #25886e;
}
.divider {
  height: 23px;
  border-left: 1px solid var(--line);
}
.workspace {
  padding: 26px clamp(20px, 2.35vw, 42px) 50px;
  max-width: 1800px;
  margin: auto;
}
.hero {
  border-radius: 15px;
  overflow: hidden;
  min-height: 220px;
  position: relative;
  isolation: isolate;
  background: #12292c url(./assets/garage.jpg) center 56% / cover no-repeat;
  color: #fff;
  box-shadow: inset 0 0 0 1px #233d42;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(10, 26, 28, 0.96),
    rgba(11, 27, 29, 0.85) 24%,
    rgba(13, 27, 29, 0.48) 46%,
    transparent 72%
  );
}
.hero-copy {
  padding: 26px 34px 28px;
}
.hero-date {
  font-weight: 650;
  letter-spacing: 0.105em;
  text-transform: uppercase;
  font-size: 0.68rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9de8d3;
  margin-bottom: 10px;
}
.hero-date .ico {
  width: 15px;
}
.hero h1 {
  font:
    700 clamp(2.6rem, 3.4vw, 4rem) / 1.04 "Barlow Condensed",
    "Arial Narrow",
    sans-serif;
  letter-spacing: -0.017em;
}
.hero p {
  font-size: 0.96rem;
  color: #dfebea;
  margin: 9px 0 20px;
}
.hero-actions,
.actions,
.settings-tabs {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #ced9d8;
  background: #fff;
  border-radius: 7px;
  padding: 9px 13px;
  font-size: 0.88rem;
  line-height: 1.25;
  font-weight: 600;
  min-height: 38px;
}
.btn:hover {
  filter: brightness(0.955);
}
.btn.primary {
  background: #087d65;
  color: white;
  border-color: #087d65;
}
.btn.bright {
  background: #52e6c4;
  color: #0a332c;
  border-color: #52e6c4;
}
.btn.glass {
  background: #223737de;
  color: #f5faf9;
  border-color: #66807d;
}
.btn .ico {
  width: 16px;
  height: 16px;
}
.icon-btn {
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  padding: 7px;
  border-radius: 7px;
}
.icon-btn:hover {
  background: #6785801c;
}
.mobile,
.scrim {
  display: none;
}
.section-title,
.page-header,
.panel-title,
.toolbar,
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.section-title {
  margin: 23px 0 13px;
}
.section-title h2 {
  font-size: 1.32rem;
}
.date-control {
  display: flex;
  align-items: center;
  position: relative;
  gap: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 550;
  padding: 7px 10px;
}
.date-control .ico {
  width: 15px;
}
.date-control .ico:last-of-type {
  width: 12px;
}
.date-control input::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.stat,
.panel {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 2px 3px #203b3704;
}
.stat {
  padding: 17px 19px;
  display: grid;
  gap: 5px;
}
.stat-top {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #46565f;
  font-size: 0.89rem;
  font-weight: 600;
  margin-bottom: 5px;
}
.tile {
  width: 35px;
  height: 35px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
}
.mint {
  color: #087e62;
  background: #ddf5e9;
}
.violet {
  color: #7241ae;
  background: #f0e9fb;
}
.amber {
  color: #9b6214;
  background: #fcf0d6;
}
.blue {
  color: #2a71a9;
  background: #e2f1fc;
}
.stat strong {
  font-size: clamp(1.5rem, 2.1vw, 2.15rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.055em;
  line-height: 1.2;
}
.stat small,
.vehicle small,
.muted {
  font-size: 0.78rem;
}
.stat small,
.vehicle small,
.toolbar p {
  color: var(--muted);
}
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.87fr) minmax(0, 1.13fr);
  gap: 15px;
  margin-top: 20px;
}
.panel-title,
.toolbar {
  padding: 19px 20px;
}
.head-with-icon {
  display: flex;
  align-items: center;
  gap: 9px;
}
.section-glyph {
  color: #27826e;
  display: flex;
}
.panel-title select,
.field select,
.rp-dates input,
select:not(.shift-card select) {
  border: 1px solid #ccd8d8;
  border-radius: 7px;
  background-color: #fff;
  color: var(--ink);
}
.panel-title select {
  padding: 5px 7px;
  font-size: 0.8rem;
}
.chart-legend {
  display: flex;
  gap: 18px;
  font-size: 0.77rem;
  color: #43545c;
  margin: 0 20px 18px;
}
.chart-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.chart-legend i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: #2daf91;
}
.chart-legend span + span i {
  background: #b9a3dd;
}
.plot {
  display: flex;
  gap: 8px;
  height: 165px;
  margin: 0 20px 42px;
  position: relative;
}
.axis {
  min-width: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: right;
  font-size: 0.67rem;
  color: var(--muted);
}
.bars {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: space-around;
}
.gridlines {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.gridlines i {
  border-top: 1px dashed #dfe6e7;
}
.bar-day {
  position: relative;
  width: 9%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
}
.bar {
  width: min(13px, 44%);
  border-radius: 3px 3px 0 0;
}
.bar.cash {
  background: #2daf91;
}
.bar.yape {
  background: #b9a3dd;
}
.bar-day small {
  position: absolute;
  top: calc(100% + 6px);
  font-size: 0.67rem;
  color: #65727a;
}
.bar-tip {
  display: none;
}
.bar-day:hover .bar-tip,
.bar-day:focus .bar-tip {
  display: block;
  position: absolute;
  bottom: 40%;
  background: #172c2c;
  color: #fff;
  border-radius: 5px;
  padding: 6px;
  min-width: 100px;
  font-size: 0.75rem;
  z-index: 2;
}
.tile.small {
  width: 31px;
  height: 31px;
  border-radius: 7px;
  flex: none;
}
.small .ico {
  width: 15px;
}
.vehicle {
  display: flex;
  align-items: center;
  gap: 9px;
}
.vehicle > span:last-child {
  display: grid;
  gap: 2px;
}
.vehicle b {
  font-size: 0.83rem;
}
.vehicle small {
  font-size: 0.72rem;
}
.table-wrap {
  overflow: auto;
  max-width: 100%;
  border-radius: 0 0 12px 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  text-align: left;
}
thead {
  background: #f7f9fa;
  color: #58666c;
}
th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid #e6ebeb;
  vertical-align: middle;
}
th {
  font-size: 0.75rem;
  font-weight: 650;
}
td .btn {
  font-size: 0.8rem;
  padding: 6px 9px;
  min-height: 32px;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.numeric {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.activity-panel td,
.activity-panel th {
  padding: 9px 10px;
}
.activity-panel td:first-child,
.activity-panel th:first-child {
  padding-left: 18px;
}
.activity-panel td:last-child {
  padding-right: 14px;
}
.activity-panel td {
  font-size: 0.8rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 6px;
  padding: 4px 8px;
  background: #edf1f2;
  color: #455862;
  font-size: 0.77rem;
  font-weight: 600;
  line-height: 1.35;
}
.b-cash,
.op-cash {
  background: #e3f5eb;
  color: #176848;
}
.b-yape,
.op-yape {
  background: #efe9fa;
  color: #713f9a;
}
.b-mixed,
.op-mixed,
.b-member,
.op-member {
  background: #e2f0fc;
  color: #29699b;
}
.b-pending,
.op-pending.badge,
.btn.op-pending {
  background: #fff0d5;
  color: #88560a;
}
.b-debt,
.op-debt {
  background: #fce8e5;
  color: #a0473c;
}
.empty,
.inset {
  padding: 18px 20px;
  color: var(--muted);
}
.page-header {
  margin-bottom: 21px;
}
.page-header h1,
.login-card h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 720;
}
.toolbar p {
  font-size: 0.86rem;
  margin-top: 4px;
}
.op-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 20px 18px;
}
[data-operation-view] > .panel + .panel {
  margin-top: 18px;
}
.op-pending.panel {
  border-top: 3px solid #d7a653;
}
.actions {
  min-width: min-content;
}
.settings-tabs {
  margin-bottom: 16px;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  align-items: start;
}
.rate-list {
  padding: 0 18px 12px;
}
.rate-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  width: 100%;
  text-align: left;
  padding: 11px 3px;
  font-size: 0.86rem;
}
.rate-list button b {
  white-space: nowrap;
  color: var(--green);
}
dialog {
  width: min(640px, calc(100vw - 24px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  max-height: 90dvh;
  box-shadow: 0 20px 80px #09242344;
}
dialog::backdrop {
  background: #0b1a22a6;
}
dialog .modal-head {
  padding: 17px 21px;
  border-bottom: 1px solid var(--line);
  background: white;
  position: sticky;
  top: 0;
  z-index: 2;
}
.modal-body {
  padding: 20px;
  display: grid;
  gap: 15px;
}
.modal-body > div[data-op-editor],
.modal-body > div[data-op-payment] {
  display: grid;
  gap: 14px;
}
.modal-body footer,
dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding: 13px 20px;
  background: white;
  position: sticky;
  bottom: 0;
  z-index: 2;
}
.field {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
}
.field input,
.field select,
.field textarea,
.modal-body textarea {
  width: 100%;
  min-height: 41px;
  border: 1px solid #c4d0d0;
  border-radius: 6px;
  background: #fff;
  padding: 8px 9px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
}
.field textarea {
  min-height: 70px;
  resize: vertical;
}
.grid-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.modal-body fieldset {
  margin: 0;
  border: 1px solid #d9e2e1;
  border-radius: 8px;
  padding: 9px 11px 12px;
}
.modal-body legend {
  font-weight: 650;
  font-size: 0.84rem;
}
.op-methods {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.modal-body label.badge {
  cursor: pointer;
  padding: 7px;
}
.modal-body input[type="radio"],
.modal-body input[type="checkbox"] {
  accent-color: var(--green);
}
[hidden] {
  display: none !important;
}
.form-error {
  color: #a33323;
  font-size: 0.86rem;
  margin: 0 20px 12px;
}
.form-error:empty {
  display: none;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 20;
  border-radius: 9px;
  background: #173930;
  color: white;
  box-shadow: 0 8px 22px #152b292a;
  max-width: min(90vw, 550px);
  transform: translate(-50%, 15px);
  opacity: 0;
  pointer-events: none;
  transition: 0.18s;
  font-size: 0.89rem;
  padding: 12px 17px;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.auth {
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding: clamp(20px, 8vw, 120px);
  background:
    linear-gradient(90deg, #111e21e6, transparent),
    #132325 url(./assets/garage.jpg) 62% center/cover;
}
.login-card {
  width: min(390px, 100%);
  padding: 28px;
  border-radius: 13px;
  background: white;
}
.login-card .brand {
  background: #152627;
  border-radius: 8px;
  padding: 13px;
  margin-bottom: 24px;
}
.login-card p {
  margin: 7px 0 20px;
  color: var(--muted);
}
.login-card form {
  display: grid;
  gap: 15px;
}
.loading {
  padding: 24px;
}
@media (min-width: 1600px) {
  .hero {
    min-height: 272px;
  }
  .hero-copy {
    padding: 43px;
  }
  .plot {
    height: 192px;
  }
}

.period-notice {
  padding: 12px 16px;
  color: #164c46;
  background: #e5f3ee;
  border-radius: 10px;
  margin: 0 0 16px;
}

.month-body {
  padding: 0 22px 22px;
  line-height: 1.6;
}
.month-body > p:first-child {
  margin-top: 0;
}
.month-select,
.month-downloads {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.month-select .field {
  margin: 0;
  max-width: 260px;
}
.month-body h3 {
  margin: 24px 0 8px;
}
.archive-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 0;
  border-top: 1px solid #dbe4e4;
  padding: 12px 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.settings-tabs,
.modal-body .actions {
  flex-wrap: wrap;
}
.chart-empty {
  min-height: 160px;
  display: grid;
  place-items: center;
  text-align: center;
}
.modal-body p,
.month-body p,
.form-error,
.btn,
.archive-row {
  overflow-wrap: anywhere;
}
@media (max-width: 500px) {
  .settings-tabs {
    gap: 6px;
  }
  .settings-tabs .btn {
    font-size: 13px;
    padding: 8px 10px;
  }
  .month-body {
    padding: 0 14px 16px;
  }
  .month-select {
    align-items: stretch;
    flex-direction: column;
  }
  .archive-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}
@media (max-width: 1250px) {
  #sidebar {
    width: 210px;
  }
  main {
    margin-left: 210px;
  }
  .side-brand {
    padding: 21px;
  }
  .nav-item {
    padding: 11px;
  }
  .stat {
    padding: 15px;
  }
  .dash-grid {
    grid-template-columns: minmax(0, 0.83fr) minmax(0, 1.17fr);
  }
  .panel-title {
    padding: 15px;
  }
  .panel-title h2 {
    font-size: 1.04rem;
  }
  .hero {
    min-height: 206px;
  }
  .activity-panel td:nth-child(2),
  .activity-panel th:nth-child(2) {
    display: none;
  }
}
@media (max-width: 980px) {
  #sidebar {
    width: 190px;
  }
  main {
    margin-left: 190px;
  }
  .topbar {
    height: 60px;
  }
  .workspace {
    padding: 18px;
  }
  .stat-top {
    gap: 7px;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 11px;
  }
  .tile {
    width: 28px;
    height: 28px;
  }
  .stat-top {
    font-size: 0.8rem;
  }
  .stat small {
    font-size: 0.71rem;
  }
  .dash-grid {
    grid-template-columns: 1fr;
  }
  .activity-panel td:nth-child(2),
  .activity-panel th:nth-child(2) {
    display: table-cell;
  }
  .plot {
    height: 140px;
  }
  .hero-copy {
    padding: 25px;
  }
}
@media (max-width: 760px) {
  .mobile {
    display: grid;
  }
  .scrim {
    display: none;
  }
  .nav-open .scrim {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    background: #07181688;
    z-index: 4;
  }
  #sidebar {
    transform: translateX(-100%);
    width: 245px;
    transition: transform 0.16s;
  }
  .nav-open #sidebar {
    transform: translateX(0);
  }
  main {
    margin: 0;
  }
  .side-brand {
    justify-content: space-between;
  }
  .crumb-parent,
  .crumb-line {
    display: none;
  }
  .topbar {
    padding: 0 12px;
  }
  .crumb {
    gap: 6px;
  }
  .profile-name {
    display: none;
  }
  .user-tools {
    gap: 9px;
  }
  .profile-btn > .ico {
    display: none;
  }
  .workspace {
    padding: 14px;
  }
  .hero {
    border-radius: 12px;
    background-position: 62% 50%;
  }
  .hero-copy {
    padding: 23px 20px;
  }
  .hero:before {
    background: linear-gradient(90deg, #101e20e8, #101f20aa 52%, #19282930);
  }
  .hero h1 {
    font-size: 2.7rem;
  }
  .hero p {
    font-size: 0.86rem;
  }
  .hero-date {
    font-size: 0.62rem;
  }
  .hero-actions {
    gap: 6px;
  }
  .hero-actions .btn {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .stat {
    padding: 14px;
  }
  .stat strong {
    font-size: 1.75rem;
  }
  .stat small {
    font-size: 0.75rem;
  }
  .section-title {
    margin-top: 18px;
  }
  .section-title h2 {
    font-size: 1.16rem;
  }
  .dash-grid {
    margin-top: 12px;
    gap: 12px;
  }
  .toolbar {
    padding: 15px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .op-counts {
    padding: 0 15px 12px;
  }
  .activity-panel td:first-child,
  .activity-panel th:first-child {
    padding-left: 10px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .page-header {
    gap: 6px;
  }
  .page-header h1 {
    font-size: 1.65rem;
  }
  .date-control {
    font-size: 0.75rem;
    padding: 6px;
    gap: 4px;
  }
  .activity-panel td,
  .activity-panel th {
    font-size: 0.75rem;
    padding: 8px 5px;
  }
  .activity-panel .tile {
    display: none;
  }
  .modal-body {
    padding: 16px;
  }
  .field input,
  .field select {
    min-width: 0;
  }
  .modal-body .grid-form {
    gap: 10px;
  }
}
@media (max-width: 390px) {
  .grid-form {
    grid-template-columns: 1fr;
  }
  .profile-btn {
    padding: 0;
  }
  .sync {
    padding: 4px 6px;
  }
  .hero-actions .ico {
    display: none;
  }
  .date-control {
    gap: 3px;
  }
  .section-glyph {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.op-details {
  display: none;
}
.rp-original {
  margin: 0.8rem 0;
  padding: 0.7rem;
  background: #f6f9f8;
}
.rp-original summary {
  cursor: pointer;
}
@media (max-width: 660px) {
  .op-card-table,
  .op-card-table tbody {
    display: block;
  }
  .op-card-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .op-card-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 13px;
    padding: 15px;
    border-top: 1px solid var(--line);
  }
  .op-card-table td {
    display: block;
    padding: 0;
    border: 0;
    overflow-wrap: anywhere;
  }
  .op-card-table td:before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
    margin-bottom: 2px;
  }
  .op-card-table tr:not(.op-expanded) .op-additional {
    display: none;
  }
  .op-card-table .op-card-actions {
    grid-column: 1 / -1;
    padding-top: 3px;
  }
  .op-card-table .op-card-actions[data-label="Acciones"]:before {
    display: none;
  }
  .op-card-table .btn {
    min-height: 40px;
  }
  .op-details {
    display: inline-flex;
  }
}
