@import "https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap";
@import "https://fonts.googleapis.com/css2?family=Caveat:wght@500;600;700&display=swap";
/* [project]/app/globals.css [app-client] (css) */
:root {
  --color-bg: #f8fafc;
  --color-surface: #fff;
  --color-border: #e2e8f0;
  --color-border-strong: #cbd5e1;
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-primary: #0ea5e9;
  --color-primary-hover: #0284c7;
  --color-primary-light: #e0f2fe;
  --color-sidebar: #0f172a;
  --color-sidebar-hover: #1e293b;
  --color-sidebar-active: #0ea5e9;
  --color-sidebar-text: #94a3b8;
  --color-sidebar-text-active: #fff;
  --color-danger: #ef4444;
  --color-danger-hover: #dc2626;
  --color-success: #22c55e;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px #00000014;
  --shadow-md: 0 4px 12px #00000014;
  --shadow-lg: 0 10px 40px #0000001f;
}

* {
  box-sizing: border-box;
}

body {
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  font-family: Plus Jakarta Sans, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

html.panel-phone, html.panel-phone body {
  overscroll-behavior-x: none;
  width: 100%;
  max-width: 100%;
}

html.panel-iphone, html.panel-iphone body {
  -webkit-text-size-adjust: 100%;
  position: relative;
  overscroll-behavior: none !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
}

.vms-microcut-bar {
  box-sizing: border-box !important;
  flex-flow: row !important;
  align-items: center !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 4px 6px !important;
  display: flex !important;
}

.vms-microcut-bar__label {
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  text-align: left !important;
  flex: 0 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  display: inline !important;
  overflow: hidden !important;
}

[data-vms-video-stage="1"] {
  flex-shrink: 0 !important;
}

html.panel-iphone [data-vms-video-stage="1"] {
  aspect-ratio: 16 / 9 !important;
  flex: none !important;
  width: 100% !important;
  height: 210px !important;
  min-height: 210px !important;
  max-height: 210px !important;
}

.vms-microcut-bar__btn {
  box-sizing: border-box !important;
  width: max-content !important;
  min-width: unset !important;
  white-space: nowrap !important;
  appearance: none !important;
  flex: none !important;
  align-self: center !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 1px 4px !important;
  font-size: 9px !important;
  line-height: 1.1 !important;
  display: inline-flex !important;
}

html.panel-iphone .admin-wrapper--phone {
  touch-action: pan-y;
  transform: translate3d(var(--ios-vv-x, 0px), 0, 0);
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-x: none !important;
  overscroll-behavior-y: contain !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100dvh !important;
  min-height: 0 !important;
  position: fixed !important;
  inset: 0 !important;
  overflow: hidden auto !important;
}

html.panel-iphone body > .modal-overlay:not(.modal-overlay--media-viewer):not(.modal-overlay--foto-lightbox) {
  transform: translate3d(var(--ios-vv-x, 0px), 0, 0);
}

html.panel-iphone body > .modal-overlay--media-viewer, html.panel-iphone body > .modal-overlay--foto-lightbox {
  transform: none !important;
}

html.panel-iphone input, html.panel-iphone textarea, html.panel-iphone select, html.panel-iphone .modal-overlay input, html.panel-iphone .modal-overlay textarea, html.panel-iphone .modal-overlay select, body > .modal-overlay input, body > .modal-overlay textarea, body > .modal-overlay select {
  font-size: 16px !important;
}

.login-page {
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  min-height: 100dvh;
  padding: 0 18px calc(20px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(#e5f0ff 0%, #eff5fc 40%, #eef2f6 100%);
  flex-direction: column;
  display: flex;
  position: relative;
  overflow: hidden auto;
}

.login-hero {
  background-image: url("/login-hero-banner.png");
  background-position: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 26px;
  width: 100%;
  max-width: 460px;
  min-height: clamp(200px, 30vh, 280px);
  margin: auto auto 0;
  padding: clamp(20px, 5vh, 42px) 20px 44px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px -20px #0206174d;
}

.login-hero__text {
  z-index: 2;
  max-width: 62%;
  position: relative;
}

.login-eyebrow {
  color: #2563eb;
  margin: 0 0 6px;
  font-size: .95rem;
  font-weight: 700;
}

.login-title {
  letter-spacing: -.02em;
  color: #0f172a;
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 7.2vw, 2.05rem);
  font-weight: 800;
  line-height: 1.12;
}

.login-hero__sub {
  color: #475569;
  margin: 0;
  font-size: .88rem;
  line-height: 1.45;
}

.login-hero__sub svg {
  vertical-align: -2px;
  color: #2563eb;
  width: 15px;
  height: 15px;
  display: inline-block;
}

.login-card {
  z-index: 2;
  box-sizing: border-box;
  background: #fff;
  border-radius: 26px;
  width: 100%;
  max-width: 460px;
  margin: -22px auto auto;
  padding: 22px 20px 20px;
  animation: .5s cubic-bezier(.16, 1, .3, 1) both login-card-in;
  position: relative;
  box-shadow: 0 24px 60px -26px #02061766, 0 8px 22px -14px #02061729;
}

@keyframes login-card-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-aviso {
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 12px;
  margin: 0 0 14px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
}

.login-form {
  flex-direction: column;
  gap: 13px;
  display: flex;
}

.login-field {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  transition: border-color .2s, box-shadow .2s;
  display: flex;
}

.login-field:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px #2563eb1f;
}

.login-field.login-field--invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px #dc26261f;
}

.login-field__icon {
  color: #2563eb;
  background: #eff5ff;
  border-radius: 12px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  display: flex;
}

.login-field__icon svg {
  width: 20px;
  height: 20px;
}

.login-field__body {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  display: flex;
}

.login-field__body label {
  color: #64748b;
  letter-spacing: .02em;
  font-size: .72rem;
  font-weight: 700;
}

.login-pass {
  align-items: center;
  display: flex;
}

.login-field input {
  color: #0f172a;
  appearance: none;
  background: none;
  border: none;
  width: 100%;
  min-width: 0;
  padding: 2px 0 0;
  font-family: inherit;
  font-size: 16px;
}

.login-field input:focus {
  outline: none;
}

.login-field input::placeholder {
  color: #9aa7b8;
  font-size: .95rem;
}

.login-eye {
  color: #94a3b8;
  cursor: pointer;
  appearance: none;
  background: none;
  border: none;
  border-radius: 8px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  display: flex;
}

.login-eye:hover {
  color: #475569;
}

.login-eye svg {
  width: 20px;
  height: 20px;
}

.login-field-error {
  color: #b91c1c;
  margin: -4px 0 0 4px;
  font-size: .78rem;
  font-weight: 600;
}

.login-form-error {
  color: var(--color-danger);
  text-align: center;
  margin: 0;
  font-size: .86rem;
  font-weight: 600;
}

.login-submit {
  color: #fff;
  cursor: pointer;
  appearance: none;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: none;
  border-radius: 16px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  padding: 15px 20px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  transition: box-shadow .2s, transform .15s, filter .2s;
  display: flex;
  position: relative;
  box-shadow: 0 14px 28px -12px #2563ebbf;
}

.login-submit svg {
  width: 20px;
  height: 20px;
}

.login-submit:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 18px 32px -12px #2563ebcc;
}

.login-submit:active:not(:disabled) {
  transform: translateY(1px);
}

.login-submit:disabled {
  opacity: .75;
  cursor: not-allowed;
}

.login-forgot {
  color: #2563eb;
  cursor: pointer;
  text-align: center;
  background: none;
  border: none;
  margin: 14px auto 2px;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 600;
  display: block;
}

.login-forgot:hover {
  text-decoration: underline;
}

.login-promo {
  background: #ecfdf5;
  border: 1px solid #d1fae5;
  border-radius: 16px;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 13px 16px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.login-promo__icon {
  color: #059669;
  background: #d1fae5;
  border-radius: 12px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  display: flex;
}

.login-promo__icon svg {
  width: 20px;
  height: 20px;
}

.login-promo__text {
  z-index: 1;
  flex-direction: column;
  display: flex;
}

.login-promo__text strong {
  color: #065f46;
  font-size: .9rem;
  font-weight: 700;
}

.login-promo__text span {
  color: #047857;
  font-size: .8rem;
}

.login-promo__leaf {
  color: #34d399;
  opacity: .45;
  z-index: 0;
  position: absolute;
  bottom: -12px;
  right: -8px;
}

.login-promo__leaf svg {
  width: 56px;
  height: 56px;
}

@media (min-width: 560px) {
  .login-page {
    justify-content: center;
  }

  .login-hero, .login-card {
    max-width: 440px;
  }
}

@supports (-webkit-touch-callout: none) {
  .login-page {
    justify-content: center;
    min-height: 100svh;
  }

  .login-eyebrow {
    font-size: .74rem;
  }

  .login-title {
    font-size: clamp(1.15rem, 5.4vw, 1.55rem);
  }

  .login-hero__sub {
    font-size: .72rem;
  }

  .login-field__body label {
    font-size: .62rem;
  }

  .login-field input::placeholder {
    font-size: .82rem;
  }

  .login-submit {
    border-radius: 14px;
    padding: 11px 20px;
    font-size: .9rem;
  }

  .login-forgot {
    font-size: .76rem;
  }

  .login-promo__text strong {
    font-size: .78rem;
  }

  .login-promo__text span {
    font-size: .7rem;
  }

  .login-field__icon {
    border-radius: 10px;
    width: 34px;
    height: 34px;
  }

  .login-field__icon svg {
    width: 17px;
    height: 17px;
  }

  .login-field {
    border-radius: 13px;
    padding: 5px 12px;
  }

  .login-form {
    gap: 10px;
  }
}

.admin-wrapper {
  min-height: 100vh;
  display: flex;
}

.admin-sidebar {
  background: var(--color-sidebar);
  width: 260px;
  color: var(--color-sidebar-text);
  flex-direction: column;
  flex-shrink: 0;
  padding: 24px 0;
  display: flex;
  position: relative;
}

.admin-sidebar-close, .admin-mobile-menu-btn, .admin-sidebar-overlay {
  display: none;
}

.admin-sidebar .brand {
  border-bottom: 1px solid #ffffff14;
  margin-bottom: 20px;
  padding: 0 24px 24px;
}

.admin-sidebar .brand h2 {
  color: #fff;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.admin-sidebar nav {
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 0 12px;
  display: flex;
}

.admin-sidebar .nav-group {
  flex-direction: column;
  gap: 6px;
  display: flex;
}

.admin-sidebar .nav-group-toggle {
  color: #d8f0ff;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: #ffffff0f;
  border: 1px solid #ffffff1a;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: .92rem;
  font-weight: 700;
  display: flex;
}

.admin-sidebar .nav-group-toggle:hover {
  background: #ffffff1f;
}

.admin-sidebar .nav-group-toggle.active-group {
  color: #fff;
  border-color: #0ea5e973;
}

.admin-sidebar .nav-group-chevron {
  opacity: .85;
}

.admin-sidebar .nav-group-content {
  grid-template-rows: 0fr;
  transition: grid-template-rows .24s;
  display: grid;
}

.admin-sidebar .nav-group.open .nav-group-content {
  grid-template-rows: 1fr;
}

.admin-sidebar .nav-group-links {
  flex-direction: column;
  gap: 4px;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.admin-sidebar nav a {
  color: var(--color-sidebar-text);
  border-radius: var(--radius-sm);
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, color .15s;
  display: flex;
}

.admin-sidebar nav a:hover {
  background: var(--color-sidebar-hover);
  color: #fff;
}

.admin-sidebar nav a.active {
  color: var(--color-sidebar-active);
  background: #0ea5e926;
}

.admin-sidebar .nav-submenu {
  flex-direction: column;
  gap: 4px;
  display: flex;
}

.admin-sidebar .nav-submenu-toggle {
  width: 100%;
  color: var(--color-sidebar-text);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  background: none;
  border: 1px solid #0000;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  transition: background .15s, color .15s, border-color .15s;
  display: flex;
}

.admin-sidebar .nav-submenu-toggle:hover {
  background: var(--color-sidebar-hover);
  color: #fff;
}

.admin-sidebar .nav-submenu-toggle.active-parent {
  color: #fff;
  background: #0ea5e914;
  border-color: #0ea5e959;
}

.admin-sidebar .nav-submenu-chevron {
  opacity: .85;
  font-size: .75rem;
}

.admin-sidebar .nav-submenu-content {
  grid-template-rows: 0fr;
  transition: grid-template-rows .22s;
  display: grid;
}

.admin-sidebar .nav-submenu.open .nav-submenu-content {
  grid-template-rows: 1fr;
}

.admin-sidebar .nav-submenu-links {
  border-left: 2px solid #0ea5e940;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
  margin-left: 12px;
  padding-left: 8px;
  display: flex;
  overflow: hidden;
}

.admin-sidebar .nav-submenu-links a {
  padding: 8px 12px 8px 10px;
  font-size: .88rem;
  font-weight: 500;
}

.admin-main-wrap {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
}

.admin-top-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 32px;
  display: flex;
}

.admin-top-bar__identity {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  min-width: 0;
  display: flex;
}

.admin-top-bar__avatar-wrap {
  flex-shrink: 0;
  align-items: center;
  display: flex;
}

.admin-top-bar__avatar {
  object-fit: cover;
  border: 2px solid var(--color-border);
  box-sizing: border-box;
  vertical-align: middle;
  border-radius: 50%;
  width: 44px;
  height: 44px;
}

.admin-top-bar__avatar--placeholder {
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 14%, transparent);
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  display: inline-flex;
}

.admin-top-bar__panel {
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 700;
}

.admin-top-bar__user {
  color: var(--color-primary);
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  font-weight: 600;
  overflow: hidden;
}

.admin-top-bar__nivel {
  color: var(--color-text-muted);
  font-size: .8rem;
  font-weight: 500;
}

.admin-top-bar__activos {
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  display: inline-flex;
}

.admin-top-bar__activo {
  cursor: default;
  flex-shrink: 0;
  display: inline-flex;
  position: relative;
}

.admin-top-bar__activo-avatar {
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #22c55e73;
}

.admin-top-bar__activo-dot {
  background: #22c55e;
  border: 2px solid #fff;
  border-radius: 50%;
  width: 9px;
  height: 9px;
  position: absolute;
  bottom: -1px;
  right: -1px;
  box-shadow: 0 0 0 1px #22c55e59;
}

.form-check {
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  display: flex;
}

.form-success {
  color: #15803d;
  margin: 0;
  font-size: .9rem;
}

.alertas-bell {
  flex-shrink: 0;
  position: relative;
}

.alertas-bell__btn {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  width: 40px;
  height: 40px;
  color: var(--color-text);
  cursor: pointer;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  display: inline-flex;
  position: relative;
}

