.admin-sidebar nav {
  overflow: auto;
}
.admin-section-intro.billing-flow-intro > div:last-child {
  display: block;
}
.billing-flow-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.billing-flow-filters label {
  min-width: 180px;
  display: grid;
  gap: 0.5rem;
}
.billing-flow-filters select,
.billing-flow-table input:not([type="checkbox"]) {
  padding: 0.65rem;
  width: 100%;
  border: 1px solid #d7c5b3;
  border-radius: 8px;
  background: #fffaf2;
  font: inherit;
}
.billing-flow-scroll {
  overflow-x: auto;
  background: #fffaf2;
  border: 1px solid #d7c5b3;
  border-radius: 14px;
  margin-top: 1.5rem;
}
.billing-flow-table {
  min-width: 1050px;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.billing-flow-table th {
  background: #74182b;
  color: #fffaf2;
  padding: 1rem 0.8rem;
  text-align: left;
}
.billing-flow-table td {
  padding: 1rem 0.8rem;
  border-bottom: 1px solid #e1d5c5;
  vertical-align: top;
}
.billing-flow-table label {
  display: grid;
  gap: 0.4rem;
  margin: 0.5rem 0;
}
.billing-flow-table label.check {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  min-height: 44px;
}
.billing-flow-table input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: #74182b;
}
.billing-flow-table small {
  display: block;
  margin-top: 0.5rem;
  color: #76645b;
}
.billing-flow-table .billing-review {
  background: #fff0ce;
  color: #75501e;
  padding: 0.5rem;
  border-radius: 6px;
  max-width: 220px;
}
.billing-flow-table button {
  display: block;
  border: 1px solid #74182b;
  border-radius: 9px;
  background: #74182b;
  color: white;
  padding: 0.7rem 0.8rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  min-height: 44px;
}
.billing-flow-table [data-billing-message] {
  max-width: 180px;
  font-size: 0.85rem;
}
.checklist-source-reference {
  margin: 1rem 0;
  padding: 1rem;
  background: #f7efe2;
  border: 1px solid #dfcdb7;
  border-radius: 14px;
}
.checklist-source-reference summary {
  color: #74182b;
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 0;
}
.checklist-source-reference article {
  padding: 0.75rem 0;
  border-top: 1px solid #e2d6c6;
}
/* Organización por día: tabla privada, editable también desde tablet y móvil. */
.ops-toolbar {
  align-items: center;
  flex-wrap: wrap;
}
.ops-toolbar label {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-left: auto;
}
.ops-toolbar input {
  padding: 0.65rem;
  border: 1px solid #d9cbbc;
  border-radius: 10px;
  background: #fffaf2;
}
.ops-explanation {
  max-width: 90ch;
  color: #6f625c;
  line-height: 1.6;
}
.ops-warning {
  background: #fff2d7;
  padding: 1rem;
  border: 1px solid #dfbf88;
  border-radius: 12px;
}
.ops-day {
  margin: 1.5rem 0 2rem;
  border: 1px solid #d7c6af;
  border-radius: 18px;
  background: #fffaf2;
  overflow: hidden;
}
.ops-day > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: #eaddc5;
}
.ops-day h3 {
  margin: 0;
  color: #74182b;
  font-size: 1.1rem;
  text-transform: capitalize;
}
.ops-day button {
  border: 1px solid #7d1930;
  border-radius: 9px;
  background: #fffaf2;
  color: #74182b;
  padding: 0.65rem 0.8rem;
  cursor: pointer;
  min-height: 42px;
}
.ops-table-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.ops-daily-table {
  width: 100%;
  min-width: 930px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.9rem;
}
.ops-daily-table th {
  background: #74182b;
  color: white;
  font-weight: 600;
  text-align: left;
  padding: 0.9rem 0.8rem;
}
.ops-daily-table th:nth-child(1) {
  width: 12%;
}
.ops-daily-table th:nth-child(2) {
  width: 23%;
}
.ops-daily-table th:nth-child(3) {
  width: 11%;
}
.ops-daily-table th:nth-child(4) {
  width: 17%;
}
.ops-daily-table th:nth-child(5) {
  width: 10%;
}
.ops-daily-table th:nth-child(6) {
  width: 27%;
}
.ops-daily-table td {
  padding: 0.9rem 0.7rem;
  vertical-align: top;
  border: 1px solid #e1d5c5;
}
.ops-daily-table tbody tr:nth-child(even) {
  background: #f6eddf;
}
.ops-daily-table input:not([type="checkbox"]),
.ops-daily-table select {
  width: 100%;
  min-height: 44px;
  min-width: 0;
  padding: 0.6rem 0.45rem;
  border: 1px solid #cfbda8;
  border-radius: 8px;
  background: white;
  color: #342927;
  font: inherit;
  box-sizing: border-box;
}
.ops-daily-table small {
  display: block;
  margin: 0.45rem 0;
  color: #79675e;
  line-height: 1.4;
}
.ops-daily-table summary {
  cursor: pointer;
  color: #74182b;
  padding: 0.65rem 0;
}
.ops-assignees label {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.4rem 0;
  overflow-wrap: anywhere;
}
.ops-assignees input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  accent-color: #74182b;
}
.ops-daily-table .ops-pricing label {
  display: block;
  margin: 0.5rem 0;
}
.ops-pricing fieldset {
  margin: 0.8rem 0;
  border: 1px solid #d6c5af;
  padding: 0.6rem;
  border-radius: 9px;
  min-width: 0;
}
.ops-pricing legend {
  color: #74182b;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}
.ops-row-total {
  display: block;
  color: #74182b;
  font-size: 1.3rem;
}
.ops-daily-table [data-save-row] {
  display: block;
  background: #74182b;
  color: white;
  width: 100%;
}
.ops-row-message {
  font-size: 0.8rem;
  line-height: 1.45;
  margin: 0.55rem 0 0;
  overflow-wrap: anywhere;
}
.ops-daily-table tfoot td {
  background: #eaddc5;
  font-weight: 700;
  color: #74182b;
  padding: 1rem 0.7rem;
}
.ops-cancelled .ops-state {
  color: #a33737;
}
.ops-cancelled .ops-row-total {
  text-decoration: line-through;
  opacity: 0.6;
}
@media (max-width: 700px) {
  .ops-toolbar label {
    width: 100%;
    margin-left: 0;
  }
  .ops-day > header {
    padding: 0.8rem;
  }
  .ops-day h3 {
    font-size: 1rem;
  }
  .ops-day {
    margin-left: -0.3rem;
    margin-right: -0.3rem;
  }
}
.admin-section-intro > div:last-child {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.admin-primary,
.admin-outline {
  border: 1px solid #7d1930;
  border-radius: 999px;
  padding: 0.72rem 1rem;
  background: #7d1930;
  color: #fff;
  cursor: pointer;
}
.admin-outline {
  background: transparent;
  color: #7d1930;
}
.admin-search-wide {
  width: 100%;
  padding: 1rem;
  border: 1px solid #dbcfc8;
  border-radius: 14px;
  margin-bottom: 1rem;
}
.ops-cards {
  display: grid;
  gap: 0.75rem;
}
.ops-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 1rem;
  align-items: center;
  background: #fff;
  border: 1px solid #eadfd5;
  border-left: 7px solid #b68f58;
  border-radius: 16px;
  padding: 1rem;
}
.ops-card h3,
.ops-card p {
  margin: 0.12rem 0;
}
.ops-card > div:last-child {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.ops-time {
  font: 700 1.1rem Georgia;
  color: #571020;
}
.status-chip {
  padding: 0.35rem 0.65rem;
}
.s-pendiente {
  background: #fff0bf;
  color: #705400;
}
.s-confirmado {
  background: #dff0ff;
  color: #174d73;
}
.s-en-proceso {
  background: #e7ddff;
  color: #503188;
}
.s-terminado,
.s-resuelta,
.s-devuelta {
  background: #dff5e6;
  color: #176337;
}
.s-revisado {
  background: #c9efe2;
  color: #075943;
}
.s-con-incidencia,
.s-pendiente-incidencia {
  background: #ffe0df;
  color: #8b2020;
}
.s-cancelado {
  background: #eee;
  color: #555;
}
.s-en-gestion,
.s-pendiente-de-devolver,
.s-lavada-preparada {
  background: #fff0bf;
  color: #705400;
}
.s-en-lavanderia,
.s-recogida-sucia {
  background: #e6e3ff;
  color: #3f3689;
}
.admin-tabs,
.record-tabs {
  display: flex;
  gap: 0.45rem;
  overflow: auto;
  margin: 0 0 1rem;
}
.admin-tabs button,
.record-tabs button {
  white-space: nowrap;
  border: 1px solid #dbcfc8;
  background: #fff;
  border-radius: 999px;
  padding: 0.7rem 1rem;
}
.admin-tabs .active,
.record-tabs .active {
  background: #7d1930;
  color: #fff;
}
.v2-calendar .cal-day {
  min-height: 125px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border: 0;
  border-right: 1px solid #eee4de;
  border-bottom: 1px solid #eee4de;
  background: #fff;
  padding: 0.5rem;
}
.v2-calendar .cal-day span {
  font-size: 0.7rem;
  padding: 0.2rem;
  border-radius: 5px;
  background: #eee;
}
.admin-list {
  display: grid;
  gap: 0.7rem;
}
.admin-list article {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #eadfd5;
  border-radius: 14px;
  padding: 1rem;
}
.admin-list article > div {
  flex: 1;
}
.client-card {
  background: #fff;
  border: 1px solid #e7ded6;
  border-radius: 18px;
  padding: 20px;
}
.client-property-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin: 0.7rem 0;
}
.client-property-pills button {
  border: 0;
  background: #f2e8dc;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
}
.v2-dialog {
  width: min(920px, 95vw);
  max-height: 92vh;
  padding: 2rem;
}
.entity-form {
  display: grid;
  gap: 1rem;
}
.entity-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 700;
}
.entity-form input,
.entity-form select,
.entity-form textarea {
  width: 100%;
  border: 1px solid #d9ccc4;
  border-radius: 12px;
  padding: 0.85rem;
  background: #fff;
  font: inherit;
}
.check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.entity-form .check {
  display: flex;
  align-items: center;
}
.entity-form .check input {
  width: auto;
}
.detail-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.detail-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.detail-tabs section,
#property-tab {
  background: #fbf6ef;
  border-radius: 14px;
  padding: 1rem;
}
.detail-tabs button {
  display: block;
  width: 100%;
  text-align: left;
  margin: 0.3rem 0;
  padding: 0.7rem;
  border: 0;
  border-radius: 9px;
}
.data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.data-grid p {
  display: grid;
  background: #fff;
  padding: 0.7rem;
  border-radius: 8px;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.photo-grid figure,
.photo-grid img {
  width: 100%;
  margin: 0;
}
.photo-grid img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
}
.photo-grid figcaption {
  font-size: 0.75rem;
}
.photo-grid.mini {
  grid-template-columns: repeat(5, 1fr);
}
.check-row {
  display: grid;
  grid-template-columns: 140px 1fr 1.5fr 40px;
  gap: 0.4rem;
  margin: 0.4rem 0;
}
.check-row input {
  padding: 0.65rem;
  border: 1px solid #ddd;
  border-radius: 8px;
}
.service-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.service-actions button {
  padding: 0.85rem;
  border: 0;
  border-radius: 10px;
  background: #7d1930;
  color: white;
  font-weight: 800;
}
.service-checks {
  display: grid;
  gap: 0.45rem;
}
.service-checks label {
  background: #fbf6ef;
  padding: 0.75rem;
  border-radius: 8px;
}
.service-checks small {
  display: block;
  margin-left: 1.5rem;
}
.progress {
  height: 10px;
  background: #eee;
  border-radius: 999px;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  background: #1f8752;
}
.counter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
.counter-grid label {
  grid-template-columns: 1fr 70px;
  align-items: center;
}
.return-table {
  display: grid;
  grid-template-columns: 1fr 90px 100px;
  gap: 0.4rem;
  align-items: center;
}
.return-table > * {
  padding: 0.45rem;
}
.clean-report {
  background: #f7efe2;
  border-top: 10px solid #7d1930;
  padding: 1.5rem;
}
.clean-report img {
  width: 85px;
}
.notice-list p {
  padding: 0.65rem;
  border-bottom: 1px solid #eee;
}
@media (max-width: 760px) {
  .ops-card {
    grid-template-columns: 55px 1fr;
  }
  .ops-card > div:last-child {
    grid-column: 1/-1;
  }
  .admin-list article {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .detail-tabs {
    grid-template-columns: 1fr;
  }
  .data-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .check-row {
    grid-template-columns: 1fr;
  }
  .counter-grid {
    grid-template-columns: 1fr;
  }
  .v2-calendar .cal-day {
    min-height: 78px;
    padding: 0.3rem;
  }
  .v2-calendar .cal-day span {
    white-space: nowrap;
    overflow: hidden;
  }
  .v2-dialog {
    padding: 1.2rem;
  }
}

/* Checklist editable por vivienda y ejecución móvil */
.checklist-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.checklist-head h3,
.checklist-head p {
  margin: 0.1rem 0 0.45rem;
}
.checklist-head > div:last-child,
.checklist-copy,
.checklist-section-actions,
.checklist-task-options {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.checklist-head button,
.checklist-copy button,
.checklist-section-actions button,
.checklist-task-options button {
  border: 1px solid #d8c9bf;
  border-radius: 10px;
  background: #fff;
  padding: 0.58rem 0.75rem;
  color: #65152a;
  font-weight: 750;
}
.checklist-copy {
  align-items: center;
  padding: 1rem;
  background: #f3e7d6;
  border-radius: 14px;
  margin-bottom: 1rem;
}
.checklist-copy select {
  min-width: 240px;
  flex: 1;
  border: 1px solid #d8c9bf;
  border-radius: 10px;
  padding: 0.7rem;
  background: #fff;
}
.checklist-editor {
  display: grid;
  gap: 0.8rem;
}
.checklist-section,
.service-checklist-v3 details {
  border: 1px solid #eadbd0;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.checklist-section > summary,
.service-checklist-v3 summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #7d1930;
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}
.checklist-section-actions {
  padding: 0.7rem 1rem;
  background: #f8efe4;
}
.checklist-edit-task {
  padding: 1rem;
  border-top: 1px solid #eee2da;
}
.checklist-task-main {
  display: grid;
  gap: 0.55rem;
}
.checklist-task-main input,
.checklist-task-main textarea,
.service-task-v3 textarea {
  width: 100%;
  border: 1px solid #dacdc5;
  border-radius: 10px;
  padding: 0.72rem;
  font: inherit;
  background: #fff;
}
.checklist-task-main input {
  font-weight: 800;
}
.checklist-task-options {
  align-items: center;
  margin-top: 0.65rem;
}
.checklist-task-options label {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}
.camera-button {
  border: 1px solid #d8c9bf;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  color: #65152a;
  font-weight: 750;
  cursor: pointer;
}
.check-remove {
  margin-left: auto;
  color: #9b1730 !important;
}
.check-reference-photos {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin-top: 0.65rem;
}
.check-reference-photos figure {
  position: relative;
  margin: 0;
}
.check-reference-photos img {
  width: 88px;
  height: 72px;
  object-fit: cover;
  border-radius: 9px;
}
.check-reference-photos figure button {
  position: absolute;
  right: 3px;
  top: 3px;
  border: 0;
  border-radius: 50%;
  background: #7d1930;
  color: #fff;
}
.checklist-savebar {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(250, 245, 238, 0.96);
  border-top: 1px solid #dfd1c8;
  z-index: 5;
}
.checklist-savebar span {
  color: #28603e;
  font-weight: 800;
}
.service-checklist-v3 {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}
.service-task-v3 {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border-top: 1px solid #eee2da;
  border-left: 5px solid #d2b889;
}
.service-task-v3.is-done {
  border-left-color: #218451;
  background: #effaf3;
}
.service-task-v3.is-na {
  border-left-color: #8d8986;
  background: #f2f1f0;
}
.service-task-v3 b {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
}
.service-task-v3 em {
  font: 700 0.68rem sans-serif;
  color: #7d1930;
  background: #f5e2e6;
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
}
.task-state-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}
.task-state-buttons button {
  min-height: 44px;
  border: 1px solid #d7c8c0;
  border-radius: 10px;
  background: #fff;
  color: #571020;
  font-weight: 800;
}
.service-task-v3.is-done [data-task-state="done"],
.service-task-v3.is-na [data-task-state="na"] {
  background: #7d1930;
  color: #fff;
}
.service-summary {
  padding: 1rem;
  background: #f3e7d6;
  border-radius: 14px;
}
.service-date {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  margin: 0.8rem 0;
  padding: 0.8rem 1rem;
  border: 1px solid #e1d0c2;
  border-radius: 12px;
  background: #f8efe4;
  color: #571020;
}
.service-date span {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.service-date strong {
  font-family: Georgia, serif;
  font-size: 1.12rem;
}
.service-date small {
  font-weight: 800;
}
.section-complete-row {
  display: flex;
  justify-content: flex-end;
  padding: 0.6rem 0.8rem;
  background: #f8efe4;
  border-bottom: 1px solid #eadbd0;
}
.section-complete-row button {
  min-height: 42px;
  padding: 0.55rem 0.8rem;
  border: 1px solid #7d1930;
  border-radius: 10px;
  background: #fff;
  color: #7d1930;
  font-weight: 800;
  cursor: pointer;
}
.section-complete-row button:hover,
.section-complete-row button:focus-visible {
  background: #7d1930;
  color: #fff;
}
@media (max-width: 760px) {
  .checklist-head {
    display: grid;
  }
  .checklist-head > div:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .checklist-copy {
    display: grid;
  }
  .checklist-copy select {
    min-width: 0;
    width: 100%;
  }
  .checklist-section > summary,
  .service-checklist-v3 summary {
    font-size: 1rem;
  }
  .checklist-edit-task,
  .service-task-v3 {
    padding: 0.8rem;
  }
  .checklist-task-options button,
  .camera-button {
    min-height: 44px;
  }
  .check-remove {
    margin-left: 0;
  }
  .task-state-buttons {
    grid-template-columns: 1fr;
  }
  .task-state-buttons button {
    font-size: 1rem;
  }
  .checklist-savebar {
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 0.8rem 1rem;
  }
  .checklist-savebar .button {
    min-height: 48px;
    flex: 1;
  }
  .service-date {
    grid-template-columns: 1fr auto;
  }
  .service-date span {
    grid-column: 1/-1;
  }
  .section-complete-row button {
    width: 100%;
    font-size: 0.95rem;
  }
}
.notice-list button {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  margin: 0.5rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid #e8cbd0;
  border-radius: 14px;
  background: #fff7f2;
  color: #64152a;
  text-align: left;
}
.notice-list button span {
  font-size: 0.88rem;
  color: #5e514b;
}
.admin-notice {
  padding: 1rem;
  border-radius: 14px;
  background: #fff0e8;
  border-left: 4px solid #7f1d32;
  color: #64152a;
}
.admin-stats article.has-alert {
  background: #7f1d32;
  color: #fff;
}
.admin-stats article.has-alert span {
  color: #f8e8df;
}
.admin-danger {
  width: 100%;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid #b4233d;
  border-radius: 12px;
  background: #fff;
  color: #9b1730;
  font-weight: 800;
}
.admin-danger:hover,
.admin-danger:focus-visible {
  background: #9b1730;
  color: #fff;
}
.admin-danger.compact {
  width: auto;
  margin: 0;
  padding: 0.55rem 0.8rem;
}
.client-color-legend {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
}
.client-color-legend span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid #eadfd5;
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 750;
}
.client-color-legend i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.calendar-timeline-scroll {
  overflow-x: auto;
}
.calendar-client-filter {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  background: #f3e7d6;
  border: 1px solid #e1d0c2;
  border-radius: 14px;
}
.calendar-client-filter label {
  display: grid;
  gap: 0.35rem;
  flex: 1;
  font-weight: 800;
  color: #571020;
}
.calendar-client-filter select {
  width: 100%;
  min-height: 45px;
  padding: 0.7rem 0.8rem;
  border: 1px solid #d4c2b7;
  border-radius: 10px;
  background: #fff;
  font: inherit;
}
.calendar-client-filter button {
  min-height: 45px;
  padding: 0.7rem 1rem;
  border: 1px solid #7d1930;
  border-radius: 10px;
  background: #fff;
  color: #7d1930;
  font-weight: 800;
}
.calendar-cleaning {
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(50, 25, 30, 0.12);
}
.calendar-cleaning:hover,
.calendar-cleaning:focus-visible {
  outline: 2px solid #7d1930;
  outline-offset: 1px;
}
.billing-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(220px, 320px);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
}
.billing-toolbar > label {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  background: #f3e7d6;
  border: 1px solid #e1d0c2;
  border-radius: 16px;
  color: #571020;
  font-weight: 800;
}
.billing-toolbar select {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem;
  border: 1px solid #d4c2b7;
  border-radius: 10px;
  background: #fff;
  font: inherit;
}
.billing-total {
  display: grid;
  align-content: center;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: #7d1930;
  color: #fff;
}
.billing-total span,
.billing-total small {
  color: #f3dfd6;
}
.billing-total strong {
  font:
    700 2rem Georgia,
    serif;
  margin: 0.2rem 0;
}
.timeline-calendar {
  min-width: 900px;
}
.calendar-week-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid #e8ddd6;
  background: #fff;
}
.calendar-week-row:last-child {
  border-bottom: 0;
}
.timeline-day {
  position: relative;
  z-index: 1;
  grid-row: 1/-1;
  border: 0;
  border-right: 1px solid #eee4de;
  background: transparent;
  padding: 0.45rem;
  text-align: left;
  cursor: pointer;
  color: #33292a;
}
.timeline-day:last-of-type {
  border-right: 0;
}
.timeline-day.outside {
  background: #faf7f3;
  color: #aaa09d;
}
.timeline-day > b {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  font-size: 0.78rem;
}
.timeline-cleanings {
  position: absolute;
  left: 0.35rem;
  right: 0.35rem;
  bottom: 0.3rem;
  display: grid;
  gap: 2px;
}
.timeline-cleanings span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 4px;
  padding: 2px 4px;
  font-size: 0.62rem;
  background: #e6f1e9;
  color: #245d3a;
}
.reservation-range {
  z-index: 4;
  align-self: center;
  height: 22px;
  margin: 0 3px;
  border: 0;
  border-radius: 4px;
  background: var(--reservation-color);
  color: #fff;
  padding: 0 0.55rem;
  text-align: left;
  font: 750 0.67rem/22px inherit;
  box-shadow: 0 1px 2px rgba(40, 20, 25, 0.15);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.reservation-range.range-start {
  margin-left: 7px;
  border-radius: 11px 4px 4px 11px;
}
.reservation-range.range-end {
  margin-right: 7px;
  border-radius: 4px 11px 11px 4px;
}
.reservation-range.range-start.range-end {
  border-radius: 11px;
}
.reservation-range span {
  pointer-events: none;
}
.calendar-toolbar > div:last-child {
  flex-wrap: wrap;
}
.calendar-toolbar button {
  cursor: pointer;
}
@media (max-width: 760px) {
  .timeline-calendar {
    min-width: 760px;
  }
  .calendar-timeline-scroll {
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 0;
  }
  .client-color-legend {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
  }
  .client-color-legend span {
    white-space: nowrap;
  }
  .reservation-range {
    font-size: 0.62rem;
  }
  .calendar-client-filter {
    align-items: stretch;
    flex-direction: column;
  }
  .calendar-client-filter button {
    width: 100%;
  }
  .billing-toolbar {
    grid-template-columns: 1fr;
  }
  .billing-total strong {
    font-size: 1.8rem;
  }
}

#a-dialog.client-editor-dialog[open]{display:flex;flex-direction:column;max-height:calc(100dvh - 24px);overflow:hidden;padding-bottom:0;box-sizing:border-box}#a-dialog.client-editor-dialog #a-dialog-body{overflow-y:auto;min-height:0;flex:1;-webkit-overflow-scrolling:touch;padding-bottom:20px}#a-dialog .client-editor-actions{flex:none;display:flex;justify-content:flex-end;gap:12px;background:#fffaf2;border-top:1px solid #e7ded6;padding:16px 0 max(16px,env(safe-area-inset-bottom));position:relative;z-index:2}#a-dialog .client-editor-actions button{min-height:48px}

#a-dialog .client-editor-actions {
  flex-wrap: wrap;
  border-top: 0;
  border-bottom: 1px solid #e7ded6;
  padding: 0 44px 12px 0;
  margin-bottom: 12px;
}
#a-dialog .client-editor-error {
  flex-basis: 100%;
  margin: 0;
  color: #8c1630;
}