.alertas-bell__btn--hot {
  border-color: color-mix(in srgb, #dc2626 45%, var(--color-border));
  color: #b91c1c;
  animation: 2.4s ease-in-out infinite alertas-bell-ring;
}

.alertas-bell__btn--hot:after {
  content: "";
  border-radius: inherit;
  pointer-events: none;
  border: 2px solid #dc262673;
  animation: 1.8s ease-out infinite alertas-bell-halo;
  position: absolute;
  inset: -3px;
}

.alertas-bell__btn--hot svg {
  transform-origin: top;
  animation: 2.4s ease-in-out infinite alertas-bell-swing;
}

.alertas-bell__badge {
  color: #fff;
  text-align: center;
  min-width: 18px;
  height: 18px;
  box-shadow: 0 0 0 2px var(--color-surface, #fff);
  background: #dc2626;
  border-radius: 999px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  animation: 1.6s ease-in-out infinite alertas-bell-badge-pop;
  position: absolute;
  top: -4px;
  right: -4px;
}

@keyframes alertas-bell-swing {
  0%, 70%, 100% {
    transform: rotate(0);
  }

  78% {
    transform: rotate(14deg);
  }

  86% {
    transform: rotate(-12deg);
  }

  92% {
    transform: rotate(8deg);
  }

  96% {
    transform: rotate(-4deg);
  }
}

@keyframes alertas-bell-halo {
  0% {
    opacity: .85;
    transform: scale(.92);
  }

  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

@keyframes alertas-bell-ring {
  0%, 100% {
    background: var(--color-surface);
  }

  50% {
    background: color-mix(in srgb, #fee2e2 70%, var(--color-surface));
  }
}

@keyframes alertas-bell-badge-pop {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .alertas-bell__btn--hot, .alertas-bell__btn--hot:after, .alertas-bell__btn--hot svg, .alertas-bell__badge {
    animation: none;
  }
}

.alertas-bell__panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  z-index: 80;
  width: min(360px, 92vw);
  box-shadow: var(--shadow);
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
}

.alertas-bell__backdrop {
  z-index: 1200;
  cursor: pointer;
  background: #0f172a73;
  border: 0;
  margin: 0;
  padding: 0;
  position: fixed;
  inset: 0;
}

.alertas-bell__panel--sheet {
  left: 12px;
  right: 12px;
  top: max(64px, calc(env(safe-area-inset-top, 0px)  + 56px));
  z-index: 1201;
  border-radius: 14px;
  flex-direction: column;
  width: auto;
  max-height: min(70vh, 480px);
  display: flex;
  position: fixed;
  overflow: hidden;
}

.alertas-bell__panel--sheet .alertas-bell__list {
  -webkit-overflow-scrolling: touch;
  flex: 1;
  max-height: none;
  overflow: auto;
}

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

.alertas-bell__close {
  width: 32px;
  height: 32px;
  color: var(--color-text-muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 8px;
  font-size: 1rem;
}

.alertas-bell__head, .alertas-bell__all {
  padding: 10px 14px;
  font-size: .8rem;
  font-weight: 600;
}

.alertas-bell__empty {
  color: var(--color-text-muted);
  margin: 0;
  padding: 8px 14px 14px;
  font-size: .85rem;
}

.alertas-bell__list {
  max-height: 280px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: auto;
}

.alertas-bell__item {
  color: inherit;
  border-top: 1px solid var(--color-border);
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  text-decoration: none;
  display: flex;
}

.alertas-bell__item span {
  color: var(--color-text-muted);
  font-size: .78rem;
}

.alertas-bell__all {
  border-top: 1px solid var(--color-border);
  color: var(--color-primary);
  text-decoration: none;
  display: block;
}

.alertas-ack-overlay {
  z-index: 12000;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  background: #0f172a8c;
  place-items: center;
  padding: 20px;
  display: grid;
  position: fixed;
  inset: 0;
}

.alertas-ack-modal {
  background: #fff;
  border: 1px solid #0f172a14;
  border-radius: 16px;
  gap: 10px;
  width: min(100%, 420px);
  padding: 22px 22px 18px;
  display: grid;
  box-shadow: 0 24px 48px #0f172a38;
}

.alertas-ack-modal__top {
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  display: flex;
}

.alertas-ack-modal__eyebrow {
  letter-spacing: .02em;
  color: #64748b;
  margin: 0;
  font-size: .78rem;
}

.alertas-ack-modal__count {
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  flex-shrink: 0;
  padding: 3px 9px;
  font-size: .78rem;
  font-weight: 700;
}

.alertas-ack-modal__badge {
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  margin: 0;
  padding: 6px 10px;
  font-size: .8rem;
  font-weight: 600;
}

.alertas-ack-modal h2 {
  color: #0f172a;
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
}

.alertas-ack-modal__notas {
  white-space: pre-wrap;
  color: #334155;
  max-height: min(40vh, 240px);
  margin: 0;
  font-size: .95rem;
  line-height: 1.45;
  overflow: auto;
}

.alertas-ack-modal__ok {
  justify-content: center;
  width: 100%;
  margin-top: 8px;
}

.alertas-destinatarios {
  background: #f8fafc;
  border: 1px solid #0f172a1a;
  border-radius: 10px;
  gap: 6px;
  max-height: 180px;
  padding: 8px 10px;
  display: grid;
  overflow: auto;
}

.alertas-destinatarios__item {
  color: #0f172a;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  display: flex;
}

.alertas-destinatarios__item--todos {
  border-bottom: 1px solid #0f172a14;
  margin-bottom: 2px;
  padding-bottom: 6px;
  font-weight: 600;
}

.alertas-destinatarios__hint {
  color: #64748b;
  margin: 6px 0 0;
  font-size: .78rem;
}

.modal-box--alerta-hist {
  width: min(100%, 560px);
  min-width: 0;
  max-width: 560px;
  max-height: min(90vh, 720px);
  overflow: auto;
}

.alertas-hist__subtitulo {
  color: var(--color-text-muted);
  margin: -4px 0 12px;
  font-size: .9rem;
}

.alertas-hist__resumen {
  color: #334155;
  background: #f1f5f9;
  border-radius: 10px;
  margin: 0 0 14px;
  padding: 10px 12px;
  font-size: .88rem;
}

.alertas-hist__h3 {
  color: #0f172a;
  margin: 0 0 8px;
  font-size: .85rem;
  font-weight: 700;
}

.alertas-hist__list {
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
}

.alertas-hist__row {
  background: #fff;
  border: 1px solid #0f172a14;
  border-radius: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  display: flex;
}

.alertas-hist__who {
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  font-size: .9rem;
  display: flex;
}

.alertas-hist__who span {
  color: #64748b;
  font-size: .8rem;
}

.alertas-hist__status {
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  display: inline-flex;
}

.alertas-hist__status--ok {
  color: #166534;
}

.alertas-hist__status--pending {
  color: #b45309;
}

.alertas-hist__reset {
  appearance: none;
  color: #92400e;
  cursor: pointer;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: .72rem;
  font-weight: 700;
}

.alertas-hist__reset:disabled {
  opacity: .6;
  cursor: wait;
}

.alertas-hist__table-wrap {
  border: 1px solid #0f172a14;
  border-radius: 10px;
  max-height: 240px;
  margin-bottom: 8px;
  overflow: auto;
}

.alertas-hist__table {
  margin: 0;
  font-size: .85rem;
}

.alertas-hist__table th, .alertas-hist__table td {
  white-space: nowrap;
  padding: 8px 10px;
}

.alertas-hist__filtro {
  margin-bottom: 12px;
}

.admin-wrapper--phone .card--alertas-phone {
  border-radius: 14px;
  margin: 0 0 12px;
  overflow: hidden;
}

.admin-wrapper--phone .filters-row--alertas-phone, html.panel-iphone .filters-row--alertas-phone {
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  margin: 0;
  padding: 12px 14px 14px;
  flex-direction: unset !important;
  align-items: end !important;
  display: grid !important;
}

.admin-wrapper--phone .filters-row--alertas-phone label, html.panel-iphone .filters-row--alertas-phone label {
  color: var(--color-text-muted);
  gap: 4px;
  min-width: 0;
  font-size: .82rem;
  font-weight: 600;
  display: grid;
  width: auto !important;
}

.admin-wrapper--phone .filters-row--alertas-phone select, html.panel-iphone .filters-row--alertas-phone select {
  width: 100%;
  min-height: 40px;
}

.admin-wrapper--phone .alertas-phone-add-wrap, html.panel-iphone .alertas-phone-add-wrap {
  grid-template-rows: auto 40px;
  align-self: end;
  gap: 4px;
  display: grid;
}

.admin-wrapper--phone .alertas-phone-add-wrap__label, html.panel-iphone .alertas-phone-add-wrap__label {
  visibility: hidden;
  -webkit-user-select: none;
  user-select: none;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.2;
}

.admin-wrapper--phone .alertas-phone-add, html.panel-iphone .alertas-phone-add {
  border-radius: 10px;
  flex-shrink: 0;
  justify-content: center;
  align-self: end;
  align-items: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
}

.alertas-phone-card {
  border-left: 3px solid #94a3b8;
}

.alertas-phone-card--abierta {
  border-left-color: #2563eb;
}

.alertas-phone-card--vencida {
  border-left-color: #dc2626;
}

.alertas-phone-card--programada {
  border-left-color: #7c3aed;
}

.alertas-phone-card--cerrada {
  border-left-color: #64748b;
}

.alertas-phone-card--pausada {
  border-left-color: #d97706;
}

.alertas-phone-card__actions {
  border-top: 1px solid #0f172a14;
  margin-top: 4px;
  padding-top: 8px;
}

.alertas-phone-card__actions .alertas-bandeja__actions {
  justify-content: flex-start;
}

.admin-wrapper--phone .modal-box--alerta.modal-box--phone-fullbleed, .admin-wrapper--phone .modal-box--alerta-hist.modal-box--phone-fullbleed {
  width: 100%;
  max-width: none;
  max-height: none;
}

.bandeja-alertas-sort {
  appearance: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  font-weight: 700;
}

.bandeja-alertas-sort:hover {
  color: #0ea5e9;
}

.bandeja-alertas-table__row--pendiente td:first-child {
  box-shadow: inset 3px 0 #f59e0b;
}

.bandeja-alertas-movil__header {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 12px;
  display: flex;
}

.bandeja-alertas-movil__header h1 {
  margin: 0;
  font-size: 1.35rem;
}

.bandeja-alertas-movil__toolbar {
  gap: 12px;
  padding: 12px 14px 14px;
  display: grid;
}

.admin-wrapper--phone .card--bandeja-phone {
  border-radius: 14px;
  margin: 0 0 12px;
  overflow: hidden;
}

.admin-wrapper--phone .filters-row--bandeja-phone {
  grid-template-columns: 1fr;
  gap: 8px;
  display: grid;
}

.admin-wrapper--phone .filters-row--bandeja-phone select {
  width: 100%;
  min-height: 40px;
}

.bandeja-alertas-phone-card {
  border-left: 3px solid #94a3b8;
}

.bandeja-alertas-phone-card--pendiente {
  border-left-color: #f59e0b;
}

.bandeja-alertas-phone-estado {
  color: #334155;
  background: #f1f5f9;
  border-radius: 999px;
  flex-shrink: 0;
  padding: 4px 8px;
  font-size: .75rem;
  font-weight: 700;
}

.bandeja-alertas-phone-notas {
  color: #334155;
  white-space: pre-wrap;
  border-top: 1px solid #0f172a14;
  margin-top: 2px;
  padding-top: 8px;
  font-size: .88rem;
}

.alertas-bandeja-empty {
  text-align: center;
  color: var(--color-text-muted);
  gap: 6px;
  padding: 40px 24px;
  display: grid;
}

.alertas-bandeja-empty strong {
  color: var(--color-text);
  font-size: 1rem;
}

.alertas-bandeja-wrap {
  border-top: 1px solid var(--color-border);
}

.alertas-bandeja {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.alertas-bandeja thead th {
  z-index: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: color-mix(in srgb, var(--color-bg, #f8fafc) 88%, var(--color-surface));
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  white-space: nowrap;
  padding: 12px 16px;
  font-size: .7rem;
  font-weight: 650;
  position: sticky;
  top: 0;
}

.alertas-bandeja tbody td {
  vertical-align: middle;
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
  background: var(--color-surface);
  padding: 14px 16px;
}

.alertas-bandeja__row:hover td {
  background: color-mix(in srgb, var(--color-primary-light, #e0f2fe) 35%, var(--color-surface));
}

.alertas-bandeja__row--abierta td:first-child, .alertas-bandeja__row--vencida td:first-child {
  box-shadow: inset 3px 0 #b91c1c;
}

.alertas-bandeja__row--programada td:first-child {
  box-shadow: inset 3px 0 #0284c7;
}

.alertas-bandeja__title {
  color: var(--color-text);
  font-weight: 650;
  line-height: 1.25;
}

.alertas-bandeja__meta {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  display: flex;
}

.alertas-bandeja__chip {
  color: #0f4c81;
  background: #e0f2fe;
  border-radius: 999px;
  align-items: center;
  padding: 2px 8px;
  font-size: .72rem;
  font-weight: 600;
  display: inline-flex;
}

.alertas-bandeja__meta-text {
  color: var(--color-text-muted);
  font-size: .78rem;
}

.alertas-bandeja__fecha {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.alertas-bandeja__countdown {
  border-radius: 999px;
  margin-top: 6px;
  padding: 2px 8px;
  font-size: .72rem;
  font-weight: 650;
  display: inline-flex;
}

.alertas-bandeja__countdown--soon {
  color: #075985;
  background: #e0f2fe;
}

.alertas-bandeja__countdown--today {
  color: #9a3412;
  background: #ffedd5;
}

.alertas-bandeja__countdown--late {
  color: #991b1b;
  background: #fee2e2;
}

.alertas-bandeja__period {
  color: var(--color-text);
  background: color-mix(in srgb, var(--color-bg, #f1f5f9) 90%, var(--color-border));
  border-radius: 8px;
  padding: 4px 10px;
  font-size: .8rem;
  font-weight: 550;
  display: inline-flex;
}

.alertas-bandeja__plan {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.alertas-bandeja__plan-label {
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-size: .68rem;
  font-weight: 650;
}

.alertas-bandeja__plan-name {
  color: var(--color-text);
  text-overflow: ellipsis;
  font-size: .88rem;
  font-weight: 550;
  overflow: hidden;
}

.alertas-bandeja__suelta {
  color: var(--color-text-muted);
  font-size: .82rem;
  font-style: italic;
}

.alertas-bandeja__estado {
  white-space: nowrap;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: .75rem;
  font-weight: 700;
  display: inline-flex;
}

.alertas-bandeja__estado:before {
  content: "";
  background: currentColor;
  border-radius: 50%;
  width: 7px;
  height: 7px;
}

.alertas-bandeja__estado--abierta {
  color: #b45309;
  background: #fef3c7;
}

.alertas-bandeja__estado--vencida {
  color: #991b1b;
  background: #fee2e2;
}

.alertas-bandeja__estado--programada {
  color: #0369a1;
  background: #e0f2fe;
}

.alertas-bandeja__estado--cerrada {
  color: #166534;
  background: #dcfce7;
}

.alertas-bandeja__estado--pausada {
  color: #475569;
  background: #e2e8f0;
}

.alertas-bandeja__estado-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2 4.5L6 8.5L10 4.5z'/%3E%3C/svg%3E");
  background-position: right 8px center;
  background-repeat: no-repeat;
  border: 1px solid #0000;
  border-radius: 999px;
  align-items: center;
  max-width: 140px;
  padding: 5px 28px 5px 10px;
  font-family: inherit;
  font-size: .75rem;
  font-weight: 700;
  display: inline-flex;
}

.alertas-bandeja__estado-select:focus {
  border-color: var(--color-primary);
  outline: none;
}

.alertas-bandeja__actions {
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  width: 100%;
  display: inline-flex;
}

.alertas-bandeja__icon-btn {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  width: 34px;
  height: 34px;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: inline-flex;
}

.alertas-bandeja__icon-btn:hover {
  color: var(--color-text);
  border-color: var(--color-border-strong, #94a3b8);
  background: color-mix(in srgb, var(--color-bg, #f8fafc) 80%, var(--color-surface));
}

.alertas-bandeja__icon-btn--ok:hover {
  color: #166534;
  background: #f0fdf4;
  border-color: #86efac;
}

.alertas-bandeja__icon-btn--danger:hover {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fca5a5;
}

.admin-bot-status {
  border: 1px solid var(--color-border);
  background: var(--color-bg, #f8fafc);
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
  min-width: 0;
  color: inherit;
  border-radius: 999px;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  display: inline-flex;
}

.admin-bot-status--desktop {
  cursor: pointer;
  text-align: left;
  transition: background .15s, border-color .15s, box-shadow .15s;
}

.admin-bot-status--desktop:hover {
  box-shadow: 0 1px 4px #0f172a14;
}

.admin-bot-status--desktop:active {
  transform: translateY(1px);
}

.admin-bot-status--readonly {
  cursor: default;
}

.admin-bot-status--readonly:hover {
  box-shadow: none;
}

.admin-bot-status--readonly:active {
  transform: none;
}

.admin-bot-status__text {
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
  line-height: 1.25;
  display: flex;
}

.admin-bot-status__label {
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 100%;
  overflow: hidden;
}

.admin-bot-status__meta {
  color: var(--color-text-muted, #64748b);
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 100%;
  font-size: .72rem;
  font-weight: 500;
  overflow: hidden;
}

.admin-bot-status__dot {
  background: #94a3b8;
  border-radius: 50%;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
}

.admin-bot-status--connected {
  color: #15803d;
  background: #f0fdf4;
  border-color: #16a34a59;
}

.admin-bot-status--connected .admin-bot-status__dot {
  background: #22c55e;
  box-shadow: 0 0 0 2px #22c55e40;
}

.admin-bot-status--disconnected {
  color: #b45309;
  background: #fffbeb;
  border-color: #f59e0b66;
}

.admin-bot-status--disconnected .admin-bot-status__dot {
  background: #f59e0b;
}

.admin-bot-status--offline {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #ef444459;
}

.admin-bot-status--offline .admin-bot-status__dot {
  background: #ef4444;
}

.admin-bot-status--loading {
  color: var(--color-text-muted);
}

.admin-bot-status--loading .admin-bot-status__dot {
  background: #94a3b8;
  animation: 1.2s ease-in-out infinite admin-bot-pulse;
}

.admin-bot-status--compact {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  font: inherit;
  appearance: none;
  flex: none;
  justify-content: center;
  gap: 4px;
  padding: 3px 8px;
}

.admin-bot-status--compact:active {
  opacity: .92;
  transform: scale(.96);
}

.admin-bot-status--compact .admin-bot-status__icon {
  width: 22px;
  height: 22px;
}

.phone-topbar .admin-bot-status--compact {
  margin-right: 2px;
}

@keyframes admin-bot-pulse {
  0%, 100% {
    opacity: .4;
  }

  50% {
    opacity: 1;
  }
}

.btn-logout {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px 16px;
  font-family: inherit;
  font-size: .9rem;
  transition: background .2s, color .2s, border-color .2s;
}

.btn-logout:hover {
  color: var(--color-danger);
  background: #fef2f2;
  border-color: #ef444473;
}

.btn-logout--toolbar {
  flex-shrink: 0;
  width: auto;
}

.admin-main {
  background: var(--color-bg);
  flex: 1;
  min-height: 0;
  padding: 32px;
  overflow: auto;
}

.admin-saving-overlay {
  z-index: 2147483000;
  pointer-events: auto;
  margin: 0;
  padding: 0;
  position: fixed;
  inset: 0;
}

.admin-saving-overlay__backdrop {
  -webkit-backdrop-filter: blur(4px);
  background: #0f172a7a;
  position: absolute;
  inset: 0;
}

.admin-saving-overlay__panel {
  z-index: 1;
  box-sizing: border-box;
  background: #fff;
  border-radius: 20px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  min-width: 180px;
  max-width: 280px;
  padding: 28px 32px;
  display: flex;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 50px #00000047;
}

.admin-saving-overlay__orbit {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  position: relative;
}

.admin-saving-overlay__orbit:before {
  content: "";
  pointer-events: none;
  border: 2px dashed #2563eb59;
  border-radius: 50%;
  animation: 3.2s linear infinite admin-saving-orbit;
  position: absolute;
  inset: 0;
}

.admin-saving-overlay__spinner {
  border: 4px solid #2563eb2e;
  border-top-color: var(--color-primary, #2563eb);
  border-right-color: var(--color-primary, #2563eb);
  box-sizing: border-box;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  animation: .72s linear infinite admin-saving-spin;
  position: absolute;
  top: 50%;
  left: 50%;
}

.admin-saving-overlay__label {
  text-align: center;
  color: #0f172a;
  max-width: 220px;
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.35;
}

@keyframes admin-saving-spin {
  from {
    transform: translate(-50%, -50%)rotate(0);
  }

  to {
    transform: translate(-50%, -50%)rotate(360deg);
  }
}

@keyframes admin-saving-orbit {
  to {
    transform: rotate(-360deg);
  }
}

.admin-readonly-banner {
  color: #92400e;
  border-radius: var(--radius-sm);
  background: #fffbeb;
  border: 1px solid #fcd34d;
  margin: -8px 0 20px;
  padding: 10px 14px;
  font-size: .9rem;
  font-weight: 500;
}

.admin-main--readonly .card-header button.btn-primary:not([data-readonly-ok]), .admin-main--readonly .card-header button.btn-danger, .admin-main--readonly .card .filters-row button.btn-primary:not([data-readonly-ok]), .admin-main--readonly .card .filters-row button.btn-danger, .admin-main--readonly .card button.btn-primary:not([data-readonly-ok]), .admin-main--readonly .card button.btn-danger, .admin-main--readonly table.admin-table td.actions button, .admin-main--readonly table.admin-table .actions button, .admin-main--readonly .modal-overlay .modal-actions button.btn-primary:not([data-readonly-ok]), .admin-main--readonly .modal-overlay .modal-actions button.btn-danger:not([data-readonly-ok]), .admin-main--readonly .card button[type="submit"].btn-primary, .admin-main--readonly .card button[type="submit"].btn-danger {
  opacity: .45;
  pointer-events: none;
  cursor: not-allowed;
}

.admin-header {
  margin-bottom: 28px;
}

.admin-header h1 {
  color: var(--color-text);
  margin: 0 0 4px;
  font-size: 1.75rem;
  font-weight: 700;
}

.admin-header p {
  color: var(--color-text-muted);
  margin: 0;
  font-size: .95rem;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.conv-selector-card {
  margin-bottom: 1rem;
  padding: 20px 24px;
}

.conv-persona-form {
  margin-bottom: 0;
}

.conv-persona-label {
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  font-size: .8rem;
  font-weight: 600;
  display: block;
}

.conv-persona-select {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 420px;
  color: var(--color-text);
  background-color: var(--color-surface);
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2 4.5L6 8.5L10 4.5z'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  padding: 12px 40px 12px 14px;
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
  display: block;
}

.conv-persona-select:hover {
  border-color: var(--color-border-strong);
}

.conv-persona-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
  outline: none;
}

.trigger-edificio-wrap {
  align-items: center;
  gap: 10px;
  margin: 0;
  display: flex;
}

.trigger-edificio-label {
  color: var(--color-text);
  font-size: .9rem;
  font-weight: 600;
}

.trigger-edificio-select {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  min-width: 180px;
  color: var(--color-text);
  background-color: var(--color-surface);
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2 4.5L6 8.5L10 4.5z'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  padding: 10px 36px 10px 14px;
  font-family: inherit;
  font-size: .9rem;
  transition: border-color .2s, box-shadow .2s;
}

.trigger-edificio-select:hover {
  border-color: var(--color-border-strong);
}

.trigger-edificio-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
  outline: none;
}

.conv-fechas-row {
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  display: flex;
}

.conv-fecha-group {
  margin-bottom: 0;
}

.conv-date-input {
  cursor: pointer;
  background-image: none;
  max-width: 160px;
}

.conv-date-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: .7;
}

.conv-limpiar-fechas {
  align-self: flex-end;
  margin-bottom: 2px;
}

.conv-chat-card {
  padding: 20px 24px;
}

.chat-thread {
  flex-direction: column;
  gap: 10px;
  max-height: 60vh;
  padding: 12px 0;
  display: flex;
  overflow-y: auto;
}

.chat-bubble {
  word-break: break-word;
  white-space: pre-wrap;
  border-radius: 14px;
  max-width: 85%;
  padding: 10px 14px;
}

.chat-bubble--entrante {
  background: var(--color-border);
  color: var(--color-text);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.chat-bubble--saliente {
  background: var(--color-primary-light);
  color: var(--color-text);
  border: 1px solid var(--color-primary);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.chat-meta {
  color: var(--color-text-muted);
  margin-bottom: 4px;
  font-size: .75rem;
  display: block;
}

.chat-text {
  font-size: .95rem;
  line-height: 1.4;
}

.chat-time {
  color: var(--color-text-muted);
  margin-top: 4px;
  font-size: .7rem;
}

.chat-media {
  margin-bottom: 4px;
}

.chat-media-img {
  object-fit: contain;
  border-radius: 8px;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 280px;
  display: block;
}

.chat-media-link {
  color: var(--color-primary);
  font-size: .95rem;
  text-decoration: none;
}

.chat-media-link:hover {
  text-decoration: underline;
}

.card-header {
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  display: flex;
}

.card-header h2 {
  color: var(--color-text);
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.btn {
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  padding: 10px 18px;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  transition: background .2s, transform 50ms;
}

.btn:active {
  transform: scale(.98);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
}

.btn-ghost {
  color: var(--color-text);
  border: 1px solid var(--color-border);
  background: none;
}

.btn-ghost:hover {
  background: var(--color-bg);
}

.btn-outline-primary {
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  background: #fff;
}

.btn-outline-primary:hover:not(:disabled) {
  background: var(--color-primary-light);
}

.btn-outline-primary:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.mes-mante-btn-recibos {
  color: #fff;
  background: linear-gradient(#0ea5e9 0%, #0284c7 100%);
  border: none;
  box-shadow: 0 1px 2px #0284c740;
}

.mes-mante-btn-recibos:hover:not(:disabled) {
  background: linear-gradient(#38bdf8 0%, #0ea5e9 100%);
}

.mes-mante-btn-recibos:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.mes-mante-btn-eliminar {
  color: #fff;
  background: linear-gradient(#ef4444 0%, #dc2626 100%);
  border: none;
  box-shadow: 0 1px 2px #dc262640;
}

.mes-mante-btn-eliminar:hover:not(:disabled) {
  background: linear-gradient(#f87171 0%, #ef4444 100%);
}

.mes-mante-btn-eliminar:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.mes-mante-header-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex;
}

.mes-mante-modos {
  border-bottom: 2px solid #dbe4ee;
  gap: 4px;
  margin-top: 8px;
  padding: 0;
  display: flex;
}

.mes-mante-modos__btn {
  appearance: none;
  color: #64748b;
  font: inherit;
  letter-spacing: .01em;
  cursor: pointer;
  background: none;
  border: 0;
  border-bottom: 3px solid #0000;
  margin: 0 0 -2px;
  padding: 12px 18px 14px;
  font-size: .95rem;
  font-weight: 700;
}

.mes-mante-modos__btn:hover:not(.is-active) {
  color: #0f172a;
}

.mes-mante-modos__btn.is-active {
  color: #0b3a6e;
  border-bottom-color: #1d7ed8;
}

.mes-mante-stepper {
  border-bottom: 1px solid var(--color-border, #e2e8f0);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 22px 32px 14px;
  list-style: none;
  display: flex;
}

.mes-mante-stepper__item {
  min-width: 0;
}

.mes-mante-stepper__hit {
  appearance: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
  background: none;
  border: 0;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 6px 4px;
  display: flex;
}

.mes-mante-stepper__hit:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.mes-mante-stepper__num {
  color: #64748b;
  background: #fff;
  border: 2px solid #cbd5e1;
  border-radius: 999px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
}

.mes-mante-stepper__item.is-active .mes-mante-stepper__num, .mes-mante-stepper__item.is-done .mes-mante-stepper__num {
  color: #fff;
  background: #1d7ed8;
  border-color: #1d7ed8;
}

.mes-mante-stepper__copy {
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  display: flex;
}

.mes-mante-stepper__kicker {
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
}

.mes-mante-stepper__item.is-active .mes-mante-stepper__kicker {
  color: #1d7ed8;
}

.mes-mante-stepper__title {
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.mes-mante-stepper__item.is-active .mes-mante-stepper__title {
  color: #0f172a;
}

.mes-mante-stepper__line {
  background: #e2e8f0;
  flex: 0 0 56px;
  width: 56px;
  height: 2px;
  margin: 0 14px;
  list-style: none;
}

.mes-mante-stepper__panel {
  padding: 20px 24px 24px;
}

.mes-mante-stepper__panel--tabla {
  width: 100%;
  margin: 0;
  padding: 0;
}

.recibos-mant-embed-actions {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  display: flex;
}

.recibos-mant-embed-actions__pdf {
  color: #fff;
  background: linear-gradient(#ef4444 0%, #dc2626 100%);
  border: none;
}

.recibos-mant-embed-actions__pdf:hover:not(:disabled) {
  background: linear-gradient(#f87171 0%, #ef4444 100%);
}

.recibos-mant-embed-actions__excel {
  color: #fff;
  background: linear-gradient(#16a34a 0%, #15803d 100%);
  border: none;
}

.recibos-mant-embed-actions__excel:hover:not(:disabled) {
  background: linear-gradient(#22c55e 0%, #16a34a 100%);
}

.mes-mante-stepper__panel--tabla .recibos-mant-modal__backdrop--embedded, .mes-mante-stepper__panel--tabla .recibos-mant-modal--embedded, .mes-mante-stepper__panel--tabla .recibos-mant-modal__body {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: block;
}

.mes-mante-stepper__lead {
  color: var(--color-text-muted, #64748b);
  margin: 0 0 16px;
  font-size: 14px;
}

.mes-mante-stepper__panel--centro {
  text-align: center;
  flex-direction: column;
  align-items: center;
  padding: 36px 24px 32px;
  display: flex;
}

.mes-mante-stepper__panel--centro .mes-mante-stepper__lead {
  max-width: 420px;
}

.mes-mante-concepto-field {
  text-align: left;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: min(100%, 420px);
  display: flex;
}

.mes-mante-concepto-field__label {
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.mes-mante-concepto-select {
  appearance: none;
  color: #0f172a;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  width: 100%;
  height: 48px;
  padding: 0 44px 0 16px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 1px 2px #0f172a0f;
}

.mes-mante-concepto-select:hover {
  border-color: #94a3b8;
}

.mes-mante-concepto-select:focus {
  border-color: #1d7ed8;
  outline: none;
  box-shadow: 0 0 0 3px #1d7ed82e;
}

.mes-mante-stepper__actions {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  display: flex;
}

.mes-mante-stepper__panel--centro .mes-mante-stepper__actions {
  justify-content: center;
  width: min(100%, 420px);
  margin-top: 24px;
}

.mes-mante-stepper__panel--centro .mes-mante-stepper__actions .btn {
  min-width: 160px;
}

.mes-mante-fechas {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  width: min(100%, 640px);
  display: grid;
}

.mes-mante-fechas .mes-mante-concepto-field {
  width: auto;
}

.mes-mante-fechas .mes-mante-concepto-select {
  background-image: none;
  padding-right: 14px;
}

.mes-mante-fechas__extra {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding-bottom: 6px;
  display: flex;
}

.mes-mante-fechas__dia {
  color: var(--color-text-muted, #64748b);
  white-space: nowrap;
  font-size: 12px;
}

.mes-mante-fechas__error {
  color: var(--color-danger, #dc2626);
  margin-top: 10px;
  font-size: 12px;
  display: block;
}

.mes-mante-stepper__panel--centro .mes-mante-stepper__actions {
  width: min(100%, 640px);
}

.mes-mante-validar-cols {
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  display: flex;
}

.mes-mante-validar-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  min-width: 0;
  overflow: hidden;
}

.mes-mante-validar-panel__head {
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #334155;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  margin: 0;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 800;
}

.mes-mante-validar-cols > .mes-mante-validar-panel:first-child {
  flex: 1 1 0;
  min-width: 0;
}

.recibos-drive-grid.mes-mante-validar-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 10px;
  display: grid;
}

.mes-mante-validar-grid .recibos-drive-tile__thumb {
  aspect-ratio: 3 / 4;
  max-height: 150px;
}

.mes-mante-validar-grid .recibos-drive-tile__body {
  padding: 7px 8px 8px;
}

.mes-mante-validar-admin {
  flex: 0 0 300px;
  width: 300px;
  min-width: 260px;
  max-width: 300px;
  margin-top: 0;
}

.mes-mante-validar-admin .mes-mante-validar-admin__cards {
  padding: 10px;
}

.mes-mante-validar-admin__cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  display: grid;
}

.mes-mante-validar-admin__cards .admin-mante-card {
  min-width: 0;
}

.mes-mante-validar-admin__cards .admin-mante-card__brand-bar {
  padding: 5px 7px;
}

.mes-mante-validar-admin__cards .admin-mante-card__brand-name {
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 10px;
  display: -webkit-box;
  overflow: hidden;
}

.mes-mante-validar-admin__cards .admin-mante-card__body {
  padding: 6px 7px 8px;
}

.mes-mante-validar-admin__cards .admin-mante-card__input {
  min-height: 32px;
  margin-top: 0;
  padding: 6px 7px;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .mes-mante-validar-admin {
    flex-basis: 240px;
    width: 240px;
    max-width: 240px;
  }
}

.mes-mante-validar-meta {
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.3;
  display: flex;
}

.mes-mante-validar-meta__importe {
  font-variant-numeric: tabular-nums;
  color: #059669;
  flex-shrink: 0;
  font-weight: 800;
}

.mes-mante-validar-meta__num {
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #64748b;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.mes-mante-validar-meta--error {
  color: #dc2626;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}

.mes-mante-validar-meta--muted {
  color: #94a3b8;
}

.btn-danger {
  background: var(--color-danger);
  color: #fff;
}

.btn-danger:hover {
  background: var(--color-danger-hover);
}

.btn-success {
  color: #fff;
  background: #16a34a;
}

.btn-success:hover:not(:disabled) {
  background: #15803d;
}

.btn-success:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.btn-sm {
  padding: 6px 12px;
  font-size: .8rem;
}

.admin-table {
  border-collapse: collapse;
  width: 100%;
}

.admin-table th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 14px 24px;
  font-size: .75rem;
  font-weight: 600;
}

.admin-table td {
  border-bottom: 1px solid var(--color-border);
  padding: 16px 24px;
  font-size: .9rem;
}

.admin-select, .admin-table select {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  min-width: 0;
  max-width: 100%;
  color: var(--color-text);
  background-color: var(--color-surface);
  appearance: none;
  cursor: pointer;
  box-sizing: border-box;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2 4.5L6 8.5L10 4.5z'/%3E%3C/svg%3E");
  background-position: right 10px center;
  background-repeat: no-repeat;
  padding: 8px 32px 8px 12px;
  font-family: inherit;
  font-size: .875rem;
  line-height: 1.35;
  transition: border-color .2s, box-shadow .2s;
}

.admin-select:hover, .admin-table select:hover {
  border-color: var(--color-border-strong);
}

.admin-select:focus, .admin-table select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
  outline: none;
}

.admin-select--wide {
  width: 100%;
  min-width: 150px;
  max-width: 220px;
}

.admin-select--compact {
  width: auto;
  min-width: 96px;
}

html.panel-iphone .admin-select, html.panel-iphone .admin-table select {
  min-height: 40px;
  font-size: 16px;
}

.depto-personas-tooltip {
  display: inline-block;
  position: relative;
}

.depto-sin-personas {
  color: var(--color-danger);
  font-weight: 700;
}

.cobro-estado-tap {
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  background: none;
  border: none;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  display: inline-flex;
}

.cobro-estado-tap .badge {
  padding-right: 1.35em;
  transition: transform .15s, filter .15s;
  animation: 2.2s ease-in-out infinite cobro-estado-pulse;
  position: relative;
  box-shadow: 0 0 #2563eb47;
}

.cobro-estado-tap .badge:after {
  content: "›";
  opacity: .72;
  font-size: 1.05em;
  font-weight: 800;
  line-height: 1;
  animation: 1.4s ease-in-out infinite cobro-estado-chevron;
  position: absolute;
  top: 50%;
  right: .4em;
  transform: translateY(-52%);
}

.cobro-estado-tap .badge-pending {
  animation-name: cobro-estado-pulse-pending;
  box-shadow: 0 0 #f59e0b59;
}

.cobro-estado-tap .badge-reported {
  animation-name: cobro-estado-pulse-reported;
  box-shadow: 0 0 #2563eb59;
}

.cobro-estado-tap .badge-confirmed {
  animation-name: cobro-estado-pulse-confirmed;
  box-shadow: 0 0 #10b98159;
}

.cobro-estado-tap .badge-rejected {
  animation-name: cobro-estado-pulse-rejected;
  box-shadow: 0 0 #ef444459;
}

.cobro-estado-tap:active .badge {
  filter: brightness(.96);
  animation: none;
  transform: scale(.94);
}

.cobro-estado-tap .cobro-prorroga-estado {
  cursor: pointer;
}

@keyframes cobro-estado-chevron {
  0%, 100% {
    opacity: .55;
    transform: translate(0, -52%);
  }

  50% {
    opacity: 1;
    transform: translate(2px, -52%);
  }
}

@keyframes cobro-estado-pulse-pending {
  0%, 100% {
    box-shadow: 0 0 #f59e0b59;
  }

  55% {
    box-shadow: 0 0 0 6px #f59e0b00;
  }
}

@keyframes cobro-estado-pulse-reported {
  0%, 100% {
    box-shadow: 0 0 #2563eb59;
  }

  55% {
    box-shadow: 0 0 0 6px #2563eb00;
  }
}

@keyframes cobro-estado-pulse-confirmed {
  0%, 100% {
    box-shadow: 0 0 #10b98159;
  }

  55% {
    box-shadow: 0 0 0 6px #10b98100;
  }
}

@keyframes cobro-estado-pulse-rejected {
  0%, 100% {
    box-shadow: 0 0 #ef444459;
  }

  55% {
    box-shadow: 0 0 0 6px #ef444400;
  }
}

@keyframes cobro-estado-pulse {
  0%, 100% {
    box-shadow: 0 0 #2563eb47;
  }

  55% {
    box-shadow: 0 0 0 6px #2563eb00;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cobro-estado-tap .badge, .cobro-estado-tap .badge:after {
    animation: none !important;
  }
}

.cobro-prorroga-estado {
  cursor: help;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  display: inline-flex;
  position: relative;
}

.cobro-prorroga-fecha {
  color: #b45309;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.cobro-prorroga-tooltip__panel {
  z-index: 70;
  background: var(--color-surface, #fff);
  min-width: 180px;
  max-width: 280px;
  color: var(--color-text);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  white-space: normal;
  border: 1px solid #d97706;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  transition: opacity .12s, visibility .12s;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  box-shadow: 0 8px 24px #0f172a24;
}

.cobro-prorroga-estado:hover .cobro-prorroga-tooltip__panel, .cobro-prorroga-estado:focus-within .cobro-prorroga-tooltip__panel {
  opacity: 1;
  visibility: visible;
}

.depto-personas-tooltip__trigger {
  cursor: help;
  border-bottom: 1px dotted var(--color-text-muted);
}

.depto-personas-tooltip__panel {
  z-index: 60;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border);
  min-width: 200px;
  max-width: 300px;
  color: var(--color-text);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  white-space: normal;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  transition: opacity .12s, visibility .12s;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  box-shadow: 0 8px 24px #0f172a24;
}

.depto-personas-tooltip__title {
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-text-muted);
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  display: block;
}

.depto-personas-tooltip__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.depto-personas-tooltip__list li + li {
  margin-top: 4px;
}

.depto-personas-tooltip__tipo {
  color: var(--color-text-muted);
  font-weight: 500;
}

.depto-personas-tooltip:hover .depto-personas-tooltip__panel, .depto-personas-tooltip:focus-within .depto-personas-tooltip__panel {
  opacity: 1;
  visibility: visible;
}

.m3-ajuste-tooltip__trigger {
  display: inline-block;
}

.m3-ajuste-tooltip-float {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border);
  pointer-events: auto;
  border-radius: 10px;
  min-width: 240px;
  max-width: 360px;
  padding: 10px 12px;
  box-shadow: 0 8px 24px #0f172a2e;
}

.m3-ajuste-tooltip-float__title {
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-text-muted);
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  display: block;
}

.m3-ajuste-tooltip-float__formula {
  color: var(--color-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
}

.m3-ajuste-tooltip-float__detalle {
  color: var(--color-text-muted);
  margin-top: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
}

.agua-comun-m3-intercambio-float {
  min-width: 280px;
  max-width: 320px;
}

.agua-comun-m3-intercambio-float .btn-sm {
  text-align: left;
  justify-content: flex-start;
  width: 100%;
}

.agua-recibo-card {
  --sedalib-blue: #005baa;
  --sedalib-blue-dark: #003d73;
  --sedalib-blue-light: #d0e4f5;
  --sedalib-blue-mid: #a8cce8;
  --sedalib-yellow: #fdf197;
  --sedalib-yellow-border: #e8d44a;
  border: 1px solid var(--sedalib-blue-mid);
  background: #fff;
  border-radius: 10px;
  min-width: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px #003d731a;
}

.agua-recibo-card__brand-bar {
  background: linear-gradient(180deg, #0068b8 0%, var(--sedalib-blue) 100%);
  color: #fff;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  display: flex;
}

.agua-recibo-card__brand-actions {
  flex-direction: column;
  flex-shrink: 0;
  align-items: flex-end;
  gap: 6px;
  display: flex;
}

.agua-recibo-card__period {
  color: #1e3a5f;
  background: var(--sedalib-yellow);
  border: 1px solid var(--sedalib-yellow-border);
  text-align: center;
  border-radius: 6px;
  flex-direction: column;
  flex-shrink: 0;
  align-items: center;
  gap: 2px;
  padding: 5px 10px;
  line-height: 1.15;
  display: inline-flex;
  box-shadow: 0 1px #0000000f;
}

.agua-recibo-card__period-label {
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: 8px;
  font-weight: 700;
}

.agua-recibo-card__period-value {
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 800;
}

.agua-recibo-card__brand-mark {
  align-items: center;
  gap: 6px;
  min-width: 0;
  display: inline-flex;
}

.agua-recibo-card__brand-mark svg {
  filter: drop-shadow(0 1px 1px #00000026);
  flex-shrink: 0;
}

.agua-recibo-card__brand-name {
  letter-spacing: .06em;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
}

.agua-recibo-card__brand-sub {
  letter-spacing: .04em;
  opacity: .88;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 600;
  display: block;
}

.agua-recibo-card__body {
  background: linear-gradient(#f4f9fd 0%, #fff 28%);
  flex-direction: column;
  gap: 10px;
  padding: 10px 12px 12px;
  display: flex;
}

.agua-recibo-card--empty .agua-recibo-card__body {
  text-align: center;
  align-items: center;
  padding: 14px 16px 16px;
}

.agua-recibo-card__header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  display: flex;
}

.agua-recibo-card__title {
  color: var(--sedalib-blue-dark);
  letter-spacing: .01em;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.agua-recibo-card__panel {
  border: 1px solid var(--sedalib-blue-mid);
  background: var(--sedalib-blue-light);
  border-radius: 8px;
  flex-direction: column;
  gap: 0;
  display: flex;
  overflow: hidden;
}

.agua-recibo-card__row {
  border-bottom: 1px solid #005baa1f;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  display: grid;
}

.agua-recibo-card__row:last-child {
  border-bottom: none;
}

.agua-recibo-card__field-label {
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--sedalib-blue-dark);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.25;
}

.agua-recibo-card__value {
  color: #0f172a;
  text-align: right;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.agua-recibo-card__total {
  background: var(--sedalib-yellow);
  border: 1px solid var(--sedalib-yellow-border);
  border-radius: 6px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  padding: 9px 10px;
  display: grid;
}

.agua-recibo-card__total .agua-recibo-card__field-label {
  color: #713f12;
}

.agua-recibo-card__total .agua-recibo-card__value {
  color: #0f172a;
  font-size: 17px;
  font-weight: 800;
}

.agua-recibo-card--empty .agua-recibo-card__empty-hint {
  color: var(--sedalib-blue-dark);
  opacity: .85;
  margin: 0;
  font-size: 12px;
}

.agua-m3-card {
  border-radius: 10px;
  flex-direction: column;
  min-width: 0;
  display: flex;
  overflow: hidden;
  box-shadow: 0 2px 8px #0f172a0f;
}

.agua-m3-card__brand-bar {
  color: #fff;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  display: flex;
}

.agua-m3-card__brand-mark {
  align-items: center;
  gap: 7px;
  min-width: 0;
  display: inline-flex;
}

.agua-m3-card__brand-mark svg {
  flex-shrink: 0;
}

.agua-m3-card__brand-name {
  letter-spacing: .04em;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
}

.agua-m3-card__brand-sub {
  letter-spacing: .03em;
  opacity: .9;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 600;
  display: block;
}

.agua-m3-card__header-link {
  color: inherit;
  cursor: pointer;
  white-space: nowrap;
  background: #ffffff2e;
  border: 1px solid #ffffff59;
  border-radius: 999px;
  flex-shrink: 0;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
}

.agua-m3-card__header-link:hover {
  background: #ffffff47;
}

.agua-m3-card__body {
  flex-direction: column;
  gap: 10px;
  padding: 10px 12px 12px;
  display: flex;
}

.agua-m3-card__panel {
  border-radius: 8px;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  display: flex;
}

.agua-m3-card__field {
  flex-direction: column;
  gap: 4px;
  display: flex;
}

.agua-m3-card__field-label {
  letter-spacing: .04em;
  text-transform: uppercase;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  display: flex;
}

.agua-m3-card__field-action {
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  background: none;
  border: none;
  padding: 0;
  font-size: 10px;
  font-weight: 700;
  text-decoration: underline;
}

.agua-m3-card__input {
  color: #0f172a;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #0000;
  border-radius: 7px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 15px;
  font-weight: 600;
  transition: border-color .15s, box-shadow .15s;
}

.agua-m3-card__input:focus {
  outline: none;
}

.agua-m3-card__input:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.agua-m3-card__total {
  border-radius: 7px;
  flex-direction: column;
  gap: 4px;
  padding: 9px 10px;
  display: flex;
}

.agua-m3-card__total-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}

.agua-local-card {
  background: linear-gradient(#f0f9ff 0%, #fff 40%);
  border: 1px solid #7dd3fc;
}

.agua-local-card .agua-m3-card__brand-bar {
  background: linear-gradient(#0ea5e9 0%, #0284c7 100%);
}

.agua-local-card .agua-m3-card__panel {
  background: #e0f2febf;
  border: 1px solid #bae6fd;
}

.agua-local-card .agua-m3-card__field-label {
  color: #075985;
}

.agua-local-card .agua-m3-card__field-action {
  color: #0369a1;
}

.agua-local-card .agua-m3-card__field-action:disabled {
  color: #94a3b8;
  cursor: not-allowed;
}

.agua-local-card .agua-m3-card__input {
  border-color: #bae6fd;
}

.agua-local-card .agua-m3-card__input:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px #0ea5e92e;
}

.agua-local-card .agua-m3-card__total {
  background: #e0f2fe;
  border: 1px solid #7dd3fc;
}

.agua-local-card .agua-m3-card__total .agua-m3-card__field-label, .agua-local-card .agua-m3-card__total-value {
  color: #0c4a6e;
}

.agua-local-card__revisado-alerta {
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 10px;
  margin: 0 14px 12px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
}

.agua-local-card__revisado-alerta a {
  color: #c2410c;
  text-underline-offset: 2px;
  font-weight: 800;
}

.agua-local-card__revisado-alerta a:hover {
  color: #9a3412;
}

.agua-local-card__revisado-ok {
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 10px;
  margin: 0 14px 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.agua-comun-card {
  background: linear-gradient(#f0fdfa 0%, #fff 40%);
  border: 1px solid #5eead4;
  min-height: 100%;
}

.agua-comun-card .agua-m3-card__brand-bar {
  background: linear-gradient(#14b8a6 0%, #0d9488 100%);
}

.agua-comun-card .agua-m3-card__panel {
  background: #ccfbf1a6;
  border: 1px solid #99f6e4;
}

.agua-comun-card .agua-m3-card__field-label {
  color: #115e59;
}

.agua-comun-card .agua-m3-card__input {
  border-color: #99f6e4;
}

.agua-comun-card .agua-m3-card__input:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px #14b8a62e;
}

.agua-comun-card__formula {
  color: #134e4a;
  background: #fff;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.agua-comun-card__formula-result {
  font-weight: 800;
}

.agua-comun-card__formula-result--pos {
  color: #047857;
}

.agua-comun-card__formula-result--neg {
  color: #b45309;
  background: #fff7ed;
  border-radius: 4px;
  padding: 1px 5px;
}

.agua-comun-card__formula-trigger {
  cursor: help;
  color: #0f766e;
  border-bottom: 1px dotted #0d9488;
  font-weight: 800;
}

.agua-comun-card__formula-trigger:focus {
  outline-offset: 2px;
  border-radius: 2px;
  outline: 2px solid #14b8a659;
}

.agua-comun-card__hint {
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.45;
}

.luz-recibo-card {
  background: linear-gradient(#fffbeb 0%, #fff 35%);
  border: 1px solid #fcd34d;
  border-radius: 10px;
  flex-direction: column;
  min-width: 0;
  display: flex;
  overflow: hidden;
  box-shadow: 0 2px 8px #b453091a;
}

.luz-recibo-card__brand-bar {
  color: #fff;
  background: linear-gradient(#f59e0b 0%, #d97706 100%);
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  display: flex;
}

.luz-recibo-card__brand-mark {
  align-items: center;
  gap: 7px;
  min-width: 0;
  display: inline-flex;
}

.luz-recibo-card__brand-mark svg {
  flex-shrink: 0;
}

.luz-recibo-card__brand-name {
  letter-spacing: .03em;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
}

.luz-recibo-card__brand-sub {
  opacity: .92;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 9px;
  font-weight: 600;
  display: block;
}

.luz-recibo-card__badge {
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #78350f;
  background: #fef08a;
  border: 1px solid #facc15;
  border-radius: 4px;
  flex-shrink: 0;
  padding: 3px 6px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
}

.luz-recibo-card__body {
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 12px;
  display: flex;
}

.luz-recibo-card__panel {
  background: #fef3c7a6;
  border: 1px solid #fde68a;
  border-radius: 8px;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  display: flex;
}

.luz-recibo-card__recibo-row {
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #92400e;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
  display: flex;
}

.luz-recibo-card__recibo-monto {
  color: #78350f;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
}

.luz-recibo-card__field-label {
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #92400e;
  font-size: 10px;
  font-weight: 800;
}

.luz-recibo-card__input {
  color: #0f172a;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #fcd34d;
  border-radius: 7px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 18px;
  font-weight: 700;
  transition: border-color .15s, box-shadow .15s;
}

.luz-recibo-card__input:focus {
  border-color: #f59e0b;
  outline: none;
  box-shadow: 0 0 0 3px #f59e0b33;
}

.luz-recibo-card__input:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.luz-recibo-card__sin-recibo {
  color: #92400e;
  opacity: .85;
  margin: 0;
  font-size: 11px;
}

.admin-mante-card {
  background: linear-gradient(#f5f3ff 0%, #fff 35%);
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  flex-direction: column;
  min-width: 0;
  display: flex;
  overflow: hidden;
  box-shadow: 0 2px 8px #4f46e514;
}

.admin-mante-card__brand-bar {
  color: #fff;
  background: linear-gradient(#6366f1 0%, #4f46e5 100%);
  padding: 8px 12px;
}

.admin-mante-card__brand-name {
  letter-spacing: .02em;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.admin-mante-card__body {
  padding: 10px 12px 12px;
}

.admin-mante-card__input {
  color: #0f172a;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #c7d2fe;
  border-radius: 7px;
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 18px;
  font-weight: 600;
}

.admin-mante-card__input:focus {
  border-color: #6366f1;
  outline: none;
  box-shadow: 0 0 0 3px #6366f12e;
}

.agua-detalle-modal__backdrop {
  z-index: 1000;
  background: #0f172a73;
  justify-content: center;
  align-items: center;
  padding: 16px;
  display: flex;
  position: fixed;
  inset: 0;
}

.agua-detalle-modal {
  background: #fff;
  border: 1px solid #7dd3fc;
  border-radius: 12px;
  flex-direction: column;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  display: flex;
  overflow: hidden;
  box-shadow: 0 20px 48px #0284c738;
}

.agua-detalle-modal__brand-bar {
  color: #fff;
  background: linear-gradient(#0ea5e9 0%, #0284c7 100%);
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  display: flex;
}

.agua-detalle-modal__brand-mark {
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: inline-flex;
}

.agua-detalle-modal__brand-mark svg {
  flex-shrink: 0;
}

.agua-detalle-modal__brand-name {
  letter-spacing: .03em;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
}

.agua-detalle-modal__brand-sub {
  opacity: .9;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 10px;
  font-weight: 600;
  display: block;
}

.agua-detalle-modal__close {
  color: #fff;
  cursor: pointer;
  background: #ffffff24;
  border: 1px solid #ffffff59;
  border-radius: 8px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  font-size: 22px;
  line-height: 1;
  transition: background .15s;
  display: flex;
}

.agua-detalle-modal__close:hover {
  background: #ffffff3d;
}

.agua-detalle-modal__summary {
  background: linear-gradient(#f0f9ff 0%, #fff 100%);
  border-bottom: 1px solid #bae6fd;
  flex-wrap: wrap;
  flex-shrink: 0;
  gap: 10px;
  padding: 12px 14px;
  display: flex;
}

.agua-detalle-modal__stat {
  border: 1px solid #0000;
  border-radius: 8px;
  flex: 140px;
  min-width: 0;
  padding: 10px 12px;
}

.agua-detalle-modal__stat--bruto {
  background: #e0f2fe;
  border-color: #7dd3fc;
}

.agua-detalle-modal__stat--descuento {
  background: #fff7ed;
  border-color: #fdba74;
}

.agua-detalle-modal__stat--ajustado {
  background: #ccfbf1;
  border-color: #5eead4;
}

.agua-detalle-modal__stat-label {
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 800;
  display: block;
}

.agua-detalle-modal__stat-value {
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.agua-detalle-modal__stat-value--descuento {
  color: #c2410c;
}

.agua-detalle-modal__stat-note {
  color: #64748b;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.35;
  display: block;
}

.agua-detalle-modal__body {
  flex: auto;
  min-height: 0;
  padding: 0 14px;
  overflow: hidden auto;
}

.agua-detalle-modal__table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.agua-detalle-modal__table thead th {
  z-index: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: left;
  color: #075985;
  background: #e0f2fe;
  border-bottom: 2px solid #7dd3fc;
  padding: 10px 8px;
  font-size: 10px;
  font-weight: 800;
  position: sticky;
  top: 0;
}

.agua-detalle-modal__table tbody td {
  vertical-align: middle;
  border-bottom: 1px solid #e2e8f0;
  padding: 9px 8px;
  font-size: 13px;
}

.agua-detalle-modal__table tbody tr:hover td {
  background: #f8fafc;
}

.agua-detalle-modal__depto {
  color: #0c4a6e;
  font-weight: 800;
}

.agua-detalle-modal__idx {
  text-align: center;
  color: #64748b;
  width: 2.5rem;
  font-size: 12px;
  font-weight: 600;
}

.agua-detalle-modal__medicion-valor {
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
}

.agua-detalle-modal__medicion-fecha {
  color: #64748b;
  font-size: 12px;
}

.agua-detalle-modal__m3 {
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 800;
}

.agua-detalle-modal__sin-lectura {
  color: #b45309;
  font-family: inherit;
  font-weight: 700;
}

.agua-detalle-modal__ajuste-trigger {
  color: #0f766e;
  cursor: help;
  border-bottom: 1px dotted #14b8a6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 800;
}

.agua-detalle-modal__ajuste-trigger:focus {
  outline-offset: 2px;
  border-radius: 2px;
  outline: 2px solid #14b8a659;
}

.agua-detalle-modal__footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
  justify-content: flex-end;
  padding: 12px 14px 14px;
  display: flex;
}

.recibos-mant-modal__backdrop {
  z-index: 1000;
  background: #0f172a73;
  justify-content: center;
  align-items: center;
  padding: 16px;
  display: flex;
  position: fixed;
  inset: 0;
}

.recibos-mant-modal__backdrop--embedded {
  z-index: auto;
  background: none;
  width: 100%;
  max-width: none;
  padding: 0;
  display: block;
  position: static;
  inset: auto;
}

.recibos-mant-modal {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  flex-direction: column;
  width: 100%;
  max-width: 96vw;
  max-height: 90vh;
  display: flex;
  overflow: hidden;
  box-shadow: 0 20px 48px #0f172a33;
}

.recibos-mant-modal.recibos-mant-modal--embedded {
  width: 100%;
  max-width: none;
  max-height: none;
  box-shadow: none;
  background: none;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.recibos-mant-modal--embedded .recibos-mant-modal__body {
  padding: 0;
  overflow: auto visible;
}

.recibos-mant-table.recibos-mant-table--fill {
  width: 100%;
}

.recibos-mant-table--fill thead th.recibos-mant-table__th--total, .recibos-mant-table--fill tbody td.recibos-mant-table__monto--total, .recibos-mant-table--fill tfoot td.recibos-mant-table__monto--foot-total, .recibos-mant-table--fill .recibos-mant-table__col--m3 {
  padding-left: 5px;
  padding-right: 5px;
}

.recibos-mant-modal__brand-bar {
  color: #fff;
  background: linear-gradient(#475569 0%, #334155 100%);
  flex-shrink: 0;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  display: flex;
}

.recibos-mant-modal__brand-name {
  letter-spacing: .02em;
  font-size: 14px;
  font-weight: 800;
  display: block;
}

.recibos-mant-modal__brand-sub {
  opacity: .9;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  display: block;
}

.recibos-mant-modal__header-actions {
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  display: flex;
}

.recibos-mant-modal__excel-btn {
  letter-spacing: .01em;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  background: #ffffff1f;
  border: 1px solid #ffffff73;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
}

.recibos-mant-modal__excel-btn:hover:not(:disabled) {
  background: #ffffff38;
}

.recibos-mant-modal__excel-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.recibos-mant-modal__generar-btn {
  letter-spacing: .01em;
  color: #0f172a;
  cursor: pointer;
  white-space: nowrap;
  background: linear-gradient(#fde68a 0%, #fbbf24 100%);
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 1px 2px #00000026;
}

.recibos-mant-modal__generar-btn:hover:not(:disabled) {
  background: linear-gradient(#fef3c7 0%, #f59e0b 100%);
}

.recibos-mant-modal__generar-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.recibos-mant-modal__close {
  color: #fff;
  cursor: pointer;
  background: #ffffff24;
  border: 1px solid #ffffff59;
  border-radius: 8px;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  font-size: 22px;
  line-height: 1;
}

.recibos-mant-modal__body {
  flex: auto;
  min-height: 0;
  padding: 12px 14px;
  overflow: auto;
}

.recibos-mant-modal__empty {
  color: #64748b;
  margin: 0;
  font-size: 13px;
}

.recibos-mant-modal__footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 14px;
  display: flex;
}

.recibos-mant-modal__generar-msg {
  text-align: left;
  line-height: 1.35;
}

.recibos-mant-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}

.recibos-mant-table thead th {
  z-index: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-align: right;
  white-space: nowrap;
  border: 1px solid #cbd5e1;
  padding: 8px 10px;
  font-size: 10px;
  font-weight: 800;
  position: sticky;
  top: 0;
}

.recibos-mant-table__th-inner {
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  display: flex;
}

.recibos-mant-table__th-label {
  line-height: 1.2;
}

.recibos-mant-table__th-formula {
  letter-spacing: 0;
  text-transform: none;
  opacity: .9;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.25;
}

.recibos-mant-table__th--check {
  text-align: center;
  background: #f1f5f9;
  width: 40px;
  min-width: 40px;
  padding: 8px 6px;
}

.recibos-mant-table__check {
  text-align: center;
  vertical-align: middle;
  padding: 6px;
}

.recibos-mant-table__check--foot {
  background: #f8fafc;
}

.recibos-mant-table__checkbox {
  cursor: pointer;
  accent-color: #2563eb;
  width: 16px;
  height: 16px;
}

.recibos-mant-table thead th.recibos-mant-table__th--idx {
  text-align: center;
  color: #64748b;
  white-space: nowrap;
  letter-spacing: 0;
  background: #f1f5f9;
  width: 0;
  min-width: 0;
  padding: 8px 4px;
}

.recibos-mant-table tbody td.recibos-mant-table__idx {
  white-space: nowrap;
  width: 0;
  padding-left: 4px;
  padding-right: 4px;
}

.recibos-mant-table thead th.recibos-mant-table__th--depto {
  text-align: left;
  color: #334155;
  white-space: nowrap;
  letter-spacing: 0;
  background: #f1f5f9;
  width: 0;
  min-width: 0;
  padding: 8px 4px;
}

.recibos-mant-table__th-section {
  text-align: center;
  letter-spacing: .06em;
  border-bottom: 2px solid #00000014;
  font-size: 11px;
  font-weight: 900;
}

.recibos-mant-table__th-section--agua {
  color: #713f12;
  background: #fef08a;
}

.recibos-mant-table__th-section--luz {
  color: #1e3a8a;
  background: #93c5fd;
}

.recibos-mant-table__th-section--admin {
  color: #4c1d95;
  background: #c4b5fd;
}

.recibos-mant-table__th-section--otro {
  color: #334155;
  background: #cbd5e1;
}

.recibos-mant-table__th--agua-m3 {
  color: #713f12;
  background: #fef9c3;
}

.recibos-mant-table__th--agua-comun {
  color: #14532d;
  background: #dcfce7;
}

.recibos-mant-table__th--luz {
  color: #1e3a8a;
  background: #dbeafe;
}

.recibos-mant-table__th--admin {
  color: #4c1d95;
  background: #ede9fe;
}

.recibos-mant-table__th--otro {
  color: #475569;
  background: #f1f5f9;
}

.recibos-mant-table__th--total {
  color: #0f172a;
  background: #e2e8f0;
  font-weight: 900;
}

.recibos-mant-table tbody td {
  vertical-align: middle;
  border: 1px solid #e2e8f0;
  padding: 7px 10px;
}

.recibos-mant-table tbody tr:hover td {
  background: #f8fafc;
}

.recibos-mant-table tbody td.recibos-mant-table__depto, .recibos-mant-table tfoot td.recibos-mant-table__foot-label {
  white-space: nowrap;
  width: 0;
  padding-left: 4px;
  padding-right: 4px;
}

.recibos-mant-table__depto {
  color: #0f172a;
  text-align: left;
  font-weight: 800;
}

.recibos-mant-table__depto-cell {
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.recibos-mant-table__depto-link {
  color: #2563eb;
  font-weight: 800;
  text-decoration: none;
}

.recibos-mant-table__depto-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.recibos-mant-table__depto-borrar {
  color: #b91c1c;
  cursor: pointer;
  background: #b91c1c1f;
  border: none;
  border-radius: 4px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
}

.recibos-mant-table__depto-borrar:hover:not(:disabled) {
  background: #b91c1c38;
}

.recibos-mant-table__depto-borrar:disabled {
  opacity: .5;
  cursor: wait;
}

.recibos-mant-table__idx {
  text-align: center;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.recibos-mant-table__idx--foot {
  color: #334155;
  background: #f1f5f9;
  font-weight: 800;
}

.recibos-mant-table__monto {
  text-align: right;
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.recibos-mant-table__monto--total {
  background: #f8fafc;
  font-weight: 800;
}

.recibos-mant-table tfoot td {
  border: 1px solid #cbd5e1;
  padding: 8px 10px;
  font-weight: 800;
}

.recibos-mant-table__foot-label {
  text-align: left;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #f1f5f9;
  font-size: 11px;
}

.recibos-mant-table__monto--foot {
  text-align: right;
  background: #f8fafc;
}

.recibos-mant-table__monto--foot-total {
  text-align: right;
  background: #e2e8f0;
  font-size: 14px;
}

.recibos-mant-modal__hint {
  color: #64748b;
  margin: 0 0 10px;
  font-size: 12px;
}

.admin-confirm-modal__backdrop {
  z-index: 1100;
  -webkit-backdrop-filter: blur(4px);
  background: #0f172a8c;
  justify-content: center;
  align-items: center;
  padding: 24px;
  animation: .18s fadeIn;
  display: flex;
  position: fixed;
  inset: 0;
}

.admin-confirm-modal {
  text-align: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  padding: 28px 28px 22px;
  box-shadow: 0 24px 48px #0f172a38;
}

.admin-confirm-modal__icon {
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: inline-flex;
}

.admin-confirm-modal__icon--danger {
  color: #dc2626;
  background: #dc26261a;
}

.admin-confirm-modal__icon--primary {
  color: #2563eb;
  background: #2563eb1a;
}

.admin-confirm-modal__title {
  color: #0f172a;
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.admin-confirm-modal__body {
  color: #475569;
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.55;
}

.admin-confirm-modal__extra {
  text-align: center;
  margin: -10px 0 18px;
}

.admin-confirm-modal__link {
  font: inherit;
  color: var(--color-primary, #2563eb);
  text-underline-offset: 2px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
}

.admin-confirm-modal__link:hover {
  color: #1d4ed8;
}

.seguimiento-pendientes-modal .modal-box__body {
  max-height: min(70vh, 640px);
  overflow-y: auto;
}

.seguimiento-pendientes-modal__list {
  flex-direction: column;
  gap: 16px;
  display: flex;
}

.seguimiento-pendientes-modal__edificio-title {
  color: #0f172a;
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
}

.seguimiento-pendientes-modal__concepto {
  margin-bottom: 12px;
}

.seguimiento-pendientes-modal__concepto-title {
  color: #334155;
  margin: 0 0 8px;
  font-size: .88rem;
  font-weight: 600;
}

.seguimiento-pendientes-modal__deptos {
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.seguimiento-pendientes-modal__depto {
  border: 1px solid var(--color-border, #e2e8f0);
  background: #f8fafc;
  border-radius: 10px;
  overflow: hidden;
}

.seguimiento-pendientes-modal__depto-head {
  background: #eef2ff;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  display: flex;
}

.seguimiento-pendientes-modal__depto-num {
  color: #1e3a8a;
  font-weight: 700;
}

.seguimiento-pendientes-modal__depto-monto {
  color: #475569;
  font-size: .85rem;
}

.seguimiento-pendientes-modal__personas {
  margin: 0;
  padding: 6px 0;
  list-style: none;
}

.seguimiento-pendientes-modal__personas li {
  border-top: 1px solid #e2e8f0;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  display: flex;
}

.seguimiento-pendientes-modal__personas li:first-child {
  border-top: none;
}

.seguimiento-pendientes-modal__persona-nombre {
  color: #0f172a;
  font-weight: 500;
}

.seguimiento-pendientes-modal__persona-tel {
  color: #64748b;
  font-variant-numeric: tabular-nums;
  font-size: .85rem;
}

.admin-confirm-modal__actions {
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  display: flex;
}

.admin-confirm-modal__btn-cancel, .admin-confirm-modal__btn-confirm {
  min-width: 120px;
}

.recibos-mant-table__monto--formula .recibos-mant-formula-trigger {
  cursor: help;
  border-bottom: 1px dashed #94a3b8;
  padding-bottom: 1px;
  display: inline-block;
}

.recibos-mant-table__monto--formula .recibos-mant-formula-trigger:hover, .recibos-mant-table__monto--formula .recibos-mant-formula-trigger:focus-visible {
  color: #1d4ed8;
  border-bottom-color: #2563eb;
  outline: none;
}

.recibos-mant-formula-popover {
  color: #f8fafc;
  text-align: left;
  white-space: normal;
  pointer-events: none;
  background: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  min-width: 220px;
  max-width: 320px;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  line-height: 1.45;
  box-shadow: 0 12px 28px #0f172a47;
}

.recibos-mant-formula-popover--fixed {
  z-index: 1100;
  position: fixed;
  transform: translateX(-100%);
}

.recibos-mant-formula-popover--above {
  transform: translate(-100%, -100%);
}

.recibos-mant-formula-popover--below {
  transform: translateX(-100%);
}

.recibos-mant-formula-popover--above:after {
  content: "";
  border: 6px solid #0000;
  border-top-color: #0f172a;
  position: absolute;
  top: 100%;
  right: 14px;
}

.recibos-mant-formula-popover--below:after {
  content: "";
  border: 6px solid #0000;
  border-bottom-color: #0f172a;
  position: absolute;
  bottom: 100%;
  right: 14px;
}

.recibos-mant-formula-popover__title {
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 6px;
  font-family: inherit, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 800;
  display: block;
}

.recibos-mant-formula-popover__step {
  display: block;
}

.admin-table tbody tr:hover {
  background: var(--color-bg);
}

.admin-table .actions {
  align-items: center;
  gap: 8px;
  display: flex;
}

.admin-table--compact th {
  letter-spacing: .02em;
  padding: 5px 7px;
  font-size: .625rem;
}

.admin-table--compact td {
  vertical-align: top;
  word-break: break-word;
  padding: 5px 7px;
  font-size: .7rem;
  line-height: 1.25;
}

.admin-table--compact .actions {
  flex-wrap: nowrap;
  gap: 2px;
}

.admin-table--compact .actions .btn-sm {
  min-width: 0;
  padding: 2px 5px;
  font-size: .75rem;
}

.admin-table-wrapper--sticky-last-col .admin-table th:last-child, .admin-table-wrapper--sticky-last-col .admin-table td:last-child:not([colspan]) {
  z-index: 2;
  background: var(--color-surface);
  white-space: nowrap;
  position: sticky;
  right: 0;
  box-shadow: -8px 0 12px -6px #0f172a26;
}

.admin-table-wrapper--sticky-last-col .admin-table th:last-child {
  z-index: 3;
  background: var(--color-bg);
}

.admin-table-wrapper--sticky-last-col .admin-table tbody tr:hover td:last-child:not([colspan]) {
  background: var(--color-bg);
}

.admin-table-wrapper--sticky-head {
  -webkit-overflow-scrolling: touch;
  max-height: calc(100dvh - 240px);
  overflow: auto;
}

.admin-table-wrapper--sticky-head .admin-table {
  border-collapse: separate;
  border-spacing: 0;
}

.admin-table-wrapper--sticky-head .admin-table thead th {
  z-index: 4;
  background: var(--color-bg);
  box-shadow: inset 0 -1px 0 var(--color-border);
  position: sticky;
  top: 0;
}

.admin-table-wrapper--sticky-head.admin-table-wrapper--sticky-last-col .admin-table thead th:last-child {
  z-index: 6;
}

.admin-table .actions-menu-wrap {
  justify-content: flex-end;
  display: inline-flex;
  position: relative;
}

.admin-table .actions-menu-trigger {
  letter-spacing: 0;
  min-width: 36px;
  padding-left: 10px;
  padding-right: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.admin-table .actions-menu-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  border-radius: 10px;
  margin: 0;
  padding: 6px 0;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
}

.admin-table .actions-menu-panel--fixed {
  min-width: 220px;
  position: fixed;
  top: auto;
  right: auto;
}

.admin-table .actions-menu-item {
  text-align: left;
  cursor: pointer;
  color: #0f172a;
  background: none;
  border: none;
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: .9rem;
  display: block;
}

.admin-table .actions-menu-item:hover:not(:disabled) {
  background: var(--color-bg);
}

.admin-table .actions-menu-item:disabled {
  opacity: 1;
  color: #64748b;
  cursor: not-allowed;
}

.admin-table .actions-menu-item--danger {
  color: #b91c1c;
}

.admin-table .actions-menu-item--danger:hover:not(:disabled) {
  background: #b91c1c14;
}

.asistencia-entrada-dialog {
  border-radius: var(--radius);
  width: 100%;
  max-width: min(480px, 100vw - 32px);
  box-shadow: none;
  background: none;
  border: none;
  margin: auto;
  padding: 0;
}

.asistencia-entrada-dialog::backdrop {
  background: #0f172a80;
}

.asistencia-entrada-dialog .modal-box {
  background: var(--color-surface);
  max-height: calc(100dvh - 48px);
  margin: 0;
}

.asistencia-entrada-dialog:not([open]) {
  display: none;
}

.modal-overlay {
  z-index: 100;
  background: #0f172a80;
  justify-content: center;
  align-items: center;
  padding: 24px;
  animation: .2s fadeIn;
  display: flex;
  position: fixed;
  inset: 0;
}

.modal-overlay--above-confirm {
  z-index: 1200;
}

.modal-overlay--foto-lightbox {
  z-index: 200;
  background: #0f172aa6;
  padding: 20px;
}

.modal-overlay.modal-overlay--media-viewer {
  inset: 0 !important;
  box-sizing: border-box !important;
  z-index: 30000 !important;
  background: #020617f5 !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  position: fixed !important;
  inset: 0 !important;
  overflow: hidden !important;
  transform: none !important;
}

.modal-overlay--media-viewer > .media-viewer-shell {
  box-sizing: border-box !important;
  flex-direction: column !important;
  flex: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  display: flex !important;
  overflow: hidden !important;
}

.modal-overlay--media-viewer .media-viewer-toolbar {
  min-height: 56px;
  padding: max(8px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 8px max(12px, env(safe-area-inset-left, 0px));
  color: #e2e8f0;
  box-sizing: border-box;
  background: #020617fa;
  border-bottom: 1px solid #ffffff24;
  flex: none;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.modal-overlay--media-viewer .media-viewer-toolbar .btn {
  flex-shrink: 0;
}

.modal-overlay--media-viewer .media-viewer-stage {
  background: #020617;
  flex: auto;
  min-height: 0;
  position: relative;
}

.modal-overlay--media-viewer .media-viewer-footer {
  min-width: 0;
  min-height: 74px;
  padding: 8px 12px max(8px, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  background: #0f172af5;
  border-top: 1px solid #ffffff24;
  flex: none;
  align-items: center;
  gap: 10px;
  display: flex;
}

.modal-overlay--media-viewer .media-viewer-footer .btn, .modal-overlay--media-viewer .media-viewer-footer a.btn {
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: none;
  max-width: 42%;
  overflow: hidden;
}

html.panel-iphone .modal-overlay.modal-overlay--media-viewer, html.panel-iphone body > .modal-overlay--media-viewer {
  z-index: 30000 !important;
  width: 100% !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  position: fixed !important;
  transform: none !important;
}

.usuario-table-foto-btn {
  cursor: zoom-in;
  background: none;
  border: none;
  border-radius: 8px;
  margin: 0;
  padding: 0;
  line-height: 0;
  transition: box-shadow .15s, transform .15s;
  display: inline-block;
}

.usuario-table-foto-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 12px #0000001f;
}

.usuario-table-foto-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.usuario-table-foto-btn--lg {
  border-radius: 8px;
}

.usuario-foto-lightbox-inner {
  justify-content: center;
  align-items: center;
  max-width: min(96vw, 1200px);
  max-height: 90vh;
  display: flex;
  position: relative;
}

.usuario-foto-lightbox-img {
  object-fit: contain;
  border-radius: 8px;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 85vh;
  box-shadow: 0 8px 32px #00000040;
}

.usuario-foto-lightbox-close {
  z-index: 1;
  background: var(--color-surface);
  width: 40px;
  height: 40px;
  color: var(--color-text);
  cursor: pointer;
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  position: absolute;
  top: -4px;
  right: -4px;
  box-shadow: 0 2px 8px #00000026;
}

.usuario-foto-lightbox-close:hover {
  background: #f1f5f9;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-box {
  background: var(--color-surface);
  min-width: 360px;
  max-width: 100%;
  max-height: 90svh;
  box-shadow: var(--shadow-lg);
  border-radius: 14px;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  animation: .25s slideUp;
  display: flex;
  overflow: hidden;
}

.modal-box__body {
  -webkit-overflow-scrolling: touch;
  flex: auto;
  min-height: 0;
  padding: 28px;
  overflow: hidden auto;
}

.modal-box--wide {
  min-width: 480px;
}

.modal-box--alerta {
  width: min(100%, 440px);
  min-width: 0;
  max-width: 440px;
}

.alertas-form-tab {
  gap: 0;
  display: grid;
}

.alertas-modal-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
  display: flex;
}

.modal-box--usuario {
  width: 100%;
  min-width: 420px;
  max-width: 680px;
}

.modal-box--contacto {
  width: min(100%, 360px);
  min-width: 0;
}

.telefono-action-link {
  appearance: none;
  font: inherit;
  color: #0f766e;
  text-underline-offset: 2px;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  font-weight: 700;
  text-decoration: underline;
}

.telefono-action-link:hover, .telefono-action-link:focus-visible {
  color: #0d9488;
}

.modal-tabs {
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding-bottom: 12px;
  display: flex;
}

.modal-tab {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm, 8px);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  padding: 8px 16px;
  font-size: .9rem;
  transition: background .15s, border-color .15s, color .15s;
}

.modal-tab:hover {
  border-color: var(--color-primary);
}

.modal-tab--active {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
}

.persona-vinculada-picker {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.persona-vinculada-picker__trigger {
  border: 1px solid var(--color-border);
  background: var(--color-bg, #fff);
  cursor: pointer;
  text-align: left;
  min-width: 0;
  font: inherit;
  color: var(--color-text);
  border-radius: 8px;
  flex-direction: column;
  flex: 220px;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 12px;
  display: flex;
}

.persona-vinculada-picker__trigger:hover:not(:disabled) {
  border-color: var(--color-primary);
}

.persona-vinculada-picker__trigger:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.persona-vinculada-picker__trigger-text {
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  font-weight: 600;
  overflow: hidden;
}

.persona-vinculada-picker__trigger-deptos {
  color: var(--color-text-muted);
  font-size: 12px;
}

.persona-vinculada-picker__overlay {
  z-index: 300 !important;
}

.persona-vinculada-picker__modal {
  flex-direction: column;
  width: 100%;
  min-width: 0;
  max-width: 560px;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.persona-vinculada-picker__body {
  flex-direction: column;
  flex: auto;
  min-height: 0;
  display: flex;
}

.persona-vinculada-picker__hint {
  color: var(--color-text-muted);
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.35;
}

.persona-vinculada-picker__tabs {
  box-sizing: border-box;
  background: #e2e8f0;
  border-radius: 999px;
  flex-shrink: 0;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  width: 100%;
  margin: 0 0 10px;
  padding: 4px;
  display: grid;
}

.persona-vinculada-picker__tab {
  appearance: none;
  color: #64748b;
  height: 36px;
  min-height: 36px;
  font: inherit;
  cursor: pointer;
  text-align: center;
  box-shadow: none;
  background: none;
  border: 0;
  border-radius: 999px;
  outline: none;
  margin: 0;
  padding: 8px 12px;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1;
  transition: background .12s, color .12s, box-shadow .12s;
}

.persona-vinculada-picker__tab--active {
  color: #0ea5e9;
  background: #fff;
  box-shadow: 0 1px 3px #0f172a1f;
}

.persona-vinculada-picker__filters {
  flex-shrink: 0;
  margin-bottom: 12px;
  display: block;
}

.persona-vinculada-picker__filters .form-group input {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  font-size: 16px;
}

.persona-vinculada-picker__results {
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border);
  background: var(--color-bg, #fafafa);
  border-radius: 10px;
  flex-direction: column;
  flex: auto;
  gap: 8px;
  min-height: 120px;
  max-height: min(42svh, 360px);
  padding: 8px;
  display: flex;
  overflow-y: auto;
}

.persona-vinculada-picker__empty {
  text-align: center;
  color: #0369a1;
  margin: 0;
  padding: 16px;
  font-size: 14px;
}

.persona-vinculada-picker__item {
  cursor: pointer;
  text-align: left;
  width: 100%;
  font: inherit;
  color: #0c4a6e;
  background: #f0f9ff;
  border: 1px solid #7dd3fc;
  border-radius: 8px;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 14px;
  transition: border-color .12s, background .12s;
  display: flex;
  box-shadow: inset 3px 0 #0ea5e9;
}

.persona-vinculada-picker__item:hover {
  background: #e0f2fe;
  border-color: #0ea5e9;
}

.persona-vinculada-picker__item--selected {
  color: #075985;
  background: #bae6fd;
  border-color: #0284c7;
  box-shadow: inset 3px 0 #0284c7;
}

.persona-vinculada-picker__item-name {
  color: inherit;
  font-weight: 600;
}

.persona-vinculada-picker__item-deptos {
  color: #0369a1;
  font-size: 12px;
}

html.panel-iphone .persona-vinculada-picker__modal {
  width: calc(100% - 20px) !important;
  max-width: 560px !important;
  max-height: calc(100svh - 20px) !important;
  margin: 0 auto !important;
}

html.panel-iphone .persona-vinculada-picker__results {
  flex: auto !important;
  min-height: 140px !important;
  max-height: none !important;
}

html.panel-iphone .persona-vinculada-picker__overlay {
  z-index: 300 !important;
}

.modal-box--concepto-cobranza {
  width: 100%;
  max-width: 760px;
}

.form-row-2 {
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 0 20px;
  display: grid;
}

.form-row-2 > .form-group {
  margin-bottom: 18px;
}

.alertas-form-notas-estado {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: start;
}

.form-row-3 {
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.4fr);
  align-items: start;
  gap: 0 14px;
  display: grid;
}

.form-row-3 > .form-group {
  margin-bottom: 18px;
}

.form-row-4 {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .85fr) minmax(0, 1fr);
  align-items: start;
  gap: 0 14px;
  display: grid;
}

.form-row-4 > .form-group {
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .form-row-3, .form-row-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-box h2 {
  color: var(--color-text);
  margin: 0 0 20px;
  font-size: 1.2rem;
  font-weight: 600;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  color: var(--color-text);
  margin-bottom: 6px;
  font-size: .85rem;
  font-weight: 600;
  display: block;
}

.form-group input, .form-group select, .form-group textarea {
  box-sizing: border-box;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  width: 100%;
  max-width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: .95rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 4.8em;
  line-height: 1.4;
  display: block;
}

html.panel-iphone .form-group input, html.panel-iphone .form-group select, html.panel-iphone .form-group textarea {
  font-size: 16px !important;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--color-primary);
  outline: none;
}

.form-group input.egreso-field-invalid, .form-group select.egreso-field-invalid, .form-group textarea.egreso-field-invalid, .form-group input.egreso-field-invalid:focus, .form-group select.egreso-field-invalid:focus, .form-group textarea.egreso-field-invalid:focus, .modal-box .form-group input.egreso-field-invalid, .modal-box .form-group select.egreso-field-invalid, .modal-box .form-group textarea.egreso-field-invalid, .modal-box .form-group input.egreso-field-invalid:focus, .modal-box .form-group select.egreso-field-invalid:focus, .modal-box .form-group textarea.egreso-field-invalid:focus {
  color: #7f1d1d !important;
  background: #fee2e2 !important;
  border: 2px solid #dc2626 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px #dc262659 !important;
}

.egreso-field-invalid-label {
  font-weight: 700;
  color: #dc2626 !important;
}

.egreso-field-msg {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #dc2626 !important;
}

:is(.form-group label:has( > input[type="checkbox"]), .form-group label:has( > input[type="radio"])) {
  cursor: pointer;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  display: flex;
}

.form-group input[type="checkbox"], .form-group input[type="radio"] {
  vertical-align: middle;
  width: 1.125rem;
  min-width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--color-primary);
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.modal-actions {
  gap: 12px;
  margin-top: 24px;
  display: flex;
}

.modal-box > .modal-actions {
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
  margin-top: 0;
  padding: 16px 28px 28px;
}

.modal-actions .btn {
  flex: 1;
}

.form-error {
  color: var(--color-danger);
  margin: 0 0 12px;
  font-size: .875rem;
}

.toggle-wrap {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  display: flex;
}

.toggle-label {
  cursor: pointer;
  flex-shrink: 0;
  width: 48px;
  height: 26px;
  display: inline-block;
  position: relative;
}

.toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  background: var(--color-border-strong);
  border-radius: 26px;
  transition: background .2s, box-shadow .2s;
  position: absolute;
  inset: 0;
}

.toggle-slider:before {
  content: "";
  background: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  transition: transform .2s;
  position: absolute;
  top: 2px;
  left: 2px;
  box-shadow: 0 1px 3px #0003;
}

.toggle-input:checked + .toggle-slider {
  background: var(--color-primary);
}

.toggle-input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

.toggle-input:focus-visible + .toggle-slider {
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.toggle-text {
  color: var(--color-text);
  font-size: .95rem;
  font-weight: 500;
}

.dashboard-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 20px;
  display: grid;
}

.dashboard-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: box-shadow .2s, border-color .2s;
}

.dashboard-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong);
}

.dashboard-card .label {
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  font-size: .8rem;
  font-weight: 600;
}

.dashboard-card .value {
  color: var(--color-text);
  font-size: 1.75rem;
  font-weight: 700;
}

.dashboard-card a {
  color: var(--color-primary);
  margin-top: 12px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.dashboard-card a:hover {
  text-decoration: underline;
}

.dashboard-card-sub {
  color: var(--color-text-muted);
  margin-top: 4px;
  font-size: .8rem;
  display: block;
}

.dashboard-section {
  margin-bottom: 32px;
}

.dashboard-section-title {
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
}

.dashboard-grid-3, .dashboard-grid-4 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
}

.dashboard-card-pending .value {
  color: #b45309;
}

.dashboard-card-reported .value {
  color: #0ea5e9;
}

.dashboard-card-confirmed .value {
  color: var(--color-success);
}

.dashboard-card-warning .value {
  color: #b91c1c;
}

.dashboard-cash-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .85fr);
  align-items: stretch;
  gap: 20px;
  display: grid;
}

.dashboard-chart-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 20px 16px;
}

.dashboard-chart-card-title {
  color: var(--color-text);
  margin: 0 0 12px;
  font-size: .95rem;
  font-weight: 600;
}

.dashboard-cash-chart-wrap {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding-bottom: 4px;
  overflow: auto hidden;
}

.dashboard-cash-chart-clip {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.dashboard-cash-chart-scroll {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: auto hidden;
}

.dashboard-cash-chart-inner {
  box-sizing: border-box;
  line-height: 0;
  display: block;
}

.dashboard-cash-totals-clip {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.dashboard-cash-totals-scroll {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

.dashboard-cash-scroll-hint {
  color: var(--color-text-muted);
  margin: 6px 0 0;
  font-size: .72rem;
}

.dashboard-cash-intro {
  color: var(--color-text-muted);
  overflow-wrap: anywhere;
  max-width: 100%;
  margin: -8px 0 20px;
  font-size: 14px;
}

.dashboard-cash-svg {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: auto;
  display: block;
}

.admin-wrapper:not(.admin-wrapper--phone) .dashboard-cash-chart-scroll {
  overflow-x: hidden;
}

.admin-wrapper:not(.admin-wrapper--phone) .dashboard-cash-svg {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: auto;
}

.dashboard-cash-legend-inline {
  color: var(--color-text-muted);
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
  font-size: .85rem;
  display: flex;
}

.dashboard-cash-legend-inline span {
  align-items: center;
  gap: 8px;
  display: inline-flex;
}

.dashboard-cash-dot {
  border-radius: 2px;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  display: inline-block;
}

.dashboard-cash-dot--in {
  background: var(--color-primary);
}

.dashboard-cash-dot--eg {
  background: var(--color-danger);
}

.dashboard-cash-totals {
  flex-direction: column;
  gap: 10px;
  display: flex;
}

.dashboard-cash-total-row {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
  display: flex;
}

.dashboard-cash-total-val {
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.dashboard-cash-legend {
  font-weight: 600;
}

.dashboard-cash-legend--in {
  color: var(--color-primary);
}

.dashboard-cash-legend--eg {
  color: var(--color-danger);
}

.dashboard-cash-bar-track {
  background: var(--color-border);
  border-radius: 6px;
  height: 12px;
  display: flex;
  overflow: hidden;
}

.dashboard-cash-bar-in {
  background: var(--color-primary);
  min-width: 0;
  transition: width .35s;
}

.dashboard-cash-bar-eg {
  background: var(--color-danger);
  opacity: .9;
  min-width: 0;
  transition: width .35s;
}

.dashboard-cash-hint {
  color: var(--color-text-muted);
  margin: 8px 0 0;
  font-size: .8rem;
  line-height: 1.45;
}

.dashboard-cash-link {
  color: var(--color-primary);
  margin-top: 16px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.dashboard-cash-link:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

.filters-row {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
  display: flex;
}

.filters-row label {
  color: var(--color-text);
  flex-direction: column;
  gap: 6px;
  font-size: .85rem;
  font-weight: 600;
  display: flex;
}

.filters-row select, .filters-row input {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  min-width: 140px;
  padding: 8px 12px;
  font-size: .9rem;
}

.loading-state {
  text-align: center;
  color: var(--color-text-muted);
  padding: 48px 24px;
}

.badge {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: .75rem;
  font-weight: 600;
  display: inline-block;
}

.badge-pending {
  color: #92400e;
  background: #fef3c7;
}

.badge-reported {
  color: #1d4ed8;
  background: #dbeafe;
}

.badge-confirmed {
  color: #065f46;
  background: #d1fae5;
}

.badge-rejected {
  color: #991b1b;
  background: #fee2e2;
}

.badge-warning {
  color: #92400e;
  background: #fef3c7;
}

.badge-activo {
  color: #065f46;
  background: #d1fae5;
}

.badge-inactivo {
  color: #475569;
  background: #e2e8f0;
}

.admin-show-mobile-only {
  display: none !important;
}

.card-header-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.filters-row__aside {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  padding-bottom: 4px;
  display: flex;
}

.admin-stat-strip {
  border-bottom: 1px solid var(--color-border, #00000014);
  background: #0f766e0a;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  padding: 8px 24px 10px;
  display: flex;
}

.admin-stat-badge {
  border-radius: 8px;
  align-items: center;
  gap: 0;
  min-height: 34px;
  display: inline-flex;
  overflow: hidden;
}

.admin-stat-badge__label {
  letter-spacing: .02em;
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.admin-stat-badge__value {
  color: #1d4ed8;
  font-variant-numeric: tabular-nums;
  background: #dbeafe;
  padding: 4px 12px;
  font-size: 1.05rem;
  font-weight: 800;
}

.admin-stat-badge__hint {
  color: #ffffffeb;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .admin-main {
    padding: 20px 16px;
  }

  .admin-table th, .admin-table td {
    padding: 12px 16px;
    font-size: .85rem;
  }

  .admin-table .actions {
    flex-wrap: wrap;
    gap: 6px;
  }
}

@media (max-width: 768px) {
  .admin-wrapper {
    flex-direction: column;
  }

  .admin-sidebar {
    z-index: 50;
    width: 260px;
    transition: transform .25s;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    box-shadow: 4px 0 20px #00000026;
  }

  .admin-wrapper.sidebar-open .admin-sidebar {
    transform: translateX(0);
  }

  .admin-sidebar-overlay {
    z-index: 40;
    background: #0006;
    display: none;
    position: fixed;
    inset: 0;
  }

  .admin-wrapper.sidebar-open .admin-sidebar-overlay {
    display: block;
  }

  .admin-sidebar-close {
    color: #fff;
    cursor: pointer;
    border-radius: var(--radius-sm);
    background: #ffffff1a;
    border: none;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 1.25rem;
    line-height: 1;
    display: block;
    position: absolute;
    top: 16px;
    right: 16px;
  }

  .admin-sidebar-close:hover {
    background: #fff3;
  }

  .admin-mobile-menu-btn {
    z-index: 30;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    width: 44px;
    height: 44px;
    color: var(--color-text);
    cursor: pointer;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    padding: 0;
    font-size: 1.4rem;
    line-height: 1;
    display: block;
    position: fixed;
    top: 12px;
    left: 12px;
  }

  .admin-mobile-menu-btn:hover {
    background: var(--color-bg);
  }

  .admin-main-wrap {
    flex: 1;
    min-width: 0;
  }

  .admin-top-bar {
    padding: 10px 16px 10px 56px;
  }

  .admin-main {
    min-height: 100vh;
    padding: 16px;
  }

  .admin-main .admin-header h1 {
    font-size: 1.4rem;
  }

  .card-header {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
  }

  .card-header .btn {
    width: 100%;
  }

  .card-header .reportes-filtros-actions, .card-header .phone-filter-pair.reportes-filtros-actions {
    box-sizing: border-box;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
  }

  .card-header .reportes-filtros-actions > .btn, .card-header .phone-filter-pair.reportes-filtros-actions > .btn {
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .trigger-edificio-wrap {
    width: 100%;
  }

  .trigger-edificio-select {
    flex: 1;
    min-width: 0;
  }

  .admin-table-wrapper {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
  }

  .admin-table {
    min-width: 0;
  }

  .admin-table--wide-mobile {
    min-width: 520px;
  }

  .admin-table th, .admin-table td {
    padding: 10px 12px;
    font-size: .8rem;
  }

  .modal-box {
    width: 100%;
    min-width: 0;
    max-height: calc(100svh - 32px);
    margin: 16px;
  }

  .modal-box__body {
    padding: 20px;
  }

  .modal-box > .modal-actions {
    padding: 12px 20px 20px;
  }

  .modal-box--wide, .modal-box--usuario {
    min-width: 0;
  }

  .dashboard-cash-grid, .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .filters-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filters-row select, .filters-row input:not([type="checkbox"]):not([type="radio"]) {
    min-width: 0;
  }

  .filters-row label {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .filters-row__aside {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: stretch !important;
    margin-left: 0 !important;
  }

  .filters-row__aside .btn, .card-header-actions {
    width: 100%;
  }

  .card-header-actions .btn {
    flex: auto;
    width: auto;
    min-height: 44px;
  }

  .admin-col-hide-mobile, .admin-hide-mobile {
    display: none !important;
  }

  .admin-show-mobile-only {
    display: block !important;
  }

  .admin-show-mobile-only.flex, .admin-show-mobile-only.admin-flex {
    display: flex !important;
  }

  .admin-stat-strip {
    flex-direction: column;
    gap: 8px;
    padding: 10px 16px !important;
  }

  .admin-stat-badge {
    justify-content: space-between;
    width: 100%;
  }

  .admin-stat-badge__value {
    text-align: right;
    flex: 1;
    font-size: 1rem;
  }

  .modal-tabs {
    gap: 6px;
    margin-left: 16px !important;
    margin-right: 16px !important;
  }

  .modal-tab {
    text-align: center;
    flex: calc(50% - 6px);
    min-width: 0;
    min-height: 44px;
    padding: 12px 8px;
    font-size: .82rem;
  }

  .admin-header h1 {
    font-size: 1.35rem;
  }

  .admin-header p {
    font-size: .88rem;
  }

  .admin-top-bar__nivel, .admin-top-bar__panel {
    display: none;
  }

  .admin-top-bar__user {
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
  }

  .admin-table .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-table .actions .btn {
    width: 100%;
    min-height: 40px;
  }

  input[type="date"], input[type="datetime-local"], input[type="time"], input[type="search"], input[type="text"], input[type="number"], input[type="password"], select, textarea, .filters-row select, .filters-row input, .login-form input {
    font-size: 16px;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .conv-selector-card {
    padding: 16px;
  }

  .conv-persona-select {
    width: 100%;
    max-width: none;
  }

  .conv-fechas-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .conv-date-input {
    width: 100%;
    max-width: none;
  }

  .conv-limpiar-fechas {
    align-self: stretch;
  }

  .conv-chat-card {
    padding: 16px;
  }
}

@media (max-width: 640px) {
  .admin-bot-status__label {
    display: none;
  }

  .admin-bot-status {
    flex: none;
    padding: 4px 10px;
  }
}

@media (max-width: 480px) {
  .admin-main {
    padding: 12px;
  }

  .admin-top-bar {
    padding: 8px 12px 8px 52px;
  }

  .conv-selector-card {
    padding: 14px 12px;
  }

  .conv-persona-select {
    padding: 10px 36px 10px 12px;
    font-size: .9rem;
  }

  .conv-fechas-row {
    margin-top: 16px;
    padding-top: 16px;
  }

  .conv-chat-card {
    padding: 14px 12px;
  }

  .chat-thread {
    max-height: 50vh;
  }

  .admin-table {
    min-width: 0;
  }

  .admin-table--wide-mobile {
    min-width: 520px;
  }

  .btn-sm {
    min-height: 40px;
    padding: 8px 12px;
    font-size: .8rem;
  }
}

.chat-online-page {
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  display: flex;
  position: fixed;
  inset: 0;
}

.chat-online-loading {
  background: var(--color-bg);
  min-height: 100vh;
}

.chat-online-backdrop {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  background: #0009;
  position: absolute;
  inset: 0;
}

.chat-online-modal {
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  display: flex;
  position: relative;
}

.chat-online-close {
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 10px 20px;
  font-weight: 600;
  text-decoration: none;
}

.chat-online-close:hover {
  background: var(--color-border);
}

.iphone-14-frame {
  background: #1c1c1e;
  border-radius: 44px;
  flex-direction: column;
  width: 320px;
  height: min(640px, 85vh);
  max-height: 85vh;
  padding: 12px;
  display: flex;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 3px #2c2c2e, 0 0 0 8px #1c1c1e, 0 25px 50px #00000080;
}

.iphone-notch {
  z-index: 2;
  background: #000;
  border-radius: 0 0 20px 20px;
  width: 100px;
  height: 28px;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
}

.iphone-screen {
  background: #efeae2;
  border-radius: 34px;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding-top: 36px;
  display: flex;
  overflow: hidden;
}

.wa-app {
  background: #efeae2;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  font-family: system-ui, Segoe UI, Apple Color Emoji, Segoe UI Emoji, Noto Color Emoji, sans-serif;
  display: flex;
}

.wa-header {
  color: #fff;
  background: #075e54;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 14px;
  display: flex;
}

.wa-header-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.wa-header-chat {
  padding: 10px 8px 10px 4px;
}

.wa-back {
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  margin-right: 4px;
  padding: 4px 8px;
  font-size: 1.8rem;
  line-height: 1;
}

.wa-header-chat-info {
  flex-direction: column;
  gap: 0;
  display: flex;
}

.wa-header-sub {
  opacity: .9;
  font-size: .75rem;
}

.wa-list-wrap {
  background: #fff;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.wa-list-loading, .wa-list-empty {
  text-align: center;
  color: var(--color-text-muted);
  margin: 0;
  padding: 24px 16px;
  font-size: .9rem;
}

.wa-conversation-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wa-conversation-item {
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  transition: background .15s;
  display: flex;
}

.wa-conversation-item:hover {
  background: #f5f5f5;
}

.wa-avatar {
  color: #fff;
  background: #075e54;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
}

.wa-conv-body {
  flex: 1;
  min-width: 0;
}

.wa-conv-name {
  color: #111;
  font-size: .95rem;
  font-weight: 600;
}

.wa-conv-preview {
  color: #667781;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-top: 2px;
  font-family: inherit;
  font-size: .8rem;
  overflow: hidden;
}

.wa-conv-time {
  color: #667781;
  flex-shrink: 0;
  font-size: .7rem;
}

.wa-thread-wrap {
  background: #efeae2 url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='%23d4ccc5' fill-opacity='0.15'/%3E%3C/svg%3E");
  flex-direction: column;
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.wa-thread-loading {
  text-align: center;
  color: var(--color-text-muted);
  margin: 0;
  padding: 24px;
}

.wa-thread {
  flex-direction: column;
  flex: 1;
  gap: 6px;
  min-height: 0;
  padding: 12px 8px 8px;
  display: flex;
  overflow: hidden auto;
}

.wa-bubble {
  word-break: break-word;
  border-radius: 12px;
  max-width: 80%;
  padding: 8px 12px;
  box-shadow: 0 1px 1px #00000014;
}

.wa-bubble--entrante {
  background: #fff;
  border-top-left-radius: 4px;
  align-self: flex-start;
}

.wa-bubble--saliente {
  background: #d9fdd3;
  border-top-right-radius: 4px;
  align-self: flex-end;
}

.wa-bubble-text {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: .9rem;
  line-height: 1.4;
}

.wa-bubble-audio-wrap {
  margin-bottom: 4px;
}

.wa-bubble-audio {
  min-width: 200px;
  max-width: 100%;
  height: 36px;
}

.wa-bubble-media-link {
  color: var(--link-color, #075e54);
  margin-bottom: 4px;
  font-size: .85rem;
  text-decoration: underline;
  display: inline-block;
}

.wa-bubble-time {
  color: #667781;
  margin-top: 2px;
  font-size: .65rem;
}

.wa-bubble-img {
  object-fit: contain;
  border-radius: 8px;
  max-width: 100%;
  max-height: 180px;
  display: block;
}

.wa-input-wrap {
  background: #efeae2;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 16px;
  display: flex;
}

.wa-input {
  background: #fff;
  border: none;
  border-radius: 24px;
  outline: none;
  flex: 1;
  padding: 10px 14px;
  font-family: inherit;
  font-size: .95rem;
}

.wa-send-btn {
  color: #fff;
  cursor: pointer;
  background: #075e54;
  border: none;
  border-radius: 24px;
  padding: 10px 16px;
  font-size: .9rem;
  font-weight: 600;
}

.wa-send-btn:hover:not(:disabled) {
  background: #055a52;
}

.wa-send-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .chat-online-page {
    align-items: stretch;
    height: 100vh;
    padding: 0;
  }

  .chat-online-backdrop {
    display: none;
  }

  .chat-online-modal {
    flex: 1;
    justify-content: stretch;
    gap: 0;
    width: 100%;
    max-width: none;
    min-height: 0;
  }

  .iphone-14-frame {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    box-shadow: none;
    background: none;
    border-radius: 0;
    flex: 1;
    padding: 0;
  }

  .iphone-notch {
    display: none;
  }

  .iphone-screen {
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
    border-radius: 0;
  }

  .wa-app {
    min-height: 0;
  }

  .chat-online-close {
    top: calc(12px + env(safe-area-inset-top, 0));
    z-index: 10;
    position: fixed;
    left: auto;
    right: 12px;
    transform: none;
  }

  [class*="dev-tools-indicator"], [data-nextjs-dialog-overlay] + [role="dialog"] [class*="indicator"], [id*="nextjs"][id*="dev"] {
    display: none !important;
  }
}

.msg-format-toolbar {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  display: flex;
}

.msg-format-label {
  color: var(--color-text-muted);
  margin-right: 4px;
  font-size: .8rem;
}

.msg-format-btn {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
  padding: 6px 10px;
  font-size: .9rem;
  transition: background .15s, border-color .15s;
}

.msg-format-btn:hover {
  background: var(--color-border);
  border-color: var(--color-border-strong);
}

.msg-emoji-toolbar {
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
  display: flex;
}

.msg-emoji-btn {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 1.25rem;
  line-height: 1;
  transition: transform .12s, background .12s, border-color .12s;
}

.msg-emoji-btn:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  transform: scale(1.12);
}

.msg-frases-rapidas {
  margin-bottom: 10px;
}

.msg-frases-rapidas .msg-format-label {
  margin-bottom: 6px;
  display: block;
}

.msg-frases-btns {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.msg-frase-btn {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: .85rem;
  transition: background .15s, border-color .15s, color .15s;
}

.msg-frase-btn:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.msg-textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
}

.msg-file-input-hidden {
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  position: absolute;
}

.msg-image-zone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 120px;
  padding: 24px;
  transition: border-color .2s, background .2s, box-shadow .2s;
  display: flex;
}

.msg-image-zone:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.msg-image-zone--drag {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  box-shadow: 0 0 0 4px var(--color-primary-light);
}

.msg-image-zone--has-file {
  border-style: solid;
  border-color: var(--color-success);
  background: #22c55e14;
}

.msg-image-zone--has-file:hover {
  background: #22c55e1f;
}

.msg-image-zone-icon {
  font-size: 2rem;
  line-height: 1;
}

.msg-image-zone-text {
  color: var(--color-text);
  text-align: center;
  font-size: .95rem;
}

.msg-image-zone-name {
  color: var(--color-text);
  word-break: break-all;
  text-align: center;
  font-size: .95rem;
  font-weight: 600;
}

.msg-image-zone-hint {
  color: var(--color-text-muted);
  font-size: .8rem;
}

.msg-image-zone-remove {
  background: var(--color-border);
  width: 28px;
  height: 28px;
  color: var(--color-text);
  cursor: pointer;
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  padding: 0;
  font-size: .9rem;
  transition: background .15s, color .15s;
  display: flex;
  position: absolute;
  top: 10px;
  right: 10px;
}

.msg-image-zone-remove:hover {
  background: var(--color-danger);
  color: #fff;
}

.msg-image-zone {
  position: relative;
}

.msg-cobranza-tabs-header {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  display: flex;
}

.msg-cobranza-tabs-header label {
  margin: 0;
}

.msg-cobranza-tabs-save-hint {
  color: var(--color-text-muted);
  min-height: 1.2em;
  font-size: .8rem;
}

.msg-cobranza-tabs {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  display: flex;
}

.msg-cobranza-tab {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  padding: 8px 14px;
  font-size: .9rem;
  transition: background .15s, border-color .15s, color .15s;
}

.msg-cobranza-tab:hover {
  border-color: var(--color-primary);
}

.msg-cobranza-tab--active {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
}

.msg-seleccion-summary {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  padding: 16px;
}

.msg-seleccion-empty {
  color: var(--color-text-muted);
  margin: 0 0 12px;
  font-size: .95rem;
}

.msg-seleccion-list {
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  display: flex;
}

.msg-seleccion-chip {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  flex-direction: column;
  align-items: flex-start;
  padding: 8px 12px;
  font-size: .9rem;
  display: inline-flex;
}

.msg-seleccion-tel {
  color: var(--color-text-muted);
  margin-top: 2px;
  font-size: .8rem;
}

.msg-seleccion-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  display: flex;
}

.msg-seleccion-count {
  color: var(--color-text-muted);
  font-size: .85rem;
}

.msg-seleccion-modal .msg-seleccion-modal-hint {
  color: var(--color-text-muted);
  margin: 0 0 16px;
  font-size: .9rem;
}

.msg-seleccion-modal-list {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  max-height: 60vh;
  padding: 8px;
  overflow-y: auto;
}

.msg-seleccion-modal-item {
  cursor: pointer;
  border-radius: var(--radius-sm);
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  transition: background .15s;
  display: flex;
}

.msg-seleccion-modal-item:hover {
  background: var(--color-bg);
}

.msg-seleccion-modal-item input {
  flex-shrink: 0;
}

.msg-seleccion-modal-nombre {
  color: var(--color-text);
  font-weight: 500;
}

.msg-seleccion-modal-tel {
  color: var(--color-text-muted);
  margin-left: auto;
  font-size: .85rem;
}

.msg-preview {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-top: 12px;
  padding: 12px;
}

.msg-preview-label {
  color: var(--color-text-muted);
  margin-bottom: 6px;
  font-size: .75rem;
  display: block;
}

.msg-preview-content {
  color: var(--color-text);
  white-space: pre-wrap;
  word-break: break-word;
  font-size: .95rem;
  line-height: 1.5;
}

.msg-preview-content code {
  background: var(--color-border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: .9em;
}

@keyframes admin-thumb-skeleton-shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.admin-thumb-skeleton-72 {
  background: linear-gradient(145deg, #e8ecf1 0%, #eef2f7 50%, #e8ecf1 100%);
  border-radius: 8px;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  position: relative;
  overflow: hidden;
}

.admin-thumb-skeleton-72:after {
  content: "";
  background: linear-gradient(90deg, #0000, #ffffffa6, #0000);
  width: 55%;
  height: 100%;
  animation: 1.35s ease-in-out infinite admin-thumb-skeleton-shimmer;
  position: absolute;
  top: 0;
  left: 0;
}

.admin-thumb-skeleton-72--emphasis {
  box-shadow: inset 0 0 0 1px #00000012;
}

@keyframes lectura-preview-shimmer {
  0% {
    background-position: 0%;
  }

  100% {
    background-position: 200%;
  }
}

.lectura-preview-skeleton {
  pointer-events: none;
  background: linear-gradient(110deg, #1e293b 0%, #475569 22%, #94a3b8 50%, #475569 78%, #1e293b 100%) 0 0 / 220% 100%;
  animation: 1.05s ease-in-out infinite lectura-preview-shimmer;
}

.admin-wrapper--phone {
  overscroll-behavior-x: none;
  background: var(--color-bg);
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  position: relative;
  overflow-x: clip;
}

.phone-topbar {
  z-index: 40;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 10px 12px;
  padding-top: max(10px, env(safe-area-inset-top, 0px));
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  align-items: center;
  gap: 10px;
  display: flex;
  position: sticky;
  top: 0;
}

.phone-topbar__menu {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  cursor: pointer;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  font-size: 1.35rem;
}

.phone-topbar__title {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  font-size: 1.05rem;
  font-weight: 700;
  overflow: hidden;
}

.phone-topbar__avatar {
  background: none;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  display: flex;
  overflow: hidden;
}

.phone-topbar__avatar--btn {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.phone-topbar__avatar--btn:after {
  content: "";
  pointer-events: none;
  border-radius: 50%;
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1.5px #ffffff8c;
}

.phone-topbar__avatar--btn:active {
  opacity: .9;
  transform: scale(.94);
}

.phone-profile-sheet {
  z-index: 110;
  justify-content: center;
  align-items: flex-end;
  display: flex;
  position: fixed;
  inset: 0;
}

.phone-profile-sheet__backdrop {
  cursor: pointer;
  background: #0f172a6b;
  border: none;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 0;
}

.phone-profile-sheet__panel {
  z-index: 1;
  width: 100%;
  max-width: 480px;
  padding: 10px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-radius: 22px 22px 0 0;
  animation: .28s both phone-profile-sheet-up;
  position: relative;
  box-shadow: 0 -12px 40px #0f172a2e;
}

@keyframes phone-profile-sheet-up {
  from {
    opacity: .85;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.phone-profile-sheet__handle {
  background: #cbd5e1;
  border-radius: 999px;
  width: 40px;
  height: 4px;
  margin: 2px auto 14px;
}

.phone-profile-sheet__user {
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  display: flex;
}

.phone-profile-sheet__user strong {
  font-size: 1.05rem;
  line-height: 1.2;
  display: block;
}

.phone-profile-sheet__user span {
  color: var(--color-text-muted);
  margin-top: 2px;
  font-size: .82rem;
  display: block;
}

.phone-profile-sheet__actions {
  flex-direction: column;
  gap: 8px;
  display: flex;
}

.phone-profile-sheet__action {
  border: 1px solid var(--color-border);
  text-align: left;
  width: 100%;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  background: #f8fafc;
  border-radius: 14px;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px;
  display: flex;
}

.phone-profile-sheet__action:active {
  background: #f1f5f9;
  transform: scale(.985);
}

.phone-profile-sheet__action strong {
  font-size: .95rem;
  line-height: 1.2;
  display: block;
}

.phone-profile-sheet__action small {
  color: var(--color-text-muted);
  margin-top: 2px;
  font-size: .75rem;
  display: block;
}

.phone-profile-sheet__action-ico {
  background: #e2e8f0 center / 22px 22px no-repeat;
  border-radius: 12px;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.phone-profile-sheet__action-ico--foto {
  background-color: #dbeafe;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%231d4ed8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E");
}

.phone-profile-sheet__action-ico--clave {
  background-color: #ecfdf5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23047857' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4'/%3E%3C/svg%3E");
}

.phone-profile-sheet__action-ico--logout {
  background-color: #fee2e2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23b91c1c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E");
}

.phone-profile-sheet__action--danger strong {
  color: #b91c1c;
}

.phone-profile-sheet__cancel {
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
}

.phone-profile-pwd-error {
  color: #b91c1c;
  margin: 0 0 8px;
  font-size: .88rem;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .phone-profile-sheet__panel {
    animation: none;
  }
}

.phone-topbar__avatar img, .phone-topbar__avatar svg {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.phone-drawer__avatar--btn {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  background: none;
  border: none;
  border-radius: 50%;
  margin: 0;
  padding: 0;
}

.phone-drawer__avatar--btn:active {
  opacity: .92;
  transform: scale(.96);
}

.phone-drawer {
  z-index: 60;
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.phone-drawer__backdrop {
  z-index: 0;
  cursor: pointer;
  background: #1e3a5f47;
  border: none;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  animation: .4s both phone-drawer-backdrop-in;
  position: absolute;
  inset: 0;
}

.phone-drawer__panel {
  z-index: 1;
  color: #334155;
  width: min(86%, 320px);
  max-width: 320px;
  height: 100%;
  padding-top: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
  background: #fff;
  border-radius: 0 22px 22px 0;
  flex-direction: column;
  animation: .45s cubic-bezier(.22, 1, .36, 1) both phone-drawer-panel-in;
  display: flex;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  box-shadow: 8px 0 28px #4c1d952e;
}

@keyframes phone-drawer-backdrop-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes phone-drawer-panel-in {
  from {
    transform: translateX(-104%);
  }

  to {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-drawer__backdrop, .phone-drawer__panel {
    animation: none !important;
  }
}

.phone-drawer__head {
  padding: 18px 16px 20px;
  padding-top: max(18px, env(safe-area-inset-top, 0px));
  color: #fff;
  background: linear-gradient(120deg, #a855f7 0%, #6366f1 42%, #38bdf8 100%);
  border-bottom: none;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.phone-drawer__user {
  align-items: center;
  gap: 12px;
  min-width: 0;
  display: flex;
}

.phone-drawer__avatar {
  background: none;
  border: 2px solid #ffffffbf;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 4px 12px #0f172a2e;
}

.phone-drawer__avatar img, .phone-drawer__avatar svg {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.phone-drawer__user-text {
  min-width: 0;
}

.phone-drawer__head strong {
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.12rem;
  line-height: 1.15;
  display: block;
  overflow: hidden;
}

.phone-drawer__head span {
  color: #ffffffe6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-top: 3px;
  font-size: .78rem;
  line-height: 1.25;
  display: -webkit-box;
  overflow: hidden;
}

.phone-drawer__close {
  color: #fff;
  cursor: pointer;
  background: #ffffff38;
  border: none;
  border-radius: 12px;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
}

.phone-drawer__nav {
  -webkit-overflow-scrolling: touch;
  background: radial-gradient(120% 70% at 100% 100%, #38bdf824, #0000 55%), #fff;
  flex: 1;
  padding: 14px 12px 20px;
  overflow-y: auto;
}

.phone-nav-group {
  margin-bottom: 8px;
}

.phone-nav-group__toggle {
  color: #5b21b6;
  width: 100%;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  z-index: 2;
  background: linear-gradient(135deg, #f3e8ff 0%, #e0f2fe 100%);
  border: none;
  border-radius: 14px;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  font-weight: 700;
  display: flex;
  position: relative;
  box-shadow: 0 2px 8px #6366f11a;
}

.phone-nav-group__toggle.active {
  color: #6d28d9;
  background: linear-gradient(135deg, #ede9fe 0%, #dbeafe 100%);
  box-shadow: 0 4px 12px #6d28d924;
}

.phone-nav-chevron {
  opacity: .9;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  min-width: 1em;
  display: inline-flex;
}

.phone-nav-group__links {
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
  padding-left: 4px;
  display: flex;
}

.phone-nav-sub {
  flex-direction: column;
  display: flex;
}

.phone-nav-sub__links {
  flex-direction: column;
  gap: 2px;
  display: flex;
}

.phone-nav-reveal {
  opacity: 0;
  transition: opacity 2s cubic-bezier(.33, 1, .68, 1), transform 2s cubic-bezier(.33, 1, .68, 1);
  -webkit-transition: opacity 2s cubic-bezier(.33, 1, .68, 1), transform 2s cubic-bezier(.33, 1, .68, 1);
  transform: translateY(-16px);
}

.phone-nav-reveal.phone-nav-reveal--shown {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .phone-nav-reveal {
    opacity: 1;
    transform: none;
    transition: none !important;
  }
}

.phone-nav-link {
  color: #475569;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  background: none;
  border: none;
  border-radius: 14px;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 13px 14px;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  display: flex;
}

.phone-nav-link:hover {
  color: #334155;
  background: #f8fafc;
}

.phone-nav-link.active {
  color: #7c3aed;
  background: #fff;
  font-weight: 700;
  box-shadow: 0 6px 18px -8px #7c3aed73, 0 2px 8px #0f172a0f;
}

.phone-nav-link--child {
  padding-left: 22px;
  font-size: .9rem;
}

.phone-drawer__foot {
  background: #fff;
  border-top: 1px solid #f1e7ff;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px 16px;
  display: flex;
}

.phone-drawer__foot .btn, .phone-drawer__foot .btn-logout--toolbar {
  justify-content: center;
  width: 100%;
  color: #e11d48 !important;
  box-shadow: none !important;
  background: #fff1f2 !important;
  border: 1px solid #fecdd3 !important;
  border-radius: 14px !important;
  font-weight: 700 !important;
}

.phone-drawer__foot .btn:hover, .phone-drawer__foot .btn-logout--toolbar:hover {
  filter: brightness(.98);
  background: #ffe4e6 !important;
}

.phone-main {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 12px;
  padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  -webkit-overflow-scrolling: touch;
  flex: 1;
  overflow: hidden visible;
}

.admin-wrapper--phone .phone-main.phone-main--reportes-fullbleed {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.admin-wrapper--phone:has(.reportes-page) > .phone-main {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.admin-wrapper--phone .phone-main:has(.reportes-page) {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.admin-wrapper--phone .reportes-page {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.admin-wrapper--phone .reportes-page .admin-header {
  margin-bottom: 10px;
  padding: 12px 12px 0;
}

.admin-wrapper--phone .reportes-page .card {
  box-sizing: border-box !important;
  border-left: none !important;
  border-right: none !important;
  border-radius: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  overflow: visible !important;
}

.admin-wrapper--phone .reportes-page .card-header, .admin-wrapper--phone .reportes-page .filters-row {
  padding-left: 12px !important;
  padding-right: 12px !important;
}

.admin-wrapper--phone .reportes-page .form-error {
  margin-left: 12px !important;
  margin-right: 12px !important;
}

@supports (-webkit-touch-callout: none) {
  .admin-wrapper--phone .phone-main.phone-main--reportes-fullbleed {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .admin-wrapper--phone:has(.reportes-page) > .phone-main {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .admin-wrapper--phone .phone-main:has(.reportes-page) {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .admin-wrapper--phone .reportes-page, .admin-wrapper--phone .reportes-page .card, .admin-wrapper--phone .reportes-movimientos-list, .admin-wrapper--phone .admin-show-on-phone.reportes-movimientos-list {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .admin-wrapper--phone .reportes-movimientos-list, .admin-wrapper--phone .admin-show-on-phone.reportes-movimientos-list {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .admin-wrapper--phone .reportes-movimientos-list > .phone-card, .admin-wrapper--phone .reportes-movimientos-list > .reportes-mov-card, .admin-wrapper--phone .reportes-page .reportes-movimientos-list .phone-card {
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
    border-left-width: 0 !important;
    border-right-width: 0 !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }
}

.admin-wrapper--phone .admin-header {
  min-width: 0;
  max-width: 100%;
  margin-bottom: 14px;
}

.admin-wrapper--phone .dashboard-section, .admin-wrapper--phone .dashboard-grid, .admin-wrapper--phone .dashboard-grid-3, .admin-wrapper--phone .dashboard-grid-4, .admin-wrapper--phone .dashboard-cash-grid {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.admin-wrapper--phone .dashboard-grid, .admin-wrapper--phone .dashboard-grid-3, .admin-wrapper--phone .dashboard-grid-4, .admin-wrapper--phone .dashboard-cash-grid {
  grid-template-columns: minmax(0, 1fr) !important;
}

.admin-wrapper--phone .dashboard-card, .admin-wrapper--phone .dashboard-chart-card {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.admin-wrapper--phone .dashboard-cash-chart-wrap, .admin-wrapper--phone .dashboard-cash-chart-clip, .admin-wrapper--phone .dashboard-cash-chart-scroll {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.admin-wrapper--phone .dashboard-cash-chart-scroll {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  padding-bottom: 6px;
  overflow: auto hidden;
}

.admin-wrapper--phone .dashboard-cash-svg {
  max-width: none;
  height: auto;
  display: block;
}

.admin-wrapper--phone .dashboard-page {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

html.panel-iphone .dashboard-page, html.panel-iphone .dashboard-section, html.panel-iphone .dashboard-cash-grid, html.panel-iphone .dashboard-chart-card, html.panel-iphone .dashboard-section--iphone {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

html.panel-iphone .dashboard-page {
  overflow-x: hidden !important;
}

html.panel-iphone .dashboard-chart-card {
  overflow: hidden !important;
}

html.panel-iphone .dashboard-cash-chart-clip {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

html.panel-iphone .dashboard-cash-chart-scroll {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: scroll hidden !important;
}

html.panel-iphone .dashboard-cash-chart-inner {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

html.panel-iphone .dashboard-cash-svg {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
}

html.panel-iphone .dashboard-chart-card-title {
  font-size: .82rem !important;
}

html.panel-iphone .dashboard-cash-intro {
  font-size: .75rem !important;
  line-height: 1.35 !important;
}

html.panel-iphone .dashboard-cash-legend-inline {
  gap: 12px !important;
  margin-top: 8px !important;
  font-size: .72rem !important;
}

html.panel-iphone .dashboard-cash-scroll-hint {
  font-size: .65rem !important;
}

html.panel-iphone .dashboard-cash-total-val {
  white-space: nowrap;
  font-size: .85rem !important;
}

html.panel-iphone .dashboard-cash-legend {
  font-size: .75rem !important;
}

html.panel-iphone .dashboard-cash-hint {
  font-size: .7rem !important;
  line-height: 1.35 !important;
}

html.panel-iphone .dashboard-cash-link {
  font-size: .8rem !important;
}

html.panel-iphone .dashboard-cash-totals-clip {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

html.panel-iphone .dashboard-cash-totals-scroll {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
}

.admin-wrapper--phone .dashboard-cash-hint, .admin-wrapper--phone .dashboard-cash-total-row, .admin-wrapper--phone .dashboard-cash-intro, .admin-wrapper--phone .admin-header p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-wrapper--phone .admin-header h1 {
  font-size: 1.35rem;
}

.admin-wrapper--phone .admin-header p {
  font-size: .88rem;
}

.admin-wrapper--phone .card-header {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 14px;
}

.admin-wrapper--phone .card-header-actions {
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  display: flex;
}

.admin-wrapper--phone .card-header-actions .btn, .admin-wrapper--phone .card-header .btn {
  flex: auto;
  width: auto;
  min-height: 44px;
}

.admin-wrapper--phone .filters-row {
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 0;
  gap: 12px !important;
  padding: 12px 14px !important;
}

.admin-wrapper--phone .filters-row label {
  width: 100% !important;
  min-width: 0 !important;
}

.admin-wrapper--phone .filters-row select, .admin-wrapper--phone .filters-row input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  font-size: 16px;
}

.filters-row label.filters-row__check {
  font-weight: 500;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  width: auto !important;
}

.admin-wrapper--phone .filters-row label.filters-row__check {
  width: 100% !important;
}

.filters-row label.filters-row__check input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px !important;
  min-width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.admin-wrapper--phone .filters-row__aside {
  flex-direction: column;
  width: 100%;
  align-items: stretch !important;
  margin-left: 0 !important;
}

.admin-wrapper--phone .filters-row__aside .btn {
  width: 100%;
  min-height: 44px;
}

.filters-row__dates {
  box-sizing: border-box;
  flex-flow: row;
  align-items: flex-end;
  gap: 12px;
  width: 100%;
  display: flex;
}

.filters-row__dates > .ios-safe-date, .filters-row__dates > label {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
}

.admin-wrapper--phone .filters-row__dates {
  width: 100%;
  flex-flow: row !important;
  gap: 10px !important;
}

.admin-wrapper--phone .filters-row__dates > .ios-safe-date, .admin-wrapper--phone .filters-row__dates > label {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
}

.admin-wrapper--phone .filters-row__dates .ios-safe-date__btn, .admin-wrapper--phone .filters-row__dates input[type="date"] {
  width: 100%;
  min-width: 0;
}

.reportes-filtros-actions {
  flex-flow: row;
  align-items: center;
  gap: 10px;
  display: flex;
}

.admin-wrapper--phone .card-header .reportes-filtros-actions, .admin-wrapper--phone .card-header .phone-filter-pair.reportes-filtros-actions {
  flex-flow: row !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 8px !important;
  width: 100% !important;
  display: grid !important;
}

.admin-wrapper--phone .card-header .reportes-filtros-actions > .btn, .admin-wrapper--phone .card-header .phone-filter-pair.reportes-filtros-actions > .btn {
  flex: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 44px !important;
}

@supports (-webkit-touch-callout: none) {
  .admin-wrapper--phone .card-header .reportes-filtros-actions, .admin-wrapper--phone .card-header .phone-filter-pair.reportes-filtros-actions, .card-header .reportes-filtros-actions, .card-header .phone-filter-pair.reportes-filtros-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    width: 100% !important;
    display: grid !important;
  }

  .admin-wrapper--phone .card-header .reportes-filtros-actions > .btn, .card-header .reportes-filtros-actions > .btn {
    flex: none !important;
    width: 100% !important;
  }
}

.admin-wrapper--phone .reportes-resumen-grid {
  box-sizing: border-box !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.admin-wrapper--phone .reportes-resumen-grid > * {
  box-sizing: border-box !important;
  min-width: 0 !important;
}

.admin-wrapper--phone .reportes-section {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.admin-wrapper--phone .reporte-general-movimientos, .admin-wrapper--phone .reporte-general-resumen, .admin-wrapper--phone .reportes-resumen-grid {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

:is(.admin-wrapper--phone .card:has(.reportes-filtros-actions), .admin-wrapper--phone .card:has(.reportes-resumen-grid)) {
  border-left: none;
  border-right: none;
  border-radius: 0;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

:is(.admin-wrapper--phone .card:has(.reportes-filtros-actions) .card-header, .admin-wrapper--phone .card:has(.reportes-filtros-actions) .filters-row) {
  padding-left: 12px !important;
  padding-right: 12px !important;
}

.admin-wrapper--phone .card:has(.reportes-resumen-grid) .reportes-resumen-grid {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.admin-wrapper--phone .card:has(.reportes-resumen-grid) .reportes-section {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.admin-wrapper--phone .reportes-movimientos-list, .admin-wrapper--phone .admin-show-on-phone.reportes-movimientos-list, .admin-wrapper--phone .reportes-page .admin-show-on-phone.reportes-movimientos-list {
  box-sizing: border-box !important;
  flex-direction: column !important;
  gap: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 8px 0 12px !important;
  display: flex !important;
}

.admin-wrapper--phone .reportes-movimientos-list__title {
  margin: 0;
  padding: 6px 12px 8px;
  font-size: .95rem;
  font-weight: 800;
}

.admin-wrapper--phone .reportes-movimientos-list > .phone-card, .admin-wrapper--phone .reportes-movimientos-list > .reportes-mov-card, .admin-wrapper--phone .reportes-page .reportes-movimientos-list .phone-card, .admin-wrapper--phone .reportes-page .reportes-movimientos-list .reportes-mov-card {
  width: 100% !important;
  max-width: 100% !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  background: #fff !important;
  border: none !important;
  border-top: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 10px 12px !important;
}

.admin-wrapper--phone .reportes-movimientos-list > .reportes-mov-card:first-of-type, .admin-wrapper--phone .reportes-movimientos-list > .phone-card:first-of-type {
  border-top: none !important;
}

.admin-wrapper--phone .reportes-movimientos-list > .phone-card + .phone-card, .admin-wrapper--phone .reportes-movimientos-list > .reportes-mov-card + .reportes-mov-card {
  border-top: 1px solid #e2e8f0 !important;
}

.reportes-mov-card__desc {
  color: var(--color-text);
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.3;
}

.reportes-mov-card__foot {
  box-sizing: border-box;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  margin-top: 2px;
  flex-flow: row !important;
  display: flex !important;
}

.reportes-mov-card__monto {
  font-variant-numeric: tabular-nums;
  flex: auto;
  min-width: 0;
  font-size: .95rem;
  font-weight: 800;
}

.reportes-mov-card__saldo {
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex: none;
  margin-left: auto;
  font-size: .8rem;
}

.admin-wrapper--phone .reportes-movimientos-list .phone-card__top {
  align-items: center;
  gap: 8px;
}

.admin-wrapper--phone .reportes-movimientos-list .phone-card__meta {
  font-size: .72rem !important;
}

.admin-wrapper--phone .reportes-movimientos-list .phone-card__badge, .admin-wrapper--phone .reportes-movimientos-list .reportes-mov-card__badge {
  border-radius: 999px !important;
  padding: 2px 7px !important;
  font-size: .68rem !important;
  font-weight: 700 !important;
}

.reportes-mov-card--ingreso .reportes-mov-card__badge {
  color: #047857 !important;
  background: #d1fae5 !important;
}

.reportes-mov-card--egreso .reportes-mov-card__badge {
  color: #b91c1c !important;
  background: #fee2e2 !important;
}

.reportes-mov-card--ingreso .reportes-mov-card__monto {
  color: #15803d !important;
}

.reportes-mov-card--egreso .reportes-mov-card__monto {
  color: #b91c1c !important;
}

.reportes-mov-card--egreso {
  background: #fff !important;
}

@supports (-webkit-touch-callout: none) {
  .admin-wrapper--phone .reportes-movimientos-list__title {
    padding: 6px 12px 8px !important;
    font-size: .9rem !important;
  }

  .admin-wrapper--phone .reportes-movimientos-list .reportes-mov-card, .admin-wrapper--phone .reportes-movimientos-list .phone-card {
    box-shadow: none !important;
    background: #fff !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    gap: 3px !important;
    padding: 9px 12px !important;
  }

  .admin-wrapper--phone .reportes-movimientos-list .reportes-mov-card__desc {
    font-size: .8rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
  }

  .admin-wrapper--phone .reportes-movimientos-list .reportes-mov-card__monto {
    font-size: .88rem !important;
  }

  .admin-wrapper--phone .reportes-movimientos-list .reportes-mov-card__saldo {
    font-size: .72rem !important;
  }

  .admin-wrapper--phone .reportes-movimientos-list .phone-card__meta {
    font-size: .68rem !important;
  }

  .admin-wrapper--phone .reportes-movimientos-list .phone-card__badge, .admin-wrapper--phone .reportes-movimientos-list .reportes-mov-card__badge {
    padding: 2px 6px !important;
    font-size: .62rem !important;
  }
}

.admin-wrapper--phone .reportes-total-caja {
  text-align: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  width: 100%;
  padding: 10px 12px;
  white-space: normal !important;
  margin-left: 0 !important;
}

.admin-wrapper--phone .admin-stat-strip {
  flex-direction: column;
  padding: 10px 14px !important;
}

.admin-wrapper--phone .admin-stat-badge {
  width: 100%;
}

.admin-wrapper--phone .modal-tabs {
  margin-left: 14px !important;
  margin-right: 14px !important;
}

.admin-wrapper--phone .modal-tab {
  text-align: center;
  flex: calc(50% - 6px);
  min-height: 44px;
}

.admin-wrapper--phone .admin-table-wrapper {
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
}

.admin-wrapper--phone .card:has(.admin-show-on-phone) {
  overflow: visible !important;
}

.admin-wrapper--phone .card:has(.phone-card) {
  overflow: visible !important;
}

html.panel-iphone .card:has(.admin-show-on-phone) {
  overflow: visible !important;
}

html.panel-iphone .card:has(.phone-card) {
  overflow: visible !important;
}

.admin-wrapper--phone .admin-table-wrapper:has(.admin-show-on-phone) {
  -webkit-overflow-scrolling: auto;
  overflow: visible !important;
}

html.panel-iphone .admin-table-wrapper:has(.admin-show-on-phone) {
  -webkit-overflow-scrolling: auto;
  overflow: visible !important;
}

.admin-wrapper--phone .admin-show-on-phone, .admin-wrapper--phone .phone-card, html.panel-iphone .admin-show-on-phone, html.panel-iphone .phone-card {
  touch-action: pan-y;
}

.admin-wrapper--phone .admin-table-wrapper:has( > .admin-table.admin-hide-on-phone):not(:has(.admin-show-on-phone)) {
  display: none !important;
}

.admin-wrapper--phone .admin-table {
  width: 100%;
  min-width: 0;
}

.admin-wrapper--phone .admin-col-hide-mobile, .admin-wrapper--phone .admin-hide-mobile {
  display: none !important;
}

.admin-wrapper--phone .admin-table .actions {
  flex-direction: column;
  align-items: stretch;
}

.admin-wrapper--phone .admin-table .actions .btn {
  width: 100%;
  min-height: 40px;
}

.admin-wrapper--phone .modal-overlay:not(.modal-overlay--phone-full):not(.modal-overlay--foto-lightbox):not(.modal-overlay--media-viewer) {
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  justify-content: center;
  align-items: center;
  padding: 12px;
  overflow: hidden auto;
}

.admin-wrapper--phone .modal-box {
  width: calc(100% - 24px);
  max-width: 100%;
  max-height: calc(100svh - 24px);
  margin: 12px auto;
  min-width: 0 !important;
}

html.panel-iphone .modal-overlay:not(.modal-overlay--phone-full):not(.modal-overlay--foto-lightbox):not(.modal-overlay--media-viewer) {
  -webkit-overflow-scrolling: touch;
  width: 100% !important;
  height: 100dvh !important;
  min-height: 0 !important;
  max-height: 100dvh !important;
  padding: max(10px, env(safe-area-inset-top, 0px)) 10px max(10px, env(safe-area-inset-bottom, 0px)) !important;
  box-sizing: border-box !important;
  touch-action: pan-y !important;
  overscroll-behavior: none !important;
  justify-content: center !important;
  align-items: center !important;
  inset: 0 0 auto !important;
  overflow: hidden auto !important;
}

html.panel-iphone .modal-box:not(.modal-box--phone-fullbleed), html.panel-iphone .modal-box--usuario:not(.modal-box--phone-fullbleed), html.panel-iphone .modal-box--wide:not(.modal-box--phone-fullbleed), html.panel-iphone .modal-box--persona:not(.modal-box--phone-fullbleed) {
  touch-action: pan-y;
  overscroll-behavior: contain;
  width: calc(100% - 20px) !important;
  min-width: 0 !important;
  max-width: 100% !important;
  max-height: calc(100svh - 20px) !important;
  margin: 0 auto !important;
}

html.panel-iphone .modal-box.modal-box--phone-fullbleed {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: none !important;
  margin: 0 !important;
}

html.panel-iphone .phone-main {
  touch-action: pan-y;
  overscroll-behavior-x: none !important;
  overflow-x: hidden !important;
}

html.panel-iphone .phone-persona-tabs, html.panel-iphone .dashboard-cash-chart-scroll, html.panel-iphone .dashboard-cash-totals-scroll, html.panel-iphone .admin-table-wrapper, html.panel-iphone [data-allow-h-scroll] {
  touch-action: pan-x;
}

html.panel-iphone .modal-box.modal-box--phone-fullbleed .admin-table-wrapper {
  max-width: 100%;
  touch-action: pan-y !important;
  overflow-x: hidden !important;
}

html.panel-iphone .modal-box.modal-box--phone-fullbleed [data-allow-h-scroll] {
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  touch-action: pan-x pan-y !important;
  overflow-x: auto !important;
}

html.panel-iphone .modal-box.modal-box--phone-fullbleed .modal-box__body {
  -webkit-overflow-scrolling: touch;
  touch-action: auto;
  overscroll-behavior-y: contain;
  overflow-y: scroll !important;
}

html.panel-iphone .modal-box > .modal-actions {
  padding: 12px 16px max(16px, env(safe-area-inset-bottom, 0px)) !important;
}

.modal-overlay.modal-overlay--phone-full {
  justify-content: stretch !important;
  align-items: stretch !important;
  margin: 0 !important;
  padding: 0 !important;
  inset: 0 !important;
}

.modal-box.modal-box--phone-fullbleed {
  box-sizing: border-box !important;
  z-index: 101 !important;
  border-radius: 0 !important;
  flex-direction: column !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: none !important;
  margin: 0 !important;
  display: flex !important;
  position: fixed !important;
  inset: 0 !important;
  overflow-x: hidden !important;
}

.modal-box.modal-box--phone-fullbleed .modal-box__body {
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior-x: none;
  flex: auto;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding: max(16px, env(safe-area-inset-top, 0px)) 14px 16px !important;
  overflow-x: hidden !important;
}

.modal-box.modal-box--phone-fullbleed .form-group, .modal-box.modal-box--phone-fullbleed .form-group label, .modal-box.modal-box--phone-fullbleed .form-group input, .modal-box.modal-box--phone-fullbleed .form-group select, .modal-box.modal-box--phone-fullbleed .form-group textarea, .modal-box.modal-box--phone-fullbleed .form-group button {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

.modal-box.modal-box--phone-fullbleed .form-group label {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.modal-box.modal-box--phone-fullbleed > .modal-actions {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
}

.admin-wrapper--phone input[type="date"], .admin-wrapper--phone input[type="text"], .admin-wrapper--phone input[type="number"], .admin-wrapper--phone input[type="password"], .admin-wrapper--phone input[type="search"], .admin-wrapper--phone select, .admin-wrapper--phone textarea {
  font-size: 16px;
}

.admin-show-on-phone {
  display: none !important;
}

.admin-wrapper--phone .admin-hide-on-phone {
  visibility: hidden !important;
  pointer-events: none !important;
  border: none !important;
  height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: none !important;
  overflow: hidden !important;
}

.admin-wrapper--phone .admin-show-on-phone {
  flex-direction: column;
  gap: 10px;
  padding: 10px 14px 14px;
  display: flex !important;
}

.admin-wrapper--phone .eventos-filters--phone {
  flex-direction: column !important;
  flex: none !important;
  place-content: flex-start !important;
  align-items: stretch !important;
  gap: 10px !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  display: flex !important;
}

.admin-wrapper--phone .eventos-filters--phone > label {
  flex: none !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
}

.admin-wrapper--phone .eventos-phone-list {
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 8px 14px 14px;
  display: flex;
}

.admin-wrapper--phone .personas-phone-list, .admin-wrapper--phone .usuarios-phone-list {
  box-sizing: border-box;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 8px 14px 14px;
  display: flex;
}

.admin-wrapper--phone .card--personas-phone {
  box-shadow: none !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

.personas-phone-toolbar {
  box-sizing: border-box !important;
  flex-wrap: nowrap !important;
  grid-template-rows: 44px !important;
  grid-template-columns: minmax(0, 1fr) 44px !important;
  place-items: center stretch !important;
  gap: 0 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 12px 16px 10px !important;
  display: grid !important;
}

.personas-phone-toolbar__field {
  box-sizing: border-box !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  flex-flow: row !important;
  grid-area: 1 / 1 !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 44px !important;
  padding: 0 12px !important;
  display: flex !important;
}

.personas-phone-toolbar__icon {
  color: #94a3b8 !important;
  flex: none !important;
  display: block !important;
}

.personas-phone-toolbar__input {
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  box-shadow: none !important;
  color: var(--color-text) !important;
  appearance: none !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  outline: none !important;
  flex: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 16px !important;
}

.personas-phone-toolbar__input::placeholder {
  color: #94a3b8 !important;
}

.personas-phone-toolbar__add {
  box-sizing: border-box !important;
  border-radius: 10px !important;
  flex: none !important;
  grid-area: 1 / 2 !important;
  justify-content: center !important;
  align-items: center !important;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  display: inline-flex !important;
}

.personas-phone-toolbar__add svg {
  flex-shrink: 0 !important;
  display: block !important;
}

html.panel-iphone .personas-phone-toolbar, .admin-wrapper--phone .personas-phone-toolbar {
  grid-template-rows: 44px !important;
  grid-template-columns: minmax(0, 1fr) 44px !important;
  column-gap: 12px !important;
  width: 100% !important;
  padding: 14px 16px 12px !important;
  display: grid !important;
}

html.panel-iphone .personas-phone-toolbar__field, .admin-wrapper--phone .personas-phone-toolbar__field {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  height: 44px !important;
}

html.panel-iphone .personas-phone-toolbar__input, .admin-wrapper--phone .personas-phone-toolbar__input {
  appearance: none !important;
  box-shadow: none !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-size: 16px !important;
}

html.panel-iphone .personas-phone-toolbar__add, .admin-wrapper--phone .personas-phone-toolbar__add {
  border-radius: 10px !important;
  width: 44px !important;
  height: 44px !important;
}

.admin-wrapper--phone .card--personas-phone .personas-phone-list {
  gap: 14px !important;
  padding: 4px 16px 20px !important;
}

html.panel-iphone .card--personas-phone .personas-phone-list {
  gap: 16px !important;
  padding: 4px 18px 22px !important;
}

.admin-wrapper--phone .card--usuarios-phone {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: visible;
}

.usuarios-phone-toolbar {
  box-sizing: border-box !important;
  flex-wrap: nowrap !important;
  grid-template-rows: 44px !important;
  grid-template-columns: minmax(0, 1fr) 44px !important;
  place-items: center stretch !important;
  gap: 0 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 12px 16px 10px !important;
  display: grid !important;
}

.usuarios-phone-toolbar__field {
  box-sizing: border-box !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  flex-flow: row !important;
  grid-area: 1 / 1 !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 44px !important;
  padding: 0 12px !important;
  display: flex !important;
}

.usuarios-phone-toolbar__icon {
  color: #94a3b8 !important;
  flex: none !important;
  display: block !important;
}

.usuarios-phone-toolbar__input {
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  box-shadow: none !important;
  color: var(--color-text) !important;
  appearance: none !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  outline: none !important;
  flex: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 16px !important;
}

.usuarios-phone-toolbar__input::placeholder {
  color: #94a3b8 !important;
}

.usuarios-phone-toolbar__add {
  box-sizing: border-box !important;
  border-radius: 10px !important;
  flex: none !important;
  grid-area: 1 / 2 !important;
  justify-content: center !important;
  align-items: center !important;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  display: inline-flex !important;
}

.usuarios-phone-toolbar__add svg {
  flex-shrink: 0 !important;
  display: block !important;
}

html.panel-iphone .usuarios-phone-toolbar, .admin-wrapper--phone .usuarios-phone-toolbar {
  grid-template-rows: 44px !important;
  grid-template-columns: minmax(0, 1fr) 44px !important;
  column-gap: 12px !important;
  width: 100% !important;
  padding: 14px 16px 12px !important;
  display: grid !important;
}

html.panel-iphone .usuarios-phone-toolbar__field, .admin-wrapper--phone .usuarios-phone-toolbar__field {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  height: 44px !important;
}

html.panel-iphone .usuarios-phone-toolbar__input, .admin-wrapper--phone .usuarios-phone-toolbar__input {
  appearance: none !important;
  box-shadow: none !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-size: 16px !important;
}

html.panel-iphone .usuarios-phone-toolbar__add, .admin-wrapper--phone .usuarios-phone-toolbar__add {
  border-radius: 10px !important;
  width: 44px !important;
  height: 44px !important;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.admin-wrapper--phone .card--usuarios-phone .card-header {
  padding: 12px 16px 8px !important;
}

.admin-wrapper--phone .card--usuarios-phone .usuarios-phone-list {
  box-sizing: border-box !important;
  flex-direction: column !important;
  gap: 14px !important;
  margin: 0 !important;
  padding: 12px 16px 20px !important;
  display: flex !important;
}

.admin-wrapper--phone .card--usuarios-phone .phone-depto-group-head {
  border: 1px solid var(--color-border) !important;
  box-sizing: border-box !important;
  border-radius: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 11px 14px 11px 16px !important;
}

.admin-wrapper--phone .card--usuarios-phone .phone-card {
  box-sizing: border-box !important;
  background: #fff !important;
  border-radius: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 14px !important;
}

html.panel-iphone .card--usuarios-phone .usuarios-phone-list {
  gap: 16px !important;
  padding: 14px 18px 22px !important;
}

html.panel-iphone .card--usuarios-phone .phone-depto-group-head {
  border-radius: 10px !important;
  padding: 12px 14px 12px 16px !important;
}

html.panel-iphone .card--usuarios-phone .card-header {
  padding: 14px 18px 10px !important;
}

.admin-wrapper--phone .card--cobros-phone {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: visible;
}

.cobros-phone-toolbar {
  box-sizing: border-box;
  border-bottom: 1px solid var(--color-border);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 12px;
  padding: 12px 14px 10px;
  display: grid;
}

.cobros-phone-toolbar__total {
  color: #0f7a3f;
  background: #eafff2;
  border: 1px solid #7ad9a1;
  border-radius: 10px;
  min-width: 0;
  padding: 8px 12px;
}

.cobros-phone-toolbar__total-label {
  letter-spacing: .02em;
  text-transform: uppercase;
  opacity: .85;
  font-size: .7rem;
  font-weight: 700;
  display: block;
}

.cobros-phone-toolbar__total-value {
  font-variant-numeric: tabular-nums;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.15;
  display: block;
}

.cobros-phone-toolbar__actions {
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  display: flex;
}

.cobros-phone-toolbar__more, .cobros-phone-toolbar__add {
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  line-height: 1;
  border-radius: 10px !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  display: inline-flex !important;
}

.cobros-phone-tools {
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 8px;
  padding-top: 2px;
  display: flex;
}

.cobros-phone-tools .btn {
  flex: calc(50% - 8px);
  min-height: 40px;
}

.admin-wrapper--phone .filters-row--cobros-phone {
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 10px 12px;
  margin: 0 !important;
  padding: 12px 14px 14px !important;
  display: grid !important;
}

.admin-wrapper--phone .filters-row--cobros-phone > .dash-m-chips--cobros {
  grid-column: 1 / -1;
}

.admin-wrapper--phone .filters-row--cobros-phone label {
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  margin: 0;
  font-size: .8rem;
  font-weight: 600;
  display: flex;
}

.admin-wrapper--phone .filters-row--cobros-phone select, .admin-wrapper--phone .filters-row--cobros-phone input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  font-size: 16px !important;
}

.cobros-phone-list {
  box-sizing: border-box;
  flex-direction: column;
  gap: 12px;
  padding: 8px 14px 16px;
  display: flex;
}

.cobros-phone-list .phone-depto-group-head--in-card {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  margin: 4px 0 0;
  padding: 10px 12px;
  background: inherit !important;
}

.cobros-phone-comprobante {
  border: 1px solid var(--color-border);
  background: var(--color-bg, #f8fafc);
  cursor: pointer;
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
  border-radius: 10px;
  align-items: center;
  gap: 10px;
  margin: 4px 0 2px;
  padding: 8px;
  display: flex;
}

.cobros-phone-comprobante img {
  object-fit: cover;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
}

.cobros-phone-comprobante span {
  color: var(--color-primary, #2563eb);
  font-size: .88rem;
  font-weight: 600;
}

.admin-wrapper--phone .card--cobros-phone .phone-card__actions {
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-wrapper--phone .card--cobros-phone .phone-card__actions .btn {
  flex: auto;
  min-width: calc(50% - 6px);
  min-height: 40px;
}

html.panel-iphone .card--cobros-phone .cobros-phone-list {
  gap: 14px !important;
  padding: 8px 16px 20px !important;
}

.admin-wrapper--phone .card--egresos-phone {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: visible;
}

.egresos-phone-toolbar {
  box-sizing: border-box;
  border-bottom: 1px solid var(--color-border);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 12px;
  padding: 12px 14px 10px;
  display: grid;
}

.egresos-phone-toolbar__total {
  color: #9a3412;
  background: #fff4e8;
  border: 1px solid #f0b27a;
  border-radius: 10px;
  min-width: 0;
  padding: 8px 12px;
}

.egresos-phone-toolbar__total-label {
  letter-spacing: .02em;
  text-transform: uppercase;
  opacity: .85;
  font-size: .7rem;
  font-weight: 700;
  display: block;
}

.egresos-phone-toolbar__total-value {
  font-variant-numeric: tabular-nums;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.15;
  display: block;
}

.egresos-phone-toolbar__actions {
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  display: flex;
}

.egresos-phone-toolbar__more, .egresos-phone-toolbar__add {
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  line-height: 1;
  border-radius: 10px !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  display: inline-flex !important;
}

.egresos-phone-tools {
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 8px;
  padding-top: 2px;
  display: flex;
}

.egresos-phone-tools .btn {
  flex: 100%;
  min-height: 40px;
}

.admin-wrapper--phone .filters-row--egresos-phone {
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 12px 14px 14px !important;
  display: flex !important;
}

.admin-wrapper--phone .filters-row--egresos-phone .egresos-filters-pair {
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 10px 12px;
  width: 100%;
  display: grid;
}

.admin-wrapper--phone .filters-row--egresos-phone .egresos-filters-pair > label {
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-size: .82rem;
  display: flex;
  width: auto !important;
  min-width: 0 !important;
}

.admin-wrapper--phone .filters-row--egresos-phone select, .admin-wrapper--phone .filters-row--egresos-phone input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  font-size: 16px;
}

.egresos-modal-fields {
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
  display: flex;
}

.egresos-modal-fields__full {
  min-width: 0;
}

.egresos-modal-fields__full select {
  width: 100%;
  min-width: 0;
}

.egresos-tipo-fecha-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  width: 100%;
  min-width: 0;
  display: grid;
}

.egresos-tipo-fecha-row__tipo, .egresos-tipo-fecha-row .ios-safe-date {
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: 0;
  display: flex;
}

.egresos-tipo-fecha-row__tipo > label, .egresos-tipo-fecha-row .ios-safe-date__label {
  margin: 0;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.25;
  display: block;
}

.egresos-tipo-fecha-row__tipo select, .egresos-tipo-fecha-row .ios-safe-date--desktop input[type="date"], .egresos-tipo-fecha-row .ios-safe-date--phone .ios-safe-date__btn {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 40px;
  min-height: 40px;
}

.egresos-comp-reparto-row {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  min-width: 0;
  margin-top: 8px;
  display: grid;
}

.egresos-comp-reparto-row__file {
  display: none;
}

.egresos-comp-reparto-row__combo {
  min-width: 0;
}

.egresos-comp-icon-btn {
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  display: inline-flex;
}

.egresos-monto-block > label {
  width: 100%;
  margin-bottom: 6px;
  display: block;
}

.egresos-monto-row {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  width: 100%;
  min-width: 0;
  display: grid;
}

.egresos-monto-row--split {
  grid-template-columns: minmax(0, 30%) minmax(0, 70%);
  align-items: center;
  gap: 8px;
}

.egresos-monto-row__input {
  width: 100%;
  min-width: 0;
}

.egresos-monto-row__tabla {
  min-width: 0;
}

.egresos-monto-mini {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  line-height: 1.2;
}

.egresos-monto-mini td {
  vertical-align: baseline;
  padding: 1px 4px;
}

.egresos-monto-mini td:first-child {
  color: var(--color-text-muted);
  white-space: nowrap;
  padding-left: 0;
}

.egresos-monto-mini td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-right: 0;
  font-weight: 700;
}

.egresos-monto-mini__hint {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-muted);
  font-weight: 400;
}

.egresos-monto-mini__preview {
  margin-top: 4px;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 8px !important;
  font-size: 11px !important;
}

.egreso-concepto-textarea {
  box-sizing: border-box;
  resize: vertical;
  min-width: 0;
  min-height: 5.2em;
  display: block;
  width: 100% !important;
  max-width: 100% !important;
}

.lote-header-title {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
  display: flex;
}

.lote-header-title h1 {
  margin: 0;
}

.lote-file-input {
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

.lote-file-drop {
  border: 1px dashed var(--color-border);
  background: var(--color-bg, #f8fafc);
  border-radius: 12px;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 16px;
  display: flex;
  position: relative;
}

.lote-file-btn {
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  min-height: 48px;
  display: inline-flex;
}

.lote-file-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.lote-file-hint {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

.lote-drive {
  gap: 10px;
  display: grid;
}

.lote-drive-crumbs {
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  display: flex;
}

.lote-drive-crumbs__sep {
  color: var(--color-text-muted);
  margin: 0 2px;
}

.lote-drive-crumbs__btn {
  appearance: none;
  font: inherit;
  color: #2563eb;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-weight: 700;
}

.lote-drive-crumbs__btn:disabled {
  color: var(--color-text);
  cursor: default;
}

.lote-drive-grid {
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 12px;
  max-height: min(62vh, 520px);
  padding: 4px 2px 8px;
  display: grid;
  overflow: auto;
}

.lote-drive-tile {
  appearance: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  background: #fff;
  border: 1px solid #0000;
  border-radius: 12px;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 8px;
  display: flex;
}

.lote-drive-tile:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.lote-drive-tile--on {
  background: #f0f9ff;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 2px #0ea5e940;
}

.lote-drive-tile__preview {
  background: #f1f5f9;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  height: 96px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.lote-drive-tile__preview img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.lote-drive-tile--folder .lote-drive-tile__preview {
  background: #fff8e1;
}

.lote-drive-tile__check {
  color: #fff;
  background: #0284c7;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 22px;
  height: 22px;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  position: absolute;
  top: 6px;
  left: 6px;
}

.lote-drive-tile__name {
  -webkit-line-clamp: 2;
  word-break: break-word;
  -webkit-box-orient: vertical;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  overflow: hidden;
}

.modal-overlay.lote-preview-overlay {
  justify-content: stretch !important;
  align-items: stretch !important;
  margin: 0 !important;
  padding: 0 !important;
}

.modal-box.lote-preview-modal {
  box-sizing: border-box;
  border-radius: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: none !important;
  margin: 0 !important;
}

.lote-preview-modal .modal-box__body {
  flex-direction: column;
  display: flex;
  overflow: hidden;
}

.lote-preview-table-wrap {
  flex: auto;
  width: 100%;
  min-height: 0;
  overflow: auto;
}

.lote-preview-table {
  table-layout: fixed;
  width: 100%;
}

.lote-preview-table > thead > tr > th:first-child, .lote-preview-table > tbody > tr > td.lote-preview-foto {
  width: 64px;
  max-width: 64px;
  padding-left: 8px;
  padding-right: 8px;
}

.lote-preview-table > thead > tr > th, .lote-preview-table > tbody > tr > td {
  vertical-align: top;
  padding: 10px 12px;
}

.lote-preview-table .egresos-monto-mini {
  width: auto;
  max-width: 100%;
  height: auto;
  line-height: 1.15;
}

.lote-preview-table .egresos-monto-mini td {
  vertical-align: baseline;
  height: auto;
  line-height: 1.15;
  border: none !important;
  padding: 0 6px 0 0 !important;
  font-size: 11px !important;
}

.lote-preview-tipo-fecha {
  width: 28%;
  min-width: 280px;
}

.lote-preview-tipo-fecha .egresos-tipo-fecha-row {
  gap: 8px;
}

.lote-preview-concepto {
  width: 36%;
  min-width: 220px;
}

.lote-preview-concepto .form-group > label, .lote-preview-monto .egresos-monto-block > label, .lote-preview-tipo-fecha .egresos-tipo-fecha-row__tipo > label, .lote-preview-tipo-fecha .ios-safe-date__label {
  height: 1.25em;
  margin: 0 0 6px;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.25;
}

.lote-preview-concepto .egreso-concepto-textarea {
  height: 4.8em;
  min-height: 4.8em;
  margin: 0;
}

.lote-preview-monto {
  width: 38%;
  min-width: 340px;
}

.lote-preview-monto .egresos-monto-row--split {
  grid-template-columns: minmax(72px, 22%) minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
  min-height: 4.8em;
}

.lote-preview-monto .egresos-monto-row__input {
  box-sizing: border-box;
  align-self: start;
  height: 40px;
  min-height: 40px;
}

.lote-preview-monto .egresos-monto-row__tabla {
  align-items: stretch;
  min-width: 0;
  min-height: 4.8em;
  display: flex;
}

.lote-preview-monto .egresos-monto-mini {
  width: 100%;
  height: 4.8em;
}

.lote-preview-monto .egresos-monto-mini td {
  vertical-align: middle;
  height: 1.6em;
}

.lote-preview-acciones {
  flex-direction: column;
  flex-shrink: 0;
  justify-content: stretch;
  gap: 6px;
  width: 108px;
  height: 4.8em;
  display: flex;
}

.lote-preview-acciones .btn {
  white-space: nowrap;
  flex: 1;
  min-height: 0;
  height: auto !important;
  padding: 0 8px !important;
  font-size: 12px !important;
}

.egreso-ia-uso__link {
  appearance: none;
  color: #2563eb;
  font: inherit;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  font-weight: 700;
  text-decoration: underline;
}

.egreso-ia-uso__link:hover {
  color: #1d4ed8;
}

.egreso-ia-uso-picker {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  display: flex;
}

.egresos-recibo-chip {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  font-size: 13px;
  display: flex;
}

.egreso-recibo-picker-list {
  flex-direction: column;
  gap: 8px;
  max-height: 420px;
  display: flex;
  overflow: auto;
}

.egreso-recibo-picker-item {
  border: 1px solid var(--color-border, #e2e8f0);
  width: 100%;
  color: inherit;
  background: #fff;
  border-radius: 10px;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  display: flex;
}

.egreso-recibo-picker-item:hover {
  background: #f8fbff;
  border-color: #93c5fd;
}

.egreso-recibo-picker-item--pagado {
  opacity: .85;
}

.egreso-recibo-picker-thumb {
  cursor: zoom-in;
  background: none;
  border: none;
  border-radius: 8px;
  flex-shrink: 0;
  padding: 0;
  line-height: 0;
}

.egreso-recibo-picker-select {
  text-align: left;
  cursor: pointer;
  min-width: 0;
  color: inherit;
  background: none;
  border: none;
  flex: 1;
  padding: 0;
}

.egreso-recibo-picker-select:disabled {
  cursor: default;
}

.egreso-recibo-picker-empty {
  color: #64748b;
  text-align: center;
  background: #f1f5f9;
  border-radius: 8px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  font-size: 11px;
  display: flex;
}

.egresos-modal-fields__triple {
  box-sizing: border-box;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .95fr) auto;
  align-items: end;
  gap: 10px 12px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: grid;
}

.egresos-modal-fields__triple--fecha-only {
  grid-template-columns: minmax(0, 1fr);
}

.egresos-modal-fields__triple--fecha-estado {
  grid-template-columns: minmax(0, 1fr) auto;
}

.egresos-modal-fields__hora {
  color: var(--color-text);
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  font-size: .85rem;
  font-weight: 600;
  display: flex;
}

.egresos-modal-fields__hora input[type="time"] {
  box-sizing: border-box;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  appearance: none;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: .95rem;
}

.egresos-modal-fields__estado {
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding-bottom: 2px;
  display: flex;
}

.egresos-modal-fields__estado-label {
  font-size: .85rem;
  font-weight: 600;
}

.egresos-modal-fields__toggle {
  flex-wrap: nowrap;
  gap: 8px;
  min-height: 40px;
}

.modal-box.modal-box--phone-fullbleed .egresos-modal-fields .form-group select, .admin-wrapper--phone .egresos-modal-fields .form-group select {
  appearance: none !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-sm) !important;
  color: #007aff !important;
  background-color: #f1f5f9 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='18' viewBox='0 0 12 18'%3E%3Cpath fill='%23007aff' d='M6 2L1 7h10L6 2zm0 14l5-5H1l5 5z'/%3E%3C/svg%3E") !important;
  background-position: right 10px center !important;
  background-repeat: no-repeat !important;
  background-size: 12px 18px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 6px 32px 6px 10px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
}

.modal-box.modal-box--phone-fullbleed .egresos-modal-fields__hora input[type="time"], .admin-wrapper--phone .egresos-modal-fields__hora input[type="time"] {
  appearance: none !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-sm) !important;
  color: #007aff !important;
  background: #f1f5f9 !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 6px 10px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
}

.modal-box.modal-box--phone-fullbleed .egresos-modal-fields .ios-safe-date--phone, .admin-wrapper--phone .egresos-modal-fields .ios-safe-date--phone {
  width: 100% !important;
  max-width: 100% !important;
}

.modal-box.modal-box--phone-fullbleed .egresos-modal-fields__triple, .admin-wrapper--phone .egresos-modal-fields__triple {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.modal-box.modal-box--phone-fullbleed .egresos-modal-fields__triple--fecha-only, .admin-wrapper--phone .egresos-modal-fields__triple--fecha-only {
  grid-template-columns: minmax(0, 1fr);
}

.modal-box.modal-box--phone-fullbleed .egresos-modal-fields__triple--fecha-estado, .admin-wrapper--phone .egresos-modal-fields__triple--fecha-estado {
  grid-template-columns: minmax(0, 1fr) auto;
}

html.panel-iphone .egresos-modal-fields .form-group select, html.panel-iphone .egresos-modal-fields__hora input[type="time"], .modal-box.modal-box--phone-fullbleed .egresos-modal-fields .form-group select, .modal-box.modal-box--phone-fullbleed .egresos-modal-fields__hora input[type="time"], .admin-wrapper--phone .egresos-modal-fields .form-group select, .admin-wrapper--phone .egresos-modal-fields__hora input[type="time"] {
  font-size: 16px !important;
}

@media (max-width: 380px) {
  .egresos-modal-fields__triple {
    gap: 8px;
  }
}

.egresos-accordion {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 10px;
  margin: 0 0 12px;
  overflow: hidden;
}

.egresos-accordion__head {
  background: var(--color-bg);
  width: 100%;
  color: var(--color-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  border: none;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  font-size: .92rem;
  font-weight: 600;
  display: flex;
}

.egresos-accordion__head:active {
  opacity: .9;
}

.egresos-accordion__body {
  border-top: 1px solid var(--color-border);
  box-sizing: border-box;
  padding: 12px 14px;
}

.form-group.egresos-accordion {
  margin-bottom: 14px;
  padding: 0;
}

.egresos-phone-list {
  box-sizing: border-box;
  flex-direction: column;
  gap: 12px;
  padding: 12px 14px 18px;
  display: flex;
}

.egresos-phone-fotos {
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
  display: flex;
}

.egresos-phone-card-actions {
  justify-content: flex-end;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  display: flex !important;
}

.egresos-phone-icon-btn {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  width: 42px;
  min-width: 42px;
  height: 42px;
  color: var(--color-text);
  cursor: pointer;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: inline-flex;
}

.egresos-phone-icon-btn--ghost:hover {
  background: var(--color-bg);
}

.egresos-phone-icon-btn--danger {
  color: #b91c1c;
  border-color: #fecaca;
}

.egresos-phone-icon-btn--danger:hover {
  background: #fef2f2;
}

.admin-wrapper--phone .card--egresos-phone .phone-card__actions {
  margin-top: 8px;
}

html.panel-iphone .card--egresos-phone .egresos-phone-list {
  gap: 14px !important;
  padding: 8px 16px 20px !important;
}

.egresos-depto-detalle-list {
  flex-direction: column;
  gap: 10px;
  display: flex;
}

.egresos-depto-detalle-item {
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  border-radius: 10px;
  padding: 10px 12px;
}

.egresos-depto-detalle-item__top {
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  display: flex;
}

.egresos-depto-detalle-item__monto {
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  font-weight: 700;
}

.egresos-depto-detalle-item__aux {
  color: var(--color-text-muted);
  font-size: .85em;
  font-weight: 500;
}

.egresos-depto-detalle-item__meta {
  color: var(--color-text-muted);
  margin-top: 4px;
  font-size: .82rem;
}

.phone-depto-group-head {
  border: 1px solid var(--color-border);
  color: var(--color-text);
  box-sizing: border-box;
  border-radius: 10px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: .82rem;
  font-weight: 700;
  display: flex;
}

.phone-depto-group-head--in-card {
  border: none;
  border-radius: 0;
  margin: 0;
  padding: 0 0 8px;
  background: none !important;
}

.phone-depto-group-head__dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 8px;
  min-width: 8px;
  height: 8px;
  min-height: 8px;
  display: inline-block;
}

.phone-card--depto-tabs {
  gap: 10px;
}

.phone-persona-tabs {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  flex-flow: row;
  gap: 8px;
  max-width: 100%;
  margin: 0;
  padding-bottom: 2px;
  display: flex;
  overflow-x: auto;
}

.phone-persona-tab {
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  text-overflow: ellipsis;
  flex: none;
  max-width: 180px;
  margin: 0;
  line-height: 1.2;
  overflow: hidden;
  appearance: none !important;
  color: #0f172a !important;
  white-space: nowrap !important;
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 999px !important;
  padding: 8px 14px !important;
  font-size: .82rem !important;
  font-weight: 600 !important;
}

.phone-persona-tab--active {
  color: #fff !important;
  background: #0ea5e9 !important;
  border-color: #0284c7 !important;
}

.phone-persona-tab-panel {
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: 10px;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  display: flex;
}

html.panel-iphone .phone-persona-tab {
  appearance: none !important;
  color: #0f172a !important;
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 999px !important;
}

html.panel-iphone .phone-persona-tab--active {
  color: #fff !important;
  background: #0ea5e9 !important;
  border-color: #0284c7 !important;
}

.phone-card-list {
  flex-direction: column;
  gap: 12px;
  padding: 0 16px 16px;
  display: flex;
}

.admin-wrapper--phone .card--alertas-phone .alertas-phone-list.phone-card-list, html.panel-iphone .card--alertas-phone .alertas-phone-list.phone-card-list {
  padding: 16px;
}

.phone-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  border-radius: 12px;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  display: flex;
}

.admin-wrapper--phone .alertas-phone-card.phone-card, html.panel-iphone .alertas-phone-card.phone-card {
  padding: 18px 14px 14px;
}

.phone-card__top {
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  display: flex;
}

.phone-card__title {
  color: var(--color-text);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

.phone-card__meta {
  color: var(--color-text-muted);
  font-size: .82rem;
}

.phone-card__value {
  font-variant-numeric: tabular-nums;
  color: #0f766e;
  font-size: 1.2rem;
  font-weight: 800;
}

.phone-card__row {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: .9rem;
  display: flex;
}

.phone-card__row--2 {
  gap: 10px;
}

.phone-card__cell {
  flex-direction: row;
  flex: 1 1 0;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  display: flex;
}

.phone-card__cell > span:first-child {
  color: var(--color-text-muted);
  font-size: inherit;
  flex-shrink: 0;
  font-weight: 500;
}

.phone-card__cell > span:last-child {
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: right;
  min-width: 0;
  font-weight: 600;
  line-height: 1.3;
}

.phone-card__row:not(.phone-card__row--2) > span:first-child {
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.phone-card__row:not(.phone-card__row--2) > span:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  word-break: break-word;
  flex: auto;
  min-width: 0;
  font-weight: 600;
}

.phone-card__row .telefono-action-link {
  font-weight: 700;
}

.phone-card__actions {
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  padding-top: 10px;
  display: flex;
}

.phone-card__actions .btn {
  flex: auto;
  min-height: 42px;
}

.phone-card__badge {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: .72rem;
  font-weight: 700;
  display: inline-block;
}

.phone-card__empty {
  text-align: center;
  color: var(--color-text-muted);
  padding: 24px 14px;
  font-size: .95rem;
}

.phone-card__thumb {
  object-fit: cover;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
}

.phone-filter-pair {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 20px;
  display: flex;
}

.phone-filter-pair--dates > .ios-safe-date {
  min-width: 0;
}

.admin-wrapper--phone .phone-filter-pair, .admin-wrapper--phone .phone-filter-pair--dates {
  box-sizing: border-box;
  flex-wrap: nowrap;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  display: grid !important;
}

.flujo-caja-consultar-slot {
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  display: flex;
}

.flujo-caja-consultar-slot__label {
  visibility: hidden;
  height: 1.2em;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.2;
  display: block;
}

.flujo-caja-consultar-slot .btn {
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
}

.admin-wrapper--phone .phone-filter-pair--depto-consultar {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  align-items: end !important;
  gap: 12px !important;
  width: 100% !important;
  display: grid !important;
}

.admin-wrapper--phone .phone-filter-pair--depto-consultar > label, .admin-wrapper--phone .phone-filter-pair--depto-consultar > .flujo-caja-consultar-slot {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.admin-wrapper--phone .phone-filter-pair--depto-consultar select, .admin-wrapper--phone .phone-filter-pair--depto-consultar .btn {
  box-sizing: border-box !important;
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
}

@supports (-webkit-touch-callout: none) {
  .admin-wrapper--phone .phone-filter-pair--depto-consultar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    width: 100% !important;
    display: grid !important;
  }

  .admin-wrapper--phone .phone-filter-pair--depto-consultar .btn {
    width: 100% !important;
    min-height: 44px !important;
  }
}

.admin-wrapper--phone .phone-filter-pair > label, .admin-wrapper--phone .phone-filter-pair > .ios-safe-date, .admin-wrapper--phone .phone-filter-pair--dates > .ios-safe-date {
  gap: 6px;
  box-sizing: border-box !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  display: flex !important;
}

.admin-wrapper--phone .phone-filter-pair select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 40px;
  min-height: 40px;
  font-size: 16px;
}

.admin-wrapper--phone .asistencia-list-filters {
  flex-direction: column;
  align-items: stretch !important;
  gap: 14px !important;
  display: flex !important;
}

.admin-wrapper--phone .asistencia-list-filters .phone-filter-pair select {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: #007aff;
  background: #f1f5f9;
  padding: 10px 12px;
  height: 52px !important;
  min-height: 52px !important;
}

@supports (-webkit-touch-callout: none) {
  .admin-wrapper--phone .phone-filter-pair, .admin-wrapper--phone .phone-filter-pair--dates {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    width: 100% !important;
    display: grid !important;
  }

  .admin-wrapper--phone .phone-filter-pair--dates > .ios-safe-date, .admin-wrapper--phone .phone-filter-pair--dates > .ios-safe-date--phone {
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .admin-wrapper--phone .phone-filter-pair--dates .ios-safe-date__btn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

.ios-safe-date {
  color: var(--color-text);
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  font-size: .85rem;
  font-weight: 600;
  display: flex;
}

.ios-safe-date__label {
  font-weight: 600;
}

.ios-safe-date--desktop input[type="date"] {
  box-sizing: border-box;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  font-size: .9rem;
  display: block;
}

.ios-safe-date--phone {
  gap: 6px;
  max-width: 100%;
  position: relative;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  display: flex !important;
}

.ios-safe-date--phone .ios-safe-date__btn {
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  gap: 8px;
  box-sizing: border-box !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-sm) !important;
  color: #007aff !important;
  text-align: left !important;
  appearance: none !important;
  background: #f1f5f9 !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 6px 10px !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  display: flex !important;
}

.ios-safe-date--phone .ios-safe-date__value {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #007aff !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
}

.ios-safe-date--phone .ios-safe-date__chev {
  flex-shrink: 0;
  width: 12px;
  height: 18px;
  position: relative;
}

.ios-safe-date--phone .ios-safe-date__chev:before, .ios-safe-date--phone .ios-safe-date__chev:after {
  content: "";
  border-left: 5px solid #0000;
  border-right: 5px solid #0000;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.ios-safe-date--phone .ios-safe-date__chev:before {
  border-bottom: 5px solid #007aff;
  top: 1px;
}

.ios-safe-date--phone .ios-safe-date__chev:after {
  border-top: 5px solid #007aff;
  bottom: 1px;
}

.phone-cal {
  z-index: 10000;
  justify-content: center;
  align-items: flex-end;
  display: flex;
  position: fixed;
  inset: 0;
}

.phone-cal__backdrop {
  cursor: pointer;
  background: #0f172a73;
  border: none;
  position: absolute;
  inset: 0;
}

.phone-cal__sheet {
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-radius: 16px 16px 0 0;
  position: relative;
  box-shadow: 0 -8px 32px #0000002e;
}

.phone-cal__head {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 1.05rem;
  display: flex;
}

.phone-cal__nav {
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  cursor: pointer;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  line-height: 1;
}

.phone-cal__dows {
  text-align: center;
  color: var(--color-text-muted);
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
  font-size: .75rem;
  font-weight: 700;
  display: grid;
}

.phone-cal__grid {
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  display: grid;
}

.phone-cal__empty {
  height: 40px;
}

.phone-cal__day {
  height: 40px;
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 10px;
  font-weight: 600;
}

.phone-cal__day.is-selected {
  background: var(--color-primary);
  color: #fff;
}

.phone-cal__cancel {
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  width: 100%;
  height: 44px;
  font: inherit;
  cursor: pointer;
  border-radius: 10px;
  margin-top: 12px;
  font-weight: 600;
}

.admin-wrapper--phone .ios-safe-date--phone {
  flex-direction: column !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  display: flex !important;
}

.admin-wrapper--phone .ios-safe-date--phone .ios-safe-date__btn {
  color: #007aff !important;
  border-radius: var(--radius-sm) !important;
  background: #f1f5f9 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  font-size: 14px !important;
}

.admin-wrapper--phone .ios-safe-date--phone .ios-safe-date__value {
  font-size: 14px !important;
}

.admin-wrapper--phone .asistencia-list-filters .phone-filter-pair--dates {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  justify-content: stretch !important;
  align-items: start !important;
  gap: 12px !important;
}

.dash-caja {
  border: 1px solid var(--color-border);
  box-sizing: border-box;
  background: #fff;
  border-radius: 18px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0 0 1.25rem;
  padding: 18px 20px 16px;
  box-shadow: 0 8px 22px -16px #02061759;
}

.dash-caja__head {
  margin-bottom: 12px;
}

.dash-caja__title {
  color: var(--color-text);
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.dash-caja__sub {
  color: var(--color-text-muted);
  margin: 4px 0 0;
  font-size: .82rem;
}

.dash-caja-tabs {
  background: #f1f5f9;
  border-radius: 12px;
  gap: 6px;
  margin-bottom: 14px;
  padding: 4px;
  display: flex;
}

.dash-caja-tab {
  font: inherit;
  color: #64748b;
  cursor: pointer;
  appearance: none;
  background: none;
  border: none;
  border-radius: 10px;
  flex: 1;
  padding: 9px 10px;
  font-size: .88rem;
  font-weight: 600;
}

.dash-caja-tab.is-active {
  color: #0f172a;
  background: #fff;
  box-shadow: 0 1px 4px #0f172a14;
}

.dash-caja-panel {
  flex-direction: column;
  align-items: center;
  gap: 16px;
  display: flex;
}

.dash-caja-panel__chart {
  justify-content: center;
  display: flex;
}

.dash-caja-donut {
  justify-content: center;
  align-items: center;
  display: flex;
  position: relative;
}

.dash-caja-donut__center {
  pointer-events: none;
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 12px;
  display: flex;
  position: absolute;
  inset: 0;
}

.dash-caja-donut__center-label {
  color: #64748b;
  letter-spacing: .02em;
  font-size: .78rem;
  font-weight: 600;
}

.dash-caja-donut__center-value {
  color: #0f172a;
  margin-top: 2px;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.15;
}

.dash-caja-donut__center--ok .dash-caja-donut__center-value {
  color: #047857;
}

.dash-caja-donut__center--neg .dash-caja-donut__center-value {
  color: #b91c1c;
}

.dash-caja-list {
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.dash-caja-list__row {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  display: flex;
}

.dash-caja-list__pill {
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  align-items: center;
  max-width: 70%;
  padding: 5px 10px;
  font-size: .78rem;
  font-weight: 700;
  display: inline-flex;
  overflow: hidden;
}

.dash-caja-list__amt {
  color: #0f172a;
  flex-shrink: 0;
  font-size: .9rem;
  font-weight: 700;
}

.dash-caja-list__empty {
  text-align: center;
  color: var(--color-text-muted);
  padding: 8px 0;
  font-size: .88rem;
}

.dash-caja--compact {
  border-radius: 16px;
  margin: 0;
  padding: 14px 14px 12px;
}

.dash-caja--compact .dash-caja__title {
  font-size: .98rem;
}

.dash-caja--compact .dash-caja-donut__center-value {
  font-size: 1.1rem;
}

.dash-caja--compact .dash-caja-tab {
  padding: 8px 6px;
  font-size: .78rem;
}

.dash-caja-panel--corte {
  align-items: stretch;
  gap: 12px;
}

.dash-caja-corte__foto-btn {
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
  background: none;
  border: none;
  border-radius: 14px;
  width: 100%;
  margin: 0;
  padding: 0;
  display: block;
  overflow: hidden;
}

.dash-caja-corte__foto {
  object-fit: cover;
  background: #0f172a;
  width: 100%;
  max-height: 220px;
  display: block;
}

.dash-caja-corte__meta {
  text-align: center;
  flex-direction: column;
  gap: 4px;
  display: flex;
}

.dash-caja-corte__saldo {
  color: #0f172a;
  letter-spacing: -.02em;
  font-size: 1.45rem;
  font-weight: 800;
}

.dash-caja-corte__fecha {
  color: #64748b;
  font-size: .88rem;
  font-weight: 600;
}

.dash-caja-corte__diff {
  color: #64748b;
  font-size: .86rem;
  font-weight: 700;
}

.dash-caja-corte__diff.is-up {
  color: #047857;
}

.dash-caja-corte__diff.is-down {
  color: #b91c1c;
}

.dash-caja-corte__obs {
  color: #334155;
  margin: 6px 0 0;
  font-size: .86rem;
}

.dash-caja-corte__link {
  color: #0f6e56;
  margin-top: 8px;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
}

.dash-caja-corte__link:hover {
  text-decoration: underline;
}

.dash-caja-corte-lightbox {
  z-index: 230;
  box-sizing: border-box;
  background: #0f172ac7;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  display: flex;
  position: fixed;
  inset: 0;
}

.dash-caja-corte-lightbox__close {
  top: calc(.75rem + env(safe-area-inset-top, 0px));
  color: #0f172a;
  cursor: pointer;
  background: #ffffffeb;
  border: none;
  border-radius: 999px;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  position: absolute;
  right: .75rem;
}

.dash-caja-corte-lightbox__img {
  object-fit: contain;
  background: #0f172a;
  border-radius: 14px;
  width: min(94vw, 520px);
  max-height: min(80vh, 560px);
  box-shadow: 0 12px 40px #00000059;
}

.dash-caja--compact .dash-caja-corte__foto {
  max-height: 180px;
}

.dash-caja--compact .dash-caja-corte__saldo {
  font-size: 1.25rem;
}

.dash-m {
  box-sizing: border-box;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: flex;
}

.dash-m-hero {
  padding: 4px 2px 0;
}

.dash-m-hero__hi {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.1;
}

.dash-m-hero__name {
  color: var(--color-text);
  margin: 0;
  font-family: Caveat, cursive;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
}

.dash-m-hero__sub {
  color: var(--color-text-muted);
  margin: 6px 0 0;
  font-size: .9rem;
}

.dash-m-section {
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  display: flex;
}

.dash-m-section--cash {
  gap: 0;
}

.dash-m-title {
  color: var(--color-text);
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
}

.dash-m-title__muted {
  color: var(--color-text-muted);
  font-weight: 600;
}

.dash-m-chips {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  display: grid;
}

.dash-m-chips--cobros {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

@media (min-width: 380px) {
  .dash-m-chips--cobros {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.dash-m-chip {
  border: 1px solid var(--color-border);
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  min-width: 0;
  color: inherit;
  background: #fff;
  border-left-width: 4px;
  border-radius: 16px;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin: 0;
  padding: 14px 12px;
  text-decoration: none;
  transition: transform .12s, box-shadow .2s;
  display: flex;
  box-shadow: 0 6px 16px -12px #02061766;
}

.dash-m-chip:active {
  transform: scale(.98);
}

.dash-m-chip.is-active {
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px #2563eb59, 0 8px 18px -12px #02061773;
}

.dash-m-chip__value {
  color: var(--color-text);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
}

.dash-m-chip__label {
  color: var(--color-text-muted);
  font-size: .72rem;
  font-weight: 600;
}

.dash-m-chip--pending {
  background: #fffbeb;
  border-left-color: #f59e0b;
}

.dash-m-chip--pending .dash-m-chip__value {
  color: #b45309;
}

.dash-m-chip--reported {
  background: #eff6ff;
  border-left-color: #2563eb;
}

.dash-m-chip--reported .dash-m-chip__value {
  color: #1d4ed8;
}

.dash-m-chip--confirmed {
  background: #ecfdf5;
  border-left-color: #10b981;
}

.dash-m-chip--confirmed .dash-m-chip__value {
  color: #047857;
}

.dash-m-chip--rejected {
  background: #fef2f2;
  border-left-color: #ef4444;
}

.dash-m-chip--rejected .dash-m-chip__value {
  color: #b91c1c;
}

.dash-m-list {
  flex-direction: column;
  gap: 10px;
  display: flex;
}

.dash-m-row {
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: 16px;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  text-decoration: none;
  transition: transform .12s, box-shadow .2s;
  display: flex;
  box-shadow: 0 6px 16px -13px #02061766;
}

.dash-m-row:active {
  transform: scale(.99);
}

.dash-m-row__icon {
  color: #2563eb;
  background: #eff5ff;
  border-radius: 12px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  display: flex;
}

.dash-m-row__body {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  display: flex;
}

.dash-m-row__label {
  color: var(--color-text);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .92rem;
  font-weight: 700;
  overflow: hidden;
}

.dash-m-row__sub {
  color: var(--color-text-muted);
  font-size: .75rem;
}

.dash-m-row__value {
  color: var(--color-text);
  flex-shrink: 0;
  font-size: 1.3rem;
  font-weight: 800;
}

.dash-m-row__chev {
  color: var(--color-text-muted);
  flex-shrink: 0;
  display: flex;
}

.dash-m-row--warning .dash-m-row__icon {
  color: #dc2626;
  background: #fef2f2;
}

.dash-m-row--warning .dash-m-row__value {
  color: #dc2626;
}

/*# sourceMappingURL=app_globals_71f961d1.css.map*/