.rmv-btn-discard-consultation {
    --bs-btn-color: #a13b46;
    --bs-btn-border-color: #dba7ad;
    --bs-btn-hover-color: #842b35;
    --bs-btn-hover-bg: #fbeaec;
    --bs-btn-hover-border-color: #ca858d;
    --bs-btn-active-color: #842b35;
    --bs-btn-active-bg: #f7dadd;
    --bs-btn-active-border-color: #ca858d;
    --bs-btn-disabled-color: #9a7478;
    --bs-btn-disabled-bg: #fcf4f5;
    --bs-btn-disabled-border-color: #e4c9cc;
}

.rmv-disabled-action-tooltip:focus-visible {
    outline: 2px solid var(--rmv-focus-ring, #2b6cb0);
    outline-offset: 2px;
    border-radius: .375rem;
}
:root {
  --rmv-color-primary: #112746;
  --rmv-color-primary-hover: #0f223c;
  --rmv-color-primary-rgb: 17, 39, 70;
  --rmv-color-accent: #0d6efd;
  --rmv-color-accent-soft: #8EC8F3;
  --rmv-color-accent-rgb: 142, 200, 243;
  --rmv-color-warm-1: #D9ECFB;
  --rmv-color-warm-2: #EEF7FD;
  --rmv-color-info-soft: #CDE6F8;
  --rmv-color-neutral: #A9ABAE;
  --rmv-color-text: #2F2F2F;
  --rmv-color-body: #374151;
  --rmv-color-text-muted: #6B7280;
  --rmv-color-placeholder: #9CA3AF;
  --rmv-color-border: #E5E7EB;
  --rmv-color-input-border: #CBD5E1;
  --rmv-color-surface: #FFFFFF;
  --rmv-color-surface-soft: rgba(255, 255, 255, 0.82);
  --rmv-color-surface-glass: rgba(255, 255, 255, 0.72);
  --rmv-color-background: #F5F7FA;
  --rmv-color-success: #198754;
  --rmv-color-success-soft: #DDF6E8;
  --rmv-color-agenda: #20c997;
  --rmv-color-agenda-hover: #18a87f;
  --rmv-color-revaccination: #b80000;
  --rmv-color-vaccines: #dc3545;
  --rmv-color-warning: #B45309;
  --rmv-color-danger: #B91C1C;
  --rmv-bg-top-blue: rgba(13, 110, 253, 0.08);
  --rmv-bg-soft-blue: rgba(13, 110, 253, 0.035);
  --rmv-bg-white: #ffffff;
  --rmv-gradient-brand: linear-gradient(90deg, #EAF6FF 0%, #CDE6F8 35%, #8EC8F3 68%, #0d6efd 100%);
  --rmv-gradient-app-bg:
    radial-gradient(circle at 10% 8%, rgba(13, 110, 253, 0.055), transparent 22rem),
    radial-gradient(circle at 88% 10%, rgba(13, 110, 253, 0.045), transparent 24rem),
    linear-gradient(180deg, rgba(13, 110, 253, 0.055) 0%, rgba(13, 110, 253, 0.025) 16%, rgba(255, 255, 255, 0.97) 40%, #ffffff 48%, #ffffff 100%);
  --rmv-shadow-xs: 0 0.25rem 0.65rem rgba(31, 41, 55, 0.06);
  --rmv-shadow-sm: 0 0.65rem 1.65rem rgba(31, 41, 55, 0.08);
  --rmv-shadow-md: 0 1.1rem 2.6rem rgba(31, 41, 55, 0.11);
  --rmv-shadow-lg: 0 1.5rem 4rem rgba(31, 41, 55, 0.14);
  --rmv-radius-sm: 8px;
  --rmv-radius-md: 12px;
  --rmv-radius-lg: 16px;
  --rmv-radius-xl: 22px;
  --rmv-transition-fast: 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --rmv-transition-base: 210ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --rmv-blur-glass: blur(16px) saturate(1.18);
}

body {
  background: var(--rmv-gradient-app-bg);
  background-attachment: fixed;
  color: var(--rmv-color-body);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  overflow-x: hidden;
}

.rmv-app-bg {
  background: var(--rmv-gradient-app-bg);
  background-attachment: fixed;
}

button,
input,
select,
textarea,
table,
.navbar {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--rmv-color-text);
  letter-spacing: 0;
}

label,
.form-label,
dt,
th {
  color: var(--rmv-color-body);
}

.rmv-required-label::after {
  color: #DC2626;
  content: "*";
  font-weight: 800;
  margin-left: 0.25rem;
}

.form-control::placeholder {
  color: var(--rmv-color-placeholder);
}

.form-control,
.form-select {
  background-color: var(--rmv-color-surface);
  border: 1px solid var(--rmv-color-input-border);
  border-radius: 10px;
  color: var(--rmv-color-text);
  font-size: 0.92rem;
  min-height: 2.35rem;
}

.form-control:focus,
.form-select:focus {
  background-color: var(--rmv-color-surface);
  border-color: var(--rmv-color-primary);
  box-shadow: 0 0 0 0.18rem rgba(var(--rmv-color-primary-rgb), 0.18);
}

textarea.form-control {
  min-height: 5.5rem;
}

.form-text {
  color: var(--rmv-color-text-muted);
  font-size: 0.78rem;
}

a,
.rmv-link {
  color: var(--rmv-color-primary);
  font-weight: 600;
  text-decoration: none;
}

a:hover,
.rmv-link:hover {
  color: var(--rmv-color-primary-hover);
  text-decoration: underline;
}

.rmv-btn-primary,
.btn-rmv-primary {
  background: var(--rmv-color-primary);
  border-radius: 10px;
  border-color: var(--rmv-color-primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  padding: 0.45rem 0.85rem;
}

.rmv-btn-primary:hover,
.rmv-btn-primary:focus,
.btn-rmv-primary:hover,
.btn-rmv-primary:focus {
  background: var(--rmv-color-primary-hover);
  border-color: var(--rmv-color-primary-hover);
  color: #fff;
}

.rmv-btn-secondary {
  background: var(--rmv-color-surface);
  border: 1px solid var(--rmv-color-border);
  border-radius: 10px;
  color: var(--rmv-color-primary);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  padding: 0.45rem 0.85rem;
}

.rmv-btn-secondary:hover,
.rmv-btn-secondary:focus {
  background: #F8FBFF;
  border-color: rgba(var(--rmv-color-primary-rgb), 0.3);
  color: var(--rmv-color-primary-hover);
}

.rmv-btn-success {
  background: var(--rmv-color-success);
  border-color: var(--rmv-color-success);
  border-radius: 10px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  padding: 0.45rem 0.85rem;
}

.rmv-btn-success:hover,
.rmv-btn-success:focus {
  background: #157347;
  border-color: #146c43;
  color: #fff;
}

.btn-sm.rmv-btn-primary,
.btn-sm.rmv-btn-secondary,
.rmv-btn-primary.btn-sm,
.rmv-btn-secondary.btn-sm {
  border-radius: 9px;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.35rem 0.68rem;
}

.btn {
  font-weight: 500;
}

.rmv-flash-message {
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(47, 47, 47, 0.06);
  font-weight: 500;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.rmv-flash-message-hiding {
  opacity: 0;
  transform: translateY(-0.25rem);
}

.rmv-brand-gradient {
  background: var(--rmv-gradient-brand);
}

.rmv-soft-highlight {
  background: rgba(205, 230, 248, 0.42);
  border: 1px solid rgba(13, 110, 253, 0.16);
}

.rmv-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.rmv-navbar {
  background: var(--rmv-color-surface);
  overflow: visible;
}

.rmv-navbar-container,
.rmv-navbar-collapse,
.rmv-primary-nav,
.rmv-session-nav {
  min-width: 0;
}

.rmv-navbar-collapse {
  gap: 0.5rem 0.75rem;
  overflow: visible;
}

.rmv-navbar .nav-link {
  color: var(--rmv-color-body);
  font-weight: 650;
}

.rmv-navbar .nav-link:hover,
.rmv-navbar .nav-link:focus {
  color: var(--rmv-color-primary);
}

.rmv-brand {
  align-items: baseline;
  display: inline-flex;
  gap: 0.45rem;
  min-width: 0;
}

.rmv-brand-mark {
  color: var(--rmv-color-primary);
  font-size: 1.24rem;
  font-weight: 800;
}

.rmv-brand-subtitle {
  color: var(--rmv-color-text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.rmv-context-pill {
  align-items: center;
  background: var(--rmv-color-surface);
  border: 1px solid var(--rmv-color-border);
  border-radius: 999px;
  color: var(--rmv-color-body);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 650;
  gap: 0.35rem;
  max-width: 20rem;
  overflow: hidden;
  padding: 0.28rem 0.65rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rmv-primary-nav {
  overflow: visible;
  scrollbar-width: thin;
}

.rmv-primary-nav .nav-item {
  flex: 0 0 auto;
}

.rmv-navbar-dropdown .dropdown-menu {
  border: 1px solid var(--rmv-color-border);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(47, 47, 47, 0.12);
  font-size: 0.9rem;
  min-width: 13rem;
  z-index: 1055;
}

.rmv-navbar-dropdown .dropdown-item {
  color: var(--rmv-color-body);
  font-weight: 500;
}

.rmv-navbar-dropdown .dropdown-item:hover,
.rmv-navbar-dropdown .dropdown-item:focus {
  background: rgba(205, 230, 248, 0.38);
  color: var(--rmv-color-primary);
}

.rmv-navbar-dropdown .dropdown-item.disabled {
  color: var(--rmv-color-text-muted);
  opacity: 0.62;
}

.rmv-support-mode-banner {
  background: #fff3cd;
  border-bottom: 1px solid #ffda6a;
  color: #664d03;
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

.rmv-session-nav {
  flex: 0 1 auto;
}

.rmv-user-label,
.rmv-current-user,
.rmv-current-user-name,
.rmv-current-user-role {
  display: inline-block;
  max-width: 13rem;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}

.rmv-current-user {
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
  max-width: 11rem;
}

.rmv-current-user-item {
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
  min-width: 0;
}

.rmv-current-user-name {
  color: #334155;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.05;
  max-width: 11rem;
}

.rmv-current-user-role {
  color: #64748b;
  font-size: 0.67rem;
  font-weight: 500;
  line-height: 1.05;
  margin-top: 0.12rem;
  max-width: 11rem;
}

@media (max-width: 767.98px) {
  .rmv-current-user-role {
    display: none;
  }
}

.rmv-main-container {
  min-width: 0;
}

.rmv-page-header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.rmv-page-title {
  color: var(--rmv-color-text);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.18;
  margin-bottom: 0.25rem;
}

.rmv-page-subtitle {
  color: var(--rmv-color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.rmv-card {
  background: var(--rmv-color-surface);
  border: 1px solid var(--rmv-color-border);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(47, 47, 47, 0.05);
}

.rmv-section-title {
  color: var(--rmv-color-text);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.rmv-table {
  background: var(--rmv-color-surface);
  border: 1px solid var(--rmv-color-border);
  border-radius: 8px;
  overflow: hidden;
}

.rmv-table .table {
  color: var(--rmv-color-body);
}

.rmv-table thead th {
  background: var(--rmv-color-surface);
  border-bottom-color: var(--rmv-color-border);
  color: var(--rmv-color-body);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rmv-table tbody td {
  border-color: var(--rmv-color-border);
  vertical-align: middle;
}

.rmv-catalog-tabs {
  flex-wrap: nowrap;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.rmv-catalog-tabs .nav-item,
.rmv-catalog-tabs .nav-link {
  flex: 0 0 auto;
  white-space: nowrap;
}


.rmv-tabs {
  border-bottom: 1px solid var(--rmv-color-border);
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 1rem;
  scrollbar-width: thin;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.rmv-tabs .rmv-tab {
  flex: 0 0 auto;
}

.rmv-tab {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--rmv-color-body);
  font-weight: 750;
  padding: 0.85rem 0.95rem 0.72rem;
  white-space: nowrap;
}

.rmv-tab:hover,
.rmv-tab:focus {
  color: var(--rmv-color-primary);
}

.rmv-tab-active,
.rmv-tab.active {
  border-bottom-color: var(--rmv-color-primary);
  color: var(--rmv-color-text);
}

.rmv-tab-panel {
  padding: 1rem;
}

.rmv-badge {
  background: rgba(var(--rmv-color-primary-rgb), 0.1);
  border: 1px solid rgba(var(--rmv-color-primary-rgb), 0.18);
  border-radius: 999px;
  color: var(--rmv-color-accent);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1;
  padding: 0.34rem 0.62rem;
}

.rmv-badge-soft {
  background: rgba(var(--rmv-color-primary-rgb), 0.1);
  border: 1px solid rgba(var(--rmv-color-primary-rgb), 0.16);
  border-radius: 999px;
  color: var(--rmv-color-primary);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1;
  padding: 0.34rem 0.62rem;
}

.rmv-operational-number {
  color: var(--rmv-color-primary);
  display: inline-block;
  font-size: 0.82em;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  white-space: nowrap;
}

.rmv-context-value .rmv-operational-number,
.rmv-patient-summary-title .rmv-operational-number {
  font-size: 0.78rem;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.rmv-vaccine-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1;
  padding: 0.34rem 0.62rem;
}

.rmv-vaccine-status-current {
  background: rgba(21, 128, 61, 0.1);
  border: 1px solid rgba(21, 128, 61, 0.16);
  color: var(--rmv-color-success);
}

.rmv-vaccine-status-due-today {
  background: rgba(13, 110, 253, 0.12);
  border: 1px solid rgba(13, 110, 253, 0.2);
  color: var(--rmv-color-primary);
}

.rmv-vaccine-status-expired {
  background: rgba(185, 28, 28, 0.1);
  border: 1px solid rgba(185, 28, 28, 0.16);
  color: var(--rmv-color-danger);
}

.rmv-vaccine-status-historical,
.rmv-vaccine-status-no-date {
  background: rgba(169, 171, 174, 0.12);
  border: 1px solid rgba(169, 171, 174, 0.22);
  color: var(--rmv-color-text-muted);
}

.rmv-kpi {
  background: var(--rmv-color-surface);
  border: 1px solid var(--rmv-color-border);
  border-left: 4px solid var(--rmv-color-primary);
  border-radius: 8px;
  padding: 0.85rem 1rem;
}

.rmv-kpi-label {
  color: var(--rmv-color-text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
  text-transform: uppercase;
}

.rmv-kpi-value {
  color: var(--rmv-color-text);
  font-size: 1.12rem;
  font-weight: 800;
}

.rmv-empty-state {
  background: rgba(248, 250, 252, 0.72);
  border: 1px dashed var(--rmv-color-border);
  border-radius: 8px;
  color: var(--rmv-color-text-muted);
  padding: 1.25rem;
}

.rmv-row-selected > * {
  background: rgba(205, 230, 248, 0.42) !important;
}

.rmv-expediente-workspace {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 45%) minmax(0, 55%);
}

.rmv-owner-result-list {
  display: grid;
  gap: 0.55rem;
}

.rmv-owner-result-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(13, 110, 253, 0.11);
  border-radius: var(--rmv-radius-sm);
  color: var(--rmv-color-text);
  display: grid;
  gap: 0.4rem 0.65rem;
  grid-template-columns: auto minmax(6.5rem, 0.8fr) minmax(10rem, 1.2fr);
  padding: 0.62rem 0.7rem;
  text-decoration: none;
  transition: background var(--rmv-transition-fast), border-color var(--rmv-transition-fast), box-shadow var(--rmv-transition-fast), transform var(--rmv-transition-fast);
}

.rmv-owner-result-row > span:not(.rmv-risk-dot) {
  min-width: 0;
}

.rmv-owner-result-row span span {
  color: var(--rmv-color-text-muted);
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.rmv-owner-result-row strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rmv-owner-result-row:hover,
.rmv-owner-result-row:focus,
.rmv-owner-result-row.active {
  background: rgba(13, 110, 253, 0.08);
  border-color: rgba(13, 110, 253, 0.26);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  color: var(--rmv-color-text);
  transform: translateY(-1px);
}

.rmv-owner-pet-card-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rmv-owner-pet-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: var(--rmv-radius-sm);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
  min-width: 0;
  padding: 0.78rem;
}

.rmv-owner-pet-card-head {
  align-items: flex-start;
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
}

.rmv-owner-pet-card-head strong {
  display: inline-block;
  font-size: 1rem;
  line-height: 1.2;
}

.rmv-owner-pet-card-status {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.rmv-context-card {
  background: var(--rmv-color-surface);
  border: 1px solid var(--rmv-color-border);
  border-left: 4px solid var(--rmv-color-primary);
  border-radius: 8px;
  padding: 0.9rem 1rem;
}

.rmv-context-label {
  color: var(--rmv-color-text-muted);
  font-size: 0.76rem;
  font-weight: 750;
  text-transform: uppercase;
}

.rmv-context-value {
  color: var(--rmv-color-text);
  font-size: 1.08rem;
  font-weight: 800;
}

.rmv-record-header-pet-value {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.rmv-record-return-actions {
  display: flex;
  justify-content: flex-end;
}

.rmv-record-header-pet-photo {
  border: 1px solid var(--rmv-color-border);
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 auto;
  height: 2.125rem;
  object-fit: cover;
  width: 2.125rem;
}

.rmv-record-header-main {
  align-items: stretch;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rmv-record-header-main-has-tag {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}

.rmv-record-header-item {
  min-width: 0;
}

.rmv-record-affiliation-note {
  align-items: center;
  color: var(--rmv-color-text-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.75rem;
  gap: 0.3rem;
  line-height: 1.25;
  margin-top: 0.18rem;
}

.rmv-record-affiliation-info {
  color: var(--rmv-color-primary);
  cursor: help;
  flex: 0 0 auto;
}

.rmv-record-affiliation-info:focus-visible {
  border-radius: 999px;
  outline: 2px solid rgba(var(--rmv-color-primary-rgb), 0.35);
  outline-offset: 2px;
}

.rmv-record-header-tag-slot {
  align-items: center;
  display: flex;
  justify-content: center;
  min-width: 4.5rem;
}

.rmv-record-header-tag-chip {
  align-items: center;
  border: 1px solid rgba(47, 47, 47, 0.16);
  border-radius: 999px;
  box-shadow: 0 0.45rem 1rem rgba(47, 47, 47, 0.11);
  display: inline-flex;
  font-size: 1rem;
  font-weight: 750;
  justify-content: center;
  line-height: 1;
  min-height: 2.55rem;
  min-width: 4rem;
  padding: 0.65rem 0.75rem;
  text-decoration: none;
  white-space: nowrap;
}

.rmv-record-header-tag-chip:hover,
.rmv-record-header-tag-chip:focus {
  box-shadow: 0 0.5rem 1.15rem rgba(13, 110, 253, 0.2);
  filter: saturate(1.08);
  text-decoration: none;
}

.rmv-record-layout {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(220px, 24%) minmax(0, 1fr);
}

.rmv-record-main-card {
  min-width: 0;
}

.rmv-patient-top-card {
  background: var(--rmv-color-surface);
  border: 1px solid var(--rmv-color-border);
  border-left: 4px solid var(--rmv-color-primary);
  border-radius: 10px;
  padding: 1rem;
}

.rmv-patient-top-grid {
  align-items: stretch;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(220px, 25%) minmax(0, 1fr);
}

.rmv-patient-pets-column,
.rmv-patient-summary-column {
  min-width: 0;
}

.rmv-patient-summary-grid {
  display: grid;
  gap: 0.75rem 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rmv-patient-summary-title {
  color: var(--rmv-color-text);
  font-size: 1.35rem;
  font-weight: 850;
  line-height: 1.2;
}

.rmv-patient-summary-head {
  align-items: flex-start;
  display: flex;
  gap: 1.05rem;
  min-width: 0;
}

.min-w-0 {
  min-width: 0;
}

.rmv-pet-photo-frame {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  height: 6.5rem;
  justify-content: center;
  width: 6.5rem;
}

.rmv-pet-photo,
.rmv-pet-photo-placeholder {
  border: 1px solid var(--rmv-color-border);
  border-radius: 16px;
  height: 6.5rem;
  width: 6.5rem;
}

.rmv-pet-photo,
.rmv-pet-photo-img {
  background: var(--rmv-color-surface);
  object-fit: cover;
}

.rmv-pet-photo-placeholder {
  align-items: center;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(255, 255, 255, 0.92));
  border-color: rgba(13, 110, 253, 0.14);
  color: var(--rmv-color-primary);
  display: inline-flex;
  justify-content: center;
  letter-spacing: 0;
  overflow: hidden;
  text-align: center;
}

.rmv-pet-photo-placeholder-main {
  border-radius: 18px;
  height: 6rem;
  width: 6rem;
}

.rmv-pet-photo-placeholder-isotype {
  height: 60px;
  object-fit: contain;
  width: 60px;
}

.rmv-pet-photo-placeholder-icon {
  color: var(--rmv-color-primary);
  font-size: 2rem;
  line-height: 1;
}

.rmv-pet-photo-placeholder-sm {
  border-radius: 12px;
  height: 40px;
  width: 40px;
}

.rmv-pet-photo-placeholder-sm .rmv-pet-photo-placeholder-isotype {
  height: 26px;
  width: 26px;
}

.rmv-pet-photo-placeholder-sm .rmv-pet-photo-placeholder-icon {
  font-size: 1.15rem;
}

.rmv-pet-photo-form {
  min-width: 0;
}

.rmv-pet-photo-input {
  flex: 1 1 12rem;
  min-width: 0;
}

.rmv-pet-photo-upload-panel {
  background: rgba(247, 249, 252, 0.82);
  border: 1px solid var(--rmv-color-border);
  border-radius: 10px;
  padding: 0.95rem;
}

.rmv-pet-photo-upload-grid {
  align-items: center;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: auto minmax(0, 1fr);
  margin-top: 0.8rem;
}

.rmv-pet-photo-preview {
  align-items: center;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.rmv-pet-photo-preview .rmv-pet-photo,
.rmv-pet-photo-preview .rmv-pet-photo-placeholder {
  border-radius: 12px;
  height: 40px;
  width: 40px;
}

.rmv-pet-photo-preview .rmv-pet-photo-placeholder {
  font-size: 0.95rem;
}

.rmv-pet-photo-upload-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rmv-pet-camera-status {
  margin-top: 0.55rem;
}

.rmv-pet-camera {
  background: var(--rmv-color-surface);
  border: 1px solid var(--rmv-color-border);
  border-radius: 10px;
  display: grid;
  gap: 0.65rem;
  margin-top: 0.7rem;
  max-width: 36rem;
  padding: 0.7rem;
}

.rmv-pet-camera[hidden] {
  display: none;
}

.rmv-pet-camera-viewport {
  aspect-ratio: 4 / 3;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.rmv-pet-camera-viewport video,
.rmv-pet-camera-viewport img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.rmv-pet-camera-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rmv-patient-age {
  color: var(--rmv-color-text-muted);
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 0.2rem;
}

.rmv-patient-summary-grid div {
  display: grid;
  gap: 0.15rem;
}

.rmv-patient-summary-grid span {
  color: var(--rmv-color-text-muted);
  font-size: 0.76rem;
  font-weight: 750;
  text-transform: uppercase;
}

.rmv-patient-summary-grid strong {
  color: var(--rmv-color-text);
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.35;
}

.rmv-patient-detail-grid {
  align-items: stretch;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(360px, 52%) minmax(0, 1fr);
}

.rmv-patient-equal-grid {
  align-items: stretch;
}

.rmv-patient-left-column,
.rmv-patient-right-column {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.rmv-patient-inner-card {
  padding: 1rem;
}

.rmv-patient-balanced-card {
  display: flex;
  flex-direction: column;
  min-height: 31rem;
}

.rmv-patient-right-column .rmv-patient-balanced-card {
  height: 100%;
}

.rmv-owner-tab-grid {
  align-items: stretch;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rmv-owner-tab-card {
  display: flex;
  flex-direction: column;
  min-height: 27rem;
}

.rmv-owner-subtab-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding-top: 1rem;
}

.rmv-owner-subtab-content > .tab-pane.active {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.rmv-owner-observations-textarea {
  height: 17rem;
  min-height: 17rem;
  overflow-y: auto;
  resize: none;
}

.rmv-owner-address-card {
  margin-top: 1rem;
}

.rmv-owner-address-grid {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(260px, 1.25fr);
}

.rmv-owner-address-line {
  grid-column: 1 / span 2;
}

.rmv-owner-address-notes {
  grid-column: 3;
  grid-row: 1 / span 3;
}

.rmv-owner-address-notes textarea {
  min-height: 12.65rem;
  overflow-y: auto;
  resize: none;
}

.rmv-subtabs {
  border-bottom: 1px solid var(--rmv-color-border);
  display: flex;
  gap: 0.25rem;
}

.rmv-subtab {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--rmv-color-body);
  font-weight: 750;
  padding: 0.65rem 0.8rem 0.55rem;
}

.rmv-subtab:hover,
.rmv-subtab:focus {
  color: var(--rmv-color-primary);
}

.rmv-subtab.active {
  border-bottom-color: var(--rmv-color-primary);
  color: var(--rmv-color-text);
}

.rmv-pet-observations-textarea {
  height: 17rem;
  min-height: 17rem;
  overflow-y: auto;
  resize: none;
}

.rmv-observations-form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.rmv-observations-readonly {
  background: var(--rmv-color-surface);
  border: 1px solid var(--rmv-color-border);
  border-radius: 10px;
  color: var(--rmv-color-text);
  line-height: 1.55;
  min-height: 16rem;
  padding: 1rem;
}

.rmv-conditions-details {
  padding: 0;
}

.rmv-conditions-summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 0.8rem;
  justify-content: space-between;
  list-style: none;
  padding: 1rem;
}

.rmv-conditions-summary::-webkit-details-marker {
  display: none;
}

.rmv-conditions-summary::after {
  border-bottom: 2px solid var(--rmv-color-text-muted);
  border-right: 2px solid var(--rmv-color-text-muted);
  content: "";
  height: 0.55rem;
  transform: rotate(45deg);
  transition: transform 0.16s ease;
  width: 0.55rem;
}

.rmv-conditions-details[open] .rmv-conditions-summary::after {
  transform: rotate(225deg);
}

.rmv-conditions-summary > span:first-child {
  color: var(--rmv-color-text);
  font-size: 1rem;
  font-weight: 850;
}

.rmv-conditions-summary-meta {
  align-items: center;
  color: var(--rmv-color-text-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.78rem;
  font-weight: 750;
  gap: 0.4rem;
  margin-left: auto;
}

.rmv-conditions-summary-meta span {
  background: var(--rmv-color-surface);
  border: 1px solid var(--rmv-color-border);
  border-radius: 999px;
  padding: 0.16rem 0.5rem;
}

.rmv-conditions-summary-meta .rmv-condition-count-badge-success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.rmv-conditions-summary-meta .rmv-condition-count-badge-danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.rmv-conditions-content {
  border-top: 1px solid var(--rmv-color-border);
  padding: 1rem;
}

.rmv-owner-pets-panel {
  background: var(--rmv-color-surface);
  border: 1px solid var(--rmv-color-border);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(47, 47, 47, 0.04);
  padding: 0.9rem;
}

.rmv-owner-pet-list {
  display: grid;
  gap: 0.45rem;
  max-height: 17rem;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.rmv-owner-pet-item {
  align-items: center;
  background: var(--rmv-color-surface);
  border: 1px solid var(--rmv-color-border);
  border-radius: 10px;
  color: var(--rmv-color-body);
  display: grid;
  gap: 0.12rem 0.45rem;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 0.58rem 0.65rem;
}

.rmv-owner-pet-item:hover,
.rmv-owner-pet-item:focus,
.rmv-owner-pet-item.active {
  background: rgba(205, 230, 248, 0.36);
  border-color: rgba(13, 110, 253, 0.34);
  color: var(--rmv-color-text);
  text-decoration: none;
}

.rmv-owner-pet-name {
  color: var(--rmv-color-text);
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rmv-owner-pet-meta {
  color: var(--rmv-color-text-muted);
  font-size: 0.78rem;
  grid-column: 2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rmv-new-pet-panel summary {
  cursor: pointer;
  list-style: none;
}

.rmv-new-pet-panel summary::-webkit-details-marker {
  display: none;
}

.rmv-panel-form {
  background: var(--rmv-color-surface);
  border: 1px solid var(--rmv-color-border);
  border-radius: 10px;
}

.rmv-quick-create-panel {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.rmv-quick-create-head {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.rmv-quick-create-head .btn-close {
  flex: 0 0 auto;
  margin-top: 0.15rem;
}

.rmv-quick-pet-actions {
  min-width: 0;
}

.rmv-communication-status-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.rmv-communication-status-grid > div {
  background: rgba(13, 110, 253, 0.05);
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
}

.rmv-communication-status-grid span {
  color: var(--rmv-color-text-muted);
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.rmv-communication-status-grid strong {
  color: var(--rmv-color-text);
  display: block;
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

.rmv-preformatted-preview {
  background: rgba(13, 110, 253, 0.04);
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 10px;
  color: var(--rmv-color-text);
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.45;
  padding: 0.85rem;
  white-space: pre-wrap;
}

.rmv-email-preview-frame {
  background: #f3f7fb;
  border: 1px solid rgba(13, 110, 253, 0.16);
  border-radius: 12px;
  display: block;
  min-height: 520px;
  width: 100%;
}

.rmv-navbar-isotype {
  display: block;
  height: 40px;
  max-height: 40px;
  max-width: 168px;
  object-fit: contain;
  width: auto;
}

.rmv-admin-grid,
.rmv-branding-preview-grid {
  display: grid;
  gap: 1rem;
}

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

.rmv-branding-preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rmv-branding-preview-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: var(--rmv-radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  justify-content: center;
  min-height: 8rem;
  padding: 1rem;
  text-align: center;
}

.rmv-branding-preview-card span {
  color: var(--rmv-color-text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.rmv-branding-preview-card strong {
  color: var(--rmv-color-primary);
  font-size: 2rem;
  line-height: 1;
}

.rmv-branding-preview-card small {
  color: var(--rmv-color-text-muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rmv-branding-colors-card {
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
}

.rmv-branding-color-form {
  display: grid;
  gap: 0.65rem;
  width: 100%;
}

.rmv-branding-color-summary {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.rmv-branding-logo-preview {
  max-height: 4.4rem;
  max-width: min(100%, 18rem);
  object-fit: contain;
}

.rmv-branding-isotype-preview {
  height: 4rem;
  max-width: 7rem;
  object-fit: contain;
}

.rmv-tenant-branding-preview {
  --preview-primary: var(--rmv-color-primary);
  --preview-secondary: var(--rmv-color-accent-soft);
  background: var(--rmv-color-surface);
  border: 1px solid var(--rmv-color-border);
  border-radius: var(--rmv-radius-md);
  min-height: 100%;
  overflow: hidden;
}

.rmv-tenant-branding-preview-bar {
  align-items: center;
  background: linear-gradient(90deg, rgba(255, 255, 255, .96), color-mix(in srgb, var(--preview-secondary) 24%, white));
  border-top: 4px solid var(--preview-primary);
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  padding: .75rem;
}

.rmv-tenant-branding-preview-logo,
.rmv-tenant-branding-preview-isotype {
  align-items: center;
  background: #fff;
  border: 1px dashed var(--rmv-color-border);
  border-radius: var(--rmv-radius-sm);
  color: var(--rmv-color-text-muted);
  display: flex;
  font-size: .75rem;
  justify-content: center;
  overflow: hidden;
}

.rmv-tenant-branding-preview-logo {
  height: 3rem;
  width: 9rem;
}

.rmv-tenant-branding-preview-isotype {
  font-weight: 700;
  height: 3rem;
  width: 3rem;
}

.rmv-tenant-branding-preview-logo img,
.rmv-tenant-branding-preview-isotype img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.rmv-tenant-branding-preview-body {
  display: grid;
  gap: .55rem;
  padding: .85rem;
}

.rmv-tenant-branding-preview-body span {
  color: var(--rmv-color-text-muted);
  font-size: .85rem;
}

.rmv-login-banner-admin-thumb {
  border-radius: 8px;
  display: block;
  height: 3rem;
  object-fit: cover;
  width: 5.25rem;
}

.rmv-inline-link {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.1rem 0.18rem;
  text-decoration: underline;
}

@media (max-width: 1199.98px) {
  .rmv-communication-status-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .rmv-communication-status-grid {
    grid-template-columns: 1fr;
  }

  .rmv-admin-grid,
  .rmv-branding-preview-grid {
    grid-template-columns: 1fr;
  }
}

.rmv-consultations-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(120px, 15%) minmax(0, 1fr);
}

.rmv-consultations-history,
.rmv-consultations-main {
  min-width: 0;
}

.rmv-inline-note {
  background: rgba(13, 110, 253, 0.06);
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 10px;
  color: var(--rmv-color-text-muted);
  font-size: 0.85rem;
  padding: 0.65rem 0.75rem;
}

.rmv-consultation-service-minimum-note {
  background: rgba(205, 230, 248, 0.32);
  border: 1px solid rgba(13, 110, 253, 0.16);
  border-radius: 10px;
  color: var(--rmv-color-text-muted);
  font-size: 0.82rem;
  line-height: 1.35;
  margin: 0.25rem 0 0.9rem;
  padding: 0.58rem 0.7rem;
}

.rmv-consultation-form-header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.rmv-consultation-form-status {
  align-items: flex-end;
  display: grid;
  gap: 0.25rem;
  justify-items: end;
  text-align: right;
}

.rmv-real-record-note,
.rmv-auto-date-note {
  color: var(--rmv-color-text-muted);
  display: block;
  font-size: 0.74rem;
  line-height: 1.25;
  max-width: 14rem;
  text-align: right;
}

.rmv-consultation-meta-grid {
  align-items: end;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.clinical-form-compact {
  display: grid;
  gap: 0.75rem;
}

.clinical-floating-grid {
  align-items: stretch;
}

.clinical-form-floating > .form-control,
.clinical-form-floating > .form-select {
  border-radius: 8px;
  font-size: 0.92rem;
  min-height: 3.05rem;
}

.clinical-form-floating > label {
  color: var(--rmv-color-text-muted);
  font-size: 0.8rem;
  line-height: 1.15;
  padding-left: 0.75rem;
}

.clinical-form-floating-textarea > .form-control,
.clinical-form-floating textarea.form-control {
  line-height: 1.35;
  padding-top: 1.55rem;
  resize: vertical;
}

.clinical-textarea-sm {
  min-height: 6rem;
}

.clinical-textarea-md {
  min-height: 7.25rem;
}

.frequent-append-row {
  align-items: stretch;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(180px, 30%) 1fr;
}

.frequent-append-small,
.frequent-append-main {
  min-width: 0;
}

.rmv-readonly-field {
  background: var(--rmv-color-surface);
  border: 1px solid var(--rmv-color-input-border);
  border-radius: 10px;
  color: var(--rmv-color-text);
  min-height: 2.35rem;
  padding: 0.55rem 0.75rem;
  width: 100%;
}

.rmv-readonly-field:read-only {
  background: var(--rmv-color-surface);
}

.rmv-readonly-field:focus {
  border-color: var(--rmv-color-input-border);
  box-shadow: none;
}

.rmv-readonly-label {
  color: var(--rmv-color-text-muted);
  font-size: 0.74rem;
  line-height: 1.1;
}

.rmv-readonly-field strong {
  color: var(--rmv-color-text);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
}

.rmv-clinical-subtitle {
  color: var(--rmv-color-text);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0.35rem 0 0.55rem;
}

.rmv-clinical-detail {
  display: grid;
  gap: 0.9rem;
}

.rmv-clinical-row {
  display: grid;
  gap: 0.25rem;
}

.rmv-clinical-label {
  color: var(--rmv-color-text-muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.rmv-clinical-value {
  color: var(--rmv-color-text);
  font-size: 0.94rem;
  line-height: 1.45;
}

.rmv-anamnesis-grid,
.rmv-anamnesis-form-grid {
  display: grid;
  gap: 0.65rem 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rmv-anamnesis-item {
  border-bottom: 1px solid var(--rmv-color-border);
  display: grid;
  gap: 0.18rem;
  padding-bottom: 0.45rem;
}

.rmv-anamnesis-item span {
  color: var(--rmv-color-text-muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.rmv-anamnesis-item strong {
  color: var(--rmv-color-text);
  font-size: 0.94rem;
  font-weight: 750;
}

.rmv-consultation-list {
  border: 1px solid var(--rmv-color-border);
  border-radius: 10px;
  max-height: min(560px, calc(100vh - 260px));
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.rmv-consultation-list-item {
  background: var(--rmv-color-surface);
  border-bottom: 1px solid var(--rmv-color-border);
  color: var(--rmv-color-body);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.78rem 0.85rem;
}

.rmv-consultation-list-item:last-child {
  border-bottom: 0;
}

.rmv-consultation-list-item:hover,
.rmv-consultation-list-item:focus,
.rmv-consultation-list-item.active {
  background: rgba(205, 230, 248, 0.36);
  color: var(--rmv-color-text);
  text-decoration: none;
}

.rmv-consultation-history-open {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: inherit;
  text-decoration: none;
}

.rmv-consultation-history-open:hover,
.rmv-consultation-history-open:focus-visible {
  color: inherit;
  text-decoration: none;
  outline: none;
}

.rmv-consultation-print-link {
  align-self: flex-start;
  margin-top: 0.25rem;
  white-space: nowrap;
}
.rmv-consultation-date {
  color: var(--rmv-color-text);
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}

@media (max-width: 1199.98px) {
  .rmv-navbar-compact {
    margin-bottom: 0.75rem !important;
  }

  .rmv-navbar-container {
    max-width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .rmv-navbar .nav-link {
    font-size: 0.86rem;
    padding-left: 0.48rem;
    padding-right: 0.48rem;
  }

  .rmv-brand-mark {
    font-size: 1.16rem;
  }

  .rmv-brand-subtitle {
    font-size: 0.76rem;
  }

  .rmv-context-pill {
    max-width: 9.5rem;
  }

  .rmv-user-label {
    max-width: 7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .rmv-session-nav {
    gap: 0.22rem !important;
  }

  .rmv-record-header-main {
    gap: 0.65rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rmv-record-header-main-has-tag {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.9fr) auto;
  }

  .rmv-record-header-item,
  .rmv-record-header-item .rmv-context-value,
  .rmv-record-header-pet-value {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .rmv-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .rmv-monitor-board {
    overflow-x: auto;
  }

  .rmv-monitor-table {
    min-width: 61rem;
  }

  .rmv-monitor-row {
    gap: 0.48rem;
    grid-template-columns: minmax(7.2rem, 1.18fr) minmax(7.4rem, 0.95fr) minmax(6.5rem, 0.8fr) minmax(7.2rem, 0.85fr) minmax(6.2rem, 0.75fr) minmax(2.7rem, 0.25fr) minmax(5.8rem, 0.62fr) minmax(5.2rem, 0.55fr);
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .rmv-admission-sale-table,
  .rmv-billing-table,
  .rmv-responsive-table {
    overflow-x: auto;
  }

  .rmv-admission-sale-total {
    grid-template-columns: minmax(0, 1fr) 12rem 5.5rem;
  }

  .rmv-admission-history,
  .rmv-admission-history-detail,
  .rmv-document-files,
  .rmv-document-group {
    overflow: hidden;
  }

  .rmv-history-table,
  .rmv-billing-preview-table,
  .rmv-documents-table-compact {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }

  .rmv-history-table {
    min-width: 50rem;
  }

  .rmv-billing-preview-table {
    min-width: 42rem;
  }

  .rmv-documents-table-compact {
    min-width: 38rem;
  }
}

@media (max-width: 991.98px) {
  .rmv-navbar {
    padding-bottom: 0.45rem;
  }

  .rmv-navbar-container {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .rmv-navbar-collapse {
    align-items: center;
    flex-basis: 100%;
    flex-wrap: wrap;
    max-width: 100%;
  }

  .rmv-primary-nav {
    flex: 1 1 100%;
    max-width: 100%;
    overflow: visible;
    padding-bottom: 0.15rem;
    white-space: nowrap;
  }

  .rmv-primary-nav .nav-link {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }

  .rmv-session-nav {
    align-items: center;
    flex: 1 1 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.35rem;
    justify-content: flex-start;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: thin;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .rmv-session-nav .nav-item {
    flex: 0 0 auto;
  }

  .rmv-session-nav .nav-link {
    padding: 0.32rem 0.45rem;
  }

  .rmv-context-pill {
    font-size: 0.76rem;
    max-width: 10.5rem;
    padding: 0.24rem 0.5rem;
  }

  .rmv-user-label {
    max-width: 8.25rem;
  }

  .rmv-tenant-switch-link {
    max-width: 8.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .rmv-main-container {
    max-width: 100%;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .rmv-record-main-card {
    overflow: hidden;
  }

  .rmv-record-header-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rmv-record-header-main-has-tag {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rmv-record-header-tag-slot {
    grid-column: 1 / -1;
    justify-content: flex-start;
    min-width: 0;
  }

  .rmv-record-layout {
    grid-template-columns: 1fr;
  }

  .rmv-patient-top-grid,
  .rmv-patient-detail-grid,
  .rmv-owner-tab-grid,
  .rmv-owner-address-grid {
    grid-template-columns: 1fr;
  }

  .rmv-patient-summary-grid {
    grid-template-columns: 1fr;
  }

  .rmv-patient-summary-head {
    align-items: flex-start;
  }

  .rmv-pet-photo-frame,
  .rmv-pet-photo,
  .rmv-pet-photo-placeholder {
    height: 5.25rem;
    width: 5.25rem;
  }

  .rmv-pet-photo-placeholder {
    font-size: 1.08rem;
  }

  .rmv-patient-balanced-card,
  .rmv-owner-tab-card {
    min-height: 0;
  }

  .rmv-owner-address-line,
  .rmv-owner-address-notes {
    grid-column: auto;
    grid-row: auto;
  }

  .rmv-consultation-form-header {
    display: grid;
  }

  .rmv-consultation-form-status {
    justify-items: start;
    text-align: left;
  }

  .rmv-real-record-note,
  .rmv-auto-date-note {
    text-align: left;
  }

  .rmv-consultation-meta-grid {
    grid-template-columns: 1fr;
  }

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

  .rmv-consultations-layout {
    grid-template-columns: 1fr;
  }

  .rmv-consultation-list {
    max-height: min(440px, 52vh);
  }

  .rmv-anamnesis-grid,
  .rmv-anamnesis-form-grid {
    grid-template-columns: 1fr;
  }

  .rmv-operational-form-grid,
  .rmv-operational-meta-grid,
  .rmv-operational-actions,
  .rmv-operational-inline-form,
  .rmv-grooming-empty,
  .rmv-grooming-alert,
  .rmv-grooming-board,
  .rmv-grooming-actions,
  .rmv-admission-empty,
  .rmv-admission-alert,
  .rmv-admission-form-grid,
  .rmv-admission-item-forms,
  .rmv-admission-line-form,
  .rmv-admission-attachment-form,
  .rmv-admission-history-meta {
    grid-template-columns: 1fr;
  }

  .rmv-admission-sale-group header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .rmv-admission-sale-row {
    grid-template-columns: 6rem minmax(9rem, 1fr) minmax(8rem, 1fr) 4rem 6rem 6rem 2.6rem;
    overflow-x: auto;
  }

  .rmv-admission-sale-total {
    grid-template-columns: minmax(0, 1fr) max-content;
  }

  .rmv-admission-sale-total span {
    grid-column: 1;
    text-align: right;
  }

  .rmv-admission-sale-total strong {
    grid-column: 2;
    text-align: right;
  }

  .rmv-admission-attachment-list > div,
  .rmv-admission-history-row,
  .rmv-admission-events-table > div,
  .rmv-document-row {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .rmv-admission-history-clinical dl {
    grid-template-columns: 1fr;
  }

  .rmv-history-table,
  .rmv-billing-preview-table,
  .rmv-documents-table-compact {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    white-space: normal;
  }

  .rmv-history-table {
    min-width: 820px;
  }

  .rmv-billing-preview-table {
    min-width: 680px;
  }

  .rmv-documents-table-compact {
    min-width: 620px;
  }

  .rmv-operational-terminal-actions,
  .rmv-operational-cancel-form {
    grid-template-columns: 1fr;
  }

  .rmv-grooming-empty .btn,
  .rmv-grooming-alert .btn,
  .rmv-admission-empty .btn,
  .rmv-admission-alert .btn,
  .rmv-operational-terminal-actions .btn {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .rmv-owner-result-row,
  .rmv-owner-pet-card-grid {
    grid-template-columns: 1fr;
  }

  .rmv-navbar-collapse {
    align-items: stretch;
  }

  .rmv-primary-nav,
  .rmv-session-nav {
    flex-direction: column;
    overflow-x: visible;
    white-space: normal;
  }

  .rmv-session-nav {
    align-items: flex-start;
  }

  .rmv-pet-photo-frame,
  .rmv-pet-photo,
  .rmv-pet-photo-placeholder {
    height: 4.5rem;
    width: 4.5rem;
  }

  .rmv-pet-photo-placeholder {
    font-size: 0.95rem;
  }

  .rmv-record-header-main {
    grid-template-columns: 1fr;
  }

  .rmv-record-header-main-has-tag {
    grid-template-columns: 1fr;
  }

  .rmv-record-header-tag-slot {
    justify-content: stretch;
  }

  .rmv-record-header-tag-chip {
    width: 100%;
  }

  .rmv-pet-photo-upload-grid {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .rmv-pet-photo-upload-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

.rmv-attachment-form {
  background: var(--rmv-color-surface);
  border: 1px solid var(--rmv-color-border);
  border-radius: 10px;
  padding: 1rem;
}

.rmv-date-text {
  color: var(--rmv-color-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rmv-risk-badge,
.rmv-life-badge {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 750;
  gap: 0.35rem;
  line-height: 1;
  margin-left: 0.35rem;
  padding: 0.28rem 0.52rem;
  vertical-align: middle;
}

.rmv-risk-badge::before {
  border-radius: 999px;
  content: "";
  height: 0.48rem;
  width: 0.48rem;
}

.rmv-risk-dot {
  border: 2px solid var(--rmv-color-surface);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(47, 47, 47, 0.12);
  display: inline-flex;
  height: 0.72rem;
  margin-right: 0.3rem;
  vertical-align: -0.06rem;
  width: 0.72rem;
}

.rmv-risk-dot-green {
  background: var(--rmv-color-success);
}

.rmv-risk-dot-yellow {
  background: var(--rmv-color-warning);
}

.rmv-risk-dot-red {
  background: var(--rmv-color-danger);
}

.rmv-risk-inline,
.rmv-life-inline {
  color: var(--rmv-color-text-muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.rmv-risk-green {
  background: rgba(21, 128, 61, 0.08);
  border: 1px solid rgba(21, 128, 61, 0.14);
  color: var(--rmv-color-success);
}

.rmv-risk-green::before {
  background: var(--rmv-color-success);
}

.rmv-risk-yellow {
  background: rgba(180, 83, 9, 0.09);
  border: 1px solid rgba(180, 83, 9, 0.16);
  color: var(--rmv-color-warning);
}

.rmv-risk-yellow::before {
  background: var(--rmv-color-warning);
}

.rmv-risk-red {
  background: rgba(185, 28, 28, 0.09);
  border: 1px solid rgba(185, 28, 28, 0.16);
  color: var(--rmv-color-danger);
}

.rmv-risk-red::before {
  background: var(--rmv-color-danger);
}

.rmv-life-alive {
  background: rgba(13, 110, 253, 0.1);
  border: 1px solid rgba(13, 110, 253, 0.16);
  color: var(--rmv-color-primary);
}

.rmv-life-inactive {
  background: rgba(169, 171, 174, 0.14);
  border: 1px solid rgba(169, 171, 174, 0.24);
  color: var(--rmv-color-text-muted);
}

.pet-deceased-ribbon {
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #fff;
  border-radius: 999px;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.25);
  display: inline-flex;
  height: clamp(18px, 24%, 30px);
  justify-content: center;
  line-height: 1;
  padding: 2px;
  pointer-events: none;
  width: clamp(18px, 24%, 30px);
}

.pet-deceased-ribbon svg {
  display: block;
  height: 100%;
  width: 100%;
}

.pet-deceased-ribbon-overlay {
  right: 0.35rem;
  top: 0.35rem;
  position: absolute;
  z-index: 2;
}

.rmv-pet-photo-frame {
  position: relative;
}

.rmv-admission-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.rmv-admission-breakdown-chip {
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  gap: 0.35rem;
  line-height: 1.1;
  padding: 0.3rem 0.5rem;
  white-space: nowrap;
}

.rmv-admission-breakdown-chip strong {
  font-size: 0.86rem;
}

.rmv-admission-breakdown-grooming {
  background: #fff7ed;
  color: #9a3412;
}

.rmv-admission-breakdown-boarding {
  background: #eef2ff;
  color: #3730a3;
}

.rmv-admission-breakdown-hospitalization {
  background: #ecfdf5;
  color: #166534;
}

.rmv-admission-breakdown-surgery {
  background: #fef2f2;
  color: #991b1b;
}

.rmv-admission-breakdown-other {
  background: #f8fafc;
  color: #475569;
}

.rmv-dashboard-metric-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.rmv-dashboard-metric-chip {
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  gap: 0.35rem;
  line-height: 1.15;
  padding: 0.28rem 0.55rem;
  white-space: nowrap;
}

.rmv-dashboard-metric-chip strong {
  font-size: 0.86rem;
}

.dashboard-hero-card {
  min-height: 100%;
  overflow: hidden;
  padding: 1rem;
  position: relative;
}

.dashboard-hero-card .rmv-section-title,
.dashboard-hero-card .dashboard-hero-value,
.dashboard-hero-card p,
.dashboard-hero-card .dashboard-mini-metric-grid,
.dashboard-hero-card .rmv-dashboard-divider,
.dashboard-hero-card .rmv-dashboard-secondary-stat {
  max-width: calc(100% - 5.7rem);
  position: relative;
  z-index: 1;
}

.dashboard-hero-value {
  color: #0f172a;
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.dashboard-action-icon {
  align-items: center;
  background: linear-gradient(145deg, var(--dashboard-action-bg-strong, rgba(13, 110, 253, 0.12)), var(--dashboard-action-bg-soft, rgba(13, 110, 253, 0.04)));
  border: 1px solid var(--dashboard-action-border, rgba(13, 110, 253, 0.16));
  border-radius: 1.25rem;
  color: var(--dashboard-action-color, var(--rmv-color-primary));
  display: inline-flex;
  height: 82px;
  justify-content: center;
  position: absolute;
  right: 1rem;
  text-decoration: none;
  top: 1rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  width: 82px;
  z-index: 2;
}

.dashboard-action-icon:hover,
.dashboard-action-icon:focus-visible {
  background: linear-gradient(145deg, var(--dashboard-action-bg-hover-strong, rgba(13, 110, 253, 0.18)), var(--dashboard-action-bg-hover-soft, rgba(13, 110, 253, 0.08)));
  box-shadow: 0 0.75rem 1.5rem var(--dashboard-action-shadow, rgba(13, 110, 253, 0.14));
  color: var(--dashboard-action-color, var(--rmv-color-primary));
  outline: none;
  transform: translateY(-3px) scale(1.06);
}

.dashboard-action-icon i {
  font-size: 3rem;
  line-height: 1;
}

.dashboard-action-icon--appointments {
  --dashboard-action-bg-strong: rgba(32, 201, 151, 0.18);
  --dashboard-action-bg-soft: rgba(32, 201, 151, 0.06);
  --dashboard-action-bg-hover-strong: rgba(32, 201, 151, 0.25);
  --dashboard-action-bg-hover-soft: rgba(32, 201, 151, 0.1);
  --dashboard-action-border: rgba(32, 201, 151, 0.28);
  --dashboard-action-color: var(--rmv-color-agenda);
  --dashboard-action-shadow: rgba(32, 201, 151, 0.18);
}

.dashboard-action-icon--revaccination {
  --dashboard-action-bg-strong: rgba(220, 53, 69, 0.15);
  --dashboard-action-bg-soft: rgba(220, 53, 69, 0.05);
  --dashboard-action-bg-hover-strong: rgba(220, 53, 69, 0.22);
  --dashboard-action-bg-hover-soft: rgba(220, 53, 69, 0.09);
  --dashboard-action-border: rgba(220, 53, 69, 0.24);
  --dashboard-action-color: var(--rmv-color-vaccines);
  --dashboard-action-shadow: rgba(220, 53, 69, 0.17);
}

.dashboard-action-icon--monitor {
  --dashboard-action-bg-strong: rgba(25, 135, 84, 0.13);
  --dashboard-action-bg-soft: rgba(25, 135, 84, 0.05);
  --dashboard-action-bg-hover-strong: rgba(25, 135, 84, 0.19);
  --dashboard-action-bg-hover-soft: rgba(25, 135, 84, 0.08);
  --dashboard-action-border: rgba(25, 135, 84, 0.2);
  --dashboard-action-color: #198754;
  --dashboard-action-shadow: rgba(25, 135, 84, 0.16);
}

.dashboard-action-icon--pulse,
.dashboard-action-icon-float {
  animation: dashboardIconFloat 2.75s ease-in-out infinite;
}

@keyframes dashboardIconFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.035);
  }
}

.dashboard-mini-metric-grid {
  display: grid;
  gap: 0.42rem;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
}

.dashboard-mini-metric {
  align-items: flex-start;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  height: 48px;
  justify-content: center;
  min-width: 88px;
  padding: 0.38rem 0.55rem;
}

.dashboard-mini-metric-label {
  font-size: 0.69rem;
  font-weight: 650;
  line-height: 1.1;
}

.dashboard-mini-metric-value {
  font-size: 1.08rem;
  line-height: 1.1;
}

.rmv-dashboard-chip-neutral {
  background: #f8fafc;
  color: #334155;
}

.rmv-dashboard-chip-info {
  background: #eff6ff;
  color: #1d4ed8;
}

.rmv-dashboard-chip-success {
  background: #ecfdf5;
  color: #166534;
}

.rmv-dashboard-chip-warning {
  background: #fffbeb;
  color: #92400e;
}

.rmv-dashboard-chip-danger {
  background: #fef2f2;
  color: #991b1b;
}

.rmv-dashboard-divider {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  margin: 0.65rem 0;
}

.rmv-dashboard-secondary-stat {
  align-items: center;
  color: #475569;
  display: flex;
  font-size: 0.9rem;
  justify-content: space-between;
  gap: 1rem;
}

.rmv-dashboard-secondary-stat strong {
  color: #0f172a;
  font-size: 1rem;
}

.rmv-dashboard-accumulated-table {
  color: #334155;
  font-size: 0.9rem;
}

.rmv-dashboard-accumulated-table thead th {
  border-bottom-color: rgba(148, 163, 184, 0.45);
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 700;
}

.rmv-dashboard-accumulated-table tbody td {
  border-bottom-color: rgba(226, 232, 240, 0.9);
  padding-bottom: 0.45rem;
  padding-top: 0.45rem;
}

.dashboard-chart-card {
  padding: 1rem;
}

.dashboard-empty-state {
  background: #f8fafc;
  border: 1px dashed rgba(148, 163, 184, 0.55);
  border-radius: 0.75rem;
  color: #64748b;
  font-size: 0.9rem;
  padding: 0.9rem;
}

.dashboard-simple-bar-list {
  display: grid;
  gap: 0.65rem;
}

.dashboard-simple-bar {
  align-items: center;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(8rem, 1fr) minmax(9rem, 2fr) 2.5rem;
}

.dashboard-simple-bar-label {
  color: #334155;
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-simple-bar-track {
  background: #e2e8f0;
  border-radius: 999px;
  height: 0.65rem;
  overflow: hidden;
}

.dashboard-simple-bar-fill {
  background: linear-gradient(90deg, var(--rmv-color-primary), #20c997);
  border-radius: inherit;
  display: block;
  height: 100%;
  min-width: 0.35rem;
}

.dashboard-simple-bar strong {
  color: #0f172a;
  font-size: 0.9rem;
  text-align: right;
}

.dashboard-donut-layout {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: 132px minmax(0, 1fr);
}

.dashboard-donut {
  align-items: center;
  border-radius: 999px;
  display: flex;
  height: 132px;
  justify-content: center;
  position: relative;
  width: 132px;
}

.dashboard-donut::after {
  background: #fff;
  border-radius: inherit;
  content: "";
  height: 78px;
  position: absolute;
  width: 78px;
}

.dashboard-donut span {
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.dashboard-segment-list {
  display: grid;
  gap: 0.45rem;
}

.dashboard-segment-row {
  align-items: center;
  color: #334155;
  display: grid;
  font-size: 0.86rem;
  gap: 0.45rem;
  grid-template-columns: 0.75rem minmax(0, 1fr) auto auto;
}

.dashboard-segment-row i {
  border-radius: 999px;
  height: 0.65rem;
  width: 0.65rem;
}

.dashboard-segment-row strong {
  color: #0f172a;
}

.dashboard-segment-row small {
  color: #64748b;
}

.dashboard-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.dashboard-chart-legend span {
  align-items: center;
  color: #475569;
  display: inline-flex;
  font-size: 0.82rem;
  gap: 0.3rem;
}

.dashboard-chart-legend i {
  border-radius: 999px;
  display: inline-block;
  height: 0.65rem;
  width: 0.65rem;
}

.dashboard-legend-appointments,
.dashboard-annual-appointments {
  background: #0d6efd;
}

.dashboard-legend-consultations,
.dashboard-annual-consultations {
  background: #20c997;
}

.dashboard-legend-vaccinations,
.dashboard-annual-vaccinations {
  background: #6f42c1;
}

.dashboard-annual-chart {
  align-items: end;
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(12, minmax(38px, 1fr));
  min-height: 220px;
  overflow-x: auto;
  padding-top: 0.75rem;
}

.dashboard-annual-month {
  display: grid;
  gap: 0.35rem;
  grid-template-rows: 160px auto;
  min-width: 38px;
}

.dashboard-annual-bars {
  align-items: end;
  border-bottom: 1px solid rgba(148, 163, 184, 0.45);
  display: flex;
  gap: 0.18rem;
  justify-content: center;
  padding: 0 0.1rem;
}

.dashboard-annual-bar {
  border-radius: 0.35rem 0.35rem 0 0;
  display: inline-block;
  min-height: 4px;
  width: 0.5rem;
}

.dashboard-annual-label {
  color: #64748b;
  font-size: 0.72rem;
  text-align: center;
  text-transform: capitalize;
}

.dashboard-demographic-table {
  color: #334155;
  font-size: 0.82rem;
  min-width: 920px;
}

.dashboard-demographic-table thead th {
  border-bottom-color: rgba(148, 163, 184, 0.45);
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 700;
}

.dashboard-demographic-table tbody td {
  border-bottom-color: rgba(226, 232, 240, 0.9);
  vertical-align: middle;
}

.dashboard-demographic-table td span {
  color: #64748b;
  display: block;
  font-size: 0.75rem;
}

@media (max-width: 991.98px) {
  .dashboard-hero-card .rmv-section-title,
  .dashboard-hero-card .dashboard-hero-value,
  .dashboard-hero-card p,
  .dashboard-hero-card .dashboard-mini-metric-grid,
  .dashboard-hero-card .rmv-dashboard-divider,
  .dashboard-hero-card .rmv-dashboard-secondary-stat {
    max-width: 100%;
  }

  .dashboard-action-icon {
    height: 72px;
    opacity: 0.22;
    width: 72px;
  }

  .dashboard-action-icon i {
    font-size: 2.55rem;
  }
}

@media (max-width: 767.98px) {
  .dashboard-mini-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-simple-bar {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .dashboard-simple-bar strong {
    text-align: left;
  }

  .dashboard-donut-layout {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .dashboard-annual-chart {
    grid-template-columns: repeat(12, 42px);
  }
}


.rmv-notifications-diagnostics {
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
  padding: .65rem .85rem;
  color: #475569;
  font-size: .72rem;
}

.rmv-notifications-diagnostics summary {
  color: #0d6efd;
  cursor: pointer;
  font-weight: 700;
  list-style-position: inside;
}

.rmv-notifications-diagnostics-grid {
  display: grid;
  grid-template-columns: minmax(6.5rem, auto) minmax(0, 1fr);
  gap: .2rem .55rem;
  margin: .55rem 0;
}

.rmv-notifications-diagnostics-grid dt {
  color: #64748b;
  font-weight: 700;
}

.rmv-notifications-diagnostics-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.rmv-notifications-diagnostics-counts {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin: .4rem 0 .55rem;
}

.rmv-notifications-diagnostics-counts span {
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  padding: .12rem .4rem;
}

.rmv-notifications-diagnostics-title {
  color: #334155;
  font-weight: 700;
  margin-bottom: .25rem;
}

.rmv-notifications-diagnostics-rows {
  display: grid;
  gap: .25rem;
}

.rmv-notifications-diagnostics-row {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: .35rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  padding: .35rem .45rem;
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-action-icon,
  .dashboard-action-icon--pulse,
  .dashboard-action-icon-float {
    animation: none;
  }

  .dashboard-action-icon,
  .dashboard-simple-bar-fill {
    transition: none;
  }
}

.rmv-prescription-shell {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr);
}

.rmv-prescription-form-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rmv-prescription-field-wide {
  grid-column: 1 / -1;
}

.rmv-prescription-modal .modal-dialog {
  max-width: min(1120px, calc(100vw - 2rem));
}

.rmv-prescription-modal .modal-header,
.rmv-prescription-modal .modal-footer {
  padding: 0.75rem 1rem;
}

.rmv-prescription-modal .modal-body {
  font-size: 0.875rem;
  padding: 0.85rem 1rem;
}

.rmv-prescription-modal .modal-title {
  font-size: 1.05rem;
}

.prescription-form-floating > .form-control,
.prescription-form-floating > .form-select {
  font-size: 0.86rem;
  height: 2.8rem;
  min-height: 2.8rem;
  padding-bottom: 0.35rem;
  padding-top: 1.25rem;
}

.prescription-form-floating > label {
  color: #64748b;
  font-size: 0.78rem;
  padding: 0.55rem 0.75rem;
}

.prescription-form-floating-textarea > .form-control {
  height: auto;
  min-height: 4.6rem;
}

.prescription-form-help {
  font-size: 0.72rem;
  margin-top: 0.2rem;
}

.prescription-field-wide {
  grid-column: 1 / -1;
}

.prescription-group-choice {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  padding: 0.5rem 0.7rem;
}

.prescription-group-choice legend {
  font-size: 0.78rem;
  margin: 0 0.25rem 0 0;
  width: auto;
}

.prescription-modal-actions {
  gap: 0.5rem;
}

.rmv-prescription-history-table {
  font-size: 0.82rem;
  margin-bottom: 0;
}

.rmv-prescription-history-table thead th {
  background: #f8fafc;
  border-bottom-color: #dbeafe;
  color: #475569;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.rmv-prescription-history-table td,
.rmv-prescription-history-table th {
  padding: 0.4rem 0.5rem;
  vertical-align: middle;
}

.rmv-prescription-history-actions {
  min-width: 10rem;
}

.rmv-prescription-action-group {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.rmv-prescription-action-group .btn {
  font-size: 0.76rem;
  line-height: 1.2;
  padding: 0.22rem 0.45rem;
}

.rmv-prescription-preview {
  background: #f8fafc;
  border: 1px solid var(--rmv-color-border);
  border-radius: 0.5rem;
  max-height: 72vh;
  overflow: auto;
  padding: 0.75rem;
}

.rmv-prescription-preview-note {
  background: #eff6ff;
  border-bottom: 1px solid #dbeafe;
  color: #1e40af;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.45rem 0.65rem;
}

.rmv-prescription-signer-warning {
  border-radius: 0;
  font-size: 0.8rem;
  margin: 0;
}

.rmv-prescription-print-sheet {
  background: #fff;
  border: 1px solid #d9e2ef;
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
}

.rmv-prescription-copy {
  background: #fff;
  border-bottom: 1px dashed #cbd5e1;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  font-size: 10pt;
  height: auto;
  line-height: 1.24;
  margin: 0 auto 12px auto;
  min-height: 263mm;
  overflow: visible;
  padding: 0;
  position: relative;
  width: 200mm;
}

.rmv-prescription-copy-body {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  z-index: 1;
}

.rmv-prescription-copy:last-child {
  border-bottom: 0;
}

.rmv-prescription-print-header {
  margin-bottom: 4mm;
}

.prescription-copy-header {
  margin-bottom: 4mm;
}

.prescription-header-top {
  align-items: end;
  border-bottom: 1px solid #111;
  column-gap: 6mm;
  display: grid;
  grid-template-columns: 42mm 1fr;
  padding-bottom: 1.5mm;
}

.prescription-header-logo-box {
  align-items: flex-start;
  display: flex;
  justify-content: flex-start;
  min-height: 18mm;
}

.prescription-header-clinic {
  align-self: end;
  text-align: right;
}

.prescription-header-meta-row {
  align-items: start;
  column-gap: 4mm;
  display: grid;
  font-size: 8pt;
  grid-template-columns: 58mm 1fr 52mm;
  padding-top: 1.5mm;
}

.prescription-header-mvz {
  font-size: 7.6pt;
  font-weight: 800;
  overflow: hidden;
  text-overflow: clip;
  text-transform: uppercase;
  white-space: nowrap;
}

.prescription-header-legend {
  font-size: 7.4pt;
  font-weight: 600;
  text-align: center;
}

.prescription-header-right,
.prescription-header-license,
.prescription-header-mr {
  font-size: 7.4pt;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.rmv-prescription-clinic-title,
.prescription-clinic-title {
  color: #6b7280;
  font-size: 14pt;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  text-align: right;
}

.rmv-prescription-copy h1,
.prescription-title,
.rmv-prescription-copy h3 {
  font-size: 15pt;
  font-weight: 800;
  margin: 5mm 0 4mm;
  text-align: center;
}

.rmv-prescription-kicker {
  color: var(--rmv-color-primary);
  font-size: 12pt;
  font-weight: 700;
  margin: 0;
}

.rmv-prescription-branch {
  color: var(--rmv-color-text-muted);
  display: block;
  font-size: 8.5pt;
  margin: 0.1rem 0 0;
}

.rmv-prescription-meta-line {
  display: grid;
  font-size: 8pt;
  font-weight: 700;
  gap: 3mm;
  grid-template-columns: 1fr 1fr 1fr;
  margin-top: 3mm;
  text-align: center;
}

.rmv-prescription-mr-line {
  font-size: 8pt;
  margin-top: 1mm;
  text-align: right;
}

.rmv-prescription-copy-label {
  color: var(--rmv-color-text-muted);
  font-size: 8pt;
  margin: 3mm 0 0;
  text-align: right;
  text-transform: uppercase;
}

.rmv-prescription-date {
  font-size: 9.5pt;
  font-weight: 700;
  margin: 0 0 3mm;
  text-align: right;
}

.rmv-prescription-reference {
  color: #475569;
  font-size: 8.5pt;
  margin: 1mm 0 2mm;
  text-align: right;
}

.rmv-prescription-two-columns {
  display: grid;
  gap: 4mm;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rmv-prescription-two-columns h2,
.prescription-section-title,
.rmv-prescription-two-columns h4,
.rmv-prescription-rx h2,
.rmv-prescription-rx h4 {
  border-bottom: 1px solid #cbd5e1;
  font-size: 10pt;
  font-weight: 800;
  margin: 0 0 2mm;
  padding-bottom: 1mm;
}

.rmv-prescription-copy dl {
  display: grid;
  gap: 1.1mm 2mm;
  grid-template-columns: 34mm minmax(0, 1fr);
  margin: 0;
}

.rmv-prescription-copy dt {
  font-size: 8.7pt;
  font-weight: 800;
}

.prescription-field-label,
.prescription-rx-label {
  font-size: 8.7pt;
  font-weight: 700;
}

.rmv-prescription-copy dd {
  border-bottom: 1px solid #d1d5db;
  font-size: 9.8pt;
  margin: 0;
  min-height: 4.8mm;
}

.prescription-field-value,
.prescription-rx-value {
  font-size: 9.8pt;
}

.rmv-prescription-rx {
  margin-top: 4mm;
}

.rmv-prescription-rx dl {
  grid-template-columns: 40% 60%;
}

.prescription-address-lines {
  line-height: 1.2;
  padding: 0.8mm 0;
}

.prescription-address-lines span {
  display: block;
}

.rmv-prescription-free-text {
  border-bottom: 1px solid #d1d5db;
  font-size: 9.8pt;
  margin-top: 3mm;
  min-height: 14mm;
}

.rmv-prescription-free-text p {
  margin: 0.15rem 0 0;
  white-space: pre-wrap;
}

.rmv-prescription-print-footer {
  flex: 0 0 auto;
  font-size: 7.8pt;
  line-height: 1.2;
  text-align: center;
}

.prescription-copy-bottom {
  background: #fff;
  break-inside: avoid;
  box-sizing: border-box;
  flex: 0 0 auto;
  height: auto;
  margin-top: 8mm;
  page-break-inside: avoid;
  position: static;
}

.prescription-copy-footer,
.prescription-copy-signature {
  break-inside: avoid;
  flex: 0 0 auto;
  page-break-inside: avoid;
}

.prescription-copy-signature {
  margin: 0 0 4mm 0;
  padding-top: 1mm;
  text-align: center;
}

.rmv-prescription-signature-line {
  border-top: 1px solid #111 !important;
  height: 0;
  margin: 0 auto 2mm auto;
  width: 78mm;
}

.prescription-signature-name {
  color: #111;
  font-size: 10pt;
  font-weight: 800;
  text-transform: uppercase;
}

.prescription-signature-license,
.prescription-signature-mr {
  color: #111;
  display: block;
  font-size: 8.3pt;
  line-height: 1.15;
}

.rmv-prescription-print-footer span,
.rmv-prescription-print-footer p {
  display: block;
  font-size: 0.68rem;
  margin: 0;
}

.rmv-prescription-print-footer p {
  color: var(--rmv-color-text-muted);
  margin-top: 0.4rem;
}

.prescription-footer-line {
  border-top: 1px solid #111 !important;
  margin-bottom: 1.8mm;
}

.prescription-footer-address,
.prescription-footer-contact {
  color: #334155;
  display: block;
  font-size: 7.8pt;
  line-height: 1.25;
  text-align: center;
}

.rmv-prescription-group-choice {
  align-items: center;
  border: 1px solid var(--rmv-color-border);
  border-radius: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  margin: 0;
  padding: 0.5rem 0.7rem;
}

.rmv-prescription-group-choice legend {
  float: none;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 0.25rem 0 0;
  width: auto;
}

.rmv-prescription-group-choice label {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
  margin: 0;
}

.rmv-prescription-print-page {
  background: #f1f5f9;
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
}

.rmv-prescription-print-toolbar {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #dbeafe;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.rmv-prescription-print-toolbar span {
  color: #64748b;
  display: block;
  font-size: 0.8rem;
}

.rmv-prescription-print-root {
  background: #fff;
  margin: 0 auto;
  max-width: none;
  width: 100%;
}

@media screen {
  .prescription-copy {
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  }
}

.rmv-prescription-logo,
.prescription-print-logo {
  display: block;
  max-height: 18mm;
  max-width: 38mm;
  object-fit: contain;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.prescription-logo-fallback {
  color: var(--rmv-color-primary);
  font-size: 12pt;
  font-weight: 800;
  line-height: 1.1;
}

.rmv-prescription-cancelled {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
  display: flex;
  font-size: 0.78rem;
  gap: 0.5rem;
  justify-content: center;
  margin: 0.45rem 0;
  padding: 0.35rem 0.5rem;
  text-align: center;
}

@media (max-width: 991.98px) {
  .rmv-prescription-shell {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 575.98px) {
  .rmv-prescription-form-grid,
  .rmv-prescription-two-columns,
  .rmv-prescription-meta-line {
    grid-template-columns: 1fr;
  }
}

@media print {
  html,
  body {
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.rmv-prescription-print-page {
    background: #fff !important;
    color: #111 !important;
  }

  .no-print,
  body.rmv-prescription-print-page nav,
  body.rmv-prescription-print-page .app-header,
  body.rmv-prescription-print-page .app-footer,
  body.rmv-prescription-print-page .modal,
  body.rmv-prescription-print-page .modal-backdrop,
  body.rmv-prescription-print-page button,
  .rmv-prescription-print-toolbar {
    display: none !important;
  }

  .rmv-prescription-print-page {
    background: #fff;
  }

  .rmv-prescription-print-root {
    margin: 0 !important;
    max-width: none;
    padding: 0 !important;
    width: auto !important;
  }

  .prescription-copy,
  .rmv-prescription-print-root .rmv-prescription-copy {
    border: 0;
    break-after: page;
    box-sizing: border-box;
    display: block !important;
    font-size: 10pt !important;
    height: auto !important;
    line-height: 1.24 !important;
    margin: 0 auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    min-height: 263mm !important;
    overflow: visible !important;
    page-break-after: always;
    padding: 0 !important;
    position: static !important;
    transform: none !important;
    width: 200mm !important;
    zoom: 1 !important;
  }

  .rmv-prescription-copy-body {
    display: block;
    min-height: auto;
    position: static;
  }

  .prescription-copy:last-child,
  .rmv-prescription-print-root .rmv-prescription-copy:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .prescription-print-logo,
  .rmv-prescription-logo {
    display: block !important;
    visibility: visible !important;
  }

  .prescription-copy-signature,
  .prescription-copy-bottom,
  .prescription-signature-line,
  .prescription-signature-name,
  .prescription-signature-license,
  .prescription-signature-mr,
  .prescription-copy-footer,
  .prescription-footer-line,
  .prescription-footer-main,
  .prescription-footer-contact,
  .rmv-prescription-print-footer {
    break-inside: avoid;
    color: #111 !important;
    display: block !important;
    page-break-inside: avoid;
    visibility: visible !important;
  }

  .prescription-footer-main {
    color: #334155 !important;
  }

  .prescription-signature-line,
  .prescription-footer-line {
    border-top-color: #111 !important;
  }

  .prescription-copy-bottom {
    height: auto !important;
    margin-top: 8mm !important;
    position: static !important;
  }

  .rmv-prescription-free-text,
  .rmv-prescription-two-columns {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .rmv-prescription-rx {
    break-inside: auto;
    page-break-inside: auto;
  }

  .rmv-prescription-medication {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .rmv-prescription-medication > h3 {
    break-after: avoid;
    page-break-after: avoid;
  }

  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

.rmv-document-prescription-fields {
  border-top: 1px solid var(--rmv-color-border);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
}

.document-prescription {
  color: #111827;
  font-size: 10pt;
  line-height: 1.45;
}

.document-prescription-intro {
  margin-bottom: 5mm;
}

.document-prescription-grid {
  border: 1px solid #cbd5e1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 5mm;
}

.document-prescription-grid > div {
  border-bottom: 1px solid #e2e8f0;
  min-height: 13mm;
  padding: 2.5mm 3mm;
}

.document-prescription-grid > div:nth-child(odd) {
  border-right: 1px solid #e2e8f0;
}

.document-prescription-grid span,
.document-prescription-table th {
  color: #475569;
  display: block;
  font-size: 7.8pt;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.document-prescription-grid strong {
  display: block;
  font-size: 9.5pt;
  margin-top: 1.5mm;
}

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

.document-prescription-table th,
.document-prescription-table td {
  border: 1px solid #cbd5e1;
  padding: 2.6mm 3mm;
  text-align: left;
  vertical-align: top;
}

.document-prescription-table th {
  width: 42mm;
}

.document-prescription-note {
  color: #475569;
  font-size: 8.5pt;
  margin-top: 5mm;
}

.rmv-condition-row {
  align-items: center;
  background: var(--rmv-color-surface);
  border: 1px solid var(--rmv-color-border);
  border-radius: 8px;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.75rem 0.85rem;
}

.rmv-operational-panel {
  background: var(--rmv-color-surface);
  border: 1px solid var(--rmv-color-border);
  border-radius: 10px;
  padding: 1rem;
}

.rmv-operational-form-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rmv-operational-notes {
  grid-column: 1 / -1;
}

.rmv-operational-meta-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rmv-operational-meta-grid > div {
  background: var(--rmv-color-background);
  border: 1px solid var(--rmv-color-border);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
}

.rmv-operational-meta-grid span {
  color: var(--rmv-color-text-muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.rmv-operational-meta-grid strong {
  color: var(--rmv-color-text);
  display: block;
  font-size: 0.95rem;
  font-weight: 750;
}

.rmv-operational-summary {
  background: var(--rmv-color-background);
  border: 1px solid var(--rmv-color-border);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0.45rem;
  overflow: hidden;
}

.rmv-operational-summary > div {
  align-items: baseline;
  display: flex;
  gap: 0.3rem;
  min-height: 1.8rem;
  min-width: 0;
  padding: 0.3rem 0.5rem;
}

.rmv-operational-summary > div:not(.rmv-operational-summary-notes) {
  border-bottom: 1px solid var(--rmv-color-border);
}

.rmv-operational-summary > div:not(:nth-child(3n + 1)) {
  border-left: 1px solid var(--rmv-color-border);
}

.rmv-operational-summary span {
  color: var(--rmv-color-text-muted);
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 700;
}

.rmv-operational-summary strong {
  color: var(--rmv-color-text);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.2;
  min-width: 0;
  overflow-wrap: anywhere;
}

.rmv-operational-summary .rmv-operational-summary-notes {
  border-left: 0;
  grid-column: 1 / -1;
}

@media (max-width: 575.98px) {
  .rmv-operational-summary {
    grid-template-columns: 1fr;
  }

  .rmv-operational-summary > div,
  .rmv-operational-summary > div:not(:nth-child(3n + 1)) {
    border-bottom: 1px solid var(--rmv-color-border);
    border-left: 0;
  }

  .rmv-operational-summary .rmv-operational-summary-notes {
    border-bottom: 0;
  }
}
.rmv-operational-actions {
  border-top: 1px solid var(--rmv-color-border);
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
  padding-top: 1rem;
}

.rmv-operational-summary + .rmv-operational-actions {
  margin-top: 0.45rem;
  padding-top: 0.65rem;
}
.rmv-operational-inline-form {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.rmv-operational-control-label {
  color: var(--rmv-color-text);
  font-weight: 780;
}

.rmv-operational-terminal-actions {
  align-items: end;
  border-top: 1px solid var(--rmv-color-border);
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  margin-top: 1.25rem;
  padding-top: 1rem;
  width: 100%;
}

.rmv-operational-deliver-form {
  align-self: end;
  min-width: 0;
}

.rmv-operational-cancel-form {
  align-items: end;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: max-content minmax(12rem, 1fr) max-content;
  min-width: 0;
}

.rmv-operational-cancel-form .form-label {
  color: var(--rmv-muted, #667085);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  white-space: nowrap;
}

.rmv-operational-cancel-form .btn {
  white-space: nowrap;
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .rmv-operational-terminal-actions {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }

  .rmv-operational-cancel-form {
    grid-template-columns: minmax(0, 1fr) max-content;
  }

  .rmv-operational-cancel-form .form-label {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .rmv-operational-terminal-actions .btn {
    width: auto;
  }
}

@media (max-width: 767.98px) {
  .rmv-operational-terminal-actions,
  .rmv-operational-cancel-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .rmv-operational-cancel-form .form-label {
    margin-bottom: 0;
  }

  .rmv-operational-terminal-actions .btn {
    width: 100%;
  }
}
.rmv-grooming-panel {
  display: grid;
  gap: 1rem;
}

.rmv-grooming-empty,
.rmv-grooming-alert {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}

.rmv-grooming-alert {
  background: rgba(205, 230, 248, 0.26);
}

.rmv-grooming-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: space-between;
}

.rmv-grooming-header .rmv-operational-tag {
  font-size: 0.92rem;
  min-height: 2.15rem;
  padding: 0.55rem 0.85rem;
  text-decoration: none;
}

.rmv-grooming-board {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.rmv-grooming-board > div {
  background: var(--rmv-color-background);
  border: 1px solid var(--rmv-color-border);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
}

.rmv-grooming-board span {
  color: var(--rmv-color-text-muted);
  display: block;
  font-size: 0.76rem;
  font-weight: 750;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.rmv-grooming-board strong {
  color: var(--rmv-color-text);
  display: block;
  font-size: 0.98rem;
  font-weight: 750;
}

.rmv-grooming-actions {
  border-top: 1px solid var(--rmv-color-border);
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 1rem;
}

.rmv-grooming-notes {
  background: var(--rmv-color-background);
  border: 1px solid var(--rmv-color-border);
  border-radius: 8px;
  padding: 0.85rem;
}

.rmv-grooming-notes h4 {
  color: var(--rmv-color-text);
  font-size: 0.98rem;
  font-weight: 760;
  margin: 0 0 0.45rem;
}

.rmv-grooming-notes p {
  color: var(--rmv-color-text);
  margin: 0;
  white-space: pre-wrap;
}

.rmv-grooming-notes-empty {
  color: var(--rmv-color-text-muted);
  font-style: italic;
}

.rmv-grooming-notes span {
  color: var(--rmv-color-text-muted);
  display: block;
  font-size: 0.78rem;
  margin-top: 0.45rem;
}

.rmv-aesthetic-photos {
  background: var(--rmv-color-background);
  border: 1px solid var(--rmv-color-border);
  border-radius: 8px;
  display: grid;
  gap: 0.65rem;
  padding: 0.8rem;
}

.rmv-aesthetic-photos > header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
}

.rmv-aesthetic-photos h4 {
  color: var(--rmv-color-text);
  font-size: 0.94rem;
  font-weight: 760;
  margin: 0;
}

.rmv-aesthetic-photo-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rmv-aesthetic-photo-card {
  background: var(--rmv-color-surface);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 8px;
  display: grid;
  gap: 0.5rem;
  padding: 0.65rem;
}

.rmv-aesthetic-photo-card > div:first-child {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.rmv-aesthetic-photo-card strong {
  color: var(--rmv-color-text);
  font-size: 0.86rem;
  font-weight: 760;
}

.rmv-aesthetic-photo-upload {
  align-items: center;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.rmv-aesthetic-photo-upload > [data-rmv-aesthetic-photo-status],
.rmv-aesthetic-photo-upload > [data-rmv-aesthetic-photo-camera],
.rmv-aesthetic-photo-upload > [data-rmv-aesthetic-photo-pending],
.rmv-aesthetic-photo-upload > [data-rmv-aesthetic-photo-save] {
  grid-column: 1 / -1;
}

.rmv-aesthetic-photo-pending {
  align-items: center;
  background: var(--rmv-color-surface-soft);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 8px;
  display: flex;
  gap: 0.65rem;
  padding: 0.5rem;
}

.rmv-aesthetic-photo-pending[hidden] {
  display: none;
}

.rmv-aesthetic-photo-pending img {
  border-radius: 6px;
  height: 72px;
  object-fit: cover;
  width: 96px;
}

.rmv-aesthetic-photo-pending .btn {
  margin-left: auto;
}
.rmv-aesthetic-photo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.rmv-aesthetic-photo-thumb-link {
  align-items: center;
  color: var(--rmv-color-text-muted);
  display: grid;
  gap: 0.3rem;
  justify-items: start;
  text-decoration: none;
}

.rmv-aesthetic-photo-thumb-link:hover,
.rmv-aesthetic-photo-thumb-link:focus {
  color: var(--rmv-color-primary);
  text-decoration: none;
}

.rmv-aesthetic-photo-thumb {
  aspect-ratio: 4 / 3;
  background: var(--rmv-color-background);
  border: 1px solid var(--rmv-color-border);
  border-radius: 8px;
  display: block;
  height: 6rem;
  object-fit: cover;
  width: 8rem;
}


.rmv-aesthetic-photo-actions {
  align-items: center;
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  margin-left: 0.5rem;
}

.rmv-aesthetic-helper-text {
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.25;
}

.rmv-aesthetic-photo-history-item {
  align-items: flex-start;
  display: inline-flex;
  flex-direction: column;
  gap: 0.4rem;
}

.rmv-doc-link-secondary {
  color: var(--bs-secondary-color, #6c757d);
}

.rmv-aesthetic-conditions {
  background: var(--rmv-color-background);
  border: 1px solid var(--rmv-color-border);
  border-radius: 8px;
  display: grid;
  gap: 0.75rem;
  padding: 0.8rem;
}

.rmv-aesthetic-conditions > header,
.rmv-condition-photo-history > h5 {
  margin: 0;
}

.rmv-aesthetic-conditions h4 {
  font-size: 0.94rem;
  font-weight: 760;
  margin: 0;
}

.rmv-condition-photo-controls {
  align-items: end;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(10rem, 0.85fr) minmax(14rem, 1.55fr) auto;
}

.rmv-condition-photo-controls > button {
  min-height: 2.05rem;
  white-space: nowrap;
}

.rmv-condition-camera {
  max-width: 32rem;
}

.rmv-condition-photo-preview-list {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}

.rmv-condition-photo-preview {
  background: var(--rmv-color-surface);
  border: 1px solid var(--rmv-color-border);
  border-radius: 8px;
  display: grid;
  gap: 0.4rem;
  min-width: 0;
  padding: 0.45rem;
}

.rmv-condition-photo-preview img {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
  width: 100%;
}

.rmv-condition-photo-preview span {
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rmv-condition-photo-history {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

@media (max-width: 991.98px) {
  .rmv-condition-photo-controls {
    grid-template-columns: 1fr 1fr;
  }

  .rmv-condition-photo-controls > button {
    justify-self: start;
  }
}

@media (max-width: 575.98px) {
  .rmv-condition-photo-controls {
    grid-template-columns: 1fr;
  }
}

.rmv-aesthetic-photo-preview-modal .modal-body {
  background: #f8fafc;
}

.rmv-aesthetic-photo-preview-frame {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 0.75rem;
  display: flex;
  justify-content: center;
  min-height: 280px;
  overflow: hidden;
  padding: 1rem;
}

.rmv-aesthetic-photo-preview-frame img {
  display: block;
  max-height: 75vh;
  max-width: 100%;
  object-fit: contain;
}
.rmv-aesthetic-photo-thumb-readonly span {
  color: var(--rmv-color-text-muted);
  font-size: 0.72rem;
  font-weight: 760;
}

@media (max-width: 760px) {
  .rmv-aesthetic-photo-grid,
  .rmv-aesthetic-photo-upload {
    grid-template-columns: 1fr;
  }
}

.rmv-admission-panel {
  display: grid;
  gap: 1rem;
}

.rmv-admission-empty,
.rmv-admission-alert {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}

.rmv-admission-alert {
  background: rgba(205, 230, 248, 0.26);
}

.rmv-admission-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: space-between;
}

.rmv-admission-header .rmv-operational-tag {
  text-decoration: none;
}

.rmv-admission-form-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rmv-admission-wide {
  grid-column: 1 / -1;
}

.rmv-admission-form-compact {
  gap: 0.65rem;
}

.rmv-admission-vitals-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.rmv-admission-vitals-grid .rmv-admission-weight,
.rmv-admission-vitals-grid .rmv-admission-temperature,
.rmv-admission-vitals-grid .rmv-admission-mucous {
  grid-column: span 2;
}

.rmv-admission-vitals-grid .rmv-admission-respiratory,
.rmv-admission-vitals-grid .rmv-admission-heart {
  grid-column: span 3;
}

.rmv-admission-items {
  background: var(--rmv-color-background);
  border: 1px solid var(--rmv-color-border);
  border-radius: 8px;
  padding: 0.85rem;
}

.rmv-admission-items h4 {
  color: var(--rmv-color-text);
  font-size: 1rem;
  font-weight: 760;
  margin: 0 0 0.65rem;
}

.pathology-modal-host {
  position: relative;
  z-index: 3000;
}

.pathology-modal-root {
  display: none;
  inset: 0;
  position: fixed;
  z-index: 3000;
}

.pathology-modal-root.is-open {
  display: block;
}

.pathology-modal-backdrop {
  background: rgba(15, 23, 42, 0.55);
  inset: 0;
  position: fixed;
  z-index: 3000;
}

.pathology-modal-panel {
  background: #fff;
  border: 1px solid rgba(13, 110, 253, 0.14);
  border-radius: 14px;
  bottom: 24px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.35);
  color: #111827;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  height: calc(100dvh - 48px);
  left: 50%;
  max-height: calc(100dvh - 48px);
  opacity: 1;
  overflow: hidden;
  position: fixed;
  top: 24px;
  transform: translateX(-50%);
  width: min(1080px, calc(100vw - 48px));
  z-index: 3010;
}

.pathology-modal-panel > form {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
}

.pathology-modal-panel > form > fieldset {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.pathology-modal-panel.modal-dialog-scrollable .pathology-modal-body {
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  touch-action: pan-y;
}
.pathology-modal-header,
.pathology-modal-footer {
  background: #fff;
  position: relative;
  z-index: 1;
}

.pathology-modal-header {
  align-items: flex-start;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}

.pathology-modal-body {
  background: #fff;
  font-size: 0.875rem;
  min-height: 0;
  overscroll-behavior: contain;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.85rem 1rem;
}

.pathology-modal-footer {
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  padding: 0.75rem 1rem;
}

body.pathology-modal-open {
  overflow: hidden;
}

.rmv-pathology-modal-body .rmv-operational-meta-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rmv-pathology-form-grid {
  gap: 0.6rem 0.75rem;
}

.pathology-form-grid {
  display: grid;
  gap: 0.6rem 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pathology-form-floating > .form-control,
.pathology-form-floating > .form-select {
  font-size: 0.86rem;
  height: 2.8rem;
  min-height: 2.8rem;
  padding-bottom: 0.35rem;
  padding-top: 1.25rem;
}

.pathology-form-floating > label {
  color: #64748b;
  font-size: 0.78rem;
  padding: 0.55rem 0.75rem;
}

.pathology-form-floating-textarea > .form-control,
.pathology-form-floating textarea.form-control {
  height: auto;
  min-height: 4.5rem;
}

.pathology-form-floating-textarea > label {
  padding-top: 0.55rem;
}

.pathology-diagnostic-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.75rem;
}

.pathology-diagnostic-options {
  align-items: center;
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
}

.pathology-diagnostic-options .form-check {
  margin-bottom: 0;
  min-height: 0;
}

.pathology-other-test-inline {
  display: block;
  flex: 1 1 320px;
  min-width: 320px;
}

.pathology-other-test-inline label {
  margin: 0;
}

.pathology-other-test-inline input {
  min-width: 220px;
}

.pathology-question-grid {
  display: grid;
  gap: 0.6rem 0.75rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.pathology-question-full {
  grid-column: 1 / -1;
}

.pathology-clinical-question {
  min-width: 0;
}

.pathology-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.pathology-current-treatment-detail {
  margin-top: 0.5rem;
}

.rmv-pathology-textarea {
  min-height: 4.5rem;
  resize: vertical;
}

.rmv-pathology-textarea-short {
  min-height: 4.2rem;
}

.rmv-pathology-textarea-large {
  min-height: 5.6rem;
}

.rmv-pathology-section-title {
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0.9rem 0 0.5rem;
  text-transform: uppercase;
}

.pathology-modal-body .rmv-pathology-section-title:first-of-type {
  margin-top: 0;
}

.rmv-pathology-actions {
  white-space: nowrap;
}

.rmv-pathology-actions .btn + .btn {
  margin-left: 0.25rem;
}

.rmv-pathology-section .rmv-history-table {
  font-size: 0.82rem;
}

.rmv-pathology-section .rmv-history-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.rmv-pathology-section .rmv-history-table td,
.rmv-pathology-section .rmv-history-table th {
  padding: 0.4rem 0.5rem;
}

@media (max-width: 767.98px) {
  .pathology-modal-panel {
    bottom: 12px;
    height: calc(100dvh - 24px);
    max-height: calc(100dvh - 24px);
    top: 12px;
    width: calc(100vw - 20px);
  }

  .rmv-pathology-modal-body .rmv-operational-meta-grid {
    grid-template-columns: 1fr;
  }

  .pathology-question-grid {
    grid-template-columns: 1fr;
  }

  .pathology-form-grid,
  .rmv-pathology-form-grid {
    grid-template-columns: 1fr;
  }

  .pathology-other-test-inline {
    align-items: stretch;
    flex-direction: column;
    min-width: 100%;
  }

  .pathology-other-test-inline input {
    min-width: 0;
  }
}

.rmv-admission-sale-group {
  background: var(--rmv-color-surface);
  border: 1px solid var(--rmv-color-border);
  border-radius: 8px;
  display: grid;
  gap: 0.42rem;
  margin-top: 0.58rem;
  overflow: hidden;
  padding: 0.55rem;
}

.rmv-admission-sale-group header {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.rmv-admission-sale-group h5 {
  color: var(--rmv-color-text);
  font-size: 0.9rem;
  font-weight: 760;
  margin: 0;
}

.rmv-admission-sale-group header strong {
  color: var(--rmv-color-text);
  font-size: 0.9rem;
  font-weight: 760;
}

.rmv-admission-group-empty {
  background: var(--rmv-color-background);
  border: 1px dashed var(--rmv-color-border);
  border-radius: 8px;
  color: var(--rmv-color-text-muted);
  font-size: 0.86rem;
  margin: 0;
  padding: 0.6rem 0.7rem;
}

.rmv-admission-sale-table {
  border: 1px solid var(--rmv-color-border);
  border-radius: 8px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.rmv-admission-sale-row {
  align-items: start;
  background: var(--rmv-color-surface);
  border-top: 1px solid var(--rmv-color-border);
  display: grid;
  font-size: 0.78rem;
  gap: 0.42rem;
  grid-template-columns: 5.7rem minmax(10.5rem, 1fr) minmax(8rem, 0.75fr) 3.4rem 5.5rem 5.5rem 2.25rem;
  min-width: 42rem;
  padding: 0.34rem 0.48rem;
}

.rmv-admission-sale-row:first-child {
  border-top: 0;
}

.rmv-admission-sale-head {
  background: var(--rmv-color-background);
  color: var(--rmv-color-text-muted);
  font-size: 0.68rem;
  font-weight: 760;
  text-transform: uppercase;
}

.rmv-aesthetic-concept-row {
  grid-template-columns: 5.7rem minmax(10.5rem, 1fr) 4rem minmax(8rem, 0.75fr) minmax(6rem, auto);
  min-width: 34rem;
}

.rmv-admission-sale-row strong {
  color: var(--rmv-color-text);
  display: block;
  font-size: 0.8rem;
}

.rmv-admission-sale-row small {
  color: var(--rmv-color-text-muted);
  display: block;
  font-size: 0.7rem;
  margin-top: 0.1rem;
}

.rmv-line-item-action-head,
.rmv-line-item-action-cell {
  text-align: center;
}

.rmv-line-item-action-cell form {
  display: inline;
  margin: 0;
}

.rmv-line-item-remove {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--rmv-color-text-muted);
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 760;
  height: 1.45rem;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
  width: 1.45rem;
}

.rmv-line-item-remove:hover,
.rmv-line-item-remove:focus {
  background: rgba(185, 28, 28, 0.08);
  color: var(--rmv-color-danger);
  transform: scale(1.05);
}

.rmv-admission-line-form {
  align-items: end;
  display: grid;
  gap: 0.48rem;
  grid-template-columns: minmax(12rem, 1fr) 5.2rem minmax(8rem, 0.75fr) auto;
}

.rmv-admission-line-form .form-label {
  font-size: 0.72rem;
  margin-bottom: 0.12rem;
}

.rmv-admission-line-form .rmv-admission-catalog-empty {
  grid-column: 1 / -1;
}

.rmv-admission-sale-empty span {
  color: var(--rmv-color-text-muted);
  font-weight: 650;
  grid-column: 1 / -1;
}

.rmv-billing-line-form {
  align-items: end;
  grid-template-columns: minmax(8.5rem, 0.72fr) minmax(13rem, 1.25fr) minmax(5.2rem, 0.44fr) minmax(9rem, 1fr) auto;
}

.rmv-line-item-catalog-search {
  min-width: 0;
  position: relative;
}

.rmv-line-item-catalog-results {
  background: var(--rmv-color-surface);
  border: 1px solid var(--rmv-color-border);
  border-radius: 0.55rem;
  box-shadow: 0 0.75rem 1.8rem rgba(15, 23, 42, 0.18);
  left: 0;
  max-height: 17rem;
  overflow-y: auto;
  padding: 0.25rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.15rem);
  z-index: 1080;
}

.rmv-line-item-catalog-result {
  background: transparent;
  border: 0;
  border-radius: 0.4rem;
  color: var(--rmv-color-text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-height: 2.55rem;
  padding: 0.38rem 0.5rem;
  text-align: left;
  width: 100%;
}

.rmv-line-item-catalog-result:hover,
.rmv-line-item-catalog-result:focus,
.rmv-line-item-catalog-result.is-active {
  background: var(--rmv-color-primary-soft);
  outline: none;
}

.rmv-line-item-catalog-result-name {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
}

.rmv-line-item-catalog-empty {
  color: var(--rmv-color-text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.35rem 0.5rem;
}

.rmv-field-help {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--rmv-color-text-muted);
  cursor: help;
  display: inline-flex;
  font-size: 0.62rem;
  font-weight: 800;
  height: 1rem;
  justify-content: center;
  margin-left: 0.18rem;
  vertical-align: text-bottom;
  width: 1rem;
}

.rmv-field-help:focus {
  color: var(--rmv-color-primary);
  outline: 2px solid var(--rmv-color-primary-soft);
  outline-offset: 2px;
}

.rmv-admission-sale-total {
  align-items: center;
  background: var(--rmv-color-surface);
  border: 1px solid var(--rmv-color-border);
  border-radius: 0 0 8px 8px;
  display: grid;
  gap: 0.12rem 0.65rem;
  grid-template-columns: minmax(0, 1fr) 12rem 5.5rem;
  margin-top: 0.45rem;
  padding: 0.38rem 0.5rem;
}

.rmv-admission-sale-total span {
  color: var(--rmv-color-text);
  font-size: 0.82rem;
  font-weight: 800;
  grid-column: 2;
  text-align: right;
}

.rmv-admission-sale-total strong {
  color: var(--rmv-color-text);
  font-size: 0.88rem;
  font-weight: 820;
  grid-column: 3;
  text-align: right;
}

.rmv-admission-sale-total small {
  color: var(--rmv-color-text-muted);
  font-size: 0.7rem;
  grid-column: 1 / -1;
  text-align: right;
}

.rmv-admission-sale-total.rmv-billing-total-row {
  background: rgba(205, 230, 248, 0.18);
  box-shadow: none;
}

.rmv-table-compact {
  font-size: 0.78rem;
}

.rmv-billing-table,
.rmv-responsive-table {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.rmv-compact-file-table {
  max-width: 100%;
  overflow-x: auto;
}

.rmv-file-type-badge {
  display: inline-flex;
}

.rmv-admission-line-list {
  display: grid;
  gap: 0.55rem;
}

.rmv-admission-line-list > div {
  background: var(--rmv-color-surface);
  border: 1px solid var(--rmv-color-border);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}

.rmv-admission-line-list span {
  color: var(--rmv-color-text-muted);
  display: block;
  font-size: 0.76rem;
  font-weight: 760;
  text-transform: uppercase;
}

.rmv-admission-line-list strong {
  color: var(--rmv-color-text);
  display: block;
  font-size: 0.94rem;
}

.rmv-admission-line-list small {
  color: var(--rmv-color-text-muted);
  display: block;
  margin-top: 0.15rem;
}

.rmv-admission-item-forms {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rmv-admission-item-forms form {
  background: var(--rmv-color-surface);
  border: 1px solid var(--rmv-color-border);
  border-radius: 8px;
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem;
}

.rmv-admission-catalog-empty {
  background: rgba(205, 230, 248, 0.35);
  border: 1px solid rgba(13, 110, 253, 0.22);
  border-radius: 8px;
  color: var(--rmv-color-text-muted);
  font-size: 0.86rem;
  line-height: 1.35;
  margin: 0 0 0.2rem;
  padding: 0.65rem 0.75rem;
}

.rmv-admission-item-forms h5 {
  color: var(--rmv-color-text);
  font-size: 0.96rem;
  font-weight: 760;
  margin: 0;
}

.rmv-admission-attachments-note {
  background: rgba(205, 230, 248, 0.22);
  border: 1px dashed rgba(13, 110, 253, 0.36);
  border-radius: 8px;
  color: var(--rmv-color-text-muted);
  font-size: 0.86rem;
  padding: 0.75rem 0.85rem;
}

.rmv-admission-attachments,
.rmv-admission-history,
.rmv-admission-history-detail,
.rmv-admission-events,
.rmv-document-files,
.rmv-document-group {
  background: var(--rmv-color-surface);
  border: 1px solid var(--rmv-color-border);
  border-radius: 8px;
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
}

.rmv-admission-history,
.rmv-admission-history-detail,
.rmv-document-group {
  margin-top: 1rem;
}

.rmv-admission-attachments > header,
.rmv-admission-history > header,
.rmv-admission-history-detail > header,
.rmv-document-files > header,
.rmv-document-group > header {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.rmv-admission-attachments h4,
.rmv-admission-events h4,
.rmv-admission-history-clinical h4,
.rmv-document-group h4 {
  color: var(--rmv-color-text);
  font-size: 0.98rem;
  font-weight: 760;
  margin: 0;
}

.rmv-admission-attachments > header > span,
.rmv-admission-history > header > span,
.rmv-document-files > header > span,
.rmv-document-group > header > span {
  background: rgba(205, 230, 248, 0.36);
  border: 1px solid rgba(13, 110, 253, 0.2);
  border-radius: 999px;
  color: var(--rmv-color-text);
  font-size: 0.8rem;
  font-weight: 760;
  padding: 0.3rem 0.55rem;
  white-space: nowrap;
}

.rmv-admission-attachment-form {
  align-items: end;
  background: var(--rmv-color-background);
  border: 1px solid var(--rmv-color-border);
  border-radius: 8px;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(11rem, 0.8fr) minmax(14rem, 1fr) minmax(10rem, 0.8fr) auto;
  padding: 0.75rem;
}

.rmv-admission-attachment-form .form-label {
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
}

.rmv-admission-attachment-list,
.rmv-admission-history-table,
.rmv-admission-events-table,
.rmv-document-table {
  border: 1px solid var(--rmv-color-border);
  border-radius: 8px;
  overflow: hidden;
}

.rmv-history-table,
.rmv-billing-preview-table,
.rmv-documents-table-compact {
  background: var(--rmv-color-surface);
  border: 1px solid var(--rmv-color-border);
  border-collapse: collapse;
  border-radius: 8px;
  color: var(--rmv-color-text);
  display: table;
  font-size: 0.76rem;
  line-height: 1.18;
  overflow: hidden;
  table-layout: auto;
  width: 100%;
}

.rmv-history-table th,
.rmv-history-table td,
.rmv-billing-preview-table th,
.rmv-billing-preview-table td,
.rmv-documents-table-compact th,
.rmv-documents-table-compact td {
  border-bottom: 1px solid var(--rmv-color-border);
  padding: 0.28rem 0.42rem;
  vertical-align: middle;
}

.rmv-history-table th,
.rmv-billing-preview-table th,
.rmv-documents-table-compact th {
  background: rgba(205, 230, 248, 0.26);
  color: var(--rmv-color-text-muted);
  font-size: 0.64rem;
  font-weight: 780;
  text-transform: uppercase;
  white-space: nowrap;
}

.rmv-history-table tbody tr:hover,
.rmv-billing-preview-table tbody tr:hover,
.rmv-documents-table-compact tbody tr:hover {
  background: rgba(205, 230, 248, 0.18);
}

.rmv-history-table strong,
.rmv-billing-preview-table strong {
  color: var(--rmv-color-text);
  display: block;
  font-size: 0.76rem;
  font-weight: 760;
}

.rmv-history-table small {
  color: var(--rmv-color-text-muted);
  display: block;
  font-size: 0.68rem;
  line-height: 1.08;
}

.rmv-document-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.rmv-document-row-actions .btn {
  min-height: 1.8rem;
  padding: 0.18rem 0.48rem;
  font-size: 0.73rem;
}
.rmv-history-table th:nth-child(1),
.rmv-history-table th:nth-child(2),
.rmv-history-table th:nth-child(5),
.rmv-history-table th:nth-child(7),
.rmv-history-table th:nth-child(8),
.rmv-history-table td:nth-child(1),
.rmv-history-table td:nth-child(2),
.rmv-history-table td:nth-child(5),
.rmv-history-table td:nth-child(7),
.rmv-history-table td:nth-child(8),
.rmv-documents-table-compact th:nth-child(1),
.rmv-documents-table-compact th:nth-child(4),
.rmv-documents-table-compact th:nth-child(6),
.rmv-documents-table-compact td:nth-child(1),
.rmv-documents-table-compact td:nth-child(4),
.rmv-documents-table-compact td:nth-child(6) {
  white-space: nowrap;
}

.rmv-billing-preview-table th:nth-child(4),
.rmv-billing-preview-table th:nth-child(5),
.rmv-billing-preview-table th:nth-child(6),
.rmv-billing-preview-table td:nth-child(4),
.rmv-billing-preview-table td:nth-child(5),
.rmv-billing-preview-table td:nth-child(6) {
  text-align: right;
  white-space: nowrap;
}

.rmv-billing-total-row td {
  background: rgba(205, 230, 248, 0.2);
  color: var(--rmv-color-text);
  font-weight: 800;
}

.rmv-billing-total-row td:first-child {
  text-align: right;
}

.rmv-billing-preview-note {
  font-size: 0.72rem;
  margin-top: 0.3rem;
}

.rmv-doc-file-cell {
  text-align: center;
  white-space: nowrap;
}

.rmv-doc-file-icon {
  min-height: 1.15rem;
  min-width: 1.45rem;
  padding: 0.12rem 0.18rem;
}

.rmv-icon {
  display: inline-flex;
  font-size: 0.95em;
  line-height: 1;
  margin-right: 0.35rem;
  vertical-align: -0.08em;
}

.rmv-nav-svg-icon {
  display: inline-block;
  height: 1rem;
  margin-right: 0.35rem;
  object-fit: contain;
  vertical-align: -0.125em;
  width: 1rem;
}

.rmv-record-tabs .rmv-nav-svg-icon,
.rmv-tabs .rmv-nav-svg-icon,
.rmv-main-nav .rmv-nav-svg-icon {
  opacity: 0.92;
}

.rmv-soft-action-btn {
  border-color: rgba(13, 110, 253, 0.42);
  border-radius: 999px;
  color: var(--rmv-color-primary);
  font-weight: 800;
  min-width: 8.75rem;
  transition: background var(--rmv-transition-fast), border-color var(--rmv-transition-fast), box-shadow var(--rmv-transition-fast), color var(--rmv-transition-fast), transform var(--rmv-transition-fast);
}

.rmv-soft-action-btn:hover,
.rmv-soft-action-btn:focus {
  background: var(--rmv-color-primary);
  border-color: var(--rmv-color-primary);
  box-shadow: 0 10px 24px rgba(13, 110, 253, 0.18);
  color: #fff;
  transform: translateY(-1px);
}

.rmv-icon-muted {
  color: var(--rmv-color-text-muted);
}

.rmv-icon-action {
  color: var(--rmv-color-primary);
}

.rmv-link-button {
  background: transparent;
  border: 0;
  color: var(--rmv-color-primary);
  display: inline-flex;
  align-items: center;
  font: inherit;
  font-size: 0.82rem;
  margin-left: 0.45rem;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: color var(--rmv-transition-fast), transform var(--rmv-transition-fast);
  white-space: nowrap;
}

.rmv-link-button:hover,
.rmv-link-button:focus {
  color: var(--rmv-color-primary-hover);
  transform: translateY(-1px);
}

.rmv-link-danger {
  color: #b42318;
}

.rmv-link-danger:hover,
.rmv-link-danger:focus {
  color: #8f1d14;
}

.rmv-file-icon {
  align-items: center;
  border: 1px solid rgba(13, 110, 253, 0.16);
  border-radius: 6px;
  display: inline-flex;
  font-size: 1rem;
  height: 1.3rem;
  justify-content: center;
  line-height: 1;
  min-width: 1.45rem;
  padding: 0.08rem 0.16rem;
}

.rmv-file-icon-pdf {
  background: rgba(185, 28, 28, 0.08);
  color: #B91C1C;
}

.rmv-file-icon-image,
.rmv-file-icon-video {
  background: rgba(13, 110, 253, 0.1);
  color: #1D4ED8;
}

.rmv-file-icon-word {
  background: rgba(205, 230, 248, 0.5);
  color: #1E40AF;
}

.rmv-file-icon-file {
  background: rgba(169, 171, 174, 0.14);
  color: var(--rmv-color-text-muted);
}

.rmv-tab .rmv-icon,
.rmv-navbar .rmv-icon {
  color: currentColor;
}

.rmv-doc-link .rmv-icon {
  margin-right: 0.24rem;
}

.rmv-admission-attachment-main {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
  min-width: 0;
}

.rmv-doc-link {
  color: var(--rmv-color-primary);
  font-size: 0.72rem;
  font-weight: 760;
  text-decoration: underline;
  text-underline-offset: 0.14rem;
  white-space: nowrap;
}

.rmv-doc-link:hover,
.rmv-doc-link:focus {
  color: #346FA8;
}

.rmv-nowrap {
  white-space: nowrap;
}

.rmv-admission-attachment-list > div,
.rmv-admission-history-row,
.rmv-document-row {
  align-items: center;
  background: var(--rmv-color-surface);
  border-top: 1px solid var(--rmv-color-border);
  display: grid;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
}

.rmv-admission-attachment-list > div {
  grid-template-columns: minmax(0, 1fr) 5.5rem 9rem auto;
}

.rmv-admission-history-row {
  grid-template-columns: 9rem 9rem minmax(10rem, 1.1fr) 7rem 7rem minmax(7rem, 0.8fr) 7rem auto;
}

.rmv-document-row {
  grid-template-columns: 9rem 6rem 10rem minmax(12rem, 1fr) minmax(10rem, 0.8fr) auto;
}

.rmv-document-table-compact {
  overflow-x: auto;
}

.rmv-document-table-compact .rmv-document-row {
  gap: 0.34rem;
  grid-template-columns: 7.8rem 5rem 7.5rem 4.6rem minmax(8rem, 0.75fr) 5.7rem;
  line-height: 1.12;
  min-width: 680px;
  padding: 0.24rem 0.38rem;
}

.rmv-admission-attachment-table.rmv-document-table-compact .rmv-document-row {
  grid-template-columns: 7.8rem 8rem 4.8rem minmax(8rem, 1fr) 4rem;
  min-width: 560px;
}

.rmv-document-table-compact .rmv-document-head {
  font-size: 0.64rem;
}

.rmv-document-table-compact .rmv-document-row strong {
  font-size: 0.72rem;
  line-height: 1.18;
}

.rmv-document-table-compact .rmv-document-row small {
  font-size: 0.62rem;
  line-height: 1.1;
}

.rmv-document-table-compact .rmv-document-row .btn {
  font-size: 0.66rem;
  padding: 0.18rem 0.34rem;
  white-space: nowrap;
}

.rmv-link-action {
  background: transparent;
  border: 0;
  color: var(--rmv-color-primary);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1.1;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 0.16rem;
  white-space: nowrap;
}

.rmv-link-action:hover,
.rmv-link-action:focus {
  color: #346FA8;
  text-decoration-thickness: 0.12rem;
}

.rmv-document-file-cell {
  align-items: center;
  display: inline-flex;
  gap: 0.28rem;
  min-width: 0;
}

.rmv-document-file-icon {
  align-items: center;
  border: 1px solid rgba(13, 110, 253, 0.2);
  border-radius: 6px;
  display: inline-flex;
  font-size: 0.62rem;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  min-height: 1.28rem;
  min-width: 2.35rem;
  padding: 0.22rem 0.28rem;
}

.rmv-document-file-icon-pdf {
  background: rgba(185, 28, 28, 0.08);
  color: #B91C1C;
}

.rmv-document-file-icon-image {
  background: rgba(13, 110, 253, 0.12);
  color: #1D4ED8;
}

.rmv-document-file-icon-video {
  background: rgba(13, 110, 253, 0.12);
  color: #1D4ED8;
}

.rmv-document-file-icon-word {
  background: rgba(205, 230, 248, 0.55);
  color: #1E40AF;
}

.rmv-document-file-icon-file {
  background: rgba(169, 171, 174, 0.14);
  color: var(--rmv-color-text-muted);
}

.rmv-admission-attachment-list > div:first-child,
.rmv-admission-history-row:first-child,
.rmv-document-row:first-child {
  border-top: 0;
}

.rmv-admission-history-head,
.rmv-document-head {
  background: var(--rmv-color-background);
  color: var(--rmv-color-text-muted);
  font-size: 0.74rem;
  font-weight: 760;
  text-transform: uppercase;
}

.rmv-admission-history-compact,
.rmv-admission-history-detail-compact {
  font-size: 0.84rem;
}

.rmv-admission-history-selected {
  background: rgba(205, 230, 248, 0.34);
  box-shadow: inset 3px 0 0 var(--rmv-color-primary);
}

.rmv-history-detail-actions {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.rmv-admission-attachment-list strong,
.rmv-admission-history-row strong,
.rmv-admission-events-table strong,
.rmv-document-row strong {
  color: var(--rmv-color-text);
  display: block;
  font-size: 0.9rem;
}

.rmv-admission-attachment-list small,
.rmv-admission-history-row small,
.rmv-admission-events-table small,
.rmv-document-row small {
  color: var(--rmv-color-text-muted);
  display: block;
  font-size: 0.78rem;
}

.rmv-admission-history-meta {
  display: grid;
  gap: 0.42rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.rmv-admission-history-meta > div,
.rmv-admission-history-clinical {
  background: var(--rmv-color-background);
  border: 1px solid var(--rmv-color-border);
  border-radius: 8px;
  padding: 0.42rem 0.55rem;
}

.rmv-admission-history-meta span {
  color: var(--rmv-color-text-muted);
  display: block;
  font-size: 0.62rem;
  font-weight: 760;
  text-transform: uppercase;
}

.rmv-admission-history-meta strong {
  color: var(--rmv-color-text);
  display: block;
  font-size: 0.78rem;
  margin-top: 0.12rem;
}

.rmv-history-note-row {
  align-items: baseline;
  background: var(--rmv-color-background);
  border: 1px solid var(--rmv-color-border);
  border-radius: 8px;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 9rem minmax(0, 1fr);
  padding: 0.42rem 0.55rem;
}

.rmv-history-note-row span {
  color: var(--rmv-color-text-muted);
  font-size: 0.62rem;
  font-weight: 760;
  text-transform: uppercase;
}

.rmv-history-note-row strong {
  color: var(--rmv-color-text);
  font-size: 0.78rem;
  font-weight: 650;
}

.rmv-admission-history-clinical dl {
  display: grid;
  gap: 0.35rem 0.75rem;
  grid-template-columns: 11rem minmax(0, 1fr);
  margin: 0.65rem 0 0;
}

.rmv-admission-history-clinical dt {
  color: var(--rmv-color-text-muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.rmv-admission-history-clinical dd {
  color: var(--rmv-color-text);
  margin: 0;
}

.rmv-admission-sale-group-compact {
  gap: 0.35rem;
  padding: 0.55rem;
}

.rmv-admission-sale-group-compact .rmv-admission-sale-row {
  grid-template-columns: minmax(10rem, 1fr) 3.4rem 5.8rem 5.8rem minmax(8rem, 0.8fr);
  min-width: 620px;
  padding: 0.34rem 0.45rem;
}

.rmv-admission-sale-group-compact .rmv-admission-sale-head {
  font-size: 0.66rem;
}

.rmv-admission-events-table > div {
  background: var(--rmv-color-surface);
  border-top: 1px solid var(--rmv-color-border);
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 9rem minmax(0, 1fr) minmax(7rem, 0.35fr);
  padding: 0.55rem 0.65rem;
}

.rmv-admission-events-table > div:first-child {
  border-top: 0;
}

.rmv-operational-tag {
  align-items: center;
  border: 1px solid rgba(47, 47, 47, 0.16);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  justify-content: center;
  line-height: 1;
  min-height: 1.75rem;
  min-width: 3.25rem;
  padding: 0.4rem 0.5rem;
  text-align: center;
  white-space: nowrap;
}

.rmv-operational-tag-dark {
  color: #ffffff;
}

.rmv-operational-tag-light {
  color: var(--rmv-color-text);
}

.rmv-monitor-page {
  display: grid;
  gap: 1rem;
}

.rmv-monitor-hero {
  align-items: center;
  background: var(--rmv-color-surface);
  border: 1px solid var(--rmv-color-border);
  border-radius: 10px;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 1.15rem;
}

.rmv-monitor-hero h1 {
  color: var(--rmv-color-text);
  font-size: 1.45rem;
  font-weight: 750;
  margin: 0;
}

.rmv-monitor-hero p {
  color: var(--rmv-color-text-muted);
  margin: 0.25rem 0 0;
}

.rmv-monitor-hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.rmv-monitor-total {
  background: rgba(13, 110, 253, 0.1);
  border: 1px solid rgba(13, 110, 253, 0.18);
  border-radius: 999px;
  color: var(--rmv-color-primary);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  white-space: nowrap;
}

.rmv-monitor-total-kpi {
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, rgba(205, 230, 248, 0.42) 100%);
  border: 1px solid rgba(13, 110, 253, 0.28);
  border-radius: 14px;
  box-shadow: 0 0.55rem 1.2rem rgba(13, 110, 253, 0.12);
  color: var(--rmv-color-primary);
  display: inline-grid;
  gap: 0.08rem;
  justify-items: center;
  min-width: 7.5rem;
  padding: 0.45rem 0.9rem 0.5rem;
  white-space: nowrap;
}

.rmv-monitor-total-label {
  color: var(--rmv-color-text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.rmv-monitor-total-number {
  color: var(--rmv-color-primary);
  font-size: 1.85rem;
  font-weight: 820;
  line-height: 1;
}

.rmv-monitor-meta {
  align-items: center;
  color: var(--rmv-color-text-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.84rem;
  gap: 0.4rem 1rem;
  justify-content: space-between;
}

.rmv-monitor-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.rmv-monitor-filter {
  align-items: center;
  background: var(--rmv-color-surface);
  border: 1px solid var(--rmv-color-border);
  border-radius: 999px;
  color: var(--rmv-color-text);
  display: inline-flex;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.35rem 0.55rem 0.35rem 0.8rem;
  text-decoration: none;
}

.rmv-monitor-filter:hover,
.rmv-monitor-filter:focus {
  border-color: rgba(13, 110, 253, 0.42);
  color: var(--rmv-color-primary);
  text-decoration: none;
}

.rmv-monitor-filter strong {
  align-items: center;
  background: var(--rmv-color-background);
  border-radius: 999px;
  color: var(--rmv-color-text-muted);
  display: inline-flex;
  font-size: 0.78rem;
  justify-content: center;
  min-width: 1.65rem;
  padding: 0.18rem 0.45rem;
}

.rmv-monitor-filter.active {
  background: var(--rmv-color-primary);
  border-color: var(--rmv-color-primary);
  color: #ffffff;
}

.rmv-monitor-filter.active strong {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.rmv-monitor-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
}

.rmv-monitor-area-filters {
  display: flex;
  flex: 1 1 35rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rmv-monitor-filter-chip {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 750;
  gap: 0.45rem;
  min-height: 2.3rem;
  padding: 0.35rem 0.55rem 0.35rem 0.8rem;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.rmv-monitor-filter-chip:hover,
.rmv-monitor-filter-chip:focus {
  color: #ffffff;
  filter: saturate(1.08);
  text-decoration: none;
  transform: translateY(-1px);
}

.rmv-monitor-filter-chip strong {
  align-items: center;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  justify-content: center;
  min-width: 1.75rem;
  padding: 0.18rem 0.48rem;
}

.rmv-monitor-filter-chip-active {
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.16);
  outline: 2px solid rgba(47, 47, 47, 0.08);
}

.rmv-monitor-filter-todos {
  background: #374151;
}

.rmv-monitor-filter-estetica {
  background: #38BDF8;
}

.rmv-monitor-filter-pension {
  background: var(--rmv-color-primary);
}

.rmv-monitor-filter-internamiento {
  background: #F59E0B;
}

.rmv-monitor-filter-cirugia {
  background: #16A34A;
}

.rmv-monitor-search {
  align-items: center;
  display: flex;
  flex: 0 1 19rem;
  gap: 0.55rem;
  justify-content: flex-end;
}

.rmv-monitor-search .form-control {
  background: var(--rmv-color-surface);
  border-color: var(--rmv-color-border);
  border-radius: 999px;
  min-height: 2.35rem;
}

.rmv-monitor-search span {
  color: var(--rmv-color-text-muted);
  font-size: 0.8rem;
  min-width: max-content;
}

.rmv-monitor-board {
  background: var(--rmv-color-surface);
  border: 1px solid var(--rmv-color-border);
  border-radius: 10px;
  box-shadow: 0 0.65rem 1.4rem rgba(47, 47, 47, 0.04);
  overflow: hidden;
}

.rmv-monitor-table {
  display: grid;
  width: 100%;
}

.rmv-monitor-row {
  align-items: center;
  border-bottom: 1px solid var(--rmv-color-border);
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(8rem, 1.25fr) minmax(8rem, 1fr) minmax(7rem, 0.85fr) minmax(8rem, 0.95fr) minmax(7rem, 0.85fr) minmax(2.8rem, 0.25fr) minmax(6rem, 0.7fr) minmax(6rem, 0.6fr);
  min-height: 3.35rem;
  padding: 0.52rem 0.85rem;
}

.rmv-monitor-row:last-child {
  border-bottom: 0;
}

.rmv-monitor-row:not(.rmv-monitor-table-head):hover {
  background: rgba(205, 230, 248, 0.28);
}

.rmv-monitor-table-head {
  background: var(--rmv-color-background);
  color: var(--rmv-color-text-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  min-height: 2.7rem;
  text-transform: uppercase;
}

.rmv-monitor-label-compact {
  display: none;
}

.rmv-monitor-row > div {
  color: var(--rmv-color-text);
  font-size: 0.9rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.rmv-monitor-patient {
  font-weight: 760;
}

.rmv-monitor-notes-cell {
  align-items: center;
  display: flex;
  justify-content: center;
}

.rmv-monitor-notes-heading {
  overflow-wrap: normal !important;
  text-align: center;
  white-space: nowrap;
}

.rmv-monitor-notes-action {
  align-items: center;
  background: #d1f0de;
  border: 1px solid #80c49e;
  border-radius: 999px;
  color: #145735;
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  padding: 0;
  transition: background-color var(--rmv-transition-fast), box-shadow var(--rmv-transition-fast), transform var(--rmv-transition-fast);
  width: 2rem;
}

.rmv-monitor-notes-action:hover,
.rmv-monitor-notes-action:focus-visible {
  background: #b8e5ca;
  border-color: #4b9e70;
  box-shadow: 0 0.3rem 0.8rem rgba(21, 128, 61, 0.18);
  color: #10472b;
  transform: translateY(-1px);
}

.rmv-tooltip-black {
  --bs-tooltip-bg: #111827;
  --bs-tooltip-color: #ffffff;
  --bs-tooltip-opacity: 1;
}

.rmv-monitor-tag-link,
.rmv-monitor-tag-chip {
  min-height: 1.85rem;
  min-width: 3.25rem;
  padding: 0.42rem 0.55rem;
}

.rmv-monitor-search-empty {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.rmv-monitor-groups {
  display: grid;
  gap: 1rem;
}

.rmv-monitor-group {
  display: grid;
  gap: 0.8rem;
}

.rmv-monitor-group-header {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.rmv-monitor-group-header h2 {
  color: var(--rmv-color-text);
  font-size: 1.08rem;
  font-weight: 750;
  margin: 0;
}

.rmv-monitor-group-header span {
  color: var(--rmv-color-text-muted);
  font-size: 0.86rem;
}

.rmv-monitor-card-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.rmv-monitor-card {
  background: var(--rmv-color-surface);
  border: 1px solid var(--rmv-color-border);
  border-radius: 10px;
  box-shadow: 0 0.65rem 1.4rem rgba(47, 47, 47, 0.05);
  display: grid;
  gap: 0.9rem;
  padding: 0.95rem;
}

.rmv-monitor-card-main {
  align-items: center;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: auto minmax(0, 1fr);
}

.rmv-monitor-photo-frame {
  align-items: center;
  background: var(--rmv-color-background);
  border: 1px solid var(--rmv-color-border);
  border-radius: 10px;
  display: flex;
  height: 4.5rem;
  justify-content: center;
  overflow: hidden;
  width: 4.5rem;
}

.rmv-monitor-photo {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.rmv-monitor-photo-placeholder {
  color: var(--rmv-color-neutral);
  font-size: 0.82rem;
  font-weight: 800;
}

.rmv-monitor-card-copy {
  min-width: 0;
}

.rmv-monitor-card-copy h3 {
  color: var(--rmv-color-text);
  font-size: 1.12rem;
  font-weight: 760;
  margin: 0.45rem 0 0.1rem;
  overflow-wrap: anywhere;
}

.rmv-monitor-card-copy p {
  color: var(--rmv-color-text-muted);
  margin: 0;
  overflow-wrap: anywhere;
}

.rmv-monitor-tag {
  align-items: center;
  border: 1px solid rgba(47, 47, 47, 0.16);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 800;
  justify-content: center;
  line-height: 1;
  min-height: 2rem;
  min-width: 3.5rem;
  padding: 0.5rem 0.6rem;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.rmv-monitor-tag:hover,
.rmv-monitor-tag:focus {
  filter: saturate(1.08);
  text-decoration: none;
}

.rmv-monitor-card-details {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rmv-monitor-card-details div {
  background: var(--rmv-color-background);
  border: 1px solid var(--rmv-color-border);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}

.rmv-monitor-card-details span {
  color: var(--rmv-color-text-muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.22rem;
  text-transform: uppercase;
}

.rmv-monitor-card-details strong {
  color: var(--rmv-color-text);
  display: block;
  font-size: 0.92rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.rmv-monitor-card-actions {
  display: flex;
  justify-content: flex-end;
}

.rmv-monitor-status {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 0.38rem;
  height: 1.875rem;
  justify-content: center;
  line-height: 1;
  max-width: 9.65rem;
  overflow: hidden;
  padding: 0.34rem 0.65rem;
  white-space: nowrap;
  width: 9.65rem;
}

.rmv-monitor-status .rmv-icon {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.875rem;
  line-height: 1;
  margin: 0;
  position: static;
  transform: none;
}

.rmv-monitor-status .rmv-icon::before {
  display: block;
  line-height: 1;
}

.rmv-monitor-status-registered {
  background: #eaf2ff;
  border-color: #b8d4ff;
  color: #0d6efd;
}

.rmv-monitor-status-cage {
  background: #f1f3f5;
  border-color: #ced4da;
  color: #495057;
}

.rmv-monitor-status-progress {
  background: #e7f1ff;
  border-color: #9ec5fe;
  color: #084298;
}

.rmv-monitor-status-recovery {
  background: #f1eafe;
  border-color: #d8c2f3;
  color: #6f42c1;
}

.rmv-monitor-status-surgery {
  background: #fff3cd;
  border-color: #ffe69c;
  color: #997404;
}

.rmv-monitor-status-observation {
  background: #eef0f3;
  border-color: #ced4da;
  color: #495057;
}

.rmv-monitor-status-ready {
  background: #dff5e8;
  border-color: #a3cfbb;
  color: #146c43;
}

.rmv-monitor-status-notified {
  background: #ddf5f8;
  border-color: #9eeaf9;
  color: #087990;
}

.rmv-monitor-status-neutral {
  background: #f8f9fa;
  border-color: #dee2e6;
  color: #495057;
}

.rmv-operational-log-filters .form-label {
  font-size: 0.75rem;
  line-height: 1.15;
  margin-bottom: 0.2rem;
}

.rmv-operational-log-filters .form-control-sm,
.rmv-operational-log-filters .form-select-sm,
.rmv-operational-log-filters .btn-sm {
  font-size: 0.75rem;
}


.rmv-event-detail-section-title {
  border-bottom: 1px solid var(--bs-border-color);
  padding-bottom: 0.45rem;
}

.rmv-event-detail-field {
  min-width: 0;
}

.rmv-event-detail-field > span {
  color: var(--bs-secondary-color);
  display: block;
  font-size: 0.72rem;
  line-height: 1.15;
  margin-bottom: 0.2rem;
}

.rmv-event-detail-field > strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.rmv-event-detail-guid {
  user-select: text;
  word-break: break-all;
}

@media (max-width: 575.98px) {
  .rmv-event-detail-actions,
  .rmv-event-detail-actions .btn,
  #operational-event-detail-modal .modal-footer > .btn {
    width: 100%;
  }
}

.rmv-monitor-empty {
  background: var(--rmv-color-surface);
  border: 1px dashed rgba(13, 110, 253, 0.32);
  border-radius: 10px;
  padding: 1.4rem;
  text-align: center;
}

.rmv-monitor-empty h2 {
  color: var(--rmv-color-text);
  font-size: 1.1rem;
  font-weight: 750;
  margin: 0 0 0.35rem;
}

.rmv-monitor-empty p {
  color: var(--rmv-color-text-muted);
  margin: 0 0 0.85rem;
}

.rmv-monitor-tv .rmv-monitor-hero {
  padding: 1.25rem 1.4rem;
}

.rmv-monitor-tv .rmv-monitor-hero h1 {
  font-size: 1.75rem;
}

.rmv-monitor-tv .rmv-monitor-total-kpi {
  min-width: 9rem;
  padding: 0.58rem 1rem 0.65rem;
}

.rmv-monitor-tv .rmv-monitor-total-label {
  font-size: 0.82rem;
}

.rmv-monitor-tv .rmv-monitor-total-number {
  font-size: 2.35rem;
}

.rmv-monitor-tv .rmv-monitor-row {
  font-size: 1.08rem;
  min-height: 4rem;
  padding: 0.68rem 1rem;
}

.rmv-monitor-tv .rmv-monitor-table-head {
  font-size: 0.86rem;
  min-height: 3.1rem;
}

.rmv-monitor-tv .rmv-monitor-row > div {
  font-size: 1.02rem;
}

.rmv-monitor-tv .rmv-monitor-status {
  font-size: 0.96rem;
}

.rmv-monitor-tv .rmv-monitor-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr));
}

.rmv-monitor-tv .rmv-monitor-card {
  padding: 1.1rem;
}

.rmv-monitor-tv .rmv-monitor-tag {
  font-size: 1rem;
  min-height: 2.3rem;
}

.rmv-demo-seed-page {
  display: grid;
  gap: 1rem;
}

.rmv-demo-seed-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.8fr);
}

.rmv-demo-seed-grid h2,
.rmv-operational-panel h2 {
  color: var(--rmv-color-text);
  font-size: 1.05rem;
  font-weight: 750;
  margin: 0 0 0.45rem;
}

.rmv-demo-seed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.rmv-demo-seed-counts {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rmv-demo-seed-counts div {
  background: var(--rmv-color-background);
  border: 1px solid var(--rmv-color-border);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
}

.rmv-demo-seed-counts span {
  color: var(--rmv-color-text-muted);
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.rmv-demo-seed-counts strong {
  color: var(--rmv-color-text);
  display: block;
  font-size: 1.35rem;
  font-weight: 760;
}

@media (max-width: 767.98px) {
  .rmv-monitor-hero,
  .rmv-monitor-meta {
    align-items: stretch;
    flex-direction: column;
  }

  .rmv-monitor-hero-actions,
  .rmv-monitor-card-actions {
    justify-content: stretch;
  }

  .rmv-monitor-total-kpi {
    justify-self: stretch;
    width: 100%;
  }

  .rmv-monitor-hero-actions .btn,
  .rmv-monitor-card-actions .btn {
    width: 100%;
  }

  .rmv-monitor-card-details {
    grid-template-columns: 1fr;
  }

  .rmv-monitor-toolbar,
  .rmv-monitor-search {
    align-items: stretch;
    flex-direction: column;
  }

  .rmv-monitor-area-filters,
  .rmv-monitor-search {
    flex-basis: auto;
    width: 100%;
  }

  .rmv-monitor-row {
    align-items: start;
    gap: 0.42rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0.75rem 0.85rem;
  }

  .rmv-monitor-table-head {
    display: none;
  }

  .rmv-monitor-row > div {
    display: grid;
    gap: 0.12rem;
  }

  .rmv-monitor-row > div::before {
    color: var(--rmv-color-text-muted);
    content: attr(data-label);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .rmv-monitor-row > div[data-label="Paciente"],
  .rmv-monitor-row > div[data-label="TAG"] {
    grid-row: span 2;
  }

  .rmv-monitor-row > div[data-label="TAG"] {
    align-items: end;
    justify-items: end;
  }

  .rmv-demo-seed-grid,
  .rmv-demo-seed-counts {
    grid-template-columns: 1fr;
  }
}

.rmv-confirm-modal .modal-dialog {
  max-width: min(92vw, 31rem);
}

.rmv-confirm-modal .modal-content {
  background: var(--rmv-color-surface);
  border: 1px solid rgba(13, 110, 253, 0.16);
  border-radius: 14px;
  box-shadow: 0 1.25rem 3rem rgba(47, 47, 47, 0.18);
  overflow: hidden;
}

.rmv-confirm-modal .modal-header,
.rmv-confirm-modal .modal-footer {
  border-color: var(--rmv-color-border);
  padding: 1rem 1.15rem;
}

.rmv-confirm-modal .modal-body {
  padding: 1rem 1.15rem 1.1rem;
}

.rmv-confirm-title {
  color: var(--rmv-color-text);
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.3;
}

.rmv-confirm-message {
  color: var(--rmv-color-text-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.rmv-confirm-cancel,
.rmv-confirm-accept {
  min-width: 6.5rem;
}

.rmv-confirm-cancel {
  background: var(--rmv-color-background);
  border-color: var(--rmv-color-border);
  color: var(--rmv-color-text);
}

.rmv-confirm-cancel:hover,
.rmv-confirm-cancel:focus {
  background: #eef3f8;
  border-color: rgba(13, 110, 253, 0.24);
  color: var(--rmv-color-text);
}

/* Bloque UI 05.0 - Modern visual refresh */
.rmv-main-container {
  padding-bottom: 2rem;
  padding-top: 0.35rem;
}

.rmv-navbar {
  -webkit-backdrop-filter: var(--rmv-blur-glass);
  backdrop-filter: var(--rmv-blur-glass);
  background: rgba(255, 255, 255, 0.78);
  border-bottom-color: rgba(13, 110, 253, 0.14) !important;
  box-shadow: 0 0.75rem 2rem rgba(31, 41, 55, 0.07);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.rmv-navbar-container {
  min-height: 4rem;
}

.rmv-brand {
  border-radius: 999px;
  padding: 0.2rem 0.35rem;
  transition: transform var(--rmv-transition-base), filter var(--rmv-transition-base);
}

.rmv-brand:hover,
.rmv-brand:focus {
  filter: saturate(1.08);
  text-decoration: none;
  transform: translateY(-1px);
}

.rmv-brand-mark {
  background: linear-gradient(135deg, var(--rmv-color-primary), var(--rmv-color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.34rem;
  letter-spacing: 0;
}

.rmv-navbar .nav-link {
  border-radius: 999px;
  padding-left: 0.72rem;
  padding-right: 0.72rem;
  transition: background-color var(--rmv-transition-fast), color var(--rmv-transition-fast), transform var(--rmv-transition-fast);
}

.rmv-navbar .nav-link:hover,
.rmv-navbar .nav-link:focus {
  background: rgba(205, 230, 248, 0.34);
  text-decoration: none;
  transform: translateY(-1px);
}

.rmv-navbar-dropdown .dropdown-menu {
  -webkit-backdrop-filter: var(--rmv-blur-glass);
  backdrop-filter: var(--rmv-blur-glass);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(13, 110, 253, 0.15);
  border-radius: var(--rmv-radius-md);
  box-shadow: var(--rmv-shadow-md);
}

.rmv-context-pill {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(13, 110, 253, 0.2);
  box-shadow: var(--rmv-shadow-xs);
}

.rmv-card,
.rmv-context-card,
.rmv-patient-top-card,
.rmv-operational-panel,
.rmv-admission-attachments,
.rmv-admission-history,
.rmv-admission-history-detail,
.rmv-admission-events,
.rmv-document-files,
.rmv-document-group,
.rmv-monitor-hero,
.rmv-monitor-toolbar,
.rmv-monitor-board,
.rmv-demo-seed-grid,
.rmv-empty-state {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: var(--rmv-color-surface-soft);
  border-color: rgba(13, 110, 253, 0.14);
  border-radius: var(--rmv-radius-lg);
  box-shadow: var(--rmv-shadow-sm);
}

.rmv-context-card,
.rmv-record-header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(205, 230, 248, 0.34));
  border-left: 0;
  overflow: hidden;
  position: relative;
}

.rmv-context-card::before,
.rmv-record-header::before {
  background: var(--rmv-gradient-brand);
  content: "";
  height: 3px;
  inset: 0 0 auto;
  opacity: 0.92;
  position: absolute;
}

.rmv-record-header-pet-photo {
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--rmv-shadow-xs);
}

.rmv-record-header-tag-chip,
.rmv-operational-tag,
.rmv-monitor-tag-chip {
  box-shadow: var(--rmv-shadow-xs);
  transition: box-shadow var(--rmv-transition-base), filter var(--rmv-transition-base), transform var(--rmv-transition-base);
}

.rmv-record-header-tag-chip:hover,
.rmv-record-header-tag-chip:focus,
.rmv-monitor-tag-link:hover,
.rmv-monitor-tag-link:focus {
  box-shadow: var(--rmv-shadow-sm);
  transform: translateY(-1px) scale(1.02);
}

.rmv-page-title,
.rmv-monitor-hero h1 {
  font-weight: 850;
  letter-spacing: 0;
}

.rmv-section-title {
  font-weight: 800;
}

.btn,
.rmv-btn-primary,
.rmv-btn-secondary,
.btn-rmv-primary {
  border-radius: var(--rmv-radius-md);
  box-shadow: 0 0.35rem 0.9rem rgba(31, 41, 55, 0.06);
  transition: background-color var(--rmv-transition-base), border-color var(--rmv-transition-base), box-shadow var(--rmv-transition-base), color var(--rmv-transition-base), transform var(--rmv-transition-base), filter var(--rmv-transition-base);
}

.rmv-btn-primary,
.btn-rmv-primary {
  background: linear-gradient(135deg, var(--rmv-color-primary), var(--rmv-color-accent));
  border-color: transparent;
}

.rmv-btn-primary:hover,
.rmv-btn-primary:focus,
.btn-rmv-primary:hover,
.btn-rmv-primary:focus {
  background: linear-gradient(135deg, var(--rmv-color-primary-hover), var(--rmv-color-primary));
  box-shadow: 0 0.65rem 1.3rem rgba(var(--rmv-color-primary-rgb), 0.24);
  transform: translateY(-1px) scale(1.02);
}

.rmv-btn-secondary {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(var(--rmv-color-primary-rgb), 0.18);
}

.rmv-btn-secondary:hover,
.rmv-btn-secondary:focus {
  background: rgba(205, 230, 248, 0.42);
  box-shadow: 0 0.58rem 1.1rem rgba(var(--rmv-color-primary-rgb), 0.14);
  text-decoration: none;
  transform: translateY(-1px) scale(1.02);
}

.btn:active,
.rmv-btn-primary:active,
.rmv-btn-secondary:active,
.btn-rmv-primary:active {
  transform: translateY(0) scale(0.99);
}

.form-control,
.form-select {
  background-color: rgba(255, 255, 255, 0.88);
  border-color: rgba(var(--rmv-color-primary-rgb), 0.24);
  border-radius: var(--rmv-radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 0.2rem 0.75rem rgba(31, 41, 55, 0.03);
  transition: background-color var(--rmv-transition-base), border-color var(--rmv-transition-base), box-shadow var(--rmv-transition-base), transform var(--rmv-transition-base);
}

.form-control:hover,
.form-select:hover {
  border-color: rgba(13, 110, 253, 0.42);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--rmv-color-primary);
  box-shadow: 0 0 0 0.18rem rgba(13, 110, 253, 0.18), var(--rmv-shadow-xs);
  transform: translateY(-1px);
}
/* Selector de archivos compartido: mantiene alineados el botón nativo y el nombre. */
.form-control[type="file"] {
  background-color: var(--rmv-color-surface);
  border-color: var(--rmv-color-input-border);
  border-radius: var(--rmv-radius-md);
  box-shadow: none;
  color: var(--rmv-color-text);
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 100%;
  min-height: 2.35rem;
  min-width: 0;
  overflow: hidden;
  padding: 0.375rem 0.75rem;
  text-overflow: ellipsis;
  transform: none;
  white-space: nowrap;
  width: 100%;
}

.form-control[type="file"]::file-selector-button {
  background-color: var(--rmv-color-background);
  border: 0;
  border-inline-end: 1px solid var(--rmv-color-border);
  border-radius: 0;
  box-shadow: none;
  color: var(--rmv-color-text);
  margin: -0.375rem -0.75rem;
  margin-inline-end: 0.75rem;
  padding: 0.375rem 0.75rem;
  max-width: 62%;
  min-width: 7.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background-color var(--rmv-transition-base), color var(--rmv-transition-base);
}

.form-control[type="file"]::-webkit-file-upload-button {
  background-color: var(--rmv-color-background);
  border: 0;
  border-inline-end: 1px solid var(--rmv-color-border);
  border-radius: 0;
  box-shadow: none;
  color: var(--rmv-color-text);
  margin: -0.375rem -0.75rem;
  margin-inline-end: 0.75rem;
  padding: 0.375rem 0.75rem;
  max-width: 62%;
  min-width: 7.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background-color var(--rmv-transition-base), color var(--rmv-transition-base);
}

.form-control[type="file"]:hover:not(:disabled):not([readonly])::file-selector-button,
.form-control[type="file"]:focus::file-selector-button {
  background-color: rgba(var(--rmv-color-primary-rgb), 0.08);
}

.form-control[type="file"]:hover:not(:disabled):not([readonly])::-webkit-file-upload-button,
.form-control[type="file"]:focus::-webkit-file-upload-button {
  background-color: rgba(var(--rmv-color-primary-rgb), 0.08);
}
.form-control[type="file"]:focus {
  background-color: var(--rmv-color-surface);
  border-color: var(--rmv-color-primary);
  box-shadow: 0 0 0 0.18rem rgba(var(--rmv-color-primary-rgb), 0.18);
  transform: none;
}

.form-control[type="file"]:disabled,
.form-control[type="file"][readonly] {
  background-color: var(--rmv-color-surface-soft);
  color: var(--rmv-color-text-muted);
  cursor: not-allowed;
  opacity: 1;
}

.form-control[type="file"].is-valid,
.was-validated .form-control[type="file"]:valid {
  border-color: var(--bs-success, #198754);
}

.form-control[type="file"].is-invalid,
.was-validated .form-control[type="file"]:invalid {
  border-color: var(--bs-danger, #dc3545);
}

.form-control[type="file"].is-valid:focus,
.was-validated .form-control[type="file"]:valid:focus {
  box-shadow: 0 0 0 0.18rem rgba(25, 135, 84, 0.2);
}

.form-control[type="file"].is-invalid:focus,
.was-validated .form-control[type="file"]:invalid:focus {
  box-shadow: 0 0 0 0.18rem rgba(220, 53, 69, 0.2);
}

.rmv-tabs {
  background: rgba(255, 255, 255, 0.52);
  border-bottom-color: rgba(13, 110, 253, 0.14);
  border-radius: var(--rmv-radius-lg) var(--rmv-radius-lg) 0 0;
  gap: 0.35rem;
  padding-bottom: 0.25rem;
  padding-top: 0.25rem;
}

.rmv-tab {
  border-bottom: 0;
  border-radius: 999px;
  margin: 0.12rem 0;
  padding: 0.68rem 0.95rem;
  transition: background-color var(--rmv-transition-base), box-shadow var(--rmv-transition-base), color var(--rmv-transition-base), transform var(--rmv-transition-base);
}

.rmv-tab:hover,
.rmv-tab:focus {
  background: rgba(205, 230, 248, 0.36);
  text-decoration: none;
  transform: translateY(-1px);
}

.rmv-tab-active,
.rmv-tab.active {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--rmv-shadow-xs);
  color: var(--rmv-color-primary);
}

.rmv-table,
.rmv-admission-sale-table,
.rmv-admission-attachment-list,
.rmv-admission-history-table,
.rmv-admission-events-table,
.rmv-document-table,
.rmv-monitor-table {
  border-color: rgba(13, 110, 253, 0.14);
  border-radius: var(--rmv-radius-md);
  box-shadow: var(--rmv-shadow-xs);
}

.rmv-table thead th,
.rmv-admission-sale-head,
.rmv-admission-history-head,
.rmv-document-head,
.rmv-monitor-table-head {
  background: rgba(205, 230, 248, 0.26);
}

.rmv-table tbody tr,
.rmv-admission-sale-row,
.rmv-admission-history-row,
.rmv-document-row,
.rmv-monitor-row {
  transition: background-color var(--rmv-transition-fast), box-shadow var(--rmv-transition-fast), transform var(--rmv-transition-fast);
}

.rmv-table tbody tr:hover,
.rmv-admission-sale-row:not(.rmv-admission-sale-head):hover,
.rmv-admission-history-row:not(.rmv-admission-history-head):hover,
.rmv-document-row:not(.rmv-document-head):hover,
.rmv-monitor-row:not(.rmv-monitor-table-head):hover {
  background: rgba(205, 230, 248, 0.22);
  transform: translateY(-1px);
}

.rmv-badge,
.rmv-badge-soft,
.rmv-risk-badge,
.rmv-life-badge,
.rmv-vaccine-status,
.rmv-monitor-filter-chip {
  box-shadow: 0 0.25rem 0.7rem rgba(31, 41, 55, 0.04);
  transition: background-color var(--rmv-transition-fast), box-shadow var(--rmv-transition-fast), transform var(--rmv-transition-fast);
}

.rmv-monitor-filter-chip:hover,
.rmv-monitor-filter-chip:focus {
  transform: translateY(-1px) scale(1.01);
}

.rmv-monitor-total-kpi {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(205, 230, 248, 0.48));
  border-color: rgba(13, 110, 253, 0.24);
  box-shadow: var(--rmv-shadow-sm);
}

.rmv-empty-state {
  border-color: rgba(13, 110, 253, 0.22);
}

.rmv-list-hero {
  -webkit-backdrop-filter: var(--rmv-blur-glass);
  backdrop-filter: var(--rmv-blur-glass);
  background:
    radial-gradient(circle at 12% 10%, rgba(205, 230, 248, 0.72), transparent 20rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(238, 247, 253, 0.86));
  border: 1px solid rgba(13, 110, 253, 0.16);
  border-radius: var(--rmv-radius-lg);
  box-shadow: var(--rmv-shadow-sm);
  margin-bottom: 1rem;
  padding: 1.05rem 1.15rem;
}

.rmv-list-search-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(142, 200, 243, 0.22), transparent 18rem),
    rgba(255, 255, 255, 0.9);
  border-color: rgba(13, 110, 253, 0.18);
  box-shadow: var(--rmv-shadow-sm);
}

.rmv-clickable-table {
  --bs-table-striped-bg: rgba(238, 247, 253, 0.62);
  --bs-table-hover-bg: rgba(205, 230, 248, 0.34);
}

.rmv-clickable-table tbody tr:nth-child(even):not([hidden]) {
  background: rgba(238, 247, 253, 0.48);
}

.rmv-clickable-row {
  cursor: pointer;
  outline: none;
}

.rmv-clickable-row:hover {
  background: rgba(205, 230, 248, 0.36) !important;
}

.rmv-clickable-row:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(13, 110, 253, 0.44);
}

.rmv-clickable-row a {
  transition: color var(--rmv-transition-fast), text-decoration-color var(--rmv-transition-fast);
}

.rmv-clickable-row:hover a {
  color: var(--rmv-color-primary-hover);
  text-decoration: underline;
}

.rmv-transfer-page {
  margin: 0 auto;
  max-width: 1280px;
  min-width: 0;
  width: 100%;
}

.rmv-transfer-page *,
.rmv-transfer-page *::before,
.rmv-transfer-page *::after {
  min-width: 0;
}

.rmv-transfer-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0.85rem;
  max-width: 100%;
}

.rmv-transfer-step,
.rmv-transfer-confirm,
.rmv-transfer-recent {
  border-color: rgba(13, 110, 253, 0.16);
  box-shadow: var(--rmv-shadow-sm);
  min-width: 0;
  overflow: hidden;
  padding: 1rem;
}

.rmv-transfer-step-header {
  align-items: flex-start;
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.72rem;
}

.rmv-transfer-step-header h2 {
  color: var(--rmv-color-text);
  font-size: 0.96rem;
  font-weight: 760;
  margin: 0;
}

.rmv-transfer-step-header p {
  color: var(--rmv-color-text-muted);
  font-size: 0.8rem;
  line-height: 1.25;
  margin: 0.15rem 0 0;
}

.rmv-transfer-step-number {
  align-items: center;
  background: rgba(13, 110, 253, 0.1);
  border: 1px solid rgba(13, 110, 253, 0.2);
  border-radius: 999px;
  color: var(--rmv-color-primary);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 780;
  height: 1.75rem;
  justify-content: center;
  width: 1.75rem;
}

.rmv-transfer-search-form,
.rmv-transfer-results {
  margin-bottom: 0.65rem;
}

.rmv-transfer-search-form .input-group {
  flex-wrap: nowrap;
}

.rmv-transfer-search-form .form-control,
.rmv-transfer-search-form .btn {
  font-size: 0.84rem;
  min-height: 2.15rem;
}

.rmv-transfer-selected {
  background: rgba(205, 230, 248, 0.32);
  border: 1px solid rgba(13, 110, 253, 0.18);
  border-radius: var(--rmv-radius-md);
  display: grid;
  gap: 0.08rem;
  margin-bottom: 0.65rem;
  padding: 0.52rem 0.65rem;
}

.rmv-transfer-selected strong {
  color: var(--rmv-color-text);
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rmv-transfer-selected span,
.rmv-transfer-summary span {
  color: var(--rmv-color-text-muted);
  font-size: 0.76rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rmv-transfer-table {
  font-size: 0.74rem;
  min-width: 100%;
  table-layout: fixed;
}

.rmv-transfer-owner-table {
  min-width: 100%;
}

.rmv-transfer-recent-table {
  min-width: 52rem;
}

.rmv-transfer-table th,
.rmv-transfer-table td {
  padding: 0.34rem 0.45rem;
  vertical-align: middle;
}

.rmv-transfer-table th {
  color: var(--rmv-color-text-muted);
  font-size: 0.68rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rmv-transfer-pet-table th:nth-child(1),
.rmv-transfer-pet-table td:nth-child(1) {
  width: 18%;
}

.rmv-transfer-pet-table th:nth-child(2),
.rmv-transfer-pet-table td:nth-child(2) {
  width: 20%;
}

.rmv-transfer-pet-table th:nth-child(3),
.rmv-transfer-pet-table td:nth-child(3) {
  width: 9%;
}

.rmv-transfer-pet-table th:nth-child(4),
.rmv-transfer-pet-table td:nth-child(4) {
  width: 15%;
}

.rmv-transfer-pet-table th:nth-child(5),
.rmv-transfer-pet-table td:nth-child(5) {
  width: 10%;
}

.rmv-transfer-pet-table th:nth-child(6),
.rmv-transfer-pet-table td:nth-child(6) {
  width: 12%;
}

.rmv-transfer-pet-table th:nth-child(7),
.rmv-transfer-pet-table td:nth-child(7),
.rmv-transfer-owner-table th:last-child,
.rmv-transfer-owner-table td:last-child {
  overflow: visible;
  text-align: right;
  text-overflow: clip;
  white-space: nowrap;
  width: 6.75rem;
}

.rmv-transfer-owner-table th:nth-child(1),
.rmv-transfer-owner-table td:nth-child(1) {
  width: 26%;
}

.rmv-transfer-owner-table th:nth-child(2),
.rmv-transfer-owner-table td:nth-child(2) {
  width: 9%;
}

.rmv-transfer-owner-table th:nth-child(3),
.rmv-transfer-owner-table td:nth-child(3) {
  width: 16%;
}

.rmv-transfer-owner-table th:nth-child(4),
.rmv-transfer-owner-table td:nth-child(4) {
  width: 28%;
}

.rmv-transfer-owner-table th:nth-child(5),
.rmv-transfer-owner-table td:nth-child(5) {
  width: 8%;
}

.rmv-transfer-action-column {
  min-width: 6.75rem;
  padding-right: 0.65rem !important;
}

.rmv-transfer-action-column .rmv-doc-link {
  display: inline-block;
  max-width: none;
  white-space: nowrap;
}

.rmv-transfer-cell-main strong,
.rmv-transfer-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rmv-transfer-cell-main strong {
  display: block;
}

.rmv-transfer-nowrap {
  white-space: nowrap;
}

.rmv-transfer-summary {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0.75rem;
}

.rmv-transfer-summary div {
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: var(--rmv-radius-md);
  display: grid;
  gap: 0.12rem;
  padding: 0.52rem 0.65rem;
}

.rmv-transfer-summary strong {
  color: var(--rmv-color-text);
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rmv-transfer-warning {
  font-size: 0.84rem;
  margin-bottom: 0.75rem;
  padding: 0.55rem 0.7rem;
}

.rmv-transfer-reason {
  min-height: 4.5rem;
  resize: vertical;
}

.rmv-transfer-check {
  font-size: 0.84rem;
}

.rmv-transfer-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.rmv-transfer-actions .btn {
  min-width: 9rem;
}

.rmv-transfer-recent-header {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.rmv-transfer-empty {
  font-size: 0.84rem;
  padding: 0.75rem;
}

.rmv-transfer-validation {
  font-size: 0.86rem;
  padding: 0.65rem 0.8rem;
}

/* Ajuste 04.7E - Tablet responsive hardening */
@media (min-width: 768px) and (max-width: 1199.98px) {
  html,
  body,
  .rmv-shell,
  .rmv-main-container,
  main {
    max-width: 100%;
    overflow-x: clip;
  }

  .rmv-navbar {
    margin-bottom: 0.7rem !important;
  }

  .rmv-navbar-container {
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    max-width: 100%;
    min-height: 0;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .rmv-brand {
    flex: 0 0 auto;
    max-width: 12rem;
  }

  .rmv-brand-mark {
    font-size: 1.08rem;
  }

  .rmv-brand-subtitle {
    font-size: 0.68rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .rmv-navbar-collapse {
    flex: 1 1 100%;
    flex-wrap: wrap;
    gap: 0.2rem 0.4rem;
    min-width: 0;
  }

  .rmv-primary-nav {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .rmv-primary-nav .nav-link,
  .rmv-session-nav .nav-link {
    font-size: 0.78rem;
    padding: 0.32rem 0.44rem;
  }

  .rmv-session-nav {
    flex: 0 1 auto;
    gap: 0.2rem !important;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .rmv-context-pill {
    font-size: 0.72rem;
    max-width: 8rem;
    padding: 0.22rem 0.46rem;
  }

  .rmv-user-label {
    font-size: 0.76rem;
    max-width: 6.25rem;
  }

  .rmv-main-container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .rmv-page-header {
    gap: 0.65rem;
  }

  .rmv-page-title {
    font-size: 1.38rem;
  }

  .rmv-page-subtitle {
    font-size: 0.84rem;
  }

  .rmv-card,
  .rmv-context-card,
  .rmv-patient-top-card,
  .rmv-operational-panel,
  .rmv-admission-panel,
  .rmv-grooming-panel,
  .rmv-document-files,
  .rmv-document-group,
  .rmv-monitor-hero,
  .rmv-monitor-toolbar,
  .rmv-monitor-board {
    max-width: 100%;
    min-width: 0;
  }

  .rmv-record-header {
    padding: 0.78rem 0.82rem;
  }

  .rmv-record-header-main {
    gap: 0.55rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rmv-record-header-main-has-tag {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.9fr) minmax(3.8rem, auto);
  }

  .rmv-record-header-item,
  .rmv-record-header-item .rmv-context-value,
  .rmv-record-header-pet-value {
    min-width: 0;
  }

  .rmv-record-header-item .rmv-context-value,
  .rmv-record-header-pet-value > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .rmv-record-header-pet-photo {
    height: 1.9rem;
    width: 1.9rem;
  }

  .rmv-record-header-tag-slot {
    justify-content: center;
    min-width: 3.8rem;
  }

  .rmv-record-header-tag-chip {
    font-size: 0.88rem;
    min-height: 2.15rem;
    min-width: 3.35rem;
    padding: 0.48rem 0.6rem;
  }

  .rmv-tabs {
    flex-wrap: nowrap;
    gap: 0.2rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.2rem 0.45rem;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .rmv-tab {
    flex: 0 0 auto;
    font-size: 0.82rem;
    padding: 0.48rem 0.68rem;
  }

  .rmv-tab-panel {
    min-width: 0;
    padding: 0.75rem;
  }

  .rmv-responsive-table,
  .rmv-table,
  .rmv-compact-file-table,
  .rmv-admission-sale-table,
  .rmv-admission-history-table,
  .rmv-admission-events-table,
  .rmv-document-table,
  .rmv-monitor-board {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .rmv-table .table {
    margin-bottom: 0;
  }

  .rmv-admission-sale-table,
  .rmv-billing-table {
    display: block;
    width: 100%;
  }

  .rmv-admission-sale-row {
    min-width: 44rem;
  }

  .rmv-billing-line-form,
  .rmv-admission-line-form {
    grid-template-columns: minmax(7.5rem, 0.9fr) minmax(12rem, 1.6fr) minmax(5.4rem, 0.55fr) minmax(10rem, 1.2fr) auto;
  }

  .rmv-operational-form-grid,
  .rmv-operational-meta-grid,
  .rmv-grooming-board,
  .rmv-grooming-actions,
  .rmv-admission-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rmv-grooming-actions form,
  .rmv-operational-inline-form {
    min-width: 0;
  }

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

  .rmv-aesthetic-photo-card,
  .rmv-aesthetic-photo-upload {
    min-width: 0;
  }

  .rmv-monitor-hero,
  .rmv-monitor-toolbar {
    gap: 0.65rem;
  }

  .rmv-monitor-table {
    min-width: 58rem;
  }

  .rmv-transfer-grid {
    gap: 0.75rem;
  }

  .rmv-transfer-step,
  .rmv-transfer-confirm,
  .rmv-transfer-recent {
    padding: 0.85rem;
  }

  .rmv-transfer-table {
    min-width: 42rem;
  }

  .rmv-transfer-owner-table {
    min-width: 36rem;
  }
}

@media (min-width: 768px) and (max-width: 899.98px) {
  .rmv-admission-vitals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rmv-admission-vitals-grid .rmv-admission-weight,
  .rmv-admission-vitals-grid .rmv-admission-temperature,
  .rmv-admission-vitals-grid .rmv-admission-mucous,
  .rmv-admission-vitals-grid .rmv-admission-respiratory,
  .rmv-admission-vitals-grid .rmv-admission-heart {
    grid-column: auto;
  }
  .rmv-record-header-main,
  .rmv-record-header-main-has-tag {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rmv-record-header-tag-slot {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .rmv-operational-form-grid,
  .rmv-operational-meta-grid,
  .rmv-grooming-board,
  .rmv-grooming-actions,
  .rmv-admission-form-grid,
  .rmv-aesthetic-photo-grid {
    grid-template-columns: 1fr;
  }

  .rmv-billing-line-form,
  .rmv-admission-line-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rmv-billing-line-form .btn,
  .rmv-admission-line-form .btn {
    width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 820px) {
  .rmv-monitor-page {
    max-width: 100%;
    min-width: 0;
  }

  .rmv-monitor-hero,
  .rmv-monitor-toolbar,
  .rmv-monitor-board {
    max-width: 100%;
  }

  .rmv-monitor-hero {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .rmv-monitor-board {
    min-width: 0;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
  }

  .rmv-monitor-table {
    min-width: 47rem;
    width: 100%;
  }

  .rmv-monitor-row {
    gap: 0.24rem;
    grid-template-columns: minmax(6.1rem, 1.08fr) minmax(6rem, 1fr) minmax(5.8rem, 0.84fr) minmax(5.25rem, 0.76fr) minmax(4.9rem, 0.7fr) minmax(2.5rem, 0.25fr) minmax(4.45rem, 0.62fr) minmax(3.45rem, 0.48fr);
    min-height: 2.45rem;
    padding: 0.28rem 0.32rem;
  }

  .rmv-monitor-table-head {
    font-size: 0.58rem;
    min-height: 2rem;
  }

  .rmv-monitor-row > div {
    font-size: 0.69rem;
    line-height: 1.18;
    overflow: visible;
    text-overflow: clip;
  }

  .rmv-monitor-label-full {
    display: none;
  }

  .rmv-monitor-label-compact {
    display: inline;
  }

  .rmv-monitor-row > div[data-label="Servicio"] {
    overflow: visible;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .rmv-monitor-patient,
  .rmv-monitor-row > div[data-label="Ubicación"],
  .rmv-monitor-row > div[data-label="Atiende"] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .rmv-monitor-row > div[data-label="Estado"],
  .rmv-monitor-row > div[data-label="Transcurrido"] {
    overflow: visible;
    white-space: nowrap;
  }

  .rmv-monitor-status {
    font-size: 0.59rem;
    line-height: 1.05;
    max-width: 100%;
    min-height: 1.35rem;
    overflow: visible;
    padding: 0.22rem 0.3rem;
    text-overflow: clip;
    white-space: normal;
  }

  .rmv-monitor-tag-link,
  .rmv-monitor-tag-chip,
  .rmv-monitor-tag {
    font-size: 0.72rem;
    justify-content: center;
    min-height: 1.5rem;
    min-width: 2.95rem;
    padding: 0.28rem 0.42rem;
    text-align: center;
    white-space: nowrap;
  }

  .rmv-monitor-row > div[data-label="TAG"] {
    justify-items: center;
    min-width: 2.95rem;
    overflow: visible;
    text-align: center;
  }
}

.rmv-confirm-modal .modal-content {
  -webkit-backdrop-filter: var(--rmv-blur-glass);
  backdrop-filter: var(--rmv-blur-glass);
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(13, 110, 253, 0.18);
  border-radius: var(--rmv-radius-xl);
  box-shadow: var(--rmv-shadow-lg);
}

.rmv-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--rmv-reveal-delay, 0ms);
}

.rmv-reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991.98px) {
  .rmv-transfer-grid,
  .rmv-transfer-summary {
    grid-template-columns: 1fr;
  }

  .rmv-transfer-step,
  .rmv-transfer-confirm,
  .rmv-transfer-recent {
    padding: 0.85rem;
  }
}

@media (max-width: 767.98px) {
  .rmv-transfer-pet-table {
    min-width: 42rem;
  }

  .rmv-transfer-owner-table {
    min-width: 34rem;
  }

  .rmv-transfer-search-form .input-group {
    flex-wrap: wrap;
  }

  .rmv-transfer-search-form .form-control,
  .rmv-transfer-search-form .btn {
    width: 100%;
  }

  .rmv-transfer-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .rmv-transfer-actions .btn {
    width: 100%;
  }

  .rmv-transfer-recent-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

.rmv-app-header {
  position: relative;
  z-index: 20;
}

.rmv-navbar-brand {
  flex: 0 0 auto;
}

.rmv-navbar-brand-subtitle {
  max-width: 8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rmv-header-context {
  align-items: center;
  display: flex;
  gap: 0.45rem;
  min-width: 0;
}

.rmv-header-chip {
  align-items: center;
  background: rgba(13, 110, 253, 0.08);
  border: 1px solid rgba(13, 110, 253, 0.14);
  border-radius: 999px;
  color: var(--rmv-color-text-muted);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1;
  max-width: 8.25rem;
  min-height: 1.75rem;
  overflow: hidden;
  padding: 0.42rem 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rmv-logout-icon-btn {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(13, 110, 253, 0.14);
  border-radius: 999px;
  color: var(--rmv-color-primary);
  display: inline-flex;
  height: 2.35rem;
  justify-content: center;
  min-width: 2.35rem;
  padding: 0 !important;
  transition: background var(--rmv-transition-fast), border-color var(--rmv-transition-fast), color var(--rmv-transition-fast), transform var(--rmv-transition-fast);
  width: 2.35rem;
}

.rmv-logout-icon-btn .rmv-icon {
  font-size: 1.08rem;
  margin-right: 0;
}

.rmv-logout-icon-btn:hover,
.rmv-logout-icon-btn:focus {
  background: rgba(13, 110, 253, 0.1);
  border-color: rgba(13, 110, 253, 0.24);
  color: var(--rmv-color-primary);
  transform: scale(1.02);
}

.rmv-app-footer {
  -webkit-backdrop-filter: var(--rmv-blur-glass);
  backdrop-filter: var(--rmv-blur-glass);
  background: rgba(255, 255, 255, 0.82);
  border-top: 1px solid rgba(13, 110, 253, 0.12);
  color: var(--rmv-color-text-muted);
  font-size: 0.82rem;
  margin-top: 1.5rem;
  padding: 0.58rem 0;
}

.rmv-footer-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  justify-content: space-between;
  min-width: 0;
}

.rmv-footer-brand {
  color: var(--rmv-color-text-muted);
  flex: 0 0 auto;
  font-weight: 600;
  white-space: nowrap;
}

.rmv-footer-context {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 0.35rem 0.72rem;
  justify-content: center;
  min-width: 0;
}

.rmv-footer-item {
  align-items: center;
  display: inline-flex;
  gap: 0.28rem;
  min-width: 0;
  white-space: nowrap;
}

.rmv-footer-label {
  color: var(--rmv-color-text-muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rmv-footer-item-text {
  color: var(--rmv-color-text);
  display: inline-block;
  font-weight: 650;
  max-width: 11rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}

.rmv-footer-link {
  color: var(--rmv-color-primary);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  transition: color var(--rmv-transition-fast);
  white-space: nowrap;
}

.rmv-footer-link:hover,
.rmv-footer-link:focus {
  color: var(--rmv-color-primary-hover);
}

.rmv-footer-quick-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 0.32rem;
  justify-content: flex-end;
}

.rmv-footer-quick-action {
  align-items: center;
  background: rgba(13, 110, 253, 0.07);
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 999px;
  color: var(--rmv-color-primary);
  display: inline-flex;
  height: 1.95rem;
  justify-content: center;
  text-decoration: none;
  transition: background var(--rmv-transition-fast), border-color var(--rmv-transition-fast), color var(--rmv-transition-fast), transform var(--rmv-transition-fast);
  width: 1.95rem;
}

.rmv-footer-quick-action .rmv-icon {
  margin-right: 0;
}

.rmv-footer-quick-action:hover,
.rmv-footer-quick-action:focus {
  background: rgba(13, 110, 253, 0.13);
  border-color: rgba(13, 110, 253, 0.24);
  color: var(--rmv-color-primary-hover);
  transform: translateY(-1px);
}

.rmv-footer-toolbar {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  min-width: 0;
}

.rmv-footer-actions {
  align-items: center;
  display: inline-flex;
  flex: 0 1 auto;
  gap: 0.32rem;
  min-width: 0;
}

.rmv-footer-separator {
  background: rgba(13, 110, 253, 0.18);
  display: inline-block;
  height: 1.35rem;
  margin: 0 0.16rem;
  width: 1px;
}

.rmv-footer-action {
  align-items: center;
  background: rgba(13, 110, 253, 0.07);
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 999px;
  color: var(--rmv-color-primary);
  display: inline-flex;
  font-size: 0.98rem;
  height: 2.05rem;
  justify-content: center;
  text-decoration: none;
  transition: background var(--rmv-transition-fast), border-color var(--rmv-transition-fast), color var(--rmv-transition-fast), transform var(--rmv-transition-fast);
  width: 2.05rem;
}

.rmv-footer-action:hover,
.rmv-footer-action:focus {
  background: rgba(13, 110, 253, 0.14);
  border-color: rgba(13, 110, 253, 0.24);
  color: var(--rmv-color-primary-hover);
  transform: translateY(-1px);
}

.rmv-footer-action.disabled,
.rmv-footer-action[aria-disabled="true"] {
  background: rgba(169, 171, 174, 0.12);
  border-color: rgba(169, 171, 174, 0.2);
  color: rgba(91, 91, 91, 0.62);
  pointer-events: none;
}

.rmv-footer-action-monitor {
  background: rgba(25, 135, 84, 0.09);
  border-color: rgba(25, 135, 84, 0.18);
  color: var(--rmv-color-success);
}

.rmv-footer-action-monitor:hover,
.rmv-footer-action-monitor:focus {
  background: rgba(25, 135, 84, 0.16);
  border-color: rgba(25, 135, 84, 0.28);
  color: var(--rmv-color-success);
}

.rmv-footer-action-checkout-passes {
  background: rgba(255, 193, 7, 0.12);
  border-color: rgba(201, 149, 0, 0.26);
  color: #9a6d00;
}

.rmv-footer-action-checkout-passes:hover,
.rmv-footer-action-checkout-passes:focus {
  background: rgba(255, 193, 7, 0.22);
  border-color: rgba(201, 149, 0, 0.4);
  color: #765400;
}

.rmv-footer-action-agenda {
  background: rgba(32, 201, 151, 0.11);
  border-color: rgba(32, 201, 151, 0.2);
  color: var(--rmv-color-agenda);
}

.rmv-footer-action-agenda:hover,
.rmv-footer-action-agenda:focus {
  background: rgba(32, 201, 151, 0.2);
  border-color: rgba(32, 201, 151, 0.34);
  color: var(--rmv-color-agenda-hover);
}

.rmv-footer-action-revaccination {
  background: rgba(184, 0, 0, 0.08);
  border-color: rgba(184, 0, 0, 0.18);
  color: var(--rmv-color-revaccination);
}

.rmv-footer-action-revaccination:hover {
  background: rgba(184, 0, 0, 0.14);
  border-color: rgba(184, 0, 0, 0.28);
  color: var(--rmv-color-revaccination);
}

.rmv-footer-vaccine-icon {
  background: currentColor;
  display: inline-block;
  height: 1.05rem;
  -webkit-mask: url("/icons/rmv/syringe-fill.svg") center / contain no-repeat;
  mask: url("/icons/rmv/syringe-fill.svg") center / contain no-repeat;
  width: 1.05rem;
}

.rmv-footer-copy {
  color: var(--rmv-color-text-muted);
  flex: 0 0 auto;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.btn-rmv-schedule {
  background: rgba(13, 110, 253, 0.08);
  border: 1px solid rgba(13, 110, 253, 0.2);
  border-radius: 999px;
  color: var(--rmv-color-primary);
  font-weight: 700;
  transition: background var(--rmv-transition-fast), border-color var(--rmv-transition-fast), color var(--rmv-transition-fast), transform var(--rmv-transition-fast);
}

.btn-rmv-schedule:hover,
.btn-rmv-schedule:focus {
  background: rgba(13, 110, 253, 0.14);
  border-color: rgba(13, 110, 253, 0.32);
  color: var(--rmv-color-primary-hover);
  transform: translateY(-1px);
}

.rmv-btn-agenda {
  background: var(--rmv-color-agenda);
  border-color: var(--rmv-color-agenda);
  color: #fff;
  font-weight: 800;
  transition: background var(--rmv-transition-fast), border-color var(--rmv-transition-fast), color var(--rmv-transition-fast), transform var(--rmv-transition-fast);
}

.rmv-btn-agenda:hover,
.rmv-btn-agenda:focus {
  background: var(--rmv-color-agenda-hover);
  border-color: var(--rmv-color-agenda-hover);
  color: #fff;
  transform: translateY(-1px);
}

.rmv-row-action-icon {
  align-items: center;
  border-radius: 999px;
  color: var(--rmv-color-primary);
  display: inline-flex;
  height: 1.8rem;
  justify-content: center;
  text-decoration: none;
  transition: background var(--rmv-transition-fast), color var(--rmv-transition-fast), transform var(--rmv-transition-fast);
  width: 1.8rem;
}

.rmv-row-action-icon:hover,
.rmv-row-action-icon:focus {
  background: rgba(13, 110, 253, 0.1);
  color: var(--rmv-color-primary-hover);
  transform: translateY(-1px);
}

.rmv-row-action-icon.disabled {
  color: rgba(91, 91, 91, 0.42);
}

.rmv-row-action-icon.rmv-btn-agenda-icon {
  background: rgba(32, 201, 151, 0.12);
  color: #128965;
}

.rmv-row-action-icon.rmv-btn-agenda-icon:hover,
.rmv-row-action-icon.rmv-btn-agenda-icon:focus {
  background: rgba(32, 201, 151, 0.2);
  color: #0f7054;
}

.rmv-row-action-icon.rmv-btn-agenda-icon.disabled {
  background: rgba(91, 91, 91, 0.08);
  color: rgba(91, 91, 91, 0.42);
}

.rmv-row-action-button {
  background: transparent;
  border: 0;
  padding: 0;
}

.rmv-row-action-icon.rmv-row-action-danger {
  background: rgba(220, 53, 69, 0.08);
  color: #b42318;
}

.rmv-row-action-icon.rmv-row-action-danger:hover,
.rmv-row-action-icon.rmv-row-action-danger:focus {
  background: rgba(220, 53, 69, 0.16);
  color: #912018;
}

.rmv-owner-mini-summary {
  align-items: center;
  color: var(--rmv-color-text-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.78rem;
  gap: 0.25rem 0.6rem;
  margin-top: 0.35rem;
  min-height: 1.2rem;
}

.rmv-owner-mini-summary span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rmv-agenda-view-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(13, 110, 253, 0.16);
  border-radius: 999px;
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.25rem;
}

.rmv-agenda-view-toggle a {
  border-radius: 999px;
  color: var(--rmv-color-text);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0.45rem 0.85rem;
  text-decoration: none;
  transition: background var(--rmv-transition-fast), color var(--rmv-transition-fast), box-shadow var(--rmv-transition-fast);
}

.rmv-agenda-view-toggle a span {
  font-weight: 900;
  margin-left: 0.2rem;
}

.rmv-agenda-view-toggle a:hover,
.rmv-agenda-view-toggle a:focus {
  background: rgba(13, 110, 253, 0.08);
  color: var(--rmv-color-primary);
}

.rmv-agenda-view-toggle a.active {
  background: var(--rmv-color-primary);
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.18);
  color: #fff;
}

.rmv-agenda-day-group {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(13, 110, 253, 0.14);
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  margin-bottom: 1rem;
  overflow: hidden;
}

.rmv-agenda-day-header {
  align-items: center;
  background: rgba(13, 110, 253, 0.08);
  border-bottom: 1px solid rgba(13, 110, 253, 0.12);
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
}

.rmv-agenda-day-title {
  color: #1f2937;
  font-weight: 900;
}

.rmv-agenda-day-count {
  background: rgba(13, 110, 253, 0.09);
  border: 1px solid rgba(13, 110, 253, 0.16);
  border-radius: 999px;
  color: var(--rmv-color-primary);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.18rem 0.55rem;
  white-space: nowrap;
}

.rmv-agenda-table {
  border-collapse: collapse;
  font-size: 0.92rem;
  width: 100%;
}

.rmv-agenda-table th,
.rmv-agenda-table td {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.62rem 0.75rem;
  vertical-align: middle;
}

.rmv-agenda-table th:nth-child(5),
.rmv-agenda-table td:nth-child(5) {
  min-width: 8.75rem;
  width: 8.75rem;
}

.rmv-agenda-table th:nth-child(6),
.rmv-agenda-table td:nth-child(6) {
  min-width: 9.8rem;
  width: 9.8rem;
}

.rmv-agenda-table tr:last-child td {
  border-bottom: none;
}

.rmv-agenda-time {
  color: #111827;
  font-weight: 900;
  white-space: nowrap;
}

.rmv-agenda-pet {
  font-weight: 900;
}

.rmv-agenda-muted {
  color: var(--rmv-color-text-muted);
  font-size: 0.84rem;
}

.rmv-agenda-actions {
  align-items: center;
  white-space: nowrap;
}

.rmv-agenda-actions > .rmv-badge-soft {
  flex: 0 0 auto;
  margin-right: 0.45rem;
  white-space: nowrap;
}

.rmv-agenda-actions form {
  display: inline-flex;
  margin: 0;
}

.rmv-agenda-action-group {
  align-items: center;
  display: inline-flex;
  gap: 0.34rem;
  white-space: nowrap;
}

.rmv-agenda-action {
  align-items: center;
  background: rgba(13, 110, 253, 0.08);
  border: 1px solid rgba(13, 110, 253, 0.16);
  border-radius: 0.55rem;
  color: #0d6efd;
  display: inline-flex;
  font-size: 1rem;
  height: 2rem;
  gap: 0.26rem;
  justify-content: center;
  line-height: 1;
  padding: 0 0.56rem;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
  width: auto;
}

.rmv-agenda-action .bi {
  font-size: 1rem;
  line-height: 1;
}

.rmv-agenda-action-icon {
  height: 2rem;
  padding: 0;
  width: 2rem;
}

.rmv-agenda-action:hover,
.rmv-agenda-action:focus {
  background: rgba(13, 110, 253, 0.14);
  border-color: rgba(13, 110, 253, 0.28);
  color: #084298;
  transform: scale(1.04);
}

.rmv-agenda-action-edit {
  background: rgba(32, 201, 151, 0.14);
  border-color: rgba(32, 201, 151, 0.32);
  color: #0f8f6f;
}

.rmv-agenda-action-complete {
  background: rgba(25, 135, 84, 0.13);
  border-color: rgba(25, 135, 84, 0.3);
  color: #198754;
}

.rmv-agenda-action-warning {
  background: rgba(255, 193, 7, 0.18);
  border-color: rgba(255, 193, 7, 0.48);
  color: #8a5a00;
}

.rmv-agenda-action-cancel {
  background: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.26);
  color: #dc3545;
}

.rmv-agenda-action-disabled,
.rmv-agenda-action:disabled {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.22);
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.rmv-agenda-compact {
  font-size: 0.78rem;
}

.rmv-agenda-compact .rmv-section-title {
  font-size: 0.98rem;
}

.rmv-agenda-compact .rmv-agenda-table {
  font-size: 0.78rem;
}

.rmv-agenda-compact .rmv-agenda-table th,
.rmv-agenda-compact .rmv-agenda-table td {
  padding: 0.42rem 0.55rem;
}

.rmv-agenda-compact .rmv-agenda-day-group {
  border-radius: 0.8rem;
  margin-bottom: 0.7rem;
}

.rmv-agenda-compact .rmv-agenda-day-header {
  padding: 0.45rem 0.65rem;
}

.rmv-agenda-compact .rmv-agenda-day-title {
  font-size: 0.84rem;
}

.rmv-agenda-compact .rmv-agenda-time {
  font-size: 0.82rem;
  font-weight: 900;
}

.rmv-agenda-compact .rmv-agenda-muted {
  font-size: 0.72rem;
}

.rmv-agenda-compact .badge,
.rmv-agenda-compact .rmv-badge-soft,
.rmv-agenda-compact .rmv-status-pill {
  font-size: 0.68rem;
  padding: 0.16rem 0.45rem;
}

.rmv-agenda-collapsed-bar {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.rmv-appointment-owner-autocomplete {
  min-width: 0;
  position: relative;
}

.rmv-appointment-owner-results {
  background: #fff;
  border: 1px solid rgba(30, 64, 175, 0.2);
  border-radius: 0.65rem;
  box-shadow: 0 0.75rem 1.75rem rgba(15, 23, 42, 0.16);
  inset-inline: 0;
  margin-top: 0.2rem;
  max-height: 16rem;
  overflow-x: hidden;
  overflow-y: auto;
  position: absolute;
  top: 100%;
  z-index: 1080;
}

.rmv-appointment-owner-results[hidden] {
  display: none;
}

.rmv-appointment-owner-result {
  align-items: flex-start;
  background: #fff;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--rmv-color-text);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.55rem 0.7rem;
  text-align: left;
  width: 100%;
}

.rmv-appointment-owner-result:last-child {
  border-bottom: 0;
}

.rmv-appointment-owner-result:hover,
.rmv-appointment-owner-result:focus,
.rmv-appointment-owner-result.is-active {
  background: rgba(37, 99, 235, 0.08);
  outline: none;
}

.rmv-appointment-owner-result > span {
  font-size: 0.86rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.rmv-appointment-owner-result > small {
  color: var(--rmv-color-text-muted);
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.rmv-appointment-create-grid .form-label {
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.rmv-appointment-create-grid .form-control,
.rmv-appointment-create-grid .form-select {
  min-height: 2.35rem;
}

.rmv-appointment-create-grid .form-check {
  margin-bottom: 0.45rem;
}

.rmv-report-print-range {
  color: var(--rmv-color-text-muted);
  display: none;
  font-size: 0.84rem;
  font-weight: 700;
  margin-top: 0.35rem;
}

.rmv-report-filter-card {
  background: rgba(255, 255, 255, 0.88);
}



.rmv-display-mode-actions {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
}

.rmv-display-mode-button,
.rmv-install-app-button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  padding: 0;
  width: 2rem;
}

html.rmv-display-compact .rmv-main-container {
  padding-top: 0.25rem;
}

html.rmv-display-compact .rmv-page-header {
  margin-bottom: 0.75rem;
}

html.rmv-display-compact .rmv-card {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}
.rmv-revaccination-filter-grid {
  align-items: end;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  width: 100%;
}

.rmv-revaccination-filter {
  min-width: 0;
}

.rmv-revaccination-filter .form-control,
.rmv-revaccination-filter .form-select {
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.rmv-revaccination-filter-search {
  min-width: 0;
}

@media (min-width: 1200px) {
  .rmv-revaccination-filter-search {
    grid-column: span 2;
  }
}

.rmv-report-automation-badge {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  min-height: 2.35rem;
  padding: 0.42rem 0.72rem;
  white-space: nowrap;
}

.rmv-report-automation-badge-on {
  background: rgba(25, 135, 84, 0.1);
  border-color: rgba(25, 135, 84, 0.22);
  color: var(--rmv-color-success);
}

.rmv-report-automation-badge-off {
  background: rgba(100, 116, 139, 0.1);
  border-color: rgba(100, 116, 139, 0.2);
  color: var(--rmv-color-text-muted);
}

.rmv-report-radio-group {
  border: 0;
  margin: 0;
  padding: 0;
}

.rmv-report-radio-group legend {
  color: var(--rmv-color-body);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.rmv-report-radio-group .form-check {
  margin-bottom: 0.18rem;
}

.rmv-report-radio-group .form-check-label,
.rmv-report-filter-note {
  color: var(--rmv-color-text-muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.rmv-report-summary {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.rmv-report-summary div {
  align-items: center;
  background: rgba(13, 110, 253, 0.06);
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 999px;
  display: inline-flex;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
}

.rmv-report-summary span {
  color: var(--rmv-color-text-muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.rmv-report-summary strong {
  color: var(--rmv-color-text);
  font-size: 1rem;
  font-weight: 900;
}

.rmv-report-table-card {
  overflow: visible;
}

.rmv-report-table-wrap {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.3rem;
}

.rmv-revaccination-table {
  font-size: 0.76rem;
  min-width: 74rem;
}

.rmv-revaccination-table th {
  background: rgba(248, 251, 255, 0.92);
  color: var(--rmv-color-body);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  padding: 0.36rem 0.38rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.rmv-revaccination-table td {
  border-color: rgba(15, 23, 42, 0.08);
  padding: 0.32rem 0.38rem;
  vertical-align: middle;
}

.rmv-report-patient-cell {
  min-width: 7.2rem;
}

.rmv-report-patient-number {
  color: var(--rmv-color-primary);
  display: block;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.15;
}

.rmv-report-patient-name {
  color: var(--rmv-color-text);
  display: block;
  font-size: 0.79rem;
  font-weight: 750;
  line-height: 1.2;
  margin-top: 0.06rem;
}

.rmv-report-due-date {
  color: var(--rmv-color-primary);
  font-weight: 700;
}

.rmv-report-two-line {
  display: block;
  line-height: 1.15;
  min-width: 5.2rem;
  white-space: normal;
}

.rmv-report-two-line span,
.rmv-report-two-line small {
  display: block;
}

.rmv-report-two-line span {
  color: var(--rmv-color-text);
  font-weight: 750;
}

.rmv-report-two-line small {
  color: var(--rmv-color-text-muted);
  font-size: 0.68rem;
  font-weight: 650;
  margin-top: 0.06rem;
}

.rmv-revaccination-table tbody tr:hover td {
  background: rgba(13, 110, 253, 0.04);
}

.rmv-revaccination-table td:nth-child(8),
.rmv-revaccination-table td:nth-child(9),
.rmv-revaccination-table td:nth-child(10),
.rmv-revaccination-table td:nth-child(11),
.rmv-revaccination-table td:nth-child(12),
.rmv-revaccination-table td:nth-child(13) {
  white-space: normal;
}

.rmv-revaccination-row-scheduled td {
  background: rgba(25, 135, 84, 0.06);
}

.rmv-revaccination-row-warning td {
  background: rgba(255, 193, 7, 0.1);
}

.rmv-revaccination-row-retry-future td {
  background: rgba(13, 110, 253, 0.045);
}

.rmv-revaccination-row-walk-in td {
  background: rgba(13, 110, 253, 0.055);
}

.rmv-revaccination-row-declined td {
  background: rgba(184, 0, 0, 0.055);
}

.rmv-report-status-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.25rem 0.45rem;
  white-space: nowrap;
}

.rmv-report-status-scheduled {
  background: rgba(25, 135, 84, 0.12);
  border: 1px solid rgba(25, 135, 84, 0.2);
  color: var(--rmv-color-success);
}

.rmv-report-status-pending {
  background: rgba(184, 0, 0, 0.08);
  border: 1px solid rgba(184, 0, 0, 0.14);
  color: var(--rmv-color-revaccination);
}

.rmv-report-status-overdue {
  background: rgba(184, 0, 0, 0.08);
  border: 1px solid rgba(184, 0, 0, 0.16);
  color: var(--rmv-color-revaccination);
}

.rmv-report-status-today {
  background: rgba(255, 193, 7, 0.16);
  border: 1px solid rgba(255, 193, 7, 0.3);
  color: #7a4b00;
}

.rmv-report-status-upcoming {
  background: rgba(13, 110, 253, 0.08);
  border: 1px solid rgba(13, 110, 253, 0.16);
  color: var(--rmv-color-primary);
}

.rmv-report-action-column {
  min-width: 10.2rem;
  padding-right: 0.45rem !important;
  white-space: nowrap;
  width: 10.2rem;
}

.rmv-report-action-column .rmv-btn-agenda {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.rmv-report-agenda-icon {
  border-radius: 999px;
  height: 2.05rem;
  min-width: 2.05rem !important;
  padding: 0.32rem;
  width: 2.05rem;
}

.rmv-report-agenda-icon .bi {
  font-size: 0.95rem;
  margin: 0;
  line-height: 1;
}

.rmv-report-record-link {
  align-items: center;
  display: inline-flex;
  height: 2.05rem;
  justify-content: center;
  min-width: 2.05rem;
  padding: 0.32rem;
  width: 2.05rem;
}

.rmv-report-record-link .bi {
  font-size: 0.95rem;
  line-height: 1;
}

.rmv-revaccination-action-stack {
  align-items: center;
  display: inline-flex;
  gap: 0.3rem;
  justify-content: flex-end;
}

.rmv-revaccination-manage-btn {
  background: var(--rmv-color-success);
  border-color: var(--rmv-color-success);
  color: #fff;
  min-width: 0;
  padding-left: 0.52rem;
  padding-right: 0.52rem;
}

.rmv-revaccination-manage-btn:hover,
.rmv-revaccination-manage-btn:focus {
  background: #146c43;
  border-color: #146c43;
  color: #fff;
}

.rmv-followup-modal .modal-content {
  border: 1px solid rgba(13, 110, 253, 0.13);
  border-radius: var(--rmv-radius-lg);
  box-shadow: var(--rmv-shadow-xl);
}

.rmv-followup-modal-subtitle,
.rmv-followup-modal-help {
  color: var(--rmv-color-text-muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.rmv-followup-modal-summary {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rmv-appointment-modal-summary {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rmv-followup-modal-summary div,
.rmv-appointment-modal-summary div,
.rmv-followup-contact-list div {
  background: rgba(13, 110, 253, 0.045);
  border: 1px solid rgba(13, 110, 253, 0.09);
  border-radius: var(--rmv-radius-sm);
  padding: 0.55rem 0.65rem;
}

.rmv-followup-modal-summary span,
.rmv-appointment-modal-summary span,
.rmv-followup-contact-list dt {
  color: var(--rmv-color-text-muted);
  display: block;
  font-size: 0.68rem;
  font-weight: 900;
  margin-bottom: 0.15rem;
  text-transform: uppercase;
}

.rmv-followup-modal-summary strong,
.rmv-appointment-modal-summary strong,
.rmv-followup-contact-list dd {
  color: var(--rmv-color-text);
  font-size: 0.88rem;
  font-weight: 800;
  margin: 0;
}

.rmv-revaccination-appointment-modal .form-label {
  font-size: 0.78rem;
  font-weight: 850;
}

.rmv-revaccination-appointment-modal .form-control,
.rmv-revaccination-appointment-modal .form-select {
  min-height: 2.35rem;
}

.rmv-followup-identity-card em {
  color: var(--rmv-color-text);
  display: block;
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 750;
  line-height: 1.25;
  margin-top: 0.12rem;
  overflow-wrap: anywhere;
}

.rmv-followup-contact-list {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.rmv-followup-modal-actions {
  gap: 0.35rem;
}

.rmv-followup-modal-actions .btn {
  white-space: nowrap;
}

.rmv-followup-schedule-appointment {
  align-items: center;
  display: inline-flex;
  gap: 0.2rem;
}

.rmv-followup-record-link {
  flex: 0 0 auto;
}

.rmv-followup-action-neutral,
.rmv-followup-action-warning,
.rmv-followup-action-walk-in,
.rmv-followup-action-declined {
  border-radius: 999px;
  font-weight: 800;
  transition: background-color var(--rmv-transition-fast), border-color var(--rmv-transition-fast), color var(--rmv-transition-fast), transform var(--rmv-transition-fast);
}

.rmv-followup-action-neutral {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(100, 116, 139, 0.18);
  color: var(--rmv-color-body);
}

.rmv-followup-action-warning {
  background: rgba(255, 193, 7, 0.16);
  border: 1px solid rgba(255, 193, 7, 0.28);
  color: #7a4b00;
}

.rmv-followup-action-walk-in {
  background: rgba(71, 126, 180, 0.1);
  border: 1px solid rgba(71, 126, 180, 0.2);
  color: #315d86;
}

.rmv-followup-action-declined {
  background: rgba(184, 0, 0, 0.08);
  border: 1px solid rgba(184, 0, 0, 0.18);
  color: var(--rmv-color-revaccination);
}

.rmv-followup-action-neutral:hover,
.rmv-followup-action-neutral:focus,
.rmv-followup-action-warning:hover,
.rmv-followup-action-warning:focus,
.rmv-followup-action-walk-in:hover,
.rmv-followup-action-walk-in:focus,
.rmv-followup-action-declined:hover,
.rmv-followup-action-declined:focus {
  filter: saturate(1.05);
  transform: translateY(-1px);
}

@media (max-width: 1199.98px) {
  .rmv-expediente-workspace {
    grid-template-columns: 1fr;
  }

  .rmv-footer-inner {
    align-items: flex-start;
  }

  .rmv-footer-context {
    justify-content: flex-start;
  }
}

@media (min-width: 768px) {
  .rmv-footer-action {
    font-size: 1.05rem;
    height: 2.5rem;
    width: 2.5rem;
  }

  .rmv-footer-vaccine-icon {
    height: 1.12rem;
    width: 1.12rem;
  }
}

@media (max-width: 1199.98px) {
  
.rmv-revaccination-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rmv-report-search-field {
    grid-column: span 2;
  }
}

@media (max-width: 991.98px) {
  .rmv-navbar-isotype {
    height: 38px;
    max-height: 38px;
    max-width: 132px;
    width: auto;
  }

  .rmv-navbar-brand-subtitle {
    display: none !important;
  }

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

  .rmv-report-search-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .rmv-app-footer {
    font-size: 0.78rem;
    padding-bottom: 0.72rem;
  }

  .rmv-footer-inner {
    flex-direction: column;
  }

  .rmv-footer-brand,
  .rmv-footer-context,
  .rmv-footer-quick-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .rmv-footer-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .rmv-footer-actions,
  .rmv-footer-copy {
    justify-content: flex-start;
    text-align: left;
    width: 100%;
  }

  .rmv-footer-item-text {
    max-width: 10rem;
  }
}

@media (max-width: 767.98px) {
  .rmv-navbar-isotype {
    height: 34px;
    max-height: 34px;
    max-width: 88px;
    width: auto;
  }

  .rmv-agenda-collapsed-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .rmv-agenda-view-toggle {
    width: 100%;
  }

  .rmv-agenda-view-toggle a {
    flex: 1 1 0;
    text-align: center;
  }

  .rmv-agenda-table,
  .rmv-agenda-table tbody,
  .rmv-agenda-table tr,
  .rmv-agenda-table td {
    display: block;
    width: 100%;
  }

  .rmv-agenda-table thead {
    display: none;
  }

  .rmv-agenda-table tr {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding: 0.7rem 0.75rem;
  }

  .rmv-agenda-table tr:last-child {
    border-bottom: none;
  }

  .rmv-agenda-table td {
    border-bottom: none;
    padding: 0.12rem 0;
  }

  .rmv-agenda-time {
    font-size: 1rem;
  }

  .rmv-agenda-actions {
    white-space: normal;
  }

  .rmv-agenda-action-group,
  .rmv-agenda-cancel-form {
    flex-wrap: wrap;
  }

  
.rmv-revaccination-filter-grid {
    grid-template-columns: 1fr;
  }

  .rmv-followup-modal-summary,
  .rmv-appointment-modal-summary,
  .rmv-followup-contact-list {
    grid-template-columns: 1fr;
  }

  .rmv-followup-modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .rmv-followup-modal-actions .btn {
    width: 100%;
  }
}

@media print {
  @page {
    margin: 0.45in;
    size: landscape;
  }

  body {
    background: #fff !important;
    color: #111 !important;
    font-size: 9px;
  }

  .rmv-app-header,
  .rmv-app-footer,
  .rmv-report-actions,
  .rmv-report-filter-card,
  .rmv-report-summary,
  .rmv-report-action-column,
  .rmv-report-action-column *,
  .btn {
    display: none !important;
  }

  .rmv-main-container,
  .container {
    max-width: none !important;
    width: 100% !important;
  }

  .rmv-page-header {
    margin-bottom: 0.35rem;
  }

  .rmv-page-title {
    font-size: 1rem;
    margin-bottom: 0.05rem;
  }

  .rmv-page-subtitle,
  .rmv-report-print-range {
    display: block;
    font-size: 0.72rem;
  }

  .rmv-card,
  .rmv-report-table-card {
    border: 0 !important;
    box-shadow: none !important;
  }

  .rmv-report-table-wrap {
    overflow: visible !important;
  }

  .rmv-revaccination-table {
    border-collapse: collapse !important;
    font-size: 0.58rem;
    min-width: 0;
    width: 100%;
  }

  .rmv-revaccination-table th,
  .rmv-revaccination-table td {
    border: 1px solid #bbb !important;
    padding: 0.1rem 0.12rem;
  }

  .rmv-revaccination-table th {
    font-size: 0.6rem;
  }

  .rmv-revaccination-row-scheduled td {
    background: #edf7ef !important;
  }

  .rmv-revaccination-row-warning td {
    background: #fff8df !important;
  }

  .rmv-revaccination-row-walk-in td {
    background: #eef5ff !important;
  }

  .rmv-revaccination-row-declined td {
    background: #fff0f0 !important;
  }

  .rmv-report-status-badge {
    border: 0;
    padding: 0;
  }
}


.rmv-notifications-diagnostics {
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
  padding: .65rem .85rem;
  color: #475569;
  font-size: .72rem;
}

.rmv-notifications-diagnostics summary {
  color: #0d6efd;
  cursor: pointer;
  font-weight: 700;
  list-style-position: inside;
}

.rmv-notifications-diagnostics-grid {
  display: grid;
  grid-template-columns: minmax(6.5rem, auto) minmax(0, 1fr);
  gap: .2rem .55rem;
  margin: .55rem 0;
}

.rmv-notifications-diagnostics-grid dt {
  color: #64748b;
  font-weight: 700;
}

.rmv-notifications-diagnostics-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.rmv-notifications-diagnostics-counts {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin: .4rem 0 .55rem;
}

.rmv-notifications-diagnostics-counts span {
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  padding: .12rem .4rem;
}

.rmv-notifications-diagnostics-title {
  color: #334155;
  font-weight: 700;
  margin-bottom: .25rem;
}

.rmv-notifications-diagnostics-rows {
  display: grid;
  gap: .25rem;
}

.rmv-notifications-diagnostics-row {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: .35rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  padding: .35rem .45rem;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .rmv-reveal {
    opacity: 1;
    transform: none;
  }
}

/* Compact appointment notification controls */
.rmv-inline-alert {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  border: 1px solid rgba(13, 110, 253, .22);
  background: rgba(13, 110, 253, .06);
  border-radius: 8px;
  padding: .55rem .75rem;
}

.rmv-inline-check {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  color: var(--rmv-text-muted);
  font-size: .78rem;
  white-space: nowrap;
}

.rmv-inline-check input {
  width: .9rem;
  height: .9rem;
}

.rmv-document-files-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .75rem;
  flex-wrap: wrap;
}

.rmv-document-generator-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.rmv-document-generator-form,
.rmv-document-preview-panel {
  padding: 1rem;
}

.rmv-document-generator-stack {
  display: grid;
  gap: 1rem;
}

.rmv-document-generator-section + .rmv-document-generator-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(13, 110, 253, .12);
}

.rmv-document-generator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .75rem;
}

.rmv-document-summary-band,
.rmv-document-template-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .75rem;
  padding: .85rem .95rem;
  border: 1px solid rgba(13, 110, 253, .12);
  border-radius: .75rem;
  background: rgba(13, 110, 253, .04);
  margin-top: .9rem;
}

.rmv-document-summary-band span,
.rmv-document-template-meta span,
.rmv-document-preview-meta-label {
  display: block;
  font-size: .75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.rmv-document-summary-band strong,
.rmv-document-template-meta strong {
  display: block;
  margin-top: .15rem;
  color: #0f172a;
  font-size: .95rem;
}

.rmv-document-select-wide {
  width: 100%;
}

.rmv-document-context-card {
  grid-template-columns: minmax(0, 1fr);
  gap: .65rem;
}

.rmv-document-generator-empty {
  margin-top: 0;
}

.rmv-document-generator-actions,
.rmv-document-preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.rmv-document-preview-sheet {
  background: #fff;
  border: 1px solid rgba(13, 110, 253, .12);
  border-radius: .85rem;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
  padding: 1.5rem;
  min-height: 960px;
}

.rmv-document-preview-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(13, 110, 253, .14);
  margin-bottom: 1rem;
}

.rmv-document-preview-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  min-width: 96px;
  height: 96px;
  border: 1px solid rgba(13, 110, 253, .12);
  border-radius: 1rem;
  background: #fff;
  overflow: hidden;
}

.rmv-document-preview-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rmv-document-preview-clinic h2 {
  margin: 0;
  font-size: 1.3rem;
  color: #0f172a;
}

.rmv-document-preview-clinic p,
.rmv-document-preview-body p,
.rmv-document-footer-note {
  margin: .25rem 0 0;
  color: #334155;
  line-height: 1.55;
}

.rmv-document-preview-title {
  margin: 1rem 0 .35rem;
  font-size: 1.4rem;
  color: #0d6efd;
}

.rmv-document-preview-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}

.rmv-document-preview-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 1rem;
  margin: 1rem 0;
  align-items: start;
}

.rmv-document-preview-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .75rem;
}

.rmv-document-preview-photo {
  border: 1px solid rgba(13, 110, 253, .12);
  border-radius: .9rem;
  padding: .5rem;
  background: rgba(13, 110, 253, .03);
}

.rmv-document-preview-photo img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: .65rem;
}

.rmv-document-preview-block {
  margin-top: 1rem;
}

.rmv-document-preview-block h4 {
  margin: 0 0 .5rem;
  font-size: 1rem;
  color: #0f172a;
}

.rmv-document-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  margin-top: .65rem;
}

.rmv-document-preview-table th,
.rmv-document-preview-table td {
  border: 1px solid rgba(148, 163, 184, .35);
  padding: .5rem .6rem;
  vertical-align: top;
}

.rmv-document-preview-table th {
  background: rgba(13, 110, 253, .06);
  color: #0f172a;
}

.rmv-document-prewrap {
  white-space: pre-wrap;
}

.rmv-document-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .4rem .8rem;
}

.rmv-document-signatures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.rmv-document-signature-line {
  border-top: 1px solid #334155;
  padding-top: .45rem;
  min-height: 52px;
}

.rmv-document-signature-line strong {
  display: block;
  color: #0f172a;
}

.rmv-document-footer-note {
  margin-top: 1.5rem;
  font-size: .86rem;
  color: #64748b;
}

@media (max-width: 1199.98px) {
  .rmv-document-generator-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .rmv-document-preview-header,
  .rmv-document-preview-summary,
  .rmv-document-signatures {
    display: grid;
    grid-template-columns: 1fr;
  }

  .rmv-document-preview-logo {
    width: 84px;
    min-width: 84px;
    height: 84px;
  }

  .rmv-document-preview-sheet {
    padding: 1rem;
  }
}

@media print {
  body {
    background: #fff !important;
  }

  .navbar,
  footer,
  .rmv-page-header,
  .no-print,
  .rmv-document-generator-form,
  .rmv-footer-quick-actions {
    display: none !important;
  }

  .rmv-document-generator-layout {
    display: block;
  }

  .rmv-document-preview-panel,
  .rmv-document-preview-sheet {
    padding: 0;
    border: 0;
    box-shadow: none;
    min-height: auto;
  }

  .rmv-document-preview-sheet {
    border-radius: 0;
  }
}

.rmv-document-generator-form {
  align-self: start;
}

.rmv-document-preview-actions {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  align-items: center;
}

.document-letter {
  position: relative;
  width: 8.5in;
  min-height: 11in;
  margin: 0 auto;
  padding: 22mm 16mm 16mm;
  background: #fff;
  color: #111827;
  overflow: hidden;
  box-sizing: border-box;
}

.pathology-print-body {
  margin: 0;
  background: #eef4fb;
  color: #111827;
  font-family: Helvetica, Arial, sans-serif;
}

.pathology-print-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #dbeafe;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .08);
}

.pathology-print-toolbar span {
  display: block;
  color: #64748b;
  font-size: .82rem;
}

.pathology-print-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pathology-print-root {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 3.1mm;
  line-height: 1.16;
  color: #111827;
}

.pathology-report-sheet,
.pathology-report-safe-area,
.pathology-report-print {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: visible;
}

.pathology-report-sheet {
  min-height: auto;
  background: #fff;
  box-shadow: none;
  page-break-after: auto;
  break-after: auto;
}

.pathology-report-print {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.pathology-report-print thead {
  display: table-header-group;
}

.pathology-report-print tfoot {
  display: table-footer-group;
}

.pathology-report-print td {
  padding: 0;
}

.pathology-report-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 8mm;
  min-height: 15mm;
}

.pathology-report-logo {
  width: 45mm;
  height: 14mm;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.pathology-report-logo img {
  width: auto;
  height: 14mm;
  max-width: 48mm;
  object-fit: contain;
  object-position: left top;
}

.pathology-report-clinic-title {
  text-align: right;
  color: #374151;
  font-weight: 700;
}

.pathology-report-clinic-title strong {
  display: block;
  font-size: 5mm;
  line-height: 1;
}

.pathology-report-header-line,
.pathology-report-footer::before {
  display: block;
  content: "";
  border-top: .25mm solid #1f2937;
}

.pathology-report-header-line {
  margin: 3mm 0 5mm;
}

.pathology-report-content {
  padding-top: 4mm;
  padding-bottom: 8mm;
  overflow: visible;
}

.pathology-report-content h1 {
  margin: 0 0 5mm;
  text-align: center;
  font-size: 4.1mm;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0;
}

.pathology-report-cancelled {
  display: flex;
  gap: 3mm;
  align-items: baseline;
  margin-bottom: 4mm;
  padding: 1.5mm 2mm;
  border: .25mm solid #fecaca;
  background: #fff1f2;
  color: #991b1b;
}

.pathology-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 12mm;
  row-gap: 1.5mm;
  margin-top: 5mm;
  margin-bottom: 5mm;
  break-inside: avoid;
  page-break-inside: avoid;
}

.pathology-summary-title {
  margin: 0 0 2mm;
  padding-bottom: 1mm;
  border-bottom: .25mm solid #d1d5db;
  font-size: 3.1mm;
  font-weight: 700;
  line-height: 1.16;
}

.pathology-summary-row {
  display: grid;
  grid-template-columns: 22mm minmax(0, 1fr);
  column-gap: 3mm;
  margin-bottom: 1.2mm;
}

.pathology-summary-label {
  font-weight: 700;
}

.pathology-summary-value {
  min-width: 0;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.pathology-report-photo {
  width: 42mm;
  height: 32mm;
  margin: 0;
  border: .25mm solid #d1d5db;
  background: #f8fafc;
  overflow: hidden;
}

.pathology-report-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pathology-report-origin {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4mm 4mm;
  margin-bottom: 5mm;
  padding: 1.8mm 0;
  border-top: .25mm solid #d1d5db;
  border-bottom: .25mm solid #d1d5db;
  break-inside: avoid;
  page-break-inside: avoid;
}

.pathology-report-section {
  margin-top: 5mm;
  margin-bottom: 0;
  break-inside: avoid;
  page-break-inside: avoid;
}

.pathology-report-section:has(.pathology-report-text) {
  break-inside: auto;
  page-break-inside: auto;
}

.pathology-report-section h2 {
  margin: 0 0 2mm;
  padding-bottom: 1mm;
  border-bottom: .25mm solid #d1d5db;
  font-size: 3.1mm;
  line-height: 1.15;
  font-weight: 700;
}

.pathology-report-row {
  margin-bottom: 1.6mm;
  line-height: 1.16;
}

.pathology-report-row strong {
  font-weight: 700;
}

.pathology-report-text span {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.pathology-report-section:last-of-type {
  break-after: avoid-page;
  page-break-after: avoid;
}
.pathology-report-signature {
  margin: 5mm auto 0;
  width: 80mm;
  text-align: center;
  break-before: avoid-page;
  break-inside: avoid;
  page-break-before: avoid;
  page-break-inside: avoid;
}

.pathology-report-signature-line {
  border-top: .3mm solid #111827;
  margin: 0 auto 1.5mm auto;
}

.pathology-report-signature strong,
.pathology-report-signature span {
  display: block;
  font-size: 3.1mm;
  font-weight: 400;
  line-height: 1.12;
}

.pathology-report-footer {
  display: block;
  padding-top: 2mm;
  color: #4b5563;
  font-size: 3.1mm;
  text-align: center;
}

.pathology-debug-layout .pathology-report-content,
.pathology-debug-layout .pathology-report-header,
.pathology-debug-layout .pathology-report-footer {
  outline: .25mm dashed rgba(13, 110, 253, .35);
}

@media print {
  @page pathology-report-page {
    size: Letter portrait;
    margin: 12mm 14mm 14mm 14mm;
  }

  @page {
    size: Letter portrait;
    margin: 12mm 14mm 14mm 14mm;
  }

  html,
  body.pathology-print-body {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .no-print,
  .pathology-print-toolbar {
    display: none !important;
  }

  .pathology-print-root {
    page: pathology-report-page;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
    background: #fff !important;
  }

  .pathology-report-sheet,
  .pathology-report-safe-area,
  .pathology-report-print {
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
  }

  .pathology-report-sheet {
    min-height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    page-break-after: auto;
    break-after: auto;
  }

  .pathology-report-safe-area {
    box-sizing: border-box !important;
    padding: 0 14mm !important;
    margin: 0 !important;
  }

  .pathology-report-content {
    overflow: visible !important;
  }

  .pathology-report-section:has(.pathology-report-text) {
    break-inside: auto;
    page-break-inside: auto;
  }
}

@media screen {
  .pathology-report-sheet {
    width: 216mm;
    min-height: 279mm;
    margin: 0 auto 18px auto;
    box-sizing: border-box;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .14);
  }

  .pathology-report-safe-area {
    padding: 12mm 14mm 14mm 14mm;
    box-sizing: border-box;
  }
}

.document-letter-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: .035;
}

.document-watermark {
  position: absolute;
  inset: 35mm 25mm 35mm 25mm;
}

.document-letter-watermark img {
  width: 58%;
  max-width: 320px;
  object-fit: contain;
}

.document-letter-header,
.document-letter-record,
.document-letter-signatures,
.document-letter-grid-two {
  position: relative;
  z-index: 1;
}

.document-letter-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding-bottom: .85rem;
  border-bottom: 1.5px solid rgba(15, 23, 42, .22);
}

.document-letter-brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .9rem;
  align-items: start;
}

.document-letter-logo-shell {
  width: 74px;
  height: 74px;
  border: 1px solid rgba(13, 110, 253, .18);
  border-radius: .6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .88);
}

.document-letter-voluntary {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10pt;
  line-height: 1.24;
  color: #111;
}

.document-letter-voluntary .document-letter-watermark {
  inset: 34mm 28mm 34mm 28mm;
}

.document-letter-voluntary .document-letter-watermark img {
  width: 68%;
  max-width: 410px;
  filter: grayscale(1);
}

.document-letter-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.document-letter-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: #0d6efd;
}

.document-letter-brand h2,
.document-letter-title {
  margin: 0;
  color: #0f172a;
}

.document-letter-brand h2 {
  font-size: 1.18rem;
}

.document-letter-brand p,
.document-letter-meta,
.document-letter-footer-note {
  margin: .18rem 0 0;
  font-size: .82rem;
  line-height: 1.45;
}

.document-letter-meta {
  text-align: right;
  color: #475569;
}

.document-letter-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 146px;
  gap: .95rem;
  margin-top: .95rem;
  align-items: start;
}

.document-letter-record-table {
  border: 1px solid rgba(15, 23, 42, .16);
  border-radius: .55rem;
  overflow: hidden;
}

.document-letter-record-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: .6rem;
  padding: .34rem .55rem;
  border-bottom: 1px solid rgba(148, 163, 184, .22);
  font-size: .82rem;
}

.document-letter-record-row:last-child {
  border-bottom: 0;
}

.document-letter-record-row span {
  color: #475569;
  font-weight: 600;
}

.document-letter-record-row strong {
  color: #0f172a;
  font-weight: 600;
}

.document-letter-photo {
  width: 146px;
  min-height: 174px;
  border: 1px solid rgba(15, 23, 42, .18);
  border-radius: .55rem;
  background: #fff;
  overflow: hidden;
}

.document-letter-photo img {
  display: block;
  width: 100%;
  height: 174px;
  object-fit: cover;
}

.document-letter-record-pattern {
  display: block;
}

.document-letter-lineform {
  margin-top: .95rem;
}

.document-letter-lineform-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .9rem;
  align-items: end;
  margin-bottom: .55rem;
}

.document-letter-lineform-date {
  font-size: .82rem;
  font-weight: 600;
  text-align: right;
}

.document-letter-line-row {
  display: block;
  margin: 0 0 .38rem;
}

.document-letter-line-row-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .48fr);
  gap: .85rem;
}

.document-letter-line-row-with-photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 45mm;
  gap: 1rem;
  align-items: start;
}

.document-letter-line-row-main {
  min-width: 0;
}

.document-letter-line-cell {
  min-width: 0;
}

.document-letter-line-label {
  display: inline-block;
  min-width: 126px;
  margin-right: .35rem;
  font-size: .8rem;
  font-weight: 700;
  color: #334155;
  letter-spacing: .02em;
}

.document-letter-line-value {
  display: inline-block;
  min-width: calc(100% - 135px);
  border-bottom: 1px solid #334155;
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.25;
  padding-bottom: .06rem;
  vertical-align: bottom;
}

.document-letter-photo-pattern {
  width: 45mm;
  min-width: 45mm;
  min-height: 32mm;
  height: 32mm;
  border-radius: 0;
}

.document-letter-photo-pattern img {
  height: 32mm;
}

.document-letter-body {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
}

.document-letter-title {
  font-size: 1.08rem;
  text-align: center;
  letter-spacing: .03em;
  margin-bottom: .85rem;
}

.document-letter-section {
  font-size: .9rem;
  line-height: 1.58;
}

.document-letter-section p {
  margin: 0 0 .75rem;
}

.document-letter-body-uppercase {
  text-transform: uppercase;
}

.document-letter-body-justified p {
  text-align: justify;
}

.document-letter-inline-line,
.document-letter-fill-group {
  margin: .65rem 0;
}

.document-letter-inline-line {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .84rem;
  font-weight: 600;
}

.document-letter-fill-inline {
  display: inline-block;
  min-width: 220px;
  padding-bottom: .08rem;
  border-bottom: 1px solid #334155;
}

.document-letter-fill-block {
  min-height: 26px;
  border-bottom: 1px solid #334155;
}

.document-letter-fill-block.tall {
  min-height: 58px;
}

.document-letter-fill-block.xl {
  min-height: 108px;
}

.document-letter-fill-group > span {
  display: block;
  font-size: .77rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #334155;
  margin-bottom: .24rem;
}

.document-letter-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: .55rem;
  font-size: .82rem;
}

.document-letter-table th,
.document-letter-table td {
  border: 1px solid rgba(15, 23, 42, .18);
  padding: .38rem .44rem;
  vertical-align: top;
}

.document-letter-table th {
  background: rgba(13, 110, 253, .05);
  font-weight: 700;
}

.document-letter-table.compact th,
.document-letter-table.compact td {
  padding: .32rem .38rem;
}

.document-letter-check-list {
  display: grid;
  gap: .38rem;
  margin: .45rem 0;
}

.document-letter-check-list.compact {
  gap: .26rem;
}

.document-letter-check-item {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .84rem;
}

.document-letter-checkbox {
  width: 14px;
  height: 14px;
  border: 1px solid #334155;
  display: inline-block;
  flex: 0 0 14px;
}

.document-letter-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}

.document-letter-muted {
  color: #64748b;
  font-size: .78rem;
}

.document-letter-footer {
  position: relative;
  z-index: 1;
  margin-top: 1.25rem;
  padding-top: .85rem;
  border-top: 1px solid rgba(15, 23, 42, .18);
}

.document-letter-signatures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: .8rem;
}

.document-letter-signature-line {
  border-top: 1px solid #334155;
  margin-bottom: .38rem;
}

.document-letter-signature-block strong,
.document-letter-signature-block span {
  display: block;
  font-size: .8rem;
}

.document-letter-footer-note {
  color: #475569;
}

.document-letter-footer-note-muted {
  color: #64748b;
}

.document-letter-header-voluntary {
  padding-bottom: .35rem;
  border-bottom: 1px solid rgba(15, 23, 42, .35);
}

.document-letter-header-voluntary-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.document-letter-brand-voluntary {
  gap: .6rem;
  align-items: center;
}

.document-letter-logo-shell-voluntary {
  width: 118px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.document-letter-voluntary .document-letter-logo {
  width: 118px;
  height: 58px;
}

.document-letter-brand-copy {
  min-width: 0;
}

.document-letter-brand-clinic,
.document-letter-brand-branch {
  margin: 0;
  color: #1f2937;
  font-size: .7rem;
  line-height: 1.2;
}

.document-letter-brand-clinic {
  font-weight: 700;
}

.document-letter-header-title {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #4b5563;
  text-align: right;
}

.document-letter-header-voluntary-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  margin-top: .18rem;
  font-size: .64rem;
  font-weight: 700;
  color: #374151;
}

.document-letter-header-voluntary-license {
  text-align: right;
}

.document-letter-voluntary .document-letter-lineform {
  margin-top: 1.05rem;
}

.document-letter-voluntary .document-letter-lineform-top {
  margin-bottom: .9rem;
}

.document-letter-voluntary .document-letter-inline-line,
.document-letter-voluntary .document-letter-lineform-date,
.document-letter-voluntary .document-letter-line-label,
.document-letter-voluntary .document-letter-line-value {
  font-size: .72rem;
}

.document-letter-voluntary .document-letter-line-label {
  min-width: 118px;
  color: #111827;
}

.document-letter-voluntary .document-letter-line-value {
  min-width: calc(100% - 126px);
  font-weight: 500;
  border-bottom-color: #6b7280;
}

.document-letter-voluntary .document-letter-line-row {
  margin: 0 0 .28rem;
}

.document-letter-voluntary .document-letter-line-row-split {
  grid-template-columns: minmax(0, 1fr) minmax(160px, .42fr);
  gap: .55rem;
}

.document-letter-voluntary .document-letter-line-row-with-photo {
  grid-template-columns: minmax(0, 1fr) 50mm;
  gap: .9rem;
}

.document-letter-voluntary .document-letter-photo-pattern {
  width: 50mm;
  min-width: 50mm;
  height: 38mm;
  min-height: 38mm;
  border-color: rgba(15, 23, 42, .12);
}

.document-letter-voluntary .document-letter-photo-pattern img {
  height: 38mm;
}

.document-letter-voluntary .document-letter-title {
  margin-top: .7rem;
  margin-bottom: 1rem;
  font-size: .94rem;
  font-weight: 700;
  letter-spacing: .015em;
}

.document-letter-voluntary .document-letter-section {
  font-size: .75rem;
  line-height: 1.28;
}

.document-letter-voluntary .document-letter-section p {
  margin: 0 0 .68rem;
}

.document-letter-voluntary .document-letter-body-justified p {
  max-width: 96%;
}

.document-letter-voluntary .document-letter-footer {
  margin-top: 1.6rem;
  padding-top: .9rem;
}

.document-letter-voluntary .document-letter-signatures {
  grid-template-columns: 1fr;
  gap: .4rem;
  max-width: 250px;
  margin-bottom: .75rem;
}

.document-letter-voluntary .document-letter-signature-block strong {
  font-size: .68rem;
  font-weight: 500;
  text-transform: uppercase;
}

.document-letter-footer-voluntary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: .9rem;
  border-top: 1px solid rgba(15, 23, 42, .28);
  padding-top: .38rem;
  font-size: .58rem;
  line-height: 1.28;
  color: #374151;
}

.document-letter-footer-voluntary-center {
  text-align: center;
  color: #dc2626;
  font-size: .92rem;
  font-weight: 700;
}

.document-letter-footer-voluntary-column-right {
  text-align: right;
}

@media (max-width: 1199.98px) {
  .document-letter {
    width: 100%;
    min-height: auto;
  }
}

@media (max-width: 767.98px) {
  .document-letter {
    padding: 1rem;
  }

  .document-letter-header,
  .document-letter-record,
  .document-letter-signatures,
  .document-letter-grid-two {
    grid-template-columns: 1fr;
  }

  .document-letter-brand {
    grid-template-columns: 1fr;
  }

  .document-letter-meta {
    text-align: left;
  }

  .document-letter-record-row {
    grid-template-columns: 1fr;
    gap: .2rem;
  }

  .document-letter-photo {
    width: 100%;
    max-width: 220px;
  }

  .document-letter-lineform-top,
  .document-letter-line-row-split,
  .document-letter-line-row-with-photo {
    grid-template-columns: 1fr;
  }

  .document-letter-header-voluntary-top,
  .document-letter-header-voluntary-bottom,
  .document-letter-footer-voluntary {
    grid-template-columns: 1fr;
  }

  .document-letter-line-label,
  .document-letter-line-value {
    min-width: 0;
    width: 100%;
  }
}

@page {
  size: Letter portrait;
  margin: 0;
}

@media screen {
  .document-preview-scale {
    transform-origin: top center;
  }

  .document-preview-scale-multipage {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  /* R2D2B9A64 Modern v2 preview uses viewport/size/scale wrappers with one physical sheet. */
  .modern-preview-viewport.document-print-root-modern-v2 {
    --rmv-document-preview-scale: 1;
    display: block;
    overflow-x: hidden;
    overflow-y: visible;
    position: relative;
    width: 100%;
  }

  .modern-preview-viewport.document-print-root-modern-v2 .modern-preview-size {
    display: block;
    margin-inline: auto;
    overflow: visible;
    position: relative;
  }

  .modern-preview-viewport.document-print-root-modern-v2 .modern-preview-scale {
    left: 50%;
    margin: 0;
    max-width: none;
    position: absolute;
    top: 0;
    transform: translateX(-50%) scale(var(--rmv-document-preview-scale));
    transform-origin: top center;
    width: 216mm;
  }

  .modern-preview-viewport.document-print-root-modern-v2 .document-letter {
    max-width: none;
    width: 216mm;
  }

  .modern-preview-viewport.document-print-root-modern-v2 .document-preview-scale-multipage {
    width: 216mm;
  }
}

@media print {
  nav,
  .no-print,
  .app-shell,
  .app-header,
  .rmv-page-header,
  .rmv-document-generator-form,
  .rmv-document-preview-toolbar,
  .document-toolbar,
  .rmv-navbar,
  .navbar,
  .page-title,
  .selector-panel,
  .sidebar,
  .toolbar,
  .btn,
  .preview-card-title {
    display: none !important;
  }

  html,
  body {
    width: 216mm !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #fff !important;
  }

  .document-preview-scale {
    transform: none !important;
    width: 216mm !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .document-letter {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    width: 216mm !important;
    height: 279mm !important;
    min-height: 279mm !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    page-break-before: avoid !important;
    page-break-after: avoid;
    page-break-inside: avoid;
    break-before: avoid !important;
    break-after: avoid !important;
    break-inside: avoid !important;
  }

  .document-preview-scale-multipage,
  .document-print-host-multipage {
    width: 216mm !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    display: block !important;
  }

  .document-preview-scale-multipage .document-letter.document-letter-vaccination-card {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 216mm !important;
    height: 279mm !important;
    min-height: 279mm !important;
    margin: 0 !important;
    overflow: hidden !important;
    page-break-after: always !important;
    page-break-inside: avoid !important;
    break-after: page !important;
    break-inside: avoid !important;
  }

  .document-preview-scale-multipage .document-letter.document-letter-vaccination-card:last-child {
    page-break-after: auto !important;
    break-after: auto !important;
  }

  .document-print-host,
  .rmv-document-preview-panel,
  .rmv-document-preview-sheet,
  .rmv-card,
  .document-preview-card,
  .document-letter-shell {
    width: 216mm !important;
    height: 279mm !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    overflow: hidden !important;
  }

  .document-logo,
  .document-logo-box,
  .document-logo-img,
  .document-footer,
  .document-pet-photo,
  .document-pet-photo-frame,
  .document-watermark,
  .document-letter-watermark,
  .document-letter-header,
  .document-letter-footer,
  .document-letter-footer-voluntary {
    display: block !important;
    visibility: visible !important;
  }
}

.document-layout-debug {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 5;
}

.document-layout-debug-grid {
  height: 100%;
  width: 100%;
  background-image:
    linear-gradient(to right, rgba(13, 110, 253, 0.16) 0, rgba(13, 110, 253, 0.16) 0.18mm, transparent 0.18mm),
    linear-gradient(to bottom, rgba(13, 110, 253, 0.16) 0, rgba(13, 110, 253, 0.16) 0.18mm, transparent 0.18mm),
    linear-gradient(to right, rgba(13, 110, 253, 0.28) 0, rgba(13, 110, 253, 0.28) 0.28mm, transparent 0.28mm),
    linear-gradient(to bottom, rgba(13, 110, 253, 0.28) 0, rgba(13, 110, 253, 0.28) 0.28mm, transparent 0.28mm);
  background-size: 5mm 5mm, 5mm 5mm, 10mm 10mm, 10mm 10mm;
}

.document-layout-debug-axis {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2.4mm;
  position: absolute;
}

.document-layout-debug-axis-top {
  inset: 1.2mm 0 auto 0;
  height: 4mm;
}

.document-layout-debug-axis-left {
  inset: 0 auto 0 1.2mm;
  width: 5mm;
}

.document-layout-debug-marker {
  color: rgba(13, 110, 253, 0.75);
  position: absolute;
}

.document-logo-img {
  display: block;
  height: 22mm;
  width: auto;
  max-width: 70mm;
  object-fit: contain;
  object-position: left top;
  opacity: 1;
}

.document-pet-photo-frame {
  position: absolute;
  width: 51mm;
  height: 38mm;
  border: 0.3mm solid #d7dde8;
  border-radius: 3mm;
  overflow: hidden;
  background: #fff;
  box-sizing: border-box;
}

.rmv-document-debug-measurements {
  background: rgba(248, 250, 252, 0.94);
  border: 1px solid rgba(13, 110, 253, 0.18);
  border-radius: 10px;
  margin-bottom: 0.9rem;
  padding: 0.85rem 0.95rem;
}

.rmv-document-debug-head {
  align-items: flex-start;
  display: flex;
  gap: 0.85rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.rmv-document-debug-route {
  align-items: flex-end;
  color: var(--rmv-color-text-muted);
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  gap: 0.2rem;
  max-width: 100%;
  text-align: right;
}

.rmv-document-debug-route code {
  background: rgba(13, 110, 253, 0.08);
  border-radius: 6px;
  color: var(--rmv-color-primary);
  display: inline-block;
  font-size: 0.76rem;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 0.12rem 0.34rem;
  white-space: normal;
}

.document-layout-debug-axis-top .document-layout-debug-marker {
  transform: translateX(-50%);
}

.document-layout-debug-axis-left .document-layout-debug-marker {
  transform: translateY(-50%);
}

.doc-abs {
  position: absolute;
}

.document-letter-voluntary {
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10pt;
  height: 279mm;
  line-height: 1.18;
  overflow: hidden;
  padding: 0;
  width: 216mm;
}

.document-letter-euthanasia {
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10pt;
  height: 279mm;
  line-height: 1.18;
  overflow: hidden;
  padding: 0;
  width: 216mm;
}

.document-letter-boarding {
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10pt;
  height: 279mm;
  line-height: 1.18;
  overflow: hidden;
  padding: 0;
  width: 216mm;
}

.document-letter-voluntary .document-letter-watermark {
  display: none !important;
}

.document-letter-euthanasia .document-letter-watermark {
  inset: 76mm 38mm auto 38mm;
  width: 140mm;
  height: 118mm;
  opacity: 0.055;
}

.document-letter-boarding .document-letter-watermark {
  inset: 76mm 38mm auto 38mm;
  width: 140mm;
  height: 118mm;
  opacity: 0.055;
}

.document-letter-voluntary .document-letter-watermark img {
  filter: grayscale(1);
  max-width: none;
  height: 100%;
  width: 100%;
}

.document-letter-euthanasia .document-letter-watermark img {
  filter: grayscale(1);
  max-width: none;
  height: 100%;
  width: 100%;
}

.document-letter-boarding .document-letter-watermark img {
  filter: grayscale(1);
  max-width: none;
  height: 100%;
  width: 100%;
}

.document-letter-boarding-modern-v2 {
  --modern-content-font-family: "Helvetica", Arial, sans-serif;
  --modern-content-font-size: 3.5mm;
  --modern-content-line-height: 1.18;
  --modern-paragraph-gap: calc(3.5mm * 1.18 * 2);
  --modern-field-label-weight: 700;
  --modern-field-value-weight: 400;
  --modern-row-gap-owner: 6mm;
  --modern-pet-line-color: #d1d1d1;
  font-family: var(--modern-content-font-family);
}

.document-letter-boarding-modern-v2 .document-letter-watermark {
  display: none !important;
}

.document-sheet-voluntary {
  height: 279mm;
  position: relative;
  width: 216mm;
  z-index: 1;
}

.document-letter-modern-v2 {
  --modern-content-font-family: "Helvetica", Arial, sans-serif;
  --modern-content-font-size: 3.5mm;
  --modern-content-line-height: 1.18;
  --modern-paragraph-gap: calc(3.5mm * 1.18 * 2);
  --modern-field-label-weight: 700;
  --modern-field-value-weight: 400;
  --modern-row-gap-owner: 6mm;
  --modern-pet-line-color: #d1d1d1;
  font-family: var(--modern-content-font-family);
}

.document-letter-euthanasia-modern-v2 {
  --modern-content-font-family: "Helvetica", Arial, sans-serif;
  --modern-content-font-size: 3.5mm;
  --modern-content-line-height: 1.18;
  --modern-paragraph-gap: calc(3.5mm * 1.18 * 2);
  --modern-field-label-weight: 700;
  --modern-field-value-weight: 400;
  --modern-row-gap-owner: 6mm;
  --modern-pet-line-color: #d1d1d1;
  font-family: var(--modern-content-font-family);
}

.document-letter-euthanasia-modern-v2 .document-letter-watermark {
  display: none !important;
}

.document-sheet-euthanasia {
  height: 279mm;
  position: relative;
  width: 216mm;
  z-index: 1;
}

.document-sheet-boarding {
  height: 279mm;
  position: relative;
  width: 216mm;
  z-index: 1;
}

.document-letter-voluntary .document-logo-box,
.document-letter-voluntary .document-pet-photo img {
  display: block;
}

.document-letter-euthanasia .document-logo-box,
.document-letter-euthanasia .document-pet-photo img {
  display: block;
}

.document-letter-boarding .document-logo-box,
.document-letter-boarding .document-pet-photo img {
  display: block;
}

.document-letter-voluntary .document-logo-box {
  height: 22mm;
  overflow: visible;
  width: 70mm;
  z-index: 2;
}

.document-letter-euthanasia .document-logo-box {
  height: 22mm;
  overflow: visible;
  width: 70mm;
  z-index: 2;
}

.document-letter-boarding .document-logo-box {
  height: 22mm;
  overflow: visible;
  width: 70mm;
  z-index: 2;
}

.document-letter-voluntary .document-logo-img,
.document-letter-voluntary .document-logo {
  display: block;
  height: 22mm;
  max-width: 70mm;
  object-fit: contain;
  object-position: left top;
  width: auto;
}

.document-letter-voluntary .document-pet-photo-frame img,
.document-letter-voluntary .document-pet-photo-img {
  background: #fff;
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  width: 100%;
}

.document-letter-euthanasia .document-logo-img,
.document-letter-euthanasia .document-logo {
  display: block;
  height: 22mm;
  max-width: 70mm;
  object-fit: contain;
  object-position: left top;
  width: auto;
}

.document-letter-boarding .document-logo-img,
.document-letter-boarding .document-logo {
  display: block;
  height: 22mm;
  max-width: 70mm;
  object-fit: contain;
  object-position: left top;
  width: auto;
}

.document-letter .document-pet-photo-frame img,
.document-letter .document-pet-photo-img {
  background: #fff;
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  width: 100%;
}

.document-letter-voluntary .document-pet-photo {
  background: #fff;
  border: 0.3mm solid #d7dde8;
  border-radius: 3mm;
  box-sizing: border-box;
  overflow: hidden;
}

.document-letter-euthanasia .document-pet-photo {
  background: #fff;
  border: 0.3mm solid #d7dde8;
  border-radius: 3mm;
  box-sizing: border-box;
  overflow: hidden;
}

.document-letter-boarding .document-pet-photo {
  background: #fff;
  border: 0.3mm solid #d7dde8;
  border-radius: 3mm;
  box-sizing: border-box;
  overflow: hidden;
}

.doc-vol-label,
.doc-vol-value,
.doc-vol-signature-text,
.doc-vol-footer-left,
.doc-vol-footer-right {
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  z-index: 2;
}

.doc-vol-label,
.doc-vol-value {
  font-size: 3.1mm;
  line-height: 1;
}

.doc-vol-label {
  font-weight: 700;
}

.doc-vol-value {
  font-weight: 500;
}

.doc-vol-line,
.doc-vol-header-line,
.doc-vol-footer-line {
  background: rgba(17, 24, 39, 0.7);
}

.doc-vol-header-line,
.doc-vol-footer-line {
  height: 0.3mm;
  z-index: 1;
}

.doc-vol-line {
  height: 0.2mm;
}

.doc-vol-clinic-title {
  color: #4b5563;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 6.5mm;
  font-weight: 700;
  letter-spacing: 0;
  text-align: right;
  text-transform: uppercase;
  z-index: 2;
}

.doc-vol-signer-name,
.doc-vol-signer-license {
  color: #374151;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2.4mm;
  font-weight: 700;
  line-height: 1.1;
  z-index: 2;
}

.doc-vol-signer-license {
  text-align: right;
}

.doc-vol-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 4.2mm;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  z-index: 2;
}

.doc-vol-location-date {
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: var(--modern-content-font-size, 3.5mm);
  font-weight: 400;
  line-height: var(--modern-content-line-height, 1.18);
  text-align: right;
  z-index: 2;
}

.doc-vol-modern-owner-row,
.doc-vol-modern-pet-row {
  box-sizing: border-box;
  color: #111827;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  position: absolute;
  z-index: 2;
}

.doc-vol-modern-pet-row {
  border-bottom: 1px solid var(--modern-pet-line-color, #d1d1d1);
  height: 6mm;
}

.doc-vol-modern-owner-row > span,
.doc-vol-modern-pet-row > span {
  position: absolute;
}

.doc-vol-modern-field-label {
  color: #1f2937;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: var(--modern-content-font-size, 3.5mm);
  font-weight: var(--modern-field-label-weight, 700);
  line-height: var(--modern-content-line-height, 1.18);
}

.doc-vol-modern-field-value {
  color: #111827;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: var(--modern-content-font-size, 3.5mm);
  font-weight: var(--modern-field-value-weight, 400);
  line-height: var(--modern-content-line-height, 1.18);
}

.doc-vol-modern-legal-block,
.document-modern-legal-block {
  color: #111827;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: var(--modern-content-font-size, 3.5mm);
  font-weight: 400;
  letter-spacing: 0;
  line-height: var(--modern-content-line-height, 1.18);
  max-height: 64mm;
  overflow: hidden;
  position: absolute;
  text-align: justify;
  z-index: 2;
}

.doc-vol-modern-legal-block p,
.document-modern-legal-block p {
  margin: 0;
  padding: 0;
}

.doc-vol-modern-legal-block p + p,
.document-modern-legal-block p + p {
  margin-top: var(--modern-paragraph-gap, calc(3.5mm * 1.18 * 2));
}

.doc-vol-signature-text {
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: var(--modern-content-font-size, 3.5mm);
  font-weight: 400;
  line-height: var(--modern-content-line-height, 1.18);
  text-align: center;
}

.doc-vol-footer-left,
.doc-vol-footer-right {
  color: #374151;
  font-size: 1.95mm;
  font-weight: 600;
  line-height: 1.18;
}

.doc-vol-footer-center {
  color: #6b7280;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13.3pt;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  z-index: 2;
}

.doc-vol-logo { left: 21mm; top: 5mm; width: 70mm; height: 22mm; z-index: 2; }
.doc-vol-clinic-title { left: 117mm; top: 25mm; width: 78mm; height: 8mm; }
.doc-vol-signer-name { left: 21mm; top: 35mm; width: 90mm; height: 5mm; }
.doc-vol-signer-license { left: 130mm; top: 33mm; width: 70mm; height: 5mm; }
.doc-vol-header-line { left: 10mm; top: 33mm; width: 196mm; }

.doc-vol-title { left: 58mm; top: 49mm; width: 100mm; height: 8mm; }
.doc-vol-location-date { left: 117mm; top: 64mm; width: 78mm; height: 6mm; }

.doc-vol-expediente-label { left: 21mm; top: 80mm; width: 28mm; height: 5mm; }
.doc-vol-expediente-value { left: 47mm; top: 80mm; width: 28mm; height: 5mm; }
.doc-vol-expediente-line { left: 47mm; top: 83mm; width: 38mm; }

.doc-vol-propietario-label { left: 21mm; top: 90mm; width: 32mm; height: 5mm; }
.doc-vol-propietario-value { left: 47mm; top: 90mm; width: 143mm; height: 5mm; }
.doc-vol-propietario-line { left: 47mm; top: 93mm; width: 143mm; }

.doc-vol-domicilio-label { left: 21mm; top: 97mm; width: 32mm; height: 5mm; }
.doc-vol-domicilio-value { left: 47mm; top: 97mm; width: 143mm; height: 5mm; }
.doc-vol-domicilio-line { left: 47mm; top: 100mm; width: 143mm; }

.doc-vol-colonia-label { left: 21mm; top: 104mm; width: 30mm; height: 5mm; }
.doc-vol-colonia-value { left: 47mm; top: 104mm; width: 70mm; height: 5mm; }
.doc-vol-colonia-line { left: 47mm; top: 107mm; width: 78mm; }

.doc-vol-telefono-label { left: 130mm; top: 104mm; width: 20mm; height: 5mm; }
.doc-vol-telefono-value { left: 150mm; top: 104mm; width: 40mm; height: 5mm; }
.doc-vol-telefono-line { left: 150mm; top: 107mm; width: 40mm; }

.doc-vol-mascota-label { left: 21mm; top: 108mm; width: 45mm; height: 5mm; }
.doc-vol-mascota-value { left: 65mm; top: 108mm; width: 47mm; height: 5mm; }
.doc-vol-mascota-line { left: 65mm; top: 111mm; width: 47mm; }

.doc-vol-photo { left: 130mm; top: 108mm; width: 51mm; height: 38mm; }

.doc-vol-nacimiento-label { left: 21mm; top: 115mm; width: 48mm; height: 5mm; }
.doc-vol-nacimiento-value { left: 65mm; top: 115mm; width: 47mm; height: 5mm; }
.doc-vol-nacimiento-line { left: 65mm; top: 118mm; width: 47mm; }

.doc-vol-especie-label { left: 21mm; top: 122mm; width: 28mm; height: 5mm; }
.doc-vol-especie-value { left: 47mm; top: 122mm; width: 65mm; height: 5mm; }
.doc-vol-especie-line { left: 47mm; top: 125mm; width: 65mm; }

.doc-vol-raza-label { left: 21mm; top: 129mm; width: 18mm; height: 5mm; }
.doc-vol-raza-value { left: 47mm; top: 129mm; width: 65mm; height: 5mm; }
.doc-vol-raza-line { left: 47mm; top: 132mm; width: 65mm; }

.doc-vol-color-label { left: 21mm; top: 136mm; width: 20mm; height: 5mm; }
.doc-vol-color-value { left: 47mm; top: 136mm; width: 65mm; height: 5mm; }
.doc-vol-color-line { left: 47mm; top: 139mm; width: 65mm; }

.doc-vol-sexo-label { left: 21mm; top: 143mm; width: 18mm; height: 5mm; }
.doc-vol-sexo-value { left: 47mm; top: 143mm; width: 65mm; height: 5mm; }
.doc-vol-sexo-line { left: 47mm; top: 146mm; width: 65mm; }

.doc-vol-modern-legal-block,
.document-modern-legal-block { left: 21mm; top: 156mm; width: 174mm; height: 64mm; }

.doc-vol-signature-line { left: 21mm; top: 228mm; width: 80mm; height: 0.3mm; }
.doc-vol-signature-text { left: 21mm; top: 232mm; width: 80mm; height: 5mm; }

.doc-vol-footer-line { left: 10mm; top: 259mm; width: 196mm; }
.doc-vol-footer-left { left: 21mm; top: 261mm; width: 75mm; height: 8mm; }
.doc-vol-footer-center { left: 92mm; top: 261mm; width: 32mm; height: 6mm; }
.doc-vol-footer-right { left: 142mm; top: 261mm; width: 60mm; height: 8mm; text-align: right; }

.document-letter-age-responsiva {
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10pt;
  height: 279mm;
  line-height: 1.18;
  overflow: hidden;
  padding: 0;
  width: 216mm;
}

.document-letter-age-responsiva .document-letter-watermark {
  inset: 76mm 38mm auto 38mm;
  width: 140mm;
  height: 118mm;
  opacity: 0.055;
}

.document-letter-age-responsiva .document-letter-watermark img {
  filter: grayscale(1);
  max-width: none;
  height: 100%;
  width: 100%;
}

.document-sheet-age-responsiva {
  height: 279mm;
  position: relative;
  width: 216mm;
  z-index: 1;
}

.document-letter-age-responsiva .document-logo-box,
.document-letter-age-responsiva .document-pet-photo img {
  display: block;
}

.document-letter-age-responsiva .document-logo-box {
  height: 22mm;
  overflow: visible;
  width: 70mm;
  z-index: 2;
}

.document-letter-age-responsiva .document-logo-img,
.document-letter-age-responsiva .document-logo {
  display: block;
  height: 22mm;
  max-width: 70mm;
  object-fit: contain;
  object-position: left top;
  width: auto;
}

.document-letter-age-responsiva .document-pet-photo img {
  background: #fff;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  width: 100%;
}

.document-letter-age-responsiva .document-pet-photo {
  background: #fff;
  border: 0.3mm solid #d7dde8;
  border-radius: 3mm;
  box-sizing: border-box;
  overflow: hidden;
}

.doc-age-label,
.doc-age-value,
.doc-age-paragraph,
.doc-age-signature-text,
.doc-age-footer-left,
.doc-age-footer-right {
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 3mm;
  font-weight: 600;
  z-index: 2;
}

.doc-age-label,
.doc-age-value,
.doc-age-signature-text {
  line-height: 1;
}

.doc-age-line,
.doc-age-header-line,
.doc-age-footer-line,
.doc-age-signature-line {
  background: rgba(17, 24, 39, 0.7);
}

.doc-age-header-line,
.doc-age-footer-line,
.doc-age-signature-line {
  height: 0.3mm;
}

.doc-age-line {
  height: 0.2mm;
}

.doc-age-clinic-title {
  color: #4b5563;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 6.5mm;
  font-weight: 700;
  letter-spacing: 0;
  text-align: right;
  text-transform: uppercase;
  z-index: 2;
}

.doc-age-signer-name,
.doc-age-signer-license {
  color: #374151;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2.4mm;
  font-weight: 700;
  line-height: 1.1;
  z-index: 2;
}

.doc-age-signer-license {
  text-align: right;
}

.doc-age-title {
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 4.2mm;
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  z-index: 2;
}

.doc-age-location-date {
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 3mm;
  font-weight: 600;
  line-height: 1.05;
  text-align: right;
  text-transform: uppercase;
  z-index: 2;
}

.doc-age-paragraph {
  letter-spacing: 0;
  line-height: 1.1;
  text-align: justify;
  text-transform: uppercase;
}

.doc-age-signature-text {
  text-align: center;
  text-transform: uppercase;
}

.doc-age-footer-left,
.doc-age-footer-right {
  color: #374151;
  font-size: 1.95mm;
  font-weight: 600;
  line-height: 1.18;
}

.doc-age-footer-center {
  color: #6b7280;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13.3pt;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  z-index: 2;
}

.document-letter-age-responsiva-modern-v2 {
  --modern-content-font-family: "Helvetica", Arial, sans-serif;
  --modern-content-font-size: 3.5mm;
  --modern-content-line-height: 1.18;
  --modern-paragraph-gap: calc(3.5mm * 1.18 * 2);
  --modern-field-label-weight: 700;
  --modern-field-value-weight: 400;
  --modern-row-gap-owner: 6mm;
  --modern-pet-line-color: #d1d1d1;
  color: #111827;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: var(--modern-content-font-size, 3.5mm);
  line-height: var(--modern-content-line-height, 1.18);
}

.document-letter-age-responsiva-modern-v2 .document-letter-watermark {
  display: none !important;
}

.document-letter-age-responsiva-modern-v2 .doc-age-title {
  color: #111827;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: 4mm;
  font-weight: 700;
  line-height: 1.12;
  text-align: center;
  text-transform: uppercase;
}

.document-letter-age-responsiva-modern-v2 .doc-age-location-date,
.document-letter-age-responsiva-modern-v2 .doc-age-modern-owner-row,
.document-letter-age-responsiva-modern-v2 .doc-age-modern-pet-row,
.document-letter-age-responsiva-modern-v2 .document-modern-responsiva-flow,
.document-letter-age-responsiva-modern-v2 .doc-age-signature-text {
  color: #111827;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: var(--modern-content-font-size, 3.5mm);
  font-weight: 400;
  line-height: var(--modern-content-line-height, 1.18);
  text-transform: none;
  z-index: 2;
}

.document-letter-age-responsiva-modern-v2 .doc-age-location-date {
  text-align: right;
}

.document-letter-age-responsiva-modern-v2 .doc-age-modern-owner-row,
.document-letter-age-responsiva-modern-v2 .doc-age-modern-pet-row {
  box-sizing: border-box;
  position: absolute;
}

.document-letter-age-responsiva-modern-v2 .doc-age-modern-pet-row {
  border-bottom: 1px solid var(--modern-pet-line-color, #d1d1d1);
}

.document-letter-age-responsiva-modern-v2 .doc-age-modern-field-label,
.document-letter-age-responsiva-modern-v2 .doc-age-modern-field-value {
  display: block;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: var(--modern-content-font-size, 3.5mm);
  line-height: var(--modern-content-line-height, 1.18);
  overflow: hidden;
  position: absolute;
  text-overflow: ellipsis;
  text-transform: none;
  top: 0;
  white-space: nowrap;
}

.document-letter-age-responsiva-modern-v2 .doc-age-modern-field-label {
  font-weight: var(--modern-field-label-weight, 700);
  left: 0;
  width: 40mm;
}

.document-letter-age-responsiva-modern-v2 .doc-age-modern-field-value {
  font-weight: var(--modern-field-value-weight, 400);
  left: 44mm;
  right: 0;
}

.document-letter-age-responsiva-modern-v2 .document-pet-photo-frame {
  background: #fff;
  border: 0.3mm solid #d7dde8;
  border-radius: 3mm;
  box-sizing: border-box;
  height: 38mm;
  overflow: hidden;
  width: 51mm;
  z-index: 2;
}

.document-letter-age-responsiva-modern-v2 .document-pet-photo-frame img,
.document-letter-age-responsiva-modern-v2 .document-pet-photo-img {
  background: #fff;
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  width: 100%;
}

.document-letter-age-responsiva-modern-v2 .document-modern-responsiva-flow {
  overflow: hidden;
  text-align: justify;
}

.document-letter-age-responsiva-modern-v2 .document-modern-responsiva-flow p {
  margin: 0;
  padding: 0;
}

.document-letter-age-responsiva-modern-v2 .document-modern-responsiva-flow p + p {
  margin-top: var(--modern-paragraph-gap, calc(3.5mm * 1.18 * 2));
}

.document-letter-age-responsiva-modern-v2 .doc-age-header-line,
.document-letter-age-responsiva-modern-v2 .doc-age-footer-line,
.document-letter-age-responsiva-modern-v2 .doc-age-signature-line {
  background: transparent !important;
  border-top: 0.3mm solid #111827;
  box-sizing: border-box;
  height: 0 !important;
  z-index: 20;
}

.document-letter-age-responsiva-modern-v2 .doc-age-signature-text {
  text-align: center;
}

.document-letter-microchip {
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10pt;
  height: 279mm;
  line-height: 1.18;
  overflow: hidden;
  padding: 0;
  width: 216mm;
}

.document-sheet-microchip {
  height: 279mm;
  position: relative;
  width: 216mm;
  z-index: 1;
}

.document-letter-microchip-modern-v2 {
  --modern-content-font-family: "Helvetica", Arial, sans-serif;
  --modern-content-font-size: 3.5mm;
  --modern-content-line-height: 1.18;
  --modern-paragraph-gap: calc(3.5mm * 1.18 * 2);
  --modern-field-label-weight: 700;
  --modern-field-value-weight: 400;
  --modern-row-gap-owner: 6mm;
  --modern-pet-line-color: #d1d1d1;
  color: #111827;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: var(--modern-content-font-size, 3.5mm);
  line-height: var(--modern-content-line-height, 1.18);
}

.document-letter-microchip-modern-v2 .document-letter-watermark {
  display: none !important;
}

.document-letter-microchip-modern-v2 .document-logo-box {
  display: block;
  height: 22mm;
  max-width: 70mm;
  overflow: visible;
  width: 70mm;
  z-index: 2;
}

.document-letter-microchip-modern-v2 .document-logo-img,
.document-letter-microchip-modern-v2 .document-logo {
  display: block;
  height: 22mm;
  max-width: 70mm;
  object-fit: contain;
  object-position: left top;
  width: auto;
}

.document-letter-microchip-modern-v2 .doc-mch-clinic-title {
  color: #4b5563;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 6.5mm;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-align: right;
  text-transform: uppercase;
  z-index: 2;
}

.document-letter-microchip-modern-v2 .doc-mch-signer-name,
.document-letter-microchip-modern-v2 .doc-mch-signer-license {
  color: #374151;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2.4mm;
  font-weight: 700;
  line-height: 1.1;
  z-index: 2;
}

.document-letter-microchip-modern-v2 .doc-mch-signer-license {
  text-align: right;
}

.document-letter-microchip-modern-v2 .doc-mch-title {
  color: #111827;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: 4mm;
  font-weight: 700;
  line-height: 1.12;
  text-align: center;
  text-transform: uppercase;
}

.document-letter-microchip-modern-v2 .doc-mch-location-date,
.document-letter-microchip-modern-v2 .doc-mch-modern-owner-row,
.document-letter-microchip-modern-v2 .doc-mch-modern-pet-row,
.document-letter-microchip-modern-v2 .document-modern-microchip-flow,
.document-letter-microchip-modern-v2 .doc-mch-vet-signature-name,
.document-letter-microchip-modern-v2 .doc-mch-vet-signature-license {
  color: #111827;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: var(--modern-content-font-size, 3.5mm);
  font-weight: 400;
  line-height: var(--modern-content-line-height, 1.18);
  text-transform: none;
  z-index: 2;
}

.document-letter-microchip-modern-v2 .doc-mch-location-date {
  text-align: right;
}

.document-letter-microchip-modern-v2 .doc-mch-modern-owner-row,
.document-letter-microchip-modern-v2 .doc-mch-modern-pet-row {
  box-sizing: border-box;
  position: absolute;
}

.document-letter-microchip-modern-v2 .doc-mch-modern-pet-row {
  border-bottom: 1px solid var(--modern-pet-line-color, #d1d1d1);
}

.document-letter-microchip-modern-v2 .doc-mch-modern-field-label,
.document-letter-microchip-modern-v2 .doc-mch-modern-field-value {
  display: block;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: var(--modern-content-font-size, 3.5mm);
  line-height: var(--modern-content-line-height, 1.18);
  overflow: hidden;
  position: absolute;
  text-overflow: ellipsis;
  text-transform: none;
  top: 0;
  white-space: nowrap;
}

.document-letter-microchip-modern-v2 .doc-mch-modern-field-label {
  font-weight: var(--modern-field-label-weight, 700);
  left: 0;
  width: 40mm;
}

.document-letter-microchip-modern-v2 .doc-mch-modern-field-value {
  font-weight: var(--modern-field-value-weight, 400);
  left: 44mm;
  right: 0;
}

.document-letter-microchip-modern-v2 .document-pet-photo-frame {
  background: #fff;
  border: 0.3mm solid #d7dde8;
  border-radius: 3mm;
  box-sizing: border-box;
  height: 38mm;
  overflow: hidden;
  width: 51mm;
  z-index: 2;
}

.document-letter-microchip-modern-v2 .document-pet-photo-frame img,
.document-letter-microchip-modern-v2 .document-pet-photo-img {
  background: #fff;
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  width: 100%;
}

.document-letter-microchip-modern-v2 .document-modern-microchip-flow {
  overflow: hidden;
  text-align: justify;
}

.document-letter-microchip-modern-v2 .document-modern-microchip-flow p {
  margin: 0;
  padding: 0;
}

.document-letter-microchip-modern-v2 .document-modern-microchip-flow p + p {
  margin-top: var(--modern-paragraph-gap, calc(3.5mm * 1.18 * 2));
}

.document-letter-microchip-modern-v2 .doc-mch-header-line,
.document-letter-microchip-modern-v2 .doc-mch-footer-line,
.document-letter-microchip-modern-v2 .doc-mch-signature-line {
  background: transparent !important;
  border-top: 0.3mm solid #111827;
  box-sizing: border-box;
  height: 0 !important;
  z-index: 20;
}

.document-letter-microchip-modern-v2 .doc-mch-vet-signature-name,
.document-letter-microchip-modern-v2 .doc-mch-vet-signature-license {
  text-align: center;
}

.doc-mch-footer-left { left: 21mm; top: 261mm; width: 75mm; height: 8mm; }
.doc-mch-footer-center {
  color: #6b7280;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13.3pt;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  z-index: 2;
}
.doc-mch-footer-right { left: 142mm; top: 261mm; width: 60mm; height: 8mm; text-align: right; }

.document-letter-gbg {
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10pt;
  height: 279mm;
  line-height: 1.18;
  overflow: hidden;
  padding: 0;
  width: 216mm;
}

.document-sheet-gbg {
  height: 279mm;
  position: relative;
  width: 216mm;
  z-index: 1;
}

.document-letter-gbg-modern-v2 {
  --modern-content-font-family: "Helvetica", Arial, sans-serif;
  --modern-content-font-size: 3.5mm;
  --modern-content-line-height: 1.18;
  --modern-paragraph-gap: calc(3.5mm * 1.18);
  --modern-field-label-weight: 700;
  --modern-field-value-weight: 400;
  --modern-row-gap-owner: 6mm;
  --modern-pet-line-color: #d1d1d1;
  color: #111827;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: var(--modern-content-font-size, 3.5mm);
  line-height: var(--modern-content-line-height, 1.18);
}

.document-letter-gbg-modern-v2 .document-letter-watermark {
  display: none !important;
}

.document-letter-gbg-modern-v2 .document-logo-box {
  display: block;
  height: 22mm;
  max-width: 70mm;
  overflow: visible;
  width: 70mm;
  z-index: 2;
}

.document-letter-gbg-modern-v2 .document-logo-img,
.document-letter-gbg-modern-v2 .document-logo {
  display: block;
  height: 22mm;
  max-width: 70mm;
  object-fit: contain;
  object-position: left top;
  width: auto;
}

.document-letter-gbg-modern-v2 .doc-gbg-clinic-title {
  color: #4b5563;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 6.5mm;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-align: right;
  text-transform: uppercase;
  z-index: 2;
}

.document-letter-gbg-modern-v2 .doc-gbg-signer-name,
.document-letter-gbg-modern-v2 .doc-gbg-signer-license {
  color: #374151;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2.4mm;
  font-weight: 700;
  line-height: 1.1;
  z-index: 2;
}

.document-letter-gbg-modern-v2 .doc-gbg-signer-license {
  text-align: right;
}

.document-letter-gbg-modern-v2 .doc-gbg-title {
  color: #111827;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: 4mm;
  font-weight: 700;
  line-height: 1.12;
  text-align: center;
  text-transform: uppercase;
}

.document-letter-gbg-modern-v2 .doc-gbg-location-date,
.document-letter-gbg-modern-v2 .doc-gbg-modern-owner-row,
.document-letter-gbg-modern-v2 .doc-gbg-modern-pet-row,
.document-letter-gbg-modern-v2 .document-modern-gbg-flow,
.document-letter-gbg-modern-v2 .doc-gbg-attentively,
.document-letter-gbg-modern-v2 .doc-gbg-vet-signature-name,
.document-letter-gbg-modern-v2 .doc-gbg-vet-signature-mr {
  color: #111827;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: var(--modern-content-font-size, 3.5mm);
  font-weight: 400;
  line-height: var(--modern-content-line-height, 1.18);
  text-transform: none;
  z-index: 2;
}

.document-letter-gbg-modern-v2 .doc-gbg-location-date {
  text-align: right;
}

.document-letter-gbg-modern-v2 .doc-gbg-modern-owner-row,
.document-letter-gbg-modern-v2 .doc-gbg-modern-pet-row {
  box-sizing: border-box;
  position: absolute;
}

.document-letter-gbg-modern-v2 .doc-gbg-modern-pet-row {
  border-bottom: 1px solid var(--modern-pet-line-color, #d1d1d1);
}

.document-letter-gbg-modern-v2 .doc-gbg-modern-field-label,
.document-letter-gbg-modern-v2 .doc-gbg-modern-field-value {
  display: block;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: var(--modern-content-font-size, 3.5mm);
  line-height: var(--modern-content-line-height, 1.18);
  overflow: hidden;
  position: absolute;
  text-overflow: ellipsis;
  text-transform: none;
  top: 0;
  white-space: nowrap;
}

.document-letter-gbg-modern-v2 .doc-gbg-modern-field-label {
  font-weight: var(--modern-field-label-weight, 700);
  left: 0;
  width: 40mm;
}

.document-letter-gbg-modern-v2 .doc-gbg-modern-field-value {
  font-weight: var(--modern-field-value-weight, 400);
  left: 44mm;
  right: 0;
}

.document-letter-gbg-modern-v2 .document-pet-photo-frame {
  background: #fff;
  border: 0.3mm solid #d7dde8;
  border-radius: 3mm;
  box-sizing: border-box;
  height: 38mm;
  overflow: hidden;
  width: 51mm;
  z-index: 2;
}

.document-letter-gbg-modern-v2 .document-pet-photo-frame img,
.document-letter-gbg-modern-v2 .document-pet-photo-img {
  background: #fff;
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  width: 100%;
}

.document-letter-gbg-modern-v2 .document-modern-gbg-flow {
  overflow: hidden;
  text-align: justify;
}

.document-letter-gbg-modern-v2 .document-modern-gbg-flow p {
  margin: 0;
  padding: 0;
}

.document-letter-gbg-modern-v2 .document-modern-gbg-flow p + p {
  margin-top: 2mm;
}

.document-letter-gbg-modern-v2 .document-modern-gbg-flow strong,
.document-letter-gbg-modern-v2 .document-modern-gbg-flow .gbg-emphasis {
  font-weight: 700;
}

.document-letter-gbg-modern-v2 .doc-gbg-header-line,
.document-letter-gbg-modern-v2 .doc-gbg-footer-line,
.document-letter-gbg-modern-v2 .doc-gbg-signature-line {
  background: transparent !important;
  border-top: 0.3mm solid #111827;
  box-sizing: border-box;
  height: 0 !important;
  z-index: 20;
}

.document-letter-gbg-modern-v2 .doc-gbg-attentively,
.document-letter-gbg-modern-v2 .doc-gbg-vet-signature-name,
.document-letter-gbg-modern-v2 .doc-gbg-vet-signature-mr {
  text-align: center;
}

.doc-gbg-footer-left { left: 21mm; top: 261mm; width: 75mm; height: 8mm; }
.doc-gbg-footer-center {
  color: #6b7280;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13.3pt;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  z-index: 2;
}
.doc-gbg-footer-right { left: 142mm; top: 261mm; width: 60mm; height: 8mm; text-align: right; }

.doc-age-expediente-value { left: 47mm; top: 80mm; width: 28mm; height: 5mm; }
.doc-age-expediente-line { left: 47mm; top: 83mm; width: 38mm; }

.doc-age-propietario-value { left: 47mm; top: 90mm; width: 143mm; height: 5mm; }
.doc-age-propietario-line { left: 47mm; top: 93mm; width: 143mm; }

.doc-age-domicilio-value { left: 47mm; top: 97mm; width: 143mm; height: 5mm; }
.doc-age-domicilio-line { left: 47mm; top: 100mm; width: 143mm; }

.doc-age-colonia-value { left: 47mm; top: 104mm; width: 70mm; height: 5mm; }
.doc-age-colonia-line { left: 47mm; top: 107mm; width: 78mm; }

.doc-age-telefono-value { left: 150mm; top: 104mm; width: 40mm; height: 5mm; }
.doc-age-telefono-line { left: 150mm; top: 107mm; width: 40mm; }

.doc-age-mascota-value { left: 65mm; top: 118mm; width: 47mm; height: 5mm; }
.doc-age-mascota-line { left: 65mm; top: 121mm; width: 47mm; }

.doc-age-nacimiento-value { left: 65mm; top: 125mm; width: 47mm; height: 5mm; }
.doc-age-nacimiento-line { left: 65mm; top: 128mm; width: 47mm; }

.doc-age-especie-label { left: 21mm; top: 132mm; width: 28mm; height: 5mm; }
.doc-age-especie-value { left: 47mm; top: 132mm; width: 65mm; height: 5mm; }
.doc-age-especie-line { left: 47mm; top: 135mm; width: 65mm; }

.doc-age-raza-value { left: 47mm; top: 139mm; width: 65mm; height: 5mm; }
.doc-age-raza-line { left: 47mm; top: 142mm; width: 65mm; }

.doc-age-color-value { left: 47mm; top: 146mm; width: 65mm; height: 5mm; }
.doc-age-color-line { left: 47mm; top: 149mm; width: 65mm; }

.doc-age-sexo-value { left: 47mm; top: 153mm; width: 65mm; height: 5mm; }
.doc-age-sexo-line { left: 47mm; top: 156mm; width: 65mm; }

.doc-age-footer-left { left: 21mm; top: 261mm; width: 75mm; height: 8mm; }
.doc-age-footer-center { left: 92mm; top: 261mm; width: 32mm; height: 6mm; }
.doc-age-footer-right { left: 142mm; top: 261mm; width: 60mm; height: 8mm; text-align: right; }

.document-letter-treatment {
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10pt;
  height: 279mm;
  line-height: 1.18;
  overflow: hidden;
  padding: 0;
  width: 216mm;
}

.document-letter-treatment .document-letter-watermark {
  inset: 76mm 38mm auto 38mm;
  width: 140mm;
  height: 118mm;
  opacity: 0.055;
}

.document-letter-treatment .document-letter-watermark img {
  filter: grayscale(1);
  max-width: none;
  height: 100%;
  width: 100%;
}

.document-sheet-treatment {
  height: 279mm;
  position: relative;
  width: 216mm;
  z-index: 1;
}

.document-letter-treatment .document-logo-box,
.document-letter-treatment .document-pet-photo img {
  display: block;
}

.document-letter-treatment .document-logo-box {
  height: 22mm;
  overflow: visible;
  width: 70mm;
  z-index: 2;
}

.document-letter-treatment .document-logo-img,
.document-letter-treatment .document-logo {
  display: block;
  height: 22mm;
  max-width: 70mm;
  object-fit: contain;
  object-position: left top;
  width: auto;
}

.document-letter-treatment .document-pet-photo img {
  background: #fff;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  width: 100%;
}

.document-letter-treatment .document-pet-photo {
  background: #fff;
  border: 0.3mm solid #d7dde8;
  border-radius: 3mm;
  box-sizing: border-box;
  overflow: hidden;
}

.doc-trt-label,
.doc-trt-value,
.doc-trt-signature-text,
.doc-trt-vet-signature-name,
.doc-trt-vet-signature-license,
.doc-trt-footer-left,
.doc-trt-footer-right {
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  z-index: 2;
}

.doc-trt-label,
.doc-trt-value {
  font-size: 3.1mm;
  line-height: 1;
}

.doc-trt-label {
  font-weight: 700;
}

.doc-trt-value {
  font-weight: 500;
}

.doc-trt-line,
.doc-trt-header-line,
.doc-trt-footer-line,
.doc-trt-signature-line {
  background: rgba(17, 24, 39, 0.7);
}

.doc-trt-header-line,
.doc-trt-footer-line,
.doc-trt-signature-line {
  height: 0.3mm;
  z-index: 1;
}

.doc-trt-line {
  height: 0.2mm;
}

.doc-trt-clinic-title {
  color: #4b5563;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 6.5mm;
  font-weight: 700;
  letter-spacing: 0;
  text-align: right;
  text-transform: uppercase;
  z-index: 2;
}

.doc-trt-signer-name,
.doc-trt-signer-license {
  color: #374151;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2.4mm;
  font-weight: 700;
  line-height: 1.1;
  z-index: 2;
}

.doc-trt-signer-license {
  text-align: right;
}

.doc-trt-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 4.2mm;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  z-index: 2;
}

.doc-trt-location-date {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2.75mm;
  font-weight: 600;
  text-align: right;
  text-transform: uppercase;
  z-index: 2;
}

.doc-trt-paragraph {
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 3mm;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.15;
  text-align: justify;
  text-transform: uppercase;
  z-index: 2;
}

.doc-trt-paragraph strong {
  font-weight: 700;
}

.doc-trt-signature-text,
.doc-trt-vet-signature-name,
.doc-trt-vet-signature-license {
  font-size: 2.7mm;
  line-height: 1.12;
  text-align: center;
  text-transform: uppercase;
}

.doc-trt-signature-text,
.doc-trt-vet-signature-name {
  font-weight: 600;
}

.doc-trt-vet-signature-license {
  color: #374151;
  font-size: 2.35mm;
  font-weight: 600;
}

.doc-trt-footer-left,
.doc-trt-footer-right {
  color: #374151;
  font-size: 1.95mm;
  font-weight: 600;
  line-height: 1.18;
}

.doc-trt-footer-center {
  color: #6b7280;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13.3pt;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  z-index: 2;
}

.doc-trt-logo { left: 21mm; top: 5mm; width: 70mm; height: 22mm; z-index: 2; }
.doc-trt-clinic-title { left: 117mm; top: 25mm; width: 78mm; height: 8mm; }
.doc-trt-signer-name { left: 21mm; top: 35mm; width: 90mm; height: 5mm; }
.doc-trt-signer-license { left: 130mm; top: 35mm; width: 70mm; height: 5mm; }
.doc-trt-header-line { left: 10mm; top: 33mm; width: 196mm; }

.doc-trt-title { left: 48mm; top: 48mm; width: 120mm; height: 8mm; }
.doc-trt-location-date { left: 117mm; top: 62mm; width: 78mm; height: 6mm; }

.doc-trt-expediente-label { left: 21mm; top: 80mm; width: 28mm; height: 5mm; }
.doc-trt-expediente-value { left: 47mm; top: 80mm; width: 28mm; height: 5mm; }
.doc-trt-expediente-line { left: 47mm; top: 83mm; width: 38mm; }

.doc-trt-propietario-label { left: 21mm; top: 90mm; width: 32mm; height: 5mm; }
.doc-trt-propietario-value { left: 47mm; top: 90mm; width: 143mm; height: 5mm; }
.doc-trt-propietario-line { left: 47mm; top: 93mm; width: 143mm; }

.doc-trt-domicilio-label { left: 21mm; top: 97mm; width: 32mm; height: 5mm; }
.doc-trt-domicilio-value { left: 47mm; top: 97mm; width: 143mm; height: 5mm; }
.doc-trt-domicilio-line { left: 47mm; top: 100mm; width: 143mm; }

.doc-trt-colonia-label { left: 21mm; top: 104mm; width: 30mm; height: 5mm; }
.doc-trt-colonia-value { left: 47mm; top: 104mm; width: 70mm; height: 5mm; }
.doc-trt-colonia-line { left: 47mm; top: 107mm; width: 78mm; }

.doc-trt-telefono-label { left: 130mm; top: 104mm; width: 20mm; height: 5mm; }
.doc-trt-telefono-value { left: 150mm; top: 104mm; width: 40mm; height: 5mm; }
.doc-trt-telefono-line { left: 150mm; top: 107mm; width: 40mm; }

.doc-trt-mascota-label { left: 21mm; top: 118mm; width: 45mm; height: 5mm; }
.doc-trt-mascota-value { left: 65mm; top: 118mm; width: 47mm; height: 5mm; }
.doc-trt-mascota-line { left: 65mm; top: 121mm; width: 47mm; }

.doc-trt-photo { left: 130mm; top: 115mm; width: 51mm; height: 38mm; }

.doc-trt-nacimiento-label { left: 21mm; top: 125mm; width: 48mm; height: 5mm; }
.doc-trt-nacimiento-value { left: 65mm; top: 125mm; width: 47mm; height: 5mm; }
.doc-trt-nacimiento-line { left: 65mm; top: 128mm; width: 47mm; }

.doc-trt-especie-label { left: 21mm; top: 132mm; width: 28mm; height: 5mm; }
.doc-trt-especie-value { left: 47mm; top: 132mm; width: 65mm; height: 5mm; }
.doc-trt-especie-line { left: 47mm; top: 135mm; width: 65mm; }

.doc-trt-raza-label { left: 21mm; top: 139mm; width: 18mm; height: 5mm; }
.doc-trt-raza-value { left: 47mm; top: 139mm; width: 65mm; height: 5mm; }
.doc-trt-raza-line { left: 47mm; top: 142mm; width: 65mm; }

.doc-trt-color-label { left: 21mm; top: 146mm; width: 20mm; height: 5mm; }
.doc-trt-color-value { left: 47mm; top: 146mm; width: 65mm; height: 5mm; }
.doc-trt-color-line { left: 47mm; top: 149mm; width: 65mm; }

.doc-trt-sexo-label { left: 21mm; top: 153mm; width: 18mm; height: 5mm; }
.doc-trt-sexo-value { left: 47mm; top: 153mm; width: 65mm; height: 5mm; }
.doc-trt-sexo-line { left: 47mm; top: 156mm; width: 65mm; }

.doc-trt-paragraph-1 { left: 21mm; top: 158mm; width: 174mm; height: 42mm; }
.doc-trt-paragraph-2 { left: 21mm; top: 185mm; width: 174mm; height: 16mm; }

.doc-trt-owner-signature-line { left: 21mm; top: 218mm; width: 80mm; }
.doc-trt-owner-signature-text { left: 21mm; top: 221mm; width: 80mm; height: 5mm; }

.doc-trt-vet-signature-line { left: 115mm; top: 218mm; width: 80mm; }
.doc-trt-vet-signature-name { left: 115mm; top: 221mm; width: 80mm; height: 4mm; }
.doc-trt-vet-signature-license { left: 115mm; top: 225mm; width: 80mm; height: 4mm; }

.doc-trt-footer-line { left: 10mm; top: 259mm; width: 196mm; }
.doc-trt-footer-left { left: 21mm; top: 261mm; width: 75mm; height: 8mm; }
.doc-trt-footer-center { left: 92mm; top: 261mm; width: 32mm; height: 6mm; }
.doc-trt-footer-right { left: 142mm; top: 261mm; width: 60mm; height: 8mm; text-align: right; }

.document-letter-treatment-modern-v2 {
  --modern-content-font-family: "Helvetica", Arial, sans-serif;
  --modern-content-font-size: 3.5mm;
  --modern-content-line-height: 1.18;
  --modern-paragraph-gap: calc(3.5mm * 1.18 * 2);
  --modern-field-label-weight: 700;
  --modern-field-value-weight: 400;
  --modern-row-gap-owner: 6mm;
  --modern-pet-line-color: #d1d1d1;
  font-family: var(--modern-content-font-family);
}

.document-letter-treatment-modern-v2 .document-letter-watermark {
  display: none !important;
}

.document-letter-treatment-modern-v2 .doc-trt-title {
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: 4.4mm;
  font-weight: 700;
  line-height: 1.12;
  text-align: center;
  text-transform: none;
}

.document-letter-treatment-modern-v2 .doc-trt-modern-location-date,
.document-letter-treatment-modern-v2 .doc-trt-modern-owner-row,
.document-letter-treatment-modern-v2 .doc-trt-modern-pet-row,
.document-letter-treatment-modern-v2 .doc-trt-modern-legal-block,
.document-letter-treatment-modern-v2 .doc-trt-modern-signature-text,
.document-letter-treatment-modern-v2 .doc-trt-vet-signature-name,
.document-letter-treatment-modern-v2 .doc-trt-vet-signature-license {
  color: #111827;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: var(--modern-content-font-size, 3.5mm);
  font-weight: 400;
  line-height: var(--modern-content-line-height, 1.18);
  text-transform: none;
  z-index: 2;
}

.document-letter-treatment-modern-v2 .doc-trt-modern-location-date {
  text-align: right;
}

.document-letter-treatment-modern-v2 .doc-trt-modern-owner-row,
.document-letter-treatment-modern-v2 .doc-trt-modern-pet-row {
  box-sizing: border-box;
  position: absolute;
}

.document-letter-treatment-modern-v2 .doc-trt-modern-pet-row {
  border-bottom: 1px solid var(--modern-pet-line-color, #d1d1d1);
  height: 6mm;
}

.document-letter-treatment-modern-v2 .doc-trt-modern-field-label,
.document-letter-treatment-modern-v2 .doc-trt-modern-field-value {
  display: block;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: var(--modern-content-font-size, 3.5mm);
  line-height: var(--modern-content-line-height, 1.18);
  overflow: hidden;
  position: absolute;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-letter-treatment-modern-v2 .doc-trt-modern-field-label {
  color: #1f2937;
  font-weight: var(--modern-field-label-weight, 700);
}

.document-letter-treatment-modern-v2 .doc-trt-modern-field-value {
  color: #111827;
  font-weight: var(--modern-field-value-weight, 400);
}

.document-letter-treatment-modern-v2 .document-pet-photo-frame {
  background: #fff;
  border: 0.3mm solid #d7dde8;
  border-radius: 3mm;
  box-sizing: border-box;
  height: 38mm;
  overflow: hidden;
  width: 51mm;
}

.document-letter-treatment-modern-v2 .document-pet-photo-frame img,
.document-letter-treatment-modern-v2 .document-pet-photo-img {
  background: #fff;
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  width: 100%;
}

.document-letter-treatment-modern-v2 .document-modern-legal-block,
.document-letter-treatment-modern-v2 .doc-trt-modern-legal-block {
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: var(--modern-content-font-size, 3.5mm);
  font-weight: 400;
  line-height: var(--modern-content-line-height, 1.18);
  max-height: 66mm;
  overflow: hidden;
  position: absolute;
  text-align: justify;
  text-transform: none;
  z-index: 2;
}

.document-letter-treatment-modern-v2 .document-modern-legal-block p,
.document-letter-treatment-modern-v2 .doc-trt-modern-legal-block p {
  margin: 0;
  padding: 0;
}

.document-letter-treatment-modern-v2 .document-modern-legal-block p + p,
.document-letter-treatment-modern-v2 .doc-trt-modern-legal-block p + p {
  margin-top: var(--modern-paragraph-gap, calc(3.5mm * 1.18 * 2));
}

.document-letter-treatment-modern-v2 .doc-trt-signature-line,
.document-letter-treatment-modern-v2 .doc-trt-footer-line,
.document-letter-treatment-modern-v2 .doc-trt-header-line {
  background: rgba(17, 24, 39, 0.7);
}

.document-letter-treatment-modern-v2 .doc-trt-modern-signature-text,
.document-letter-treatment-modern-v2 .doc-trt-vet-signature-name,
.document-letter-treatment-modern-v2 .doc-trt-vet-signature-license {
  text-align: center;
}

.document-letter-good-health {
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10pt;
  height: 279mm;
  line-height: 1.18;
  overflow: hidden;
  padding: 0;
  width: 216mm;
}

.document-letter-good-health .document-letter-watermark {
  inset: 76mm 38mm auto 38mm;
  width: 140mm;
  height: 118mm;
  opacity: 0.055;
}

.document-letter-good-health .document-letter-watermark img {
  filter: grayscale(1);
  max-width: none;
  height: 100%;
  width: 100%;
}

.document-sheet-good-health {
  height: 279mm;
  position: relative;
  width: 216mm;
  z-index: 1;
}

.document-letter-good-health .document-logo-box,
.document-letter-good-health .document-pet-photo img {
  display: block;
}

.document-letter-good-health .document-logo-box {
  height: 22mm;
  overflow: visible;
  width: 70mm;
  z-index: 2;
}

.document-letter-good-health .document-logo-img,
.document-letter-good-health .document-logo {
  display: block;
  height: 22mm;
  max-width: 70mm;
  object-fit: contain;
  object-position: left top;
  width: auto;
}

.document-letter-good-health .document-pet-photo img {
  background: #fff;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  width: 100%;
}

.document-letter-good-health .document-pet-photo {
  background: #fff;
  border: 0.3mm solid #d7dde8;
  border-radius: 3mm;
  box-sizing: border-box;
  overflow: hidden;
}

.doc-gh-label,
.doc-gh-value,
.doc-gh-footer-left,
.doc-gh-footer-right {
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  z-index: 2;
}

.doc-gh-label,
.doc-gh-value {
  font-size: 3mm;
  font-weight: 600;
  line-height: 1;
}

.doc-gh-line,
.doc-gh-header-line,
.doc-gh-footer-line,
.doc-gh-signature-line {
  background: rgba(17, 24, 39, 0.7);
}

.doc-gh-header-line,
.doc-gh-footer-line,
.doc-gh-signature-line {
  height: 0.3mm;
}

.doc-gh-line {
  height: 0.2mm;
}

.doc-gh-clinic-title {
  color: #4b5563;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 6.2mm;
  font-weight: 700;
  letter-spacing: 0;
  text-align: right;
  text-transform: uppercase;
  z-index: 2;
}

.doc-gh-signer-name,
.doc-gh-signer-license {
  color: #374151;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2.4mm;
  font-weight: 700;
  line-height: 1.1;
  z-index: 2;
}

.doc-gh-signer-license {
  text-align: right;
}

.doc-gh-title {
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 4.4mm;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  z-index: 2;
}

.doc-gh-location-date {
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 3mm;
  font-weight: 600;
  text-align: right;
  text-transform: uppercase;
  z-index: 2;
}

.doc-gh-intro {
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 3mm;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  z-index: 2;
}

.doc-gh-paragraph,
.doc-gh-note {
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  text-align: justify;
  text-transform: uppercase;
  z-index: 2;
}

.doc-gh-paragraph {
  font-size: 3mm;
  font-weight: 600;
  line-height: 1.1;
}

.doc-gh-note {
  font-size: 3mm;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
}

.doc-gh-vet-signature-name,
.doc-gh-vet-signature-license {
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 3mm;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  z-index: 2;
}

.doc-gh-footer-left,
.doc-gh-footer-right {
  color: #374151;
  font-size: 1.95mm;
  font-weight: 600;
  line-height: 1.18;
}

.doc-gh-footer-center {
  color: #6b7280;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13.3pt;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  z-index: 2;
}

/* Buena Salud toma coordenadas criticas desde la plantilla viva para evitar drift entre preview e impresion. */
.doc-gh-expediente-value { left: 47mm; top: 80mm; width: 28mm; height: 5mm; }
.doc-gh-expediente-line { left: 47mm; top: 83mm; width: 38mm; }

.doc-gh-propietario-value { left: 47mm; top: 90mm; width: 143mm; height: 5mm; }
.doc-gh-propietario-line { left: 47mm; top: 93mm; width: 143mm; }

.doc-gh-domicilio-value { left: 47mm; top: 97mm; width: 143mm; height: 5mm; }
.doc-gh-domicilio-line { left: 47mm; top: 100mm; width: 143mm; }

.doc-gh-colonia-value { left: 47mm; top: 104mm; width: 70mm; height: 5mm; }
.doc-gh-colonia-line { left: 47mm; top: 107mm; width: 78mm; }

.doc-gh-telefono-value { left: 150mm; top: 104mm; width: 40mm; height: 5mm; }
.doc-gh-telefono-line { left: 150mm; top: 107mm; width: 40mm; }

.doc-gh-mascota-value { left: 65mm; top: 118mm; width: 47mm; height: 5mm; }
.doc-gh-mascota-line { left: 65mm; top: 121mm; width: 47mm; }

.doc-gh-nacimiento-value { left: 65mm; top: 125mm; width: 47mm; height: 5mm; }
.doc-gh-nacimiento-line { left: 65mm; top: 128mm; width: 47mm; }

.doc-gh-especie-label { left: 21mm; top: 132mm; width: 28mm; height: 5mm; }
.doc-gh-especie-value { left: 47mm; top: 132mm; width: 65mm; height: 5mm; }
.doc-gh-especie-line { left: 47mm; top: 135mm; width: 65mm; }

.doc-gh-raza-value { left: 47mm; top: 139mm; width: 65mm; height: 5mm; }
.doc-gh-raza-line { left: 47mm; top: 142mm; width: 65mm; }

.doc-gh-color-value { left: 47mm; top: 146mm; width: 65mm; height: 5mm; }
.doc-gh-color-line { left: 47mm; top: 149mm; width: 65mm; }

.doc-gh-sexo-value { left: 47mm; top: 153mm; width: 65mm; height: 5mm; }
.doc-gh-sexo-line { left: 47mm; top: 156mm; width: 65mm; }

.doc-gh-vet-signature-license { left: 63mm; top: 235mm; width: 90mm; height: 4mm; }

.doc-gh-footer-left { left: 21mm; top: 261mm; width: 75mm; height: 8mm; }
.doc-gh-footer-center { left: 92mm; top: 261mm; width: 32mm; height: 6mm; }
.doc-gh-footer-right { left: 142mm; top: 261mm; width: 60mm; height: 8mm; text-align: right; }

.document-letter-vaccination-card {
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10pt;
  height: 279mm;
  line-height: 1.18;
  overflow: hidden;
  padding: 0;
  width: 216mm;
}

.document-letter-vaccination-card .document-letter-watermark {
  inset: 76mm 38mm auto 38mm;
  width: 140mm;
  height: 118mm;
  opacity: 0.055;
}

.document-letter-vaccination-card .document-letter-watermark img {
  filter: grayscale(1);
  max-width: none;
  height: 100%;
  width: 100%;
}

.document-sheet-vaccination-card {
  height: 279mm;
  position: relative;
  width: 216mm;
  z-index: 1;
}

.document-letter-vaccination-card .document-logo-box {
  display: block;
  height: 22mm;
  overflow: visible;
  width: 70mm;
  z-index: 2;
}

.document-letter-vaccination-card .document-logo-img,
.document-letter-vaccination-card .document-logo {
  display: block;
  height: 22mm;
  max-width: 70mm;
  object-fit: contain;
  object-position: left top;
  width: auto;
}

.doc-vac-label,
.doc-vac-value,
.doc-vac-footer-left,
.doc-vac-footer-right,
.doc-vac-page-indicator {
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  z-index: 2;
}

.doc-vac-label,
.doc-vac-value {
  font-size: 3mm;
  font-weight: 600;
  line-height: 1;
}

.doc-vac-line,
.doc-vac-header-line,
.doc-vac-footer-line,
.doc-vac-signature-line {
  background: rgba(17, 24, 39, 0.7);
}

.doc-vac-header-line,
.doc-vac-footer-line,
.doc-vac-signature-line {
  height: 0.3mm;
}

.doc-vac-line {
  height: 0.2mm;
}

.doc-vac-clinic-title {
  color: #4b5563;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 6.2mm;
  font-weight: 700;
  letter-spacing: 0;
  text-align: right;
  text-transform: uppercase;
  z-index: 2;
}

.doc-vac-signer-name,
.doc-vac-signer-license {
  color: #374151;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2.4mm;
  font-weight: 700;
  line-height: 1.1;
  z-index: 2;
}

.doc-vac-signer-license {
  text-align: right;
}

.doc-vac-title {
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 4.4mm;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  z-index: 2;
}

.doc-vac-location-date {
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 3mm;
  font-weight: 600;
  line-height: 1.05;
  text-align: right;
  text-transform: uppercase;
  z-index: 2;
}

.doc-vac-photo {
  background: #fff;
  border-radius: 2.4mm;
  overflow: hidden;
}

.document-letter-vaccination-card .document-pet-photo img {
  background: #fff;
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  width: 100%;
}

.doc-vac-birthdate,
.doc-vac-vet-signature-name,
.doc-vac-vet-signature-license,
.doc-vac-footer-left,
.doc-vac-footer-right,
.doc-vac-page-indicator,
.vaccination-card-table {
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
}

.doc-vac-birthdate {
  font-size: 2.7mm;
}

.doc-vac-table-shell {
  position: absolute;
  z-index: 2;
}

.vaccination-card-table {
  position: absolute;
  left: 0;
  top: 0;
  width: 174mm;
  height: 72mm;
  border-collapse: collapse;
  table-layout: fixed;
  border: none;
  font-size: 2.8mm;
  font-weight: 600;
  line-height: 1.08;
  background: transparent;
}

.vaccination-card-table thead th {
  height: 7mm;
  text-align: center;
  vertical-align: middle;
  border: none;
  border-bottom: 0.35mm solid #111827;
  padding: 0.8mm 1mm 1mm 1mm;
  font-size: 2.9mm;
  font-weight: 700;
  background: transparent;
}

.vaccination-card-table tbody tr {
  height: 5.5mm;
}

.vaccination-card-table tbody td {
  border: none;
  padding: 1mm 1.2mm;
  vertical-align: middle;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: transparent;
}

.vaccination-card-table th:not(:last-child),
.vaccination-card-table td:not(:last-child) {
  border-right: 0.18mm solid rgba(17, 24, 39, 0.28);
}

.vaccination-card-table tbody tr + tr td {
  border-top: none;
}

.vaccination-card-table tbody td:nth-child(1) {
  text-align: left;
}

.vaccination-card-table tbody td:nth-child(2),
.vaccination-card-table tbody td:nth-child(3) {
  text-align: center;
}

.doc-vac-vet-signature-name,
.doc-vac-vet-signature-license {
  font-size: 3mm;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  z-index: 2;
}

.doc-vac-footer-left,
.doc-vac-footer-right {
  color: #374151;
  font-size: 1.95mm;
  font-weight: 600;
  line-height: 1.18;
}

.doc-vac-footer-center {
  color: #6b7280;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13.3pt;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  z-index: 2;
}

.doc-vac-page-indicator {
  color: #6b7280;
  font-size: 2.3mm;
  font-weight: 600;
  line-height: 1;
  text-align: right;
}

.document-letter-vaccination-modern-v2 {
  --modern-content-font-family: "Helvetica", Arial, sans-serif;
  --modern-content-font-size: 3.5mm;
  --modern-content-line-height: 1.18;
  --modern-paragraph-gap: calc(3.5mm * 1.18 * 2);
  --modern-field-label-weight: 700;
  --modern-field-value-weight: 400;
  --modern-row-gap-owner: 6mm;
  --modern-pet-line-color: #d1d1d1;
  color: #111827;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: var(--modern-content-font-size, 3.5mm);
}

.document-letter-vaccination-modern-v2 .document-letter-watermark {
  display: none !important;
}

.document-letter-vaccination-modern-v2 .doc-vac-title {
  color: #111827;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: 4mm;
  font-weight: 700;
  line-height: 1.12;
  text-align: center;
  text-transform: uppercase;
}

.document-letter-vaccination-modern-v2 .doc-vac-location-date,
.document-letter-vaccination-modern-v2 .doc-vac-modern-owner-row,
.document-letter-vaccination-modern-v2 .doc-vac-modern-pet-row,
.document-letter-vaccination-modern-v2 .doc-vac-vet-signature-name,
.document-letter-vaccination-modern-v2 .doc-vac-vet-signature-license,
.document-letter-vaccination-modern-v2 .vaccination-modern-table {
  color: #111827;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: var(--modern-content-font-size, 3.5mm);
  font-weight: 400;
  line-height: var(--modern-content-line-height, 1.18);
  text-transform: none;
  z-index: 2;
}

.document-letter-vaccination-modern-v2 .doc-vac-location-date {
  text-align: right;
}

.document-letter-vaccination-modern-v2 .doc-vac-modern-owner-row,
.document-letter-vaccination-modern-v2 .doc-vac-modern-pet-row {
  box-sizing: border-box;
  position: absolute;
}

.document-letter-vaccination-modern-v2 .doc-vac-modern-pet-row {
  border-bottom: 1px solid var(--modern-pet-line-color, #d1d1d1);
  height: 6mm;
}

.document-letter-vaccination-modern-v2 .doc-vac-modern-field-label,
.document-letter-vaccination-modern-v2 .doc-vac-modern-field-value {
  display: block;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: var(--modern-content-font-size, 3.5mm);
  line-height: var(--modern-content-line-height, 1.18);
  overflow: hidden;
  position: absolute;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-letter-vaccination-modern-v2 .doc-vac-modern-field-label {
  color: #1f2937;
  font-weight: var(--modern-field-label-weight, 700);
}

.document-letter-vaccination-modern-v2 .doc-vac-modern-field-value {
  color: #111827;
  font-weight: var(--modern-field-value-weight, 400);
}

.document-letter-vaccination-modern-v2 .document-pet-photo-frame {
  background: #fff;
  border: 0.3mm solid #d7dde8;
  border-radius: 3mm;
  box-sizing: border-box;
  height: 38mm;
  overflow: hidden;
  width: 51mm;
}

.document-letter-vaccination-modern-v2 .document-pet-photo-frame img,
.document-letter-vaccination-modern-v2 .document-pet-photo-img {
  background: #fff;
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  width: 100%;
}

.document-letter-vaccination-modern-v2 .doc-vac-table-shell {
  position: absolute;
  z-index: 2;
}

.document-letter-vaccination-modern-v2 .vaccination-modern-table {
  border: none;
  border-collapse: collapse;
  height: 76mm;
  left: 0;
  position: absolute;
  table-layout: fixed;
  top: 0;
  width: 174mm;
}

.document-letter-vaccination-modern-v2 .vaccination-modern-table thead th {
  border: none;
  border-bottom: 0.35mm solid #111827;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: 2.65mm;
  font-weight: 700;
  height: 6mm;
  line-height: 1.08;
  padding: 0.55mm 0.8mm 0.7mm 0.8mm;
  text-align: center;
  vertical-align: middle;
}

.document-letter-vaccination-modern-v2 .vaccination-modern-table tbody tr {
  break-inside: avoid;
  height: 3.8mm;
}

.document-letter-vaccination-modern-v2 .vaccination-modern-table tbody td {
  border: none;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: 2.65mm;
  font-weight: 400;
  line-height: 1.05;
  overflow: hidden;
  padding: 0.35mm 0.65mm;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.document-letter-vaccination-modern-v2 .vaccination-modern-table th:not(:last-child),
.document-letter-vaccination-modern-v2 .vaccination-modern-table td:not(:last-child) {
  border-right: 0.18mm solid rgba(17, 24, 39, 0.28);
}

.document-letter-vaccination-modern-v2 .vaccination-modern-table tbody tr + tr td {
  border-top: none;
}

.document-letter-vaccination-modern-v2 .vaccination-modern-table tbody td:nth-child(1) {
  text-align: left;
}

.document-letter-vaccination-modern-v2 .vaccination-modern-table tbody td:nth-child(2),
.document-letter-vaccination-modern-v2 .vaccination-modern-table tbody td:nth-child(3),
.document-letter-vaccination-modern-v2 .vaccination-modern-table tbody td:nth-child(4),
.document-letter-vaccination-modern-v2 .vaccination-modern-table tbody td:nth-child(5) {
  text-align: center;
}

.document-letter-vaccination-modern-v2 .doc-vac-signature-line,
.document-letter-vaccination-modern-v2 .doc-vac-footer-line,
.document-letter-vaccination-modern-v2 .doc-vac-header-line {
  background: transparent;
}

.document-letter-vaccination-modern-v2 .doc-vac-signature-line {
  border-top: 0.3mm solid rgba(17, 24, 39, 0.85);
  height: 0;
  z-index: 2;
}

.document-letter-vaccination-modern-v2 .doc-vac-vet-signature-name,
.document-letter-vaccination-modern-v2 .doc-vac-vet-signature-license {
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: var(--modern-content-font-size, 3.5mm);
  font-weight: 400;
  line-height: var(--modern-content-line-height, 1.18);
  text-align: center;
}

.document-letter-good-health-modern-v2 {
  --modern-content-font-family: "Helvetica", Arial, sans-serif;
  --modern-content-font-size: 3.5mm;
  --modern-content-line-height: 1.18;
  --modern-paragraph-gap: calc(3.5mm * 1.18 * 2);
  --modern-field-label-weight: 700;
  --modern-field-value-weight: 400;
  --modern-row-gap-owner: 6mm;
  --modern-pet-line-color: #d1d1d1;
}

.document-letter-good-health-modern-v2 .document-letter-watermark {
  display: none !important;
}

.document-letter-good-health-modern-v2 .doc-gh-title {
  color: #111827;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: 4mm;
  font-weight: 700;
  line-height: 1.12;
  text-align: center;
  text-transform: uppercase;
}

.document-letter-good-health-modern-v2 .doc-gh-location-date,
.document-letter-good-health-modern-v2 .doc-gh-intro,
.document-letter-good-health-modern-v2 .doc-gh-modern-owner-row,
.document-letter-good-health-modern-v2 .doc-gh-modern-pet-row,
.document-letter-good-health-modern-v2 .document-modern-good-health-flow,
.document-letter-good-health-modern-v2 .doc-gh-vet-signature-name,
.document-letter-good-health-modern-v2 .doc-gh-vet-signature-license {
  color: #111827;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: var(--modern-content-font-size, 3.5mm);
  font-weight: 400;
  line-height: var(--modern-content-line-height, 1.18);
  text-transform: none;
  z-index: 2;
}

.document-letter-good-health-modern-v2 .doc-gh-location-date {
  text-align: right;
}

.document-letter-good-health-modern-v2 .doc-gh-intro {
  text-align: left;
}

.document-letter-good-health-modern-v2 .doc-gh-modern-owner-row,
.document-letter-good-health-modern-v2 .doc-gh-modern-pet-row {
  box-sizing: border-box;
  position: absolute;
}

.document-letter-good-health-modern-v2 .doc-gh-modern-pet-row {
  border-bottom: 1px solid var(--modern-pet-line-color, #d1d1d1);
  height: 6mm;
}

.document-letter-good-health-modern-v2 .doc-gh-modern-field-label,
.document-letter-good-health-modern-v2 .doc-gh-modern-field-value {
  display: block;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: var(--modern-content-font-size, 3.5mm);
  line-height: var(--modern-content-line-height, 1.18);
  overflow: hidden;
  position: absolute;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-letter-good-health-modern-v2 .doc-gh-modern-field-label {
  color: #1f2937;
  font-weight: var(--modern-field-label-weight, 700);
}

.document-letter-good-health-modern-v2 .doc-gh-modern-field-value {
  color: #111827;
  font-weight: var(--modern-field-value-weight, 400);
}

.document-letter-good-health-modern-v2 .document-pet-photo-frame {
  background: #fff;
  border: 0.3mm solid #d7dde8;
  border-radius: 3mm;
  box-sizing: border-box;
  height: 38mm;
  overflow: hidden;
  width: 51mm;
}

.document-letter-good-health-modern-v2 .document-pet-photo-frame img,
.document-letter-good-health-modern-v2 .document-pet-photo-img {
  background: #fff;
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  width: 100%;
}

.document-letter-good-health-modern-v2 .document-modern-good-health-flow {
  max-height: 42mm;
  overflow: hidden;
  text-align: justify;
}

.document-letter-good-health-modern-v2 .document-modern-good-health-flow p {
  margin: 0;
  padding: 0;
}

.document-letter-good-health-modern-v2 .document-modern-good-health-flow p + p {
  margin-top: var(--modern-paragraph-gap, calc(3.5mm * 1.18 * 2));
}

.document-letter-good-health-modern-v2 .doc-gh-signature-line,
.document-letter-good-health-modern-v2 .doc-gh-footer-line,
.document-letter-good-health-modern-v2 .doc-gh-header-line {
  background: transparent;
}

.document-letter-good-health-modern-v2 .doc-gh-signature-line {
  border-top: 0.3mm solid rgba(17, 24, 39, 0.85);
  height: 0;
  z-index: 2;
}

.document-letter-good-health-modern-v2 .doc-gh-vet-signature-name,
.document-letter-good-health-modern-v2 .doc-gh-vet-signature-license {
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: var(--modern-content-font-size, 3.5mm);
  font-weight: 400;
  line-height: var(--modern-content-line-height, 1.18);
  text-align: center;
}

.document-letter-good-health-certificate {
  color: #111827;
  font-family: "Helvetica", Arial, sans-serif;
  font-size: 3.25mm;
  height: 279mm;
  line-height: 1.22;
  overflow: hidden;
  padding: 0;
  width: 216mm;
}

.document-sheet-good-health-certificate {
  height: 279mm;
  position: relative;
  width: 216mm;
}

.document-letter-good-health-certificate .document-logo-box {
  align-items: center;
  display: flex;
  justify-content: flex-start;
}

.document-letter-good-health-certificate .document-logo-img {
  max-height: 22mm;
  max-width: 70mm;
  object-fit: contain;
}

.doc-ghc-title {
  font-size: 4.2mm;
  line-height: 1.15;
  margin: 0;
  text-align: center;
}

.doc-ghc-date {
  text-align: right;
}

.doc-ghc-owner > div {
  margin-bottom: 1.3mm;
}

.doc-ghc-address-line-2 {
  padding-left: 19mm;
}

.doc-ghc-pet {
  border-top: 0.25mm solid #d1d5db;
  padding-top: 2mm;
}

.doc-ghc-pet h2 {
  font-size: 3.6mm;
  margin: 0 0 2mm;
}

.doc-ghc-pet-grid {
  display: grid;
  gap: 1.5mm 7mm;
  grid-template-columns: 1fr 1fr;
}

.doc-ghc-statement {
  font-size: 3.55mm;
  line-height: 1.42;
  text-align: justify;
}

.doc-ghc-statement p {
  margin: 0;
}

.doc-ghc-statement .doc-ghc-note {
  margin-top: 5mm;
  text-align: center;
}

.doc-ghc-signature {
  font-size: 3.3mm;
  line-height: 1.45;
  text-align: left;
}

.doc-ghc-signature-line {
  border-top: 0.3mm solid #111827;
  margin: 0 auto 3mm;
  width: 90mm;
}

.document-letter-health-certificate {
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10pt;
  height: 279mm;
  line-height: 1.18;
  overflow: hidden;
  padding: 0;
  width: 216mm;
}

.document-letter-health-certificate .document-letter-watermark {
  inset: 76mm 38mm auto 38mm;
  width: 140mm;
  height: 118mm;
  opacity: 0.055;
}

.document-letter-health-certificate .document-letter-watermark img {
  filter: grayscale(1);
  max-width: none;
  height: 100%;
  width: 100%;
}

.document-sheet-health-certificate {
  height: 279mm;
  position: relative;
  width: 216mm;
  z-index: 1;
}

.document-letter-health-certificate .document-logo-box,
.document-letter-health-certificate .document-pet-photo img {
  display: block;
}

.document-letter-health-certificate .document-logo-box {
  height: 22mm;
  overflow: visible;
  width: 70mm;
  z-index: 2;
}

.document-letter-health-certificate .document-logo-img,
.document-letter-health-certificate .document-logo {
  display: block;
  height: 22mm;
  max-width: 70mm;
  object-fit: contain;
  object-position: left top;
  width: auto;
}

.document-letter-health-certificate .document-pet-photo img {
  background: #fff;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  width: 100%;
}

.document-letter-health-certificate .document-pet-photo {
  background: #fff;
  border: 0.3mm solid #d7dde8;
  border-radius: 3mm;
  box-sizing: border-box;
  overflow: hidden;
}

.doc-he-label,
.doc-he-value,
.doc-he-footer-left,
.doc-he-footer-right {
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  z-index: 2;
}

.doc-he-label,
.doc-he-value,
.doc-he-intro,
.doc-he-paragraph,
.doc-he-note {
  font-size: 3mm;
  font-weight: 600;
  line-height: 1;
}

.doc-he-line,
.doc-he-header-line,
.doc-he-footer-line,
.doc-he-signature-line {
  background: rgba(17, 24, 39, 0.7);
}

.doc-he-header-line,
.doc-he-footer-line,
.doc-he-signature-line {
  height: 0.3mm;
}

.doc-he-line {
  height: 0.2mm;
}

.doc-he-clinic-title {
  color: #4b5563;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 6.2mm;
  font-weight: 700;
  letter-spacing: 0;
  text-align: right;
  text-transform: uppercase;
  z-index: 2;
}

.doc-he-signer-name,
.doc-he-signer-license {
  color: #374151;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2.4mm;
  font-weight: 700;
  line-height: 1.1;
  z-index: 2;
}

.doc-he-signer-license {
  text-align: right;
}

.doc-he-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 4.4mm;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  z-index: 2;
}

.doc-he-location-date {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 3mm;
  font-weight: 600;
  line-height: 1.05;
  text-align: right;
  text-transform: uppercase;
  z-index: 2;
}

.doc-he-intro,
.doc-he-paragraph,
.doc-he-note {
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
  z-index: 2;
}

.doc-he-intro,
.doc-he-paragraph {
  text-align: justify;
}

.doc-he-intro {
  line-height: 1.14;
}

.doc-he-paragraph {
  line-height: 1.1;
}

.doc-he-note {
  line-height: 1.12;
}

.doc-he-vet-signature-name,
.doc-he-vet-signature-license {
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.12;
  text-align: center;
  text-transform: uppercase;
  z-index: 2;
}

.doc-he-vet-signature-name {
  font-size: 2.7mm;
  font-weight: 600;
}

.doc-he-vet-signature-license {
  color: #374151;
  font-size: 2.35mm;
  font-weight: 600;
}

.doc-he-footer-left,
.doc-he-footer-right {
  color: #374151;
  font-size: 1.95mm;
  font-weight: 600;
  line-height: 1.18;
}

.doc-he-footer-center {
  color: #6b7280;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13.3pt;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  z-index: 2;
}

.doc-he-record-value { left: 47mm; top: 80mm; width: 28mm; height: 5mm; }
.doc-he-record-line { left: 47mm; top: 83mm; width: 38mm; }

.doc-he-property-value { left: 47mm; top: 90mm; width: 143mm; height: 5mm; }
.doc-he-property-line { left: 47mm; top: 93mm; width: 143mm; }

.doc-he-address-value { left: 47mm; top: 97mm; width: 143mm; height: 5mm; }
.doc-he-address-line { left: 47mm; top: 100mm; width: 143mm; }

.doc-he-colony-value { left: 47mm; top: 104mm; width: 70mm; height: 5mm; }
.doc-he-colony-line { left: 47mm; top: 107mm; width: 78mm; }

.doc-he-phone-value { left: 150mm; top: 104mm; width: 40mm; height: 5mm; }
.doc-he-phone-line { left: 150mm; top: 107mm; width: 40mm; }

.doc-he-pet-value { left: 65mm; top: 118mm; width: 47mm; height: 5mm; }
.doc-he-pet-line { left: 65mm; top: 121mm; width: 47mm; }

.doc-he-birth-value { left: 65mm; top: 125mm; width: 47mm; height: 5mm; font-size: 2.7mm; }
.doc-he-birth-line { left: 65mm; top: 128mm; width: 47mm; }

.doc-he-species-label { left: 21mm; top: 132mm; width: 28mm; height: 5mm; }
.doc-he-species-value { left: 47mm; top: 132mm; width: 65mm; height: 5mm; }
.doc-he-species-line { left: 47mm; top: 135mm; width: 65mm; }

.doc-he-breed-value { left: 47mm; top: 139mm; width: 65mm; height: 5mm; }
.doc-he-breed-line { left: 47mm; top: 142mm; width: 65mm; }

.doc-he-color-value { left: 47mm; top: 146mm; width: 65mm; height: 5mm; }
.doc-he-color-line { left: 47mm; top: 149mm; width: 65mm; }

.doc-he-sex-value { left: 47mm; top: 153mm; width: 65mm; height: 5mm; }
.doc-he-sex-line { left: 47mm; top: 156mm; width: 65mm; }

.doc-he-vet-signature-license { left: 63mm; top: 235mm; width: 90mm; height: 4mm; }

.document-letter-health-en-modern-v2 {
  --modern-content-font-family: "Helvetica", Arial, sans-serif;
  --modern-content-font-size: 3.5mm;
  --modern-content-line-height: 1.18;
  --modern-paragraph-gap: calc(3.5mm * 1.18 * 2);
  --modern-field-label-weight: 700;
  --modern-field-value-weight: 400;
  --modern-row-gap-owner: 6mm;
  --modern-pet-line-color: #d1d1d1;
  color: #111827;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: var(--modern-content-font-size, 3.5mm);
  line-height: var(--modern-content-line-height, 1.18);
}

.document-letter-health-en-modern-v2 .document-letter-watermark {
  display: none !important;
}

.document-letter-health-en-modern-v2 .doc-he-title {
  color: #111827;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: 4mm;
  font-weight: 700;
  line-height: 1.12;
  text-align: center;
  text-transform: uppercase;
}

.document-letter-health-en-modern-v2 .doc-he-location-date,
.document-letter-health-en-modern-v2 .doc-he-intro,
.document-letter-health-en-modern-v2 .doc-he-modern-owner-row,
.document-letter-health-en-modern-v2 .doc-he-modern-pet-row,
.document-letter-health-en-modern-v2 .document-modern-health-flow,
.document-letter-health-en-modern-v2 .doc-he-vet-signature-name,
.document-letter-health-en-modern-v2 .doc-he-vet-signature-license {
  color: #111827;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: var(--modern-content-font-size, 3.5mm);
  font-weight: 400;
  line-height: var(--modern-content-line-height, 1.18);
  text-transform: none;
  z-index: 2;
}

.document-letter-health-en-modern-v2 .doc-he-location-date {
  text-align: right;
}

.document-letter-health-en-modern-v2 .doc-he-intro {
  text-align: left;
}

.document-letter-health-en-modern-v2 .doc-he-modern-owner-row,
.document-letter-health-en-modern-v2 .doc-he-modern-pet-row {
  position: absolute;
  box-sizing: border-box;
}

.document-letter-health-en-modern-v2 .doc-he-modern-pet-row {
  border-bottom: 1px solid var(--modern-pet-line-color, #d1d1d1);
}

.document-letter-health-en-modern-v2 .doc-he-modern-field-label,
.document-letter-health-en-modern-v2 .doc-he-modern-field-value {
  display: block;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: var(--modern-content-font-size, 3.5mm);
  line-height: var(--modern-content-line-height, 1.18);
  overflow: hidden;
  position: absolute;
  text-overflow: ellipsis;
  text-transform: none;
  top: 0;
  white-space: nowrap;
}

.document-letter-health-en-modern-v2 .doc-he-modern-field-label {
  font-weight: var(--modern-field-label-weight, 700);
  left: 0;
  width: 40mm;
}

.document-letter-health-en-modern-v2 .doc-he-modern-field-value {
  font-weight: var(--modern-field-value-weight, 400);
  left: 44mm;
  right: 0;
}

.document-letter-health-en-modern-v2 .document-pet-photo-frame {
  background: #fff;
  border: 0.3mm solid #d7dde8;
  border-radius: 3mm;
  box-sizing: border-box;
  height: 38mm;
  overflow: hidden;
  width: 51mm;
  z-index: 2;
}

.document-letter-health-en-modern-v2 .document-pet-photo-frame img,
.document-letter-health-en-modern-v2 .document-pet-photo-img {
  background: #fff;
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  width: 100%;
}

.document-letter-health-en-modern-v2 .document-modern-health-flow {
  overflow: hidden;
  text-align: justify;
}

.document-letter-health-en-modern-v2 .document-modern-health-flow p {
  margin: 0;
  padding: 0;
}

.document-letter-health-en-modern-v2 .document-modern-health-flow p + p {
  margin-top: var(--modern-paragraph-gap, calc(3.5mm * 1.18 * 2));
}

.document-letter-health-en-modern-v2 .doc-he-header-line,
.document-letter-health-en-modern-v2 .doc-he-footer-line,
.document-letter-health-en-modern-v2 .doc-he-signature-line {
  background: transparent !important;
  border-top: 0.3mm solid #111827;
  box-sizing: border-box;
  height: 0 !important;
  z-index: 20;
}

.document-letter-health-en-modern-v2 .doc-he-signature-line {
  border-top-color: #1f2937;
}

.document-letter-health-en-modern-v2 .doc-he-vet-signature-name,
.document-letter-health-en-modern-v2 .doc-he-vet-signature-license {
  text-align: center;
}

.doc-he-footer-left { left: 21mm; top: 261mm; width: 75mm; height: 8mm; }
.doc-he-footer-center { left: 92mm; top: 261mm; width: 32mm; height: 6mm; }
.doc-he-footer-right { left: 142mm; top: 261mm; width: 60mm; height: 8mm; text-align: right; }

.document-letter-surgery {
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10pt;
  height: 279mm;
  line-height: 1.18;
  overflow: hidden;
  padding: 0;
  width: 216mm;
}

.document-letter-surgery .document-letter-watermark {
  inset: 76mm 38mm auto 38mm;
  width: 140mm;
  height: 118mm;
  opacity: 0.055;
}

.document-letter-surgery .document-letter-watermark img {
  filter: grayscale(1);
  max-width: none;
  height: 100%;
  width: 100%;
}

.document-sheet-surgery {
  height: 279mm;
  position: relative;
  width: 216mm;
  z-index: 1;
}

.document-letter-surgery .document-logo-box,
.document-letter-surgery .document-pet-photo img {
  display: block;
}

.document-letter-surgery .document-logo-box {
  height: 22mm;
  overflow: visible;
  width: 70mm;
  z-index: 2;
}

.document-letter-surgery .document-logo-img,
.document-letter-surgery .document-logo {
  display: block;
  height: 22mm;
  max-width: 70mm;
  object-fit: contain;
  object-position: left top;
  width: auto;
}

.document-letter-surgery .document-pet-photo img {
  background: #fff;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  width: 100%;
}

.document-letter-surgery .document-pet-photo {
  background: #fff;
  border: 0.3mm solid #d7dde8;
  border-radius: 3mm;
  box-sizing: border-box;
  overflow: hidden;
}

.doc-srg-label,
.doc-srg-value,
.doc-srg-signature-text,
.doc-srg-vet-signature-name,
.doc-srg-vet-signature-license,
.doc-srg-footer-left,
.doc-srg-footer-right {
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  z-index: 2;
}

.doc-srg-label,
.doc-srg-value {
  font-size: 3.1mm;
  line-height: 1;
}

.doc-srg-label {
  font-weight: 700;
}

.doc-srg-value {
  font-weight: 500;
}

.doc-srg-line,
.doc-srg-header-line,
.doc-srg-footer-line,
.doc-srg-signature-line {
  background: rgba(17, 24, 39, 0.7);
}

.doc-srg-header-line,
.doc-srg-footer-line,
.doc-srg-signature-line {
  height: 0.3mm;
  z-index: 1;
}

.doc-srg-line {
  height: 0.2mm;
}

.doc-srg-clinic-title {
  color: #4b5563;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 6.5mm;
  font-weight: 700;
  letter-spacing: 0;
  text-align: right;
  text-transform: uppercase;
  z-index: 2;
}

.doc-srg-signer-name,
.doc-srg-signer-license {
  color: #374151;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2.4mm;
  font-weight: 700;
  line-height: 1.1;
  z-index: 2;
}

.doc-srg-signer-license {
  text-align: right;
}

.doc-srg-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 4mm;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  z-index: 2;
}

.doc-srg-location-date {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2.75mm;
  font-weight: 600;
  text-align: right;
  text-transform: uppercase;
  z-index: 2;
}

.doc-srg-paragraph {
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2.7mm;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
  text-align: justify;
  text-transform: uppercase;
  z-index: 2;
}

.doc-srg-paragraph strong {
  font-weight: 700;
}

.doc-srg-fill-inline,
.surgery-manual-line {
  border-bottom: 0.2mm solid rgba(17, 24, 39, 0.7);
  display: inline-block;
  height: 3mm;
  margin: 0 1mm;
  vertical-align: baseline;
}

.doc-srg-fill-inline {
  min-width: 32mm;
}

.doc-srg-fill-inline-wide {
  min-width: 44mm;
}

.surgery-manual-line-procedure {
  width: 92mm;
}

.surgery-manual-line-explained-by {
  width: 78mm;
}

.surgery-manual-line-authorizes {
  width: 72mm;
}

.doc-srg-signature-text,
.doc-srg-vet-signature-name,
.doc-srg-vet-signature-license {
  font-size: 2.7mm;
  line-height: 1.12;
  text-align: center;
  text-transform: uppercase;
}

.doc-srg-signature-text,
.doc-srg-vet-signature-name {
  font-weight: 600;
}

.doc-srg-vet-signature-license {
  color: #374151;
  font-size: 2.35mm;
  font-weight: 600;
}

.doc-srg-footer-left,
.doc-srg-footer-right {
  color: #374151;
  font-size: 1.95mm;
  font-weight: 600;
  line-height: 1.18;
}

.doc-srg-footer-center {
  color: #6b7280;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13.3pt;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  z-index: 2;
}

.doc-eu-label,
.doc-eu-value,
.doc-eu-signature-text,
.doc-eu-vet-signature-name,
.doc-eu-vet-signature-license,
.doc-eu-footer-left,
.doc-eu-footer-right {
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  z-index: 2;
}

.doc-eu-label,
.doc-eu-value {
  font-size: 3.1mm;
  line-height: 1;
}

.doc-eu-label {
  font-weight: 700;
}

.doc-eu-value {
  font-weight: 500;
}

.doc-eu-line,
.doc-eu-header-line,
.doc-eu-footer-line,
.doc-eu-signature-line,
.doc-eu-observaciones-line {
  background: rgba(17, 24, 39, 0.7);
}

.doc-eu-header-line,
.doc-eu-footer-line,
.doc-eu-signature-line {
  height: 0.3mm;
  z-index: 1;
}

.doc-eu-line,
.doc-eu-observaciones-line {
  height: 0.2mm;
}

.doc-eu-clinic-title {
  color: #4b5563;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 6.5mm;
  font-weight: 700;
  letter-spacing: 0;
  text-align: right;
  text-transform: uppercase;
  z-index: 2;
}

.doc-eu-signer-name,
.doc-eu-signer-license {
  color: #374151;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2.4mm;
  font-weight: 700;
  line-height: 1.1;
  z-index: 2;
}

.doc-eu-signer-license {
  text-align: right;
}

.doc-eu-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 4mm;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  z-index: 2;
}

.doc-eu-location-date {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2.75mm;
  font-weight: 600;
  text-align: right;
  text-transform: uppercase;
  z-index: 2;
}

.doc-eu-intro,
.doc-eu-option-text,
.doc-eu-observaciones-label {
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 3mm;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.18;
  text-transform: uppercase;
  z-index: 2;
}

.doc-eu-intro {
  text-align: justify;
}

.doc-eu-option-box {
  border: 0.3mm solid rgba(17, 24, 39, 0.85);
  box-sizing: border-box;
  background: #fff;
  z-index: 2;
}

.doc-eu-signature-text,
.doc-eu-vet-signature-name,
.doc-eu-vet-signature-license {
  font-size: 2.7mm;
  line-height: 1.12;
  text-align: center;
  text-transform: uppercase;
}

.doc-eu-signature-text,
.doc-eu-vet-signature-name {
  font-weight: 600;
}

.doc-eu-vet-signature-license {
  color: #374151;
  font-size: 2.35mm;
  font-weight: 600;
}

.doc-eu-footer-left,
.doc-eu-footer-right {
  color: #374151;
  font-size: 1.95mm;
  font-weight: 600;
  line-height: 1.18;
}

.doc-eu-footer-center {
  color: #6b7280;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13.3pt;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  z-index: 2;
}

.doc-eu-logo { left: 21mm; top: 5mm; width: 70mm; height: 22mm; z-index: 2; }
.doc-eu-clinic-title { left: 117mm; top: 25mm; width: 78mm; height: 8mm; }
.doc-eu-signer-name { left: 21mm; top: 35mm; width: 90mm; height: 5mm; }
.doc-eu-signer-license { left: 130mm; top: 35mm; width: 70mm; height: 5mm; }
.doc-eu-header-line { left: 10mm; top: 33mm; width: 196mm; }

.doc-eu-title { left: 42mm; top: 48mm; width: 132mm; height: 8mm; }
.doc-eu-location-date { left: 117mm; top: 62mm; width: 78mm; height: 6mm; }

.doc-eu-expediente-label { left: 21mm; top: 80mm; width: 28mm; height: 5mm; }
.doc-eu-expediente-value { left: 47mm; top: 80mm; width: 28mm; height: 5mm; }
.doc-eu-expediente-line { left: 47mm; top: 83mm; width: 38mm; }

.doc-eu-propietario-label { left: 21mm; top: 90mm; width: 32mm; height: 5mm; }
.doc-eu-propietario-value { left: 47mm; top: 90mm; width: 143mm; height: 5mm; }
.doc-eu-propietario-line { left: 47mm; top: 93mm; width: 143mm; }

.doc-eu-domicilio-label { left: 21mm; top: 97mm; width: 32mm; height: 5mm; }
.doc-eu-domicilio-value { left: 47mm; top: 97mm; width: 143mm; height: 5mm; }
.doc-eu-domicilio-line { left: 47mm; top: 100mm; width: 143mm; }

.doc-eu-colonia-label { left: 21mm; top: 104mm; width: 30mm; height: 5mm; }
.doc-eu-colonia-value { left: 47mm; top: 104mm; width: 70mm; height: 5mm; }
.doc-eu-colonia-line { left: 47mm; top: 107mm; width: 78mm; }

.doc-eu-telefono-label { left: 130mm; top: 104mm; width: 20mm; height: 5mm; }
.doc-eu-telefono-value { left: 150mm; top: 104mm; width: 40mm; height: 5mm; }
.doc-eu-telefono-line { left: 150mm; top: 107mm; width: 40mm; }

.doc-eu-mascota-label { left: 21mm; top: 118mm; width: 45mm; height: 5mm; }
.doc-eu-mascota-value { left: 65mm; top: 118mm; width: 47mm; height: 5mm; }
.doc-eu-mascota-line { left: 65mm; top: 121mm; width: 47mm; }

.doc-eu-photo { left: 130mm; top: 115mm; width: 51mm; height: 38mm; }

.doc-eu-nacimiento-label { left: 21mm; top: 125mm; width: 48mm; height: 5mm; }
.doc-eu-nacimiento-value { left: 65mm; top: 125mm; width: 47mm; height: 5mm; font-size: 2.7mm; }
.doc-eu-nacimiento-line { left: 65mm; top: 128mm; width: 47mm; }

.doc-eu-especie-label { left: 21mm; top: 132mm; width: 28mm; height: 5mm; }
.doc-eu-especie-value { left: 47mm; top: 132mm; width: 65mm; height: 5mm; }
.doc-eu-especie-line { left: 47mm; top: 135mm; width: 65mm; }

.doc-eu-raza-label { left: 21mm; top: 139mm; width: 18mm; height: 5mm; }
.doc-eu-raza-value { left: 47mm; top: 139mm; width: 65mm; height: 5mm; }
.doc-eu-raza-line { left: 47mm; top: 142mm; width: 65mm; }

.doc-eu-color-label { left: 21mm; top: 146mm; width: 20mm; height: 5mm; }
.doc-eu-color-value { left: 47mm; top: 146mm; width: 65mm; height: 5mm; }
.doc-eu-color-line { left: 47mm; top: 149mm; width: 65mm; }

.doc-eu-sexo-label { left: 21mm; top: 153mm; width: 18mm; height: 5mm; }
.doc-eu-sexo-value { left: 47mm; top: 153mm; width: 65mm; height: 5mm; }
.doc-eu-sexo-line { left: 47mm; top: 156mm; width: 65mm; }

.doc-eu-intro { left: 21mm; top: 160mm; width: 174mm; height: 22mm; }

.doc-eu-option-dispose-box { left: 24mm; top: 178mm; width: 4mm; height: 4mm; }
.doc-eu-option-dispose-text { left: 31mm; top: 177mm; width: 150mm; height: 7mm; }

.doc-eu-option-return-box { left: 24mm; top: 185mm; width: 4mm; height: 4mm; }
.doc-eu-option-return-text { left: 31mm; top: 184mm; width: 150mm; height: 7mm; }

.doc-eu-observaciones-label { left: 21mm; top: 222mm; width: 40mm; height: 5mm; }
.doc-eu-observaciones-line { left: 62mm; top: 225mm; width: 120mm; }

.doc-eu-owner-signature-line { left: 21mm; top: 226mm; width: 80mm; }
.doc-eu-owner-signature-text { left: 21mm; top: 229mm; width: 80mm; height: 5mm; }

.doc-eu-vet-signature-line { left: 115mm; top: 226mm; width: 80mm; }
.doc-eu-vet-signature-name { left: 115mm; top: 229mm; width: 80mm; height: 4mm; }
.doc-eu-vet-signature-license { left: 115mm; top: 233mm; width: 80mm; height: 4mm; }

.doc-eu-footer-line { left: 10mm; top: 259mm; width: 196mm; }
.doc-eu-footer-left { left: 21mm; top: 261mm; width: 75mm; height: 8mm; }
.doc-eu-footer-center { left: 92mm; top: 261mm; width: 32mm; height: 6mm; }
.doc-eu-footer-right { left: 142mm; top: 261mm; width: 60mm; height: 8mm; text-align: right; }

.document-letter-euthanasia-modern-v2 .doc-eu-title {
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: 4mm;
  font-weight: 700;
  line-height: 1.12;
  text-align: center;
  text-transform: uppercase;
}

.document-letter-euthanasia-modern-v2 .doc-eu-modern-location-date,
.document-letter-euthanasia-modern-v2 .doc-eu-modern-owner-row,
.document-letter-euthanasia-modern-v2 .doc-eu-modern-pet-row,
.document-letter-euthanasia-modern-v2 .doc-eu-modern-legal-block,
.document-letter-euthanasia-modern-v2 .doc-eu-modern-flow-block,
.document-letter-euthanasia-modern-v2 .document-modern-euthanasia-flow,
.document-letter-euthanasia-modern-v2 .doc-eu-modern-options-block,
.document-letter-euthanasia-modern-v2 .doc-eu-modern-option-text,
.document-letter-euthanasia-modern-v2 .document-modern-euthanasia-option,
.document-letter-euthanasia-modern-v2 .doc-eu-signature-text,
.document-letter-euthanasia-modern-v2 .doc-eu-vet-signature-name,
.document-letter-euthanasia-modern-v2 .doc-eu-vet-signature-license {
  color: #111827;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: var(--modern-content-font-size, 3.5mm);
  font-weight: 400;
  line-height: var(--modern-content-line-height, 1.18);
  text-transform: none;
  z-index: 2;
}

.document-letter-euthanasia-modern-v2 .doc-eu-modern-location-date {
  text-align: right;
}

.document-letter-euthanasia-modern-v2 .doc-eu-modern-owner-row,
.document-letter-euthanasia-modern-v2 .doc-eu-modern-pet-row {
  box-sizing: border-box;
  position: absolute;
}

.document-letter-euthanasia-modern-v2 .doc-eu-modern-pet-row {
  border-bottom: 1px solid var(--modern-pet-line-color, #d1d1d1);
  height: 6mm;
}

.document-letter-euthanasia-modern-v2 .doc-eu-modern-field-label,
.document-letter-euthanasia-modern-v2 .doc-eu-modern-field-value {
  display: block;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: var(--modern-content-font-size, 3.5mm);
  line-height: var(--modern-content-line-height, 1.18);
  overflow: hidden;
  position: absolute;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-letter-euthanasia-modern-v2 .doc-eu-modern-field-label {
  color: #1f2937;
  font-weight: var(--modern-field-label-weight, 700);
}

.document-letter-euthanasia-modern-v2 .doc-eu-modern-field-value {
  color: #111827;
  font-weight: var(--modern-field-value-weight, 400);
}

.document-letter-euthanasia-modern-v2 .document-pet-photo-frame {
  background: #fff;
  border: 0.3mm solid #d7dde8;
  border-radius: 3mm;
  box-sizing: border-box;
  height: 38mm;
  overflow: hidden;
  width: 51mm;
}

.document-letter-euthanasia-modern-v2 .document-pet-photo-frame img,
.document-letter-euthanasia-modern-v2 .document-pet-photo-img {
  background: #fff;
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  width: 100%;
}

.document-letter-euthanasia-modern-v2 .document-modern-legal-block,
.document-letter-euthanasia-modern-v2 .doc-eu-modern-legal-block,
.document-letter-euthanasia-modern-v2 .document-modern-euthanasia-flow,
.document-letter-euthanasia-modern-v2 .doc-eu-modern-flow-block {
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: var(--modern-content-font-size, 3.5mm);
  font-weight: 400;
  line-height: var(--modern-content-line-height, 1.18);
  max-height: 48mm;
  overflow: hidden;
  position: absolute;
  text-align: justify;
  text-transform: none;
  z-index: 2;
}

.document-letter-euthanasia-modern-v2 .document-modern-legal-block p,
.document-letter-euthanasia-modern-v2 .doc-eu-modern-legal-block p,
.document-letter-euthanasia-modern-v2 .document-modern-euthanasia-flow p,
.document-letter-euthanasia-modern-v2 .doc-eu-modern-flow-block p {
  margin: 0;
  padding: 0;
}

.document-letter-euthanasia-modern-v2 .document-modern-euthanasia-flow,
.document-letter-euthanasia-modern-v2 .doc-eu-modern-flow-block {
  left: 21mm;
  top: 158mm;
  width: 174mm;
}

.document-letter-euthanasia-modern-v2 .document-modern-euthanasia-options {
  margin-top: calc(3.5mm * 1.18);
  padding: 0;
}

.document-letter-euthanasia-modern-v2 .document-modern-euthanasia-option {
  align-items: center;
  display: flex;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: var(--modern-content-font-size, 3.5mm);
  font-weight: 400;
  gap: 2.5mm;
  line-height: var(--modern-content-line-height, 1.18);
  margin: 0 0 1.5mm 0;
  min-height: calc(3.5mm * 1.18);
  padding: 0;
  text-transform: none;
}

.document-letter-euthanasia-modern-v2 .document-modern-euthanasia-checkbox {
  border: 0.3mm solid #111827;
  box-sizing: border-box;
  flex: 0 0 auto;
  height: 4mm;
  width: 4mm;
}

.document-letter-euthanasia-modern-v2 .doc-eu-modern-options-block {
  position: absolute;
}

.document-letter-euthanasia-modern-v2 .doc-eu-option-box {
  background: transparent;
  border: 0.3mm solid #111827;
  box-sizing: border-box;
  z-index: 2;
}

.document-letter-euthanasia-modern-v2 .doc-eu-signature-line,
.document-letter-euthanasia-modern-v2 .doc-eu-footer-line,
.document-letter-euthanasia-modern-v2 .doc-eu-header-line {
  background: transparent;
}

.document-letter-euthanasia-modern-v2 .doc-eu-signature-line {
  border-top: 0.3mm solid rgba(17, 24, 39, 0.85);
  height: 0;
  z-index: 2;
}

.document-letter-euthanasia-modern-v2 .doc-eu-signature-text,
.document-letter-euthanasia-modern-v2 .doc-eu-vet-signature-name,
.document-letter-euthanasia-modern-v2 .doc-eu-vet-signature-license {
  font-weight: 400;
  text-align: center;
}

.doc-brd-label,
.doc-brd-value,
.doc-brd-signature-text,
.doc-brd-footer-left,
.doc-brd-footer-right,
.doc-brd-charge-label {
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  z-index: 2;
}

.doc-brd-label,
.doc-brd-value {
  font-size: 3.1mm;
  line-height: 1;
}

.doc-brd-label,
.doc-brd-charge-label {
  font-weight: 700;
}

.doc-brd-value {
  font-weight: 500;
}

.doc-brd-line,
.doc-brd-header-line,
.doc-brd-footer-line,
.doc-brd-signature-line,
.doc-brd-charge-line,
.doc-brd-entry-date-line,
.doc-brd-exit-date-line {
  background: rgba(17, 24, 39, 0.7);
}

.doc-brd-header-line,
.doc-brd-footer-line,
.doc-brd-signature-line,
.doc-brd-entry-date-line,
.doc-brd-exit-date-line {
  height: 0.3mm;
}

.doc-brd-line,
.doc-brd-charge-line {
  height: 0.2mm;
}

.doc-brd-clinic-title {
  color: #4b5563;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 6.5mm;
  font-weight: 700;
  letter-spacing: 0;
  text-align: right;
  text-transform: uppercase;
  z-index: 2;
}

.doc-brd-signer-name,
.doc-brd-signer-license {
  color: #374151;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2.4mm;
  font-weight: 700;
  line-height: 1.1;
  z-index: 2;
}

.doc-brd-signer-license {
  text-align: right;
}

.doc-brd-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 4.4mm;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  z-index: 2;
}

.doc-brd-entry-date-label,
.doc-brd-exit-date-label {
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 3.1mm;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
}

.doc-brd-location-date {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 3.1mm;
  font-weight: 700;
  text-align: right;
  text-transform: uppercase;
  z-index: 2;
}

.doc-brd-paragraph {
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 3mm;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.1;
  text-align: justify;
  text-transform: uppercase;
  z-index: 2;
}

.doc-brd-signature-text {
  font-size: 3mm;
  font-weight: 600;
  line-height: 1.12;
  text-align: center;
  text-transform: uppercase;
}

.doc-brd-footer-left,
.doc-brd-footer-right {
  color: #374151;
  font-size: 1.95mm;
  font-weight: 600;
  line-height: 1.18;
}

.doc-brd-footer-center {
  color: #6b7280;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13.3pt;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  z-index: 2;
}

.doc-brd-charge-label {
  color: #111827;
  font-size: 2.45mm;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.doc-brd-logo { left: 21mm; top: 5mm; width: 70mm; height: 22mm; z-index: 2; }
.doc-brd-clinic-title { left: 117mm; top: 25mm; width: 78mm; height: 8mm; }
.doc-brd-signer-name { left: 21mm; top: 35mm; width: 90mm; height: 5mm; }
.doc-brd-signer-license { left: 130mm; top: 35mm; width: 70mm; height: 5mm; }
.doc-brd-header-line { left: 10mm; top: 33mm; width: 196mm; }

.doc-brd-title { left: 58mm; top: 49mm; width: 100mm; height: 8mm; }

.doc-brd-expediente-label { left: 21mm; top: 80mm; width: 28mm; height: 5mm; }
.doc-brd-expediente-value { left: 47mm; top: 80mm; width: 28mm; height: 5mm; }
.doc-brd-expediente-line { left: 47mm; top: 83mm; width: 38mm; }

.doc-brd-propietario-label { left: 21mm; top: 90mm; width: 32mm; height: 5mm; }
.doc-brd-propietario-value { left: 47mm; top: 90mm; width: 143mm; height: 5mm; }
.doc-brd-propietario-line { left: 47mm; top: 93mm; width: 143mm; }

.doc-brd-domicilio-label { left: 21mm; top: 97mm; width: 32mm; height: 5mm; }
.doc-brd-domicilio-value { left: 47mm; top: 97mm; width: 143mm; height: 5mm; }
.doc-brd-domicilio-line { left: 47mm; top: 100mm; width: 143mm; }

.doc-brd-colonia-label { left: 21mm; top: 104mm; width: 30mm; height: 5mm; }
.doc-brd-colonia-value { left: 47mm; top: 104mm; width: 70mm; height: 5mm; }
.doc-brd-colonia-line { left: 47mm; top: 107mm; width: 78mm; }

.doc-brd-telefono-label { left: 130mm; top: 104mm; width: 20mm; height: 5mm; }
.doc-brd-telefono-value { left: 150mm; top: 104mm; width: 40mm; height: 5mm; }
.doc-brd-telefono-line { left: 150mm; top: 107mm; width: 40mm; }

.doc-brd-mascota-label { left: 21mm; top: 118mm; width: 45mm; height: 5mm; }
.doc-brd-mascota-value { left: 65mm; top: 118mm; width: 47mm; height: 5mm; }
.doc-brd-mascota-line { left: 65mm; top: 121mm; width: 47mm; }

.doc-brd-photo { left: 130mm; top: 115mm; width: 51mm; height: 38mm; }

.doc-brd-nacimiento-label { left: 21mm; top: 125mm; width: 48mm; height: 5mm; }
.doc-brd-nacimiento-value { left: 65mm; top: 125mm; width: 47mm; height: 5mm; }
.doc-brd-nacimiento-line { left: 65mm; top: 128mm; width: 47mm; }

.doc-brd-especie-label { left: 21mm; top: 132mm; width: 28mm; height: 5mm; }
.doc-brd-especie-value { left: 47mm; top: 132mm; width: 65mm; height: 5mm; }
.doc-brd-especie-line { left: 47mm; top: 135mm; width: 65mm; }

.doc-brd-raza-label { left: 21mm; top: 139mm; width: 18mm; height: 5mm; }
.doc-brd-raza-value { left: 47mm; top: 139mm; width: 65mm; height: 5mm; }
.doc-brd-raza-line { left: 47mm; top: 142mm; width: 65mm; }

.doc-brd-color-label { left: 21mm; top: 146mm; width: 20mm; height: 5mm; }
.doc-brd-color-value { left: 47mm; top: 146mm; width: 65mm; height: 5mm; }
.doc-brd-color-line { left: 47mm; top: 149mm; width: 65mm; }

.doc-brd-sexo-label { left: 21mm; top: 153mm; width: 18mm; height: 5mm; }
.doc-brd-sexo-value { left: 47mm; top: 153mm; width: 65mm; height: 5mm; }
.doc-brd-sexo-line { left: 47mm; top: 156mm; width: 65mm; }

.doc-brd-paragraph-1 { left: 21mm; top: 164mm; width: 174mm; height: 12mm; }
.doc-brd-paragraph-2 { left: 21mm; top: 178mm; width: 174mm; height: 12mm; }
.doc-brd-paragraph-3 { left: 21mm; top: 192mm; width: 174mm; height: 38mm; line-height: 1.09; }

.doc-brd-charge-bano-label { left: 11mm; top: 235mm; width: 29mm; height: 5mm; }
.doc-brd-charge-vacunas-label { left: 44mm; top: 235mm; width: 29mm; height: 5mm; }
.doc-brd-charge-hospedaje-label { left: 77mm; top: 235mm; width: 29mm; height: 5mm; }
.doc-brd-charge-total-label { left: 110mm; top: 235mm; width: 29mm; height: 5mm; }
.doc-brd-charge-anticipo-label { left: 143mm; top: 235mm; width: 29mm; height: 5mm; }
.doc-brd-charge-saldo-label { left: 176mm; top: 235mm; width: 29mm; height: 5mm; }

.doc-brd-charge-bano-line { left: 11mm; top: 232mm; width: 29mm; }
.doc-brd-charge-vacunas-line { left: 44mm; top: 232mm; width: 29mm; }
.doc-brd-charge-hospedaje-line { left: 77mm; top: 232mm; width: 29mm; }
.doc-brd-charge-total-line { left: 110mm; top: 232mm; width: 29mm; }
.doc-brd-charge-anticipo-line { left: 143mm; top: 232mm; width: 29mm; }
.doc-brd-charge-saldo-line { left: 176mm; top: 232mm; width: 29mm; }

.doc-brd-owner-signature-line { left: 21mm; top: 245mm; width: 80mm; }
.doc-brd-owner-signature-text { left: 21mm; top: 248mm; width: 80mm; height: 5mm; }

.doc-brd-footer-line { left: 10mm; top: 259mm; width: 196mm; }
.doc-brd-footer-left { left: 21mm; top: 261mm; width: 75mm; height: 8mm; }
.doc-brd-footer-center { left: 92mm; top: 261mm; width: 32mm; height: 6mm; }
.doc-brd-footer-right { left: 142mm; top: 261mm; width: 60mm; height: 8mm; text-align: right; }

.document-letter-boarding-modern-v2 .doc-brd-title {
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: 4.4mm;
  font-weight: 700;
  line-height: 1.12;
  text-align: center;
  text-transform: none;
}

.document-letter-boarding-modern-v2 .doc-brd-modern-location-date,
.document-letter-boarding-modern-v2 .doc-brd-modern-manual-label,
.document-letter-boarding-modern-v2 .doc-brd-modern-owner-row,
.document-letter-boarding-modern-v2 .doc-brd-modern-pet-row,
.document-letter-boarding-modern-v2 .doc-brd-modern-legal-block,
.document-letter-boarding-modern-v2 .doc-brd-modern-legacy-label,
.document-letter-boarding-modern-v2 .doc-brd-modern-signature-text {
  color: #111827;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: var(--modern-content-font-size, 3.5mm);
  line-height: var(--modern-content-line-height, 1.18);
  text-transform: none;
  z-index: 2;
}

.document-letter-boarding-modern-v2 .doc-brd-modern-location-date {
  font-weight: 400;
  text-align: right;
}

.document-letter-boarding-modern-v2 .doc-brd-modern-manual-label {
  font-weight: 700;
}

.document-letter-boarding-modern-v2 .doc-brd-modern-manual-line,
.document-letter-boarding-modern-v2 .doc-brd-modern-legacy-line {
  background: #d1d1d1;
}

.document-letter-boarding-modern-v2 .doc-brd-modern-owner-row,
.document-letter-boarding-modern-v2 .doc-brd-modern-pet-row {
  box-sizing: border-box;
  position: absolute;
}

.document-letter-boarding-modern-v2 .doc-brd-modern-pet-row {
  border-bottom: 1px solid var(--modern-pet-line-color, #d1d1d1);
  height: 6mm;
}

.document-letter-boarding-modern-v2 .doc-brd-modern-field-label,
.document-letter-boarding-modern-v2 .doc-brd-modern-field-value {
  display: block;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: var(--modern-content-font-size, 3.5mm);
  line-height: var(--modern-content-line-height, 1.18);
  overflow: hidden;
  position: absolute;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-letter-boarding-modern-v2 .doc-brd-modern-field-label {
  font-weight: var(--modern-field-label-weight, 700);
}

.document-letter-boarding-modern-v2 .doc-brd-modern-field-value {
  font-weight: var(--modern-field-value-weight, 400);
}

.document-letter-boarding-modern-v2 .document-pet-photo-frame {
  background: #fff;
  border: 0.3mm solid #d7dde8;
  border-radius: 3mm;
  box-sizing: border-box;
  height: 38mm;
  overflow: hidden;
  width: 51mm;
}

.document-letter-boarding-modern-v2 .document-pet-photo-frame img,
.document-letter-boarding-modern-v2 .document-pet-photo-img {
  background: #fff;
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  width: 100%;
}

.document-letter-boarding-modern-v2 .document-modern-legal-block,
.document-letter-boarding-modern-v2 .doc-brd-modern-legal-block {
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: var(--modern-content-font-size, 3.5mm);
  font-weight: 400;
  line-height: var(--modern-content-line-height, 1.18);
  max-height: 62mm;
  overflow: hidden;
  position: absolute;
  text-align: justify;
  text-transform: none;
  z-index: 2;
}

.document-letter-boarding-modern-v2 .document-modern-legal-block p,
.document-letter-boarding-modern-v2 .doc-brd-modern-legal-block p {
  margin: 0;
  padding: 0;
}

.document-letter-boarding-modern-v2 .document-modern-legal-block p + p,
.document-letter-boarding-modern-v2 .doc-brd-modern-legal-block p + p {
  margin-top: var(--modern-paragraph-gap, calc(3.5mm * 1.18 * 2));
}

.document-letter-boarding-modern-v2 .doc-brd-modern-legacy-label {
  font-weight: 400;
  text-align: center;
}

.document-letter-boarding-modern-v2 .doc-brd-owner-signature-line {
  background: rgba(17, 24, 39, 0.7);
}

.document-letter-boarding-modern-v2 .doc-brd-modern-signature-text {
  font-weight: 400;
  text-align: center;
}

.doc-srg-logo { left: 21mm; top: 5mm; width: 70mm; height: 22mm; z-index: 2; }
.doc-srg-clinic-title { left: 117mm; top: 25mm; width: 78mm; height: 8mm; }
.doc-srg-signer-name { left: 21mm; top: 35mm; width: 90mm; height: 5mm; }
.doc-srg-signer-license { left: 130mm; top: 35mm; width: 70mm; height: 5mm; }
.doc-srg-header-line { left: 10mm; top: 33mm; width: 196mm; }

.doc-srg-title { left: 28mm; top: 49mm; width: 160mm; height: 8mm; }
.doc-srg-location-date { left: 117mm; top: 64mm; width: 78mm; height: 6mm; }

.doc-srg-expediente-label { left: 21mm; top: 80mm; width: 28mm; height: 5mm; }
.doc-srg-expediente-value { left: 47mm; top: 80mm; width: 28mm; height: 5mm; }
.doc-srg-expediente-line { left: 47mm; top: 83mm; width: 38mm; }

.doc-srg-propietario-label { left: 21mm; top: 90mm; width: 32mm; height: 5mm; }
.doc-srg-propietario-value { left: 47mm; top: 90mm; width: 143mm; height: 5mm; }
.doc-srg-propietario-line { left: 47mm; top: 93mm; width: 143mm; }

.doc-srg-domicilio-label { left: 21mm; top: 97mm; width: 32mm; height: 5mm; }
.doc-srg-domicilio-value { left: 47mm; top: 97mm; width: 143mm; height: 5mm; }
.doc-srg-domicilio-line { left: 47mm; top: 100mm; width: 143mm; }

.doc-srg-colonia-label { left: 21mm; top: 104mm; width: 30mm; height: 5mm; }
.doc-srg-colonia-value { left: 47mm; top: 104mm; width: 70mm; height: 5mm; }
.doc-srg-colonia-line { left: 47mm; top: 107mm; width: 78mm; }

.doc-srg-telefono-label { left: 130mm; top: 104mm; width: 20mm; height: 5mm; }
.doc-srg-telefono-value { left: 150mm; top: 104mm; width: 40mm; height: 5mm; }
.doc-srg-telefono-line { left: 150mm; top: 107mm; width: 40mm; }

.doc-srg-mascota-label { left: 21mm; top: 118mm; width: 45mm; height: 5mm; }
.doc-srg-mascota-value { left: 65mm; top: 118mm; width: 47mm; height: 5mm; }
.doc-srg-mascota-line { left: 65mm; top: 121mm; width: 47mm; }

.doc-srg-photo { left: 130mm; top: 108mm; width: 51mm; height: 38mm; }

.doc-srg-nacimiento-label { left: 21mm; top: 125mm; width: 48mm; height: 5mm; }
.doc-srg-nacimiento-value { left: 65mm; top: 125mm; width: 47mm; height: 5mm; font-size: 2.7mm; }
.doc-srg-nacimiento-line { left: 65mm; top: 128mm; width: 47mm; }

.doc-srg-especie-label { left: 21mm; top: 132mm; width: 28mm; height: 5mm; }
.doc-srg-especie-value { left: 47mm; top: 132mm; width: 65mm; height: 5mm; }
.doc-srg-especie-line { left: 47mm; top: 135mm; width: 65mm; }

.doc-srg-raza-label { left: 21mm; top: 139mm; width: 18mm; height: 5mm; }
.doc-srg-raza-value { left: 47mm; top: 139mm; width: 65mm; height: 5mm; }
.doc-srg-raza-line { left: 47mm; top: 142mm; width: 65mm; }

.doc-srg-color-label { left: 21mm; top: 146mm; width: 20mm; height: 5mm; }
.doc-srg-color-value { left: 47mm; top: 146mm; width: 65mm; height: 5mm; }
.doc-srg-color-line { left: 47mm; top: 149mm; width: 65mm; }

.doc-srg-sexo-label { left: 21mm; top: 153mm; width: 18mm; height: 5mm; }
.doc-srg-sexo-value { left: 47mm; top: 153mm; width: 65mm; height: 5mm; }
.doc-srg-sexo-line { left: 47mm; top: 156mm; width: 65mm; }

.doc-srg-paragraph-1 { left: 21mm; top: 156mm; width: 174mm; height: 58mm; }
.doc-srg-paragraph-2 { left: 21mm; top: 192mm; width: 174mm; height: 14mm; }

.doc-srg-owner-signature-line { left: 21mm; top: 234mm; width: 80mm; }
.doc-srg-owner-signature-text { left: 21mm; top: 238mm; width: 80mm; height: 5mm; }

.doc-srg-vet-signature-line { left: 115mm; top: 234mm; width: 80mm; }
.doc-srg-vet-signature-name { left: 115mm; top: 238mm; width: 80mm; height: 4mm; }
.doc-srg-vet-signature-license { left: 115mm; top: 243mm; width: 80mm; height: 4mm; }

.doc-srg-footer-line { left: 10mm; top: 259mm; width: 196mm; }
.doc-srg-footer-left { left: 21mm; top: 261mm; width: 75mm; height: 8mm; }
.doc-srg-footer-center { left: 92mm; top: 261mm; width: 32mm; height: 6mm; }
.doc-srg-footer-right { left: 142mm; top: 261mm; width: 60mm; height: 8mm; text-align: right; }

.document-letter-surgery-modern-v2 {
  --modern-content-font-family: "Helvetica", Arial, sans-serif;
  --modern-content-font-size: 3.5mm;
  --modern-content-line-height: 1.18;
  --modern-paragraph-gap: calc(3.5mm * 1.18 * 2);
  --modern-field-label-weight: 700;
  --modern-field-value-weight: 400;
  --modern-row-gap-owner: 6mm;
  --modern-pet-line-color: #d1d1d1;
  font-family: var(--modern-content-font-family);
}

.document-letter-surgery-modern-v2 .document-letter-watermark {
  display: none !important;
}

.document-letter-surgery-modern-v2 .doc-srg-title {
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: 4mm;
  font-weight: 700;
  line-height: 1.12;
  text-align: center;
  text-transform: uppercase;
}

.document-letter-surgery-modern-v2 .doc-srg-modern-location-date,
.document-letter-surgery-modern-v2 .doc-srg-modern-owner-row,
.document-letter-surgery-modern-v2 .doc-srg-modern-pet-row,
.document-letter-surgery-modern-v2 .doc-srg-modern-legal-block,
.document-letter-surgery-modern-v2 .doc-srg-modern-signature-text,
.document-letter-surgery-modern-v2 .doc-srg-vet-signature-name,
.document-letter-surgery-modern-v2 .doc-srg-vet-signature-license {
  color: #111827;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: var(--modern-content-font-size, 3.5mm);
  font-weight: 400;
  line-height: var(--modern-content-line-height, 1.18);
  text-transform: none;
  z-index: 2;
}

.document-letter-surgery-modern-v2 .doc-srg-modern-location-date {
  text-align: right;
}

.document-letter-surgery-modern-v2 .doc-srg-modern-owner-row,
.document-letter-surgery-modern-v2 .doc-srg-modern-pet-row {
  box-sizing: border-box;
  position: absolute;
}

.document-letter-surgery-modern-v2 .doc-srg-modern-pet-row {
  border-bottom: 1px solid var(--modern-pet-line-color, #d1d1d1);
  height: 6mm;
}

.document-letter-surgery-modern-v2 .doc-srg-modern-field-label,
.document-letter-surgery-modern-v2 .doc-srg-modern-field-value {
  display: block;
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: var(--modern-content-font-size, 3.5mm);
  line-height: var(--modern-content-line-height, 1.18);
  overflow: hidden;
  position: absolute;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-letter-surgery-modern-v2 .doc-srg-modern-field-label {
  color: #1f2937;
  font-weight: var(--modern-field-label-weight, 700);
}

.document-letter-surgery-modern-v2 .doc-srg-modern-field-value {
  color: #111827;
  font-weight: var(--modern-field-value-weight, 400);
}

.document-letter-surgery-modern-v2 .document-pet-photo-frame {
  background: #fff;
  border: 0.3mm solid #d7dde8;
  border-radius: 3mm;
  box-sizing: border-box;
  height: 38mm;
  overflow: hidden;
  width: 51mm;
}

.document-letter-surgery-modern-v2 .document-pet-photo-frame img,
.document-letter-surgery-modern-v2 .document-pet-photo-img {
  background: #fff;
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  width: 100%;
}

.document-letter-surgery-modern-v2 .document-modern-legal-block,
.document-letter-surgery-modern-v2 .doc-srg-modern-legal-block {
  font-family: var(--modern-content-font-family, "Helvetica", Arial, sans-serif);
  font-size: var(--modern-content-font-size, 3.5mm);
  font-weight: 400;
  line-height: var(--modern-content-line-height, 1.18);
  max-height: 72mm;
  overflow: hidden;
  position: absolute;
  text-align: justify;
  text-transform: none;
  z-index: 2;
}

.document-letter-surgery-modern-v2 .document-modern-legal-block p,
.document-letter-surgery-modern-v2 .doc-srg-modern-legal-block p {
  margin: 0;
  padding: 0;
}

.document-letter-surgery-modern-v2 .document-modern-legal-block p + p,
.document-letter-surgery-modern-v2 .doc-srg-modern-legal-block p + p {
  margin-top: var(--modern-paragraph-gap, calc(3.5mm * 1.18 * 2));
}

.surgery-modern-manual-line {
  border-bottom: 1px solid #777;
  display: inline-block;
  height: 3.6mm;
  margin: 0 1mm;
  vertical-align: baseline;
}

.surgery-modern-manual-line-procedure {
  width: 74mm;
}

.surgery-modern-manual-line-explained-by {
  width: 62mm;
}

.surgery-modern-manual-line-authorizes {
  width: 56mm;
}

.document-letter-surgery-modern-v2 .doc-srg-signature-line,
.document-letter-surgery-modern-v2 .doc-srg-footer-line,
.document-letter-surgery-modern-v2 .doc-srg-header-line {
  background: rgba(17, 24, 39, 0.7);
}

.document-modern-header-line,
.document-modern-footer-line {
  background: transparent;
  border-top: 0.3mm solid #111827;
  box-sizing: border-box;
  height: 0;
  left: 10mm;
  opacity: 1;
  width: 196mm;
  z-index: 20;
}

.document-modern-header-line {
  top: 33mm;
}

.document-modern-footer-line {
  top: 259mm;
}

.document-letter-surgery-modern-v2 .doc-srg-modern-signature-text,
.document-letter-surgery-modern-v2 .doc-srg-vet-signature-name,
.document-letter-surgery-modern-v2 .doc-srg-vet-signature-license {
  text-align: center;
}

@media print {
  .document-layout-debug {
    display: none !important;
  }

  .document-letter-voluntary {
    height: 279mm !important;
    margin: 0 !important;
    page-break-after: avoid;
    page-break-inside: avoid;
    padding: 0 !important;
    width: 216mm !important;
  }

  .document-sheet-voluntary {
    height: 279mm !important;
    width: 216mm !important;
  }

  .document-letter-age-responsiva {
    height: 279mm !important;
    margin: 0 !important;
    page-break-after: avoid;
    page-break-inside: avoid;
    padding: 0 !important;
    width: 216mm !important;
  }

  .document-sheet-age-responsiva {
    height: 279mm !important;
    width: 216mm !important;
  }

  .document-letter-microchip {
    height: 279mm !important;
    margin: 0 !important;
    page-break-after: avoid;
    page-break-inside: avoid;
    padding: 0 !important;
    width: 216mm !important;
  }

  .document-sheet-microchip {
    height: 279mm !important;
    width: 216mm !important;
  }

  .document-letter-gbg {
    height: 279mm !important;
    margin: 0 !important;
    page-break-after: avoid;
    page-break-inside: avoid;
    padding: 0 !important;
    width: 216mm !important;
  }

  .document-sheet-gbg {
    height: 279mm !important;
    width: 216mm !important;
  }

  .document-letter-treatment {
    height: 279mm !important;
    margin: 0 !important;
    page-break-after: avoid;
    page-break-inside: avoid;
    padding: 0 !important;
    width: 216mm !important;
  }

  .document-sheet-treatment {
    height: 279mm !important;
    width: 216mm !important;
  }

  .document-letter-surgery {
    height: 279mm !important;
    margin: 0 !important;
    page-break-after: avoid;
    page-break-inside: avoid;
    padding: 0 !important;
    width: 216mm !important;
  }

  .document-sheet-surgery {
    height: 279mm !important;
    width: 216mm !important;
  }

  .document-letter-euthanasia {
    height: 279mm !important;
    margin: 0 !important;
    page-break-after: avoid;
    page-break-inside: avoid;
    padding: 0 !important;
    width: 216mm !important;
  }

  .document-sheet-euthanasia {
    height: 279mm !important;
    width: 216mm !important;
  }

  .document-letter-boarding {
    height: 279mm !important;
    margin: 0 !important;
    page-break-after: avoid;
    page-break-inside: avoid;
    padding: 0 !important;
    width: 216mm !important;
  }

  .document-sheet-boarding {
    height: 279mm !important;
    width: 216mm !important;
  }

  .document-letter-good-health {
    height: 279mm !important;
    margin: 0 !important;
    page-break-after: avoid;
    page-break-inside: avoid;
    padding: 0 !important;
    width: 216mm !important;
  }

  .document-sheet-good-health {
    height: 279mm !important;
    width: 216mm !important;
  }

  .document-letter-good-health-certificate,
  .document-sheet-good-health-certificate {
    height: 279mm !important;
    margin: 0 !important;
    page-break-after: avoid;
    page-break-inside: avoid;
    padding: 0 !important;
    width: 216mm !important;
  }

  .document-letter-health-certificate {
    height: 279mm !important;
    margin: 0 !important;
    page-break-after: avoid;
    page-break-inside: avoid;
    padding: 0 !important;
    width: 216mm !important;
  }

  .document-sheet-health-certificate {
    height: 279mm !important;
    width: 216mm !important;
  }

  .debug-layout-panel,
  .debug-layout-grid,
  .debug-measurement-table,
  .layout-debug,
  .document-debug,
  .document-layout-debug,
  .no-print,
  .document-toolbar,
  .selector-panel,
  .preview-card-title,
  .app-header,
  .navbar,
  .sidebar,
  .page-title {
    display: none !important;
  }

  .document-letter-voluntary {
    border: none !important;
    box-shadow: none !important;
    height: 279mm !important;
    left: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    page-break-after: avoid !important;
    page-break-before: avoid !important;
    page-break-inside: avoid !important;
    position: fixed !important;
    top: 0 !important;
    width: 216mm !important;
  }

  .document-letter-voluntary .document-sheet-voluntary,
  .document-letter-voluntary .document-letter-modern-v2 {
    height: 279mm !important;
    margin: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: 216mm !important;
  }

  .document-letter-voluntary .doc-vol-modern-legal-block,
  .document-letter-voluntary .document-modern-legal-block {
    max-height: 64mm !important;
    overflow: hidden !important;
  }

  .document-letter-voluntary .document-preview-scale,
  .document-letter-voluntary .document-print-host,
  .document-letter-voluntary .document-preview-card,
  .document-letter-voluntary .document-letter-shell {
    border: none !important;
    box-shadow: none !important;
    height: 279mm !important;
    margin: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    transform: none !important;
    width: 216mm !important;
  }

  body:has(.document-letter-modern-v2) .document-preview-scale,
  body:has(.document-letter-modern-v2) .document-print-host,
  body:has(.document-letter-modern-v2) .document-preview-card,
  body:has(.document-letter-modern-v2) .document-letter-shell {
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    transform: none !important;
  }

  html:has(.document-letter-modern-v2),
  body:has(.document-letter-modern-v2) {
    background: #fff !important;
    height: 279mm !important;
    margin: 0 !important;
    max-height: 279mm !important;
    max-width: 216mm !important;
    min-height: 279mm !important;
    min-width: 216mm !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: 216mm !important;
  }

  body:has(.document-letter-modern-v2) {
    position: relative !important;
  }

  body:has(.document-letter-modern-v2) .rmv-page-header,
  body:has(.document-letter-modern-v2) .rmv-document-generator-form,
  body:has(.document-letter-modern-v2) .rmv-document-preview-toolbar,
  body:has(.document-letter-modern-v2) .rmv-document-debug-measurements,
  body:has(.document-letter-modern-v2) .debug-layout-panel,
  body:has(.document-letter-modern-v2) .debug-layout-grid,
  body:has(.document-letter-modern-v2) .debug-measurement-table,
  body:has(.document-letter-modern-v2) .layout-debug,
  body:has(.document-letter-modern-v2) .document-debug,
  body:has(.document-letter-modern-v2) .document-layout-debug,
  body:has(.document-letter-modern-v2) .no-print,
  body:has(.document-letter-modern-v2) .document-toolbar,
  body:has(.document-letter-modern-v2) .selector-panel,
  body:has(.document-letter-modern-v2) .preview-card-title,
  body:has(.document-letter-modern-v2) .app-header,
  body:has(.document-letter-modern-v2) .navbar,
  body:has(.document-letter-modern-v2) .sidebar,
  body:has(.document-letter-modern-v2) .page-title {
    display: none !important;
  }

  body:has(.document-letter-modern-v2) .rmv-document-generator-layout,
  body:has(.document-letter-modern-v2) .document-preview-card,
  body:has(.document-letter-modern-v2) .document-print-root,
  body:has(.document-letter-modern-v2) .document-print-host,
  body:has(.document-letter-modern-v2) .document-preview-scale {
    background: #fff !important;
    border: 0 !important;
    box-shadow: none !important;
    display: block !important;
    height: 279mm !important;
    left: 0 !important;
    margin: 0 !important;
    max-height: 279mm !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: fixed !important;
    top: 0 !important;
    transform: none !important;
    width: 216mm !important;
  }

  body:has(.document-letter-modern-v2) .document-print-root > *:not(.document-print-host),
  body:has(.document-letter-modern-v2) .document-print-host > *:not(.document-preview-scale),
  body:has(.document-letter-modern-v2) .document-preview-scale > *:not(.document-letter) {
    display: none !important;
  }

  body:has(.document-letter-modern-v2) .document-letter {
    background: #fff !important;
    border: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    break-after: avoid !important;
    break-before: avoid !important;
    break-inside: avoid !important;
    display: block !important;
    height: 279mm !important;
    left: 0 !important;
    margin: 0 !important;
    max-height: 279mm !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    page-break-after: avoid !important;
    page-break-before: avoid !important;
    page-break-inside: avoid !important;
    position: absolute !important;
    top: 0 !important;
    width: 216mm !important;
  }

  body:has(.document-letter-modern-v2) .document-logo-box,
  body:has(.document-letter-modern-v2) .document-logo-box *,
  body:has(.document-letter-modern-v2) .document-logo-img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body:has(.document-letter-modern-v2) .document-logo-box {
    position: absolute !important;
    left: 21mm !important;
    top: 9mm !important;
    width: 70mm !important;
    height: 22mm !important;
    overflow: visible !important;
    z-index: 10 !important;
  }

  body:has(.document-letter-modern-v2) .document-logo-img {
    height: 22mm !important;
    width: auto !important;
    max-width: 70mm !important;
    object-fit: contain !important;
    object-position: left bottom !important;
  }

  body:has(.document-letter-modern-v2) .document-modern-header-line,
  body:has(.document-letter-modern-v2) .document-modern-footer-line {
    background: transparent !important;
    border-top: 0.3mm solid #111827 !important;
    box-sizing: border-box !important;
    display: block !important;
    height: 0 !important;
    left: 10mm !important;
    opacity: 1 !important;
    overflow: visible !important;
    position: absolute !important;
    print-color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
    visibility: visible !important;
    width: 196mm !important;
    z-index: 20 !important;
  }

  body:has(.document-letter-modern-v2) .document-modern-header-line {
    top: 33mm !important;
  }

  body:has(.document-letter-modern-v2) .document-modern-footer-line {
    top: 259mm !important;
  }
}

/* 04.8S.6B.2C: Patologia usa pagina nombrada despues de los @page globales de cartas. */
@media print {
  @page pathology-report-page {
    size: Letter portrait;
    margin: 12mm 14mm 14mm 14mm;
  }

  .pathology-print-root {
    page: pathology-report-page;
  }

  .pathology-print-root,
  .pathology-report-sheet,
  .pathology-report-safe-area,
  .pathology-report-print {
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
  }

  .pathology-report-safe-area {
    padding-left: 14mm !important;
    padding-right: 14mm !important;
  }
}

.rmv-notifications {
  position: relative;
}

.rmv-notifications-button,
.rmv-notification-bell {
  align-items: center;
  background: rgba(13, 110, 253, .08);
  border: 1px solid rgba(13, 110, 253, .35);
  border-radius: 999px;
  color: #0d6efd;
  display: inline-flex;
  height: 2.25rem;
  justify-content: center;
  line-height: 1;
  min-width: 0;
  position: relative;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
  width: 2.25rem;
}

.rmv-notifications-button:hover,
.rmv-notifications-button:focus,
.rmv-notification-bell:hover,
.rmv-notification-bell:focus {
  background: rgba(13, 110, 253, .14);
  border-color: rgba(13, 110, 253, .65);
  color: #0a58ca;
  transform: translateY(-1px);
}

.rmv-notifications-button:focus-visible,
.rmv-notification-bell:focus-visible {
  box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .18);
  outline: 0;
}

.rmv-notifications-button::after {
  display: none;
}

.rmv-notifications-button.show,
.rmv-notification-bell.show,
.rmv-notifications.has-unread .rmv-notifications-button {
  background: rgba(13, 110, 253, .12);
  border-color: rgba(13, 110, 253, .58);
  color: #0d6efd;
  text-align: center;
}

.rmv-notifications-icon {
  font-size: 1.05rem;
}

.rmv-notifications-badge,
.rmv-notification-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 .28rem;
  border-radius: 999px;
  background: var(--bs-danger, #dc3545);
  border: 1px solid #fff;
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1.15rem;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

.rmv-notifications.has-unread .rmv-notifications-icon {
  color: #0d6efd;
}

.rmv-notifications-menu {
  width: min(22rem, calc(100vw - 1.5rem));
  padding: 0;
  overflow: hidden;
  border-color: #dbeafe;
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, .14);
}

.rmv-notifications-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem .85rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fbff;
}

.rmv-notifications-mark-all,
.rmv-notifications-item-read,
.rmv-notifications-item-link {
  padding: 0;
  color: #0d6efd;
  text-decoration: none;
  font-size: .78rem;
}

.rmv-notifications-list {
  max-height: 24rem;
  overflow-y: auto;
}

.rmv-notifications-empty {
  padding: 1rem;
  color: #6b7280;
  font-size: .88rem;
}

.rmv-notifications-item {
  display: grid;
  grid-template-columns: 1.9rem minmax(0, 1fr);
  gap: .65rem;
  padding: .75rem .85rem;
  border-bottom: 1px solid #eef2f7;
}

.rmv-notifications-item:last-child {
  border-bottom: 0;
}

.rmv-notifications-item-icon {
  display: inline-flex;
  width: 1.9rem;
  height: 1.9rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eff6ff;
  color: #0d6efd;
}

.rmv-notifications-item-content {
  min-width: 0;
}

.rmv-notifications-item-title {
  color: #111827;
  font-weight: 700;
  font-size: .88rem;
}

.rmv-notifications-item-body {
  margin-top: .1rem;
  color: #4b5563;
  font-size: .8rem;
  line-height: 1.3;
}

.rmv-notifications-item-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin-top: .35rem;
}

.rmv-notifications-item-time {
  margin-left: auto;
  color: #94a3b8;
  font-size: .72rem;
}


.rmv-notifications-diagnostics {
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
  padding: .65rem .85rem;
  color: #475569;
  font-size: .72rem;
}

.rmv-notifications-diagnostics summary {
  color: #0d6efd;
  cursor: pointer;
  font-weight: 700;
  list-style-position: inside;
}

.rmv-notifications-diagnostics-grid {
  display: grid;
  grid-template-columns: minmax(6.5rem, auto) minmax(0, 1fr);
  gap: .2rem .55rem;
  margin: .55rem 0;
}

.rmv-notifications-diagnostics-grid dt {
  color: #64748b;
  font-weight: 700;
}

.rmv-notifications-diagnostics-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.rmv-notifications-diagnostics-counts {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin: .4rem 0 .55rem;
}

.rmv-notifications-diagnostics-counts span {
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  padding: .12rem .4rem;
}

.rmv-notifications-diagnostics-title {
  color: #334155;
  font-weight: 700;
  margin-bottom: .25rem;
}

.rmv-notifications-diagnostics-rows {
  display: grid;
  gap: .25rem;
}

.rmv-notifications-diagnostics-row {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: .35rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  padding: .35rem .45rem;
}
@media (prefers-reduced-motion: reduce) {
  .rmv-notifications-button,
  .rmv-notification-bell {
    transition: none;
  }

  .rmv-notifications-button:hover,
  .rmv-notifications-button:focus,
  .rmv-notification-bell:hover,
  .rmv-notification-bell:focus {
    transform: none;
  }
}

.tenant-home-hero {
  align-items: center;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
}

.tenant-home-hero-main,
.tenant-home-hero-context {
  min-width: 0;
}

.tenant-home-hero-context {
  text-align: right;
}

.rmv-icon-agenda,
.rmv-action-agenda .bi,
.rmv-footer-action-agenda .bi {
  color: var(--rmv-color-agenda);
}

.rmv-icon-vaccines,
.rmv-footer-action-revaccination .rmv-vaccine-icon,
.dashboard-action-icon--revaccination .rmv-vaccine-icon {
  color: var(--rmv-color-vaccines);
}

.rmv-vaccine-icon {
  background-color: currentColor;
  display: inline-block;
  flex: 0 0 auto;
  height: 1em;
  -webkit-mask: url('/img/icons/vacunas.svg') center / contain no-repeat;
  mask: url('/img/icons/vacunas.svg') center / contain no-repeat;
  vertical-align: -0.125em;
  width: 1em;
}

.rmv-vaccine-icon--dashboard {
  height: 4rem;
  width: 4rem;
}

.rmv-vaccine-icon--footer {
  height: 1.15rem;
  width: 1.15rem;
}

.rmv-btn-agenda .bi,
.rmv-btn-agenda .rmv-icon-agenda,
.rmv-report-agenda-icon .bi {
  color: currentColor;
}

@media (max-width: 768px) {
  .tenant-home-hero {
    grid-template-columns: 1fr;
  }

  .tenant-home-hero-context {
    text-align: left;
  }
}









.email-admin-grid {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.email-admin-card {
  background: #fff;
  border: 1px solid rgba(13, 110, 253, .14);
  border-radius: .5rem;
  box-shadow: 0 .35rem 1rem rgba(15, 23, 42, .04);
  padding: 1rem;
}

.email-admin-card--wide {
  grid-column: 1 / -1;
}

.email-admin-card-header {
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: .75rem;
  padding-bottom: .75rem;
}

.email-provider-summary {
  display: grid;
  gap: .75rem;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
}

.email-summary-label,
.email-inline-field span,
.email-count-grid span {
  color: #64748b;
  display: block;
  font-size: .75rem;
  font-weight: 700;
}

.email-summary-value,
.email-inline-field strong,
.email-count-grid strong {
  color: #111827;
  font-size: .9rem;
  font-weight: 700;
}

.email-setting-row {
  align-items: center;
  border-top: 1px solid #eef2f7;
  display: grid;
  gap: .75rem 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, auto);
  padding: .8rem 0;
}

.email-setting-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.email-setting-main {
  min-width: 0;
}

.email-setting-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem .85rem;
  justify-content: flex-end;
}

.email-setting-actions {
  display: flex;
  justify-content: flex-end;
  min-width: 8rem;
}

.email-inline-field {
  min-width: 5.5rem;
}

.email-status-badge {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-size: .75rem;
  font-weight: 800;
  padding: .2rem .55rem;
}

.email-status-badge--configured {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #198754;
}

.email-status-badge--pending {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #475569;
}

.email-status-badge--error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.email-manual-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  justify-content: space-between;
}

.email-manual-copy {
  color: #64748b;
  font-size: .84rem;
}

.email-count-grid {
  display: grid;
  gap: .55rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.email-count-grid > div {
  background: #f8fbff;
  border: 1px solid #dbeafe;
  border-radius: .45rem;
  padding: .55rem .65rem;
}

@media (max-width: 991.98px) {
  .email-admin-grid,
  .email-provider-summary,
  .email-setting-row,
  .email-count-grid {
    grid-template-columns: 1fr;
  }

  .email-admin-card-header,
  .email-manual-row,
  .email-setting-controls,
  .email-setting-actions {
    align-items: flex-start;
    justify-content: flex-start;
  }
}
.email-readonly-list {
  display: grid;
  gap: .45rem;
}

.email-readonly-list > div {
  display: grid;
  grid-template-columns: minmax(5.5rem, 8rem) 1fr;
  gap: .75rem;
  align-items: baseline;
}

.email-readonly-list dt {
  margin: 0;
  color: #6c757d;
  font-size: .78rem;
  font-weight: 600;
}

.email-readonly-list dd {
  margin: 0;
  color: #1f2937;
  font-size: .88rem;
  overflow-wrap: anywhere;
}

.email-inline-select {
  display: grid;
  gap: .2rem;
  min-width: 5.25rem;
}

.email-inline-select span {
  color: #6c757d;
  font-size: .74rem;
  font-weight: 600;
}

.email-inline-select .form-select-sm {
  min-width: 5.25rem;
  padding-top: .2rem;
  padding-bottom: .2rem;
}

.email-unsaved-indicator {
  color: #b7791f;
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
}

.email-manual-details > summary {
  cursor: pointer;
  list-style: none;
}

.email-manual-details > summary::-webkit-details-marker {
  display: none;
}

.email-manual-summary::after {
  color: #6c757d;
  content: "Abrir";
  font-size: .78rem;
  font-weight: 600;
  margin-left: .5rem;
}

.email-manual-details[open] .email-manual-summary::after {
  content: "Cerrar";
}

.email-manual-details-body {
  border-top: 1px solid #e5e7eb;
  margin-top: .75rem;
  padding-top: .75rem;
}

@media (max-width: 767.98px) {
  .email-readonly-list > div {
    grid-template-columns: 1fr;
    gap: .1rem;
  }
}
.rmv-table-striped-soft tbody tr:nth-child(even) {
  background: #f8fafc;
}

.rmv-table-striped-soft tbody tr:hover {
  background: #eef6ff;
}

.rmv-table-compact td,
.rmv-table-compact th {
  padding-top: .45rem;
  padding-bottom: .45rem;
}

.rmv-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .75rem;
}

.rmv-pager-count {
  color: #6c757d;
  font-size: .82rem;
}

/* 04.9H.15-R1B: compact administrative transport routes table. */
.rmv-transport-admin {
  font-size: .78rem;
}

.rmv-transport-admin .rmv-transport-admin-header {
  gap: .75rem;
  margin-bottom: .75rem;
}

.rmv-transport-admin .rmv-page-header h1 {
  font-size: 1.35rem;
}

.rmv-transport-admin .rmv-page-header p {
  margin-bottom: 0;
  font-size: .78rem;
}

.rmv-transport-admin-filters {
  padding: .65rem .75rem;
}

.rmv-transport-admin-filters .form-label {
  margin-bottom: .18rem;
  color: var(--bs-secondary-color, #6c757d);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rmv-transport-admin-filters .form-control,
.rmv-transport-admin-filters .form-select {
  min-height: 30px;
  padding-top: .2rem;
  padding-bottom: .2rem;
  font-size: .76rem;
}

.rmv-transport-admin-table {
  min-width: 1120px;
  table-layout: fixed;
  font-size: .76rem;
}

.rmv-transport-admin-table th {
  padding: .35rem .4rem;
  color: var(--bs-secondary-color, #6c757d);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.rmv-transport-admin-table td {
  padding: .35rem .4rem;
  vertical-align: middle;
}

.rmv-transport-col-order { width: 78px; }
.rmv-transport-col-time { width: 58px; }
.rmv-transport-col-type { width: 86px; }
.rmv-transport-col-patient { width: 110px; }
.rmv-transport-col-owner { width: 118px; }
.rmv-transport-col-phone { width: 96px; }
.rmv-transport-col-address { width: 155px; }
.rmv-transport-col-appointment { width: 125px; }
.rmv-transport-col-driver { width: 150px; }
.rmv-transport-col-status { width: 92px; }
.rmv-transport-col-actions { width: 172px; }

.rmv-transport-clamp-2 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.2;
}

.rmv-transport-public-number {
  display: block;
  margin-top: .1rem;
  font-size: .68rem;
  line-height: 1.1;
}

.rmv-transport-inline-form,
.rmv-transport-note-form,
.rmv-transport-action-grid {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.rmv-transport-action-grid {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.rmv-transport-note-form {
  margin-top: .25rem;
}

.rmv-transport-icon-btn {
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.rmv-transport-order-input {
  width: 44px;
  min-height: 30px;
  padding-right: .2rem;
  padding-left: .35rem;
  font-size: .74rem;
}

.rmv-transport-driver-select {
  min-height: 30px;
  min-width: 0;
  padding-top: .2rem;
  padding-bottom: .2rem;
  font-size: .74rem;
}

.rmv-transport-note-form .form-control {
  min-height: 30px;
  padding-top: .2rem;
  padding-bottom: .2rem;
  font-size: .74rem;
}

.rmv-transport-status-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: .18rem .38rem;
  font-size: .68rem;
  white-space: normal;
}

@media (min-width: 1200px) {
  .rmv-transport-admin-table {
    min-width: 0;
  }
}

/* 04.9H.15-R1B.1: visible compact status chips in transport admin. */
.rmv-transport-admin .rmv-transport-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.8rem;
  max-width: 100%;
  padding: .12rem .42rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10.75px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.rmv-transport-admin .rmv-transport-status-pending {
  border-color: var(--bs-border-color, #dee2e6);
  background: var(--bs-light, #f8f9fa);
  color: var(--bs-secondary-color, #6c757d);
}

.rmv-transport-admin .rmv-transport-status-assigned {
  border-color: rgba(var(--bs-primary-rgb, 13, 110, 253), .22);
  background: rgba(var(--bs-primary-rgb, 13, 110, 253), .08);
  color: var(--bs-primary, #0d6efd);
}

.rmv-transport-admin .rmv-transport-status-en-route {
  border-color: rgba(var(--bs-info-rgb, 13, 202, 240), .25);
  background: rgba(var(--bs-info-rgb, 13, 202, 240), .14);
  color: var(--bs-info-text-emphasis, #055160);
}

.rmv-transport-admin .rmv-transport-status-picked-up,
.rmv-transport-admin .rmv-transport-status-delivered {
  border-color: rgba(var(--bs-success-rgb, 25, 135, 84), .24);
  background: rgba(var(--bs-success-rgb, 25, 135, 84), .12);
  color: var(--bs-success-text-emphasis, #0a3622);
}

.rmv-transport-admin .rmv-transport-status-not-completed,
.rmv-transport-admin .rmv-transport-status-cancelled {
  border-color: rgba(var(--bs-danger-rgb, 220, 53, 69), .24);
  background: rgba(var(--bs-danger-rgb, 220, 53, 69), .10);
  color: var(--bs-danger-text-emphasis, #58151c);
}

.rmv-transport-admin .rmv-transport-status-rescheduled {
  border-color: rgba(var(--bs-warning-rgb, 255, 193, 7), .35);
  background: rgba(var(--bs-warning-rgb, 255, 193, 7), .18);
  color: var(--bs-warning-text-emphasis, #664d03);
}






/* 04.9H.15-R2C: tablet/touch card layout for transport admin only. */
.rmv-main-menu-toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.dropdown.show > .dropdown-menu,
.rmv-navbar-dropdown.show > .dropdown-menu.show {
  display: block;
}

.rmv-navbar-dropdown.show > .dropdown-menu.show {
  z-index: 1065;
}


.rmv-main-menu-portal {
  background: #fff;
  border: 1px solid rgba(13, 110, 253, 0.18);
  border-radius: 1rem;
  box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.18);
  max-height: calc(100vh - 96px);
  max-width: min(340px, calc(100vw - 24px));
  min-width: 220px;
  overflow-y: auto;
  padding: 0.35rem;
  position: fixed;
  z-index: 10000;
}

.rmv-main-menu-portal a,
.rmv-main-menu-portal .dropdown-item {
  border-radius: 0.75rem;
  color: inherit;
  display: block;
  padding: 0.65rem 0.9rem;
  text-decoration: none;
  width: 100%;
}

.rmv-main-menu-portal a:hover,
.rmv-main-menu-portal a:focus,
.rmv-main-menu-portal .dropdown-item:hover,
.rmv-main-menu-portal .dropdown-item:focus {
  background: rgba(13, 110, 253, 0.08);
}

.rmv-main-menu-portal .dropdown-header {
  color: var(--bs-secondary-color, #6c757d);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem 0.2rem;
  text-transform: uppercase;
}

.rmv-main-menu-portal .dropdown-divider {
  margin: 0.35rem 0;
}

.rmv-main-menu-backdrop {
  background: transparent;
  inset: 0;
  position: fixed;
  z-index: 9999;
}

@media (max-width: 1399.98px), (hover: none) and (pointer: coarse) {
  .rmv-transport-admin {
    overflow-x: hidden;
  }

  .rmv-transport-admin .rmv-transport-admin-header {
    align-items: flex-start;
  }

  .rmv-transport-admin .rmv-transport-admin-header > .d-flex,
  .rmv-transport-admin .rmv-report-actions {
    flex-wrap: wrap;
  }

  .rmv-transport-admin-filters .row {
    --bs-gutter-x: 0.6rem;
    --bs-gutter-y: 0.55rem;
  }

  .rmv-transport-admin-filters .col-md-2,
  .rmv-transport-admin-filters .col-md-3 {
    flex: 1 1 12rem;
    max-width: none;
    min-width: 0;
    width: auto;
  }

  .rmv-transport-admin-filters .input-group {
    flex-wrap: nowrap;
    min-width: 0;
  }

  .rmv-transport-admin .rmv-transport-admin-table-wrap {
    overflow-x: visible;
  }

  .rmv-transport-admin-table {
    border-collapse: separate;
    border-spacing: 0;
    display: block;
    min-width: 0;
    table-layout: auto;
    width: 100%;
  }

  .rmv-transport-admin-table colgroup,
  .rmv-transport-admin-table thead {
    display: none;
  }

  .rmv-transport-admin-table tbody {
    display: grid;
    gap: 0.72rem;
    width: 100%;
  }

  .rmv-transport-admin-table tr {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 0.75rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    display: grid;
    gap: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    padding: 0.45rem 0.55rem;
    width: 100%;
  }

  .rmv-transport-admin-table td {
    border: 0;
    display: grid;
    gap: 0.45rem;
    grid-template-columns: 6.9rem minmax(0, 1fr);
    min-width: 0;
    padding: 0.33rem 0.35rem;
    text-align: left !important;
    width: 100%;
  }

  .rmv-transport-admin-table td::before {
    color: var(--bs-secondary-color, #6c757d);
    content: attr(data-label);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .rmv-transport-admin-table td[colspan] {
    display: block;
    grid-column: 1 / -1;
    padding: 1rem;
    text-align: center !important;
  }

  .rmv-transport-admin-table td[colspan]::before {
    content: none;
  }

  .rmv-transport-admin-table td[data-label="Dirección"],
  .rmv-transport-admin-table td[data-label="Servicio/cita"],
  .rmv-transport-admin-table td[data-label="Chofer"],
  .rmv-transport-admin-table td[data-label="Acciones"] {
    grid-column: 1 / -1;
  }

  .rmv-transport-admin-table td[data-label="Acciones"] {
    align-items: start;
    grid-template-columns: 6.9rem minmax(0, 1fr);
  }

  .rmv-transport-admin .rmv-transport-inline-form,
  .rmv-transport-admin .rmv-transport-note-form {
    align-items: stretch;
    flex-wrap: wrap;
    min-width: 0;
    width: 100%;
  }

  .rmv-transport-admin .rmv-transport-driver-select,
  .rmv-transport-admin .rmv-transport-note-form .form-control {
    flex: 1 1 11rem;
    min-width: 0;
    width: 100%;
  }

  .rmv-transport-admin .rmv-transport-action-grid {
    justify-content: flex-start;
    width: 100%;
  }

  .rmv-transport-admin .rmv-transport-clamp-2 {
    overflow-wrap: anywhere;
  }

  .rmv-transport-admin .rmv-transport-status-chip {
    justify-self: start;
  }
}

@media (max-width: 767.98px) {
  .rmv-transport-admin-table tr {
    grid-template-columns: 1fr;
  }

  .rmv-transport-admin-table td,
  .rmv-transport-admin-table td[data-label="Acciones"] {
    grid-template-columns: 1fr;
  }

  .rmv-transport-admin-table td::before {
    margin-bottom: -0.2rem;
  }

  .rmv-transport-admin .rmv-transport-admin-header > .d-flex,
  .rmv-transport-admin .rmv-transport-admin-header .btn,
  .rmv-transport-admin-filters .input-group,
  .rmv-transport-admin-filters .input-group .form-control,
  .rmv-transport-admin-filters .input-group .btn {
    width: 100%;
  }

  .rmv-transport-admin-filters .input-group {
    flex-wrap: wrap;
  }
}







.rmv-expediente-results-table-wrap {
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 8px;
  overflow: auto;
}

.rmv-expediente-results-table {
  font-size: 0.86rem;
  min-width: 760px;
}

.rmv-expediente-results-table thead th {
  background: rgba(248, 250, 252, 0.96);
  border-bottom: 1px solid rgba(13, 110, 253, 0.16);
  color: var(--rmv-color-text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  z-index: 1;
}

.rmv-expediente-results-table tbody tr:nth-child(odd) > * {
  background: rgba(248, 250, 252, 0.72);
}

.rmv-expediente-results-table tbody tr:nth-child(even) > * {
  background: rgba(255, 255, 255, 0.92);
}

.rmv-expediente-owner-row {
  cursor: pointer;
  transition: box-shadow var(--rmv-transition-fast), transform var(--rmv-transition-fast);
}

.rmv-expediente-owner-row:hover > *,
.rmv-expediente-owner-row:focus > *,
.rmv-expediente-owner-row.active > * {
  background: color-mix(in srgb, var(--rmv-color-primary) 9%, #ffffff) !important;
}

.rmv-expediente-owner-row:focus {
  outline: 2px solid color-mix(in srgb, var(--rmv-color-primary) 45%, transparent);
  outline-offset: -2px;
}

.rmv-record-owner-context {
  overflow: hidden;
  padding-block: 0.75rem !important;
}

.rmv-record-owner-pet-header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding-block: 0.2rem;
}

.rmv-record-owner-pet-actions {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

@media (max-width: 991.98px) {
  .rmv-record-owner-pet-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 767.98px) {
  .rmv-record-owner-pet-actions {
    justify-content: flex-start;
  }
}

.rmv-record-owner-pet-scroll {
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 8px;
  max-height: max(420px, calc(100vh - 360px));
  min-height: 18rem;
  overflow: auto;
}

.rmv-record-owner-pet-scroll .rmv-record-owner-pet-table-wrap {
  border: 0;
  border-radius: 0;
  min-width: 100%;
}

.rmv-record-owner-pet-row {
  cursor: pointer;
}

.rmv-record-owner-pet-row:hover > *,
.rmv-record-owner-pet-row:focus > * {
  background: color-mix(in srgb, var(--rmv-color-primary) 9%, #ffffff) !important;
}

.rmv-record-owner-pet-row:focus {
  outline: 2px solid color-mix(in srgb, var(--rmv-color-primary) 45%, transparent);
  outline-offset: -2px;
}

.rmv-expediente-owner-link,
.rmv-expediente-owner-name {
  color: var(--rmv-color-text);
  display: inline-block;
  font-weight: 800;
  max-width: 18rem;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}

.rmv-expediente-owner-link {
  color: var(--rmv-color-primary);
  text-decoration: none;
}

.rmv-expediente-owner-link:hover,
.rmv-expediente-owner-link:focus {
  text-decoration: underline;
}

.rmv-expediente-pet-count {
  background: rgba(13, 110, 253, 0.08);
  border: 1px solid rgba(13, 110, 253, 0.14);
  border-radius: 999px;
  color: var(--rmv-color-text);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  justify-content: center;
  min-width: 2rem;
  padding: 0.12rem 0.45rem;
}


/* Unified clinical image preview */
.rmv-image-preview-trigger {
  background: transparent;
  border: 0;
  cursor: zoom-in;
  display: inline-flex;
  line-height: 0;
  padding: 0;
}

.rmv-image-preview-trigger:focus-visible {
  box-shadow: 0 0 0 0.18rem rgba(13, 110, 253, 0.22);
  outline: 2px solid var(--rmv-color-primary, #0d6efd);
  outline-offset: 2px;
}

.rmv-record-header-pet-photo-button {
  border-radius: 999px;
  flex: 0 0 auto;
}

.rmv-pet-photo-button {
  border-radius: 16px;
}

.rmv-image-preview-modal .modal-body {
  background: #f8fafc;
}

.rmv-image-preview-loading {
  align-items: center;
  color: var(--rmv-color-text-muted);
  display: flex;
  font-size: 0.86rem;
  gap: 0.5rem;
  justify-content: center;
  min-height: 3rem;
}

.rmv-image-preview-frame {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 0.75rem;
  display: flex;
  justify-content: center;
  min-height: 280px;
  overflow: hidden;
  padding: 1rem;
}

.rmv-image-preview-frame img {
  display: block;
  max-height: 80vh;
  max-width: 90vw;
  object-fit: contain;
}

@media (max-width: 767.98px) {
  .rmv-image-preview-frame {
    min-height: 220px;
    padding: 0.65rem;
  }

  .rmv-image-preview-frame img {
    max-height: 72vh;
    max-width: 88vw;
  }
}

/* R2D2B9A6 Modern v2 tenant logo vertical alignment and bath authorization */
.document-letter-modern-v2 .document-logo-box {
  top: 9mm !important;
}

.document-letter-modern-v2 .document-logo-img,
.document-letter-modern-v2 .document-logo {
  object-fit: contain;
  object-position: left bottom;
}

.document-letter-bath {
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10pt;
  height: 279mm;
  line-height: 1.18;
  overflow: hidden;
  padding: 0;
  width: 216mm;
}

.document-sheet-bath {
  height: 279mm;
  position: relative;
  width: 216mm;
  z-index: 1;
}

.document-letter-bath .document-logo-box,
.document-letter-bath .document-pet-photo img {
  display: block;
}

.document-letter-bath .document-logo-box {
  height: 22mm;
  overflow: visible;
  width: 70mm;
  z-index: 2;
}

.document-letter-bath .document-logo-img,
.document-letter-bath .document-logo {
  display: block;
  height: 22mm;
  max-width: 70mm;
  object-fit: contain;
  object-position: left bottom;
  width: auto;
}

.document-letter-bath .document-pet-photo {
  background: #fff;
  border: 0.3mm solid #d7dde8;
  border-radius: 3mm;
  box-sizing: border-box;
  overflow: hidden;
}

.doc-bath-clinic-title,
.doc-bath-title,
.doc-bath-modern-location-date,
.doc-bath-modern-owner-row,
.doc-bath-modern-pet-row,
.doc-bath-modern-legal-block,
.doc-bath-modern-signature-text,
.doc-bath-receiver-signature-text,
.doc-bath-owner-signature-name,
.doc-bath-clinic-signature-name {
  font-family: var(--modern-content-font-family);
}

.doc-bath-clinic-title {
  color: #4b5563;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 6.5mm;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-align: right;
  text-transform: uppercase;
  z-index: 2;
}

.doc-bath-title {
  color: #111827;
  font-size: 4.8mm;
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
}

.doc-bath-modern-location-date {
  color: #111827;
  font-size: 3.2mm;
  text-align: right;
}

.doc-bath-modern-field-label,
.doc-bath-modern-field-value {
  display: inline-block;
  font-size: 3.25mm;
  line-height: 1.2;
  position: absolute;
}

.doc-bath-modern-field-label {
  font-weight: var(--modern-field-label-weight);
}

.doc-bath-modern-field-value {
  border-bottom: 0.25mm solid var(--modern-pet-line-color);
  font-weight: var(--modern-field-value-weight);
  min-height: 4.2mm;
  overflow: hidden;
  white-space: nowrap;
}

.doc-bath-modern-legal-block {
  color: #111827;
  font-size: 3.45mm;
  line-height: 1.22;
  overflow: hidden;
}

.doc-bath-modern-legal-block p {
  margin: 0 0 3.2mm;
}

.doc-bath-modern-legal-block .document-modern-subtitle {
  font-weight: 700;
  margin-bottom: 2mm;
  text-align: left;
}

/* R2D2B9A6 Modern v2 professional header block */
.document-modern-professional-block {
  color: #111827;
  font-size: 9.2px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: 0;
}

.document-modern-professional-line + .document-modern-professional-line {
  margin-top: 1.1mm;
}

.document-modern-professional-role,
.document-modern-professional-mr {
  font-size: 8.2px;
  font-weight: 500;
}

.document-modern-professional-license {
  color: #111827;
  font-size: 8.6px;
  font-weight: 600;
  line-height: 1.1;
  text-align: right;
  letter-spacing: 0;
}
/* R2D2B9A61 Modern v2 clean printable sheet, shared footer, owner/pet field polish */
.document-letter-modern-v2 {
  background: #fff !important;
  background-image: none !important;
}

.document-letter-modern-v2::before,
.document-letter-modern-v2::after,
.document-letter-modern-v2 .document-letter-watermark,
.document-letter-modern-v2 .document-watermark {
  background: none !important;
  background-image: none !important;
  content: none !important;
  display: none !important;
}

.document-letter-modern-v2 [class*="-modern-owner-row"] {
  border-bottom: 0 !important;
  text-decoration: none !important;
}

.document-letter-modern-v2 [class*="-modern-owner-row"] [class*="-modern-field-value"] {
  border-bottom: 0 !important;
  text-decoration: none !important;
}

.document-letter-modern-v2 [class*="-modern-pet-row"] {
  border-bottom: 0.25mm solid var(--modern-pet-line-color, #d1d5db) !important;
}

.document-letter-modern-v2 [class*="-modern-pet-row"] [class*="-modern-field-value"] {
  border-bottom: 0 !important;
}

.document-modern-footer-left,
.document-modern-footer-right {
  color: #4b5563;
  font-size: 2.45mm;
  line-height: 1.25;
}

.document-modern-footer-center {
  color: #111827;
  font-size: 2.8mm;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.document-letter-bath-modern-v2 .doc-bath-modern-legal-block {
  line-height: 1.18;
}

.document-letter-bath-modern-v2 .doc-bath-modern-legal-block p {
  margin: 0 0 2.2mm;
}

.document-letter-bath-modern-v2 .doc-bath-modern-legal-block .document-modern-subtitle {
  margin-bottom: 1.4mm;
}

@media print {
  .document-letter-modern-v2 {
    background: #fff !important;
    background-image: none !important;
  }

  .document-letter-modern-v2::before,
  .document-letter-modern-v2::after,
  .document-letter-modern-v2 .document-letter-watermark,
  .document-letter-modern-v2 .document-watermark {
    background: none !important;
    background-image: none !important;
    content: none !important;
    display: none !important;
  }
}


/* R2D2B9A63 Modern v2 compact shared signature hierarchy */
.document-letter-modern-v2 .document-signature-caption,
.document-letter-modern-v2 .document-signature-name,
.document-letter-modern-v2 .document-signature-license,
.document-letter-modern-v2 .document-signature-mr {
  box-sizing: border-box;
  font-family: var(--modern-content-font-family, Arial, Helvetica, sans-serif);
  letter-spacing: 0;
  line-height: 1.08;
  overflow: hidden;
  text-align: center;
  text-transform: uppercase;
  z-index: 2;
}

.document-letter-modern-v2 .document-signature-caption {
  font-size: 2.65mm;
  font-weight: 600;
}

.document-letter-modern-v2 .document-signature-name {
  display: -webkit-box;
  font-size: 2.45mm;
  font-weight: 400;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
}

.document-letter-modern-v2 .document-signature-license,
.document-letter-modern-v2 .document-signature-mr {
  color: #374151;
  font-size: 2.25mm;
  font-weight: 500;
}
/* R2D2B9A62 Modern v2 approved shared header geometry */
.document-letter-modern-v2 .document-modern-clinic-title {
  color: #4b5563;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 6.5mm;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-align: right;
  text-transform: uppercase;
  z-index: 2;
}

@media print {
  .document-letter-modern-v2 .document-modern-clinic-title {
    color: #4b5563;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 6.5mm;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    text-align: right;
    text-transform: uppercase;
  }
}


.rmv-location-availability-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}

.rmv-location-availability-chip {
  align-items: center;
  border: 1px solid #d7e4f7;
  border-radius: 0.5rem;
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem;
  background: #f8fbff;
  color: #344054;
  font-size: 0.85rem;
}

.rmv-location-availability-chip strong {
  color: #111827;
}

.rmv-location-availability-open {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.rmv-location-availability-partial {
  border-color: #fde68a;
  background: #fffbeb;
}

.rmv-location-availability-full {
  border-color: #fecaca;
  background: #fef2f2;
}

.rmv-location-availability-shared {
  border-color: #bfdbfe;
  background: #eff6ff;
}
.rmv-operational-submit-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 1rem;
}

.rmv-operational-submit {
  width: auto;
  min-height: 0;
  align-self: auto;
}

@media (max-width: 991.98px) {
  .rmv-operational-submit-row {
    justify-content: stretch;
  }

  .rmv-operational-submit {
    width: 100%;
  }
}



.rmv-vaccination-history-toolbar {
  display: flex;
  justify-content: flex-end;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.rmv-vaccination-history {
  overflow: hidden;
}

.rmv-vaccination-history-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.rmv-vaccination-page-size {
  width: auto;
  min-width: 4.5rem;
}

.rmv-vaccination-pagination-nav {
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem 0.85rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.rmv-vaccination-history .table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: rgba(13, 110, 253, 0.035);
}

.consultation-history-list > .consultation-history-item:nth-of-type(odd):not(.active) {
  background: var(--rmv-color-surface);
}

.consultation-history-list > .consultation-history-item:nth-of-type(even):not(.active) {
  background: #f2f7fd;
}

.consultation-history-list > .consultation-history-item:hover:not(.active) {
  background: #e8f2fc;
}

.consultation-history-list > .consultation-history-item:focus-visible {
  background: #e2effb;
  box-shadow: inset 0 0 0 2px rgba(var(--rmv-color-primary-rgb), 0.42);
  outline: none;
}

.consultation-history-list > .consultation-history-item.active,
.consultation-history-list > .consultation-history-item.active:hover,
.consultation-history-list > .consultation-history-item.active:focus-visible {
  background: #dbeafe;
  border-left: 4px solid rgb(var(--rmv-color-primary-rgb));
  color: var(--rmv-color-text);
  padding-left: calc(0.85rem - 4px);
}

@media (max-width: 768px) {
  .rmv-vaccination-history-toolbar,
  .rmv-vaccination-history-controls,
  .rmv-vaccination-pagination-nav {
    justify-content: flex-start;
  }

  .rmv-vaccination-pagination-nav .pagination {
    flex-wrap: wrap;
  }
}

.dashboard-simple-bar-fill-vaccines {
  background: linear-gradient(90deg, #16a34a, #22c55e);
}

.dashboard-simple-bar small {
  color: #64748b;
  font-size: 0.76rem;
  min-width: 5.5rem;
  text-align: right;
}

.clinical-progress-board {
  padding: 1.25rem;
}

.clinical-progress-header,
.clinical-progress-footer,
.clinical-progress-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.clinical-progress-actions,
.clinical-progress-filters {
  justify-content: flex-end;
}

.clinical-progress-filters {
  margin: 1rem 0;
  padding: 0.85rem;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
}

.clinical-progress-filters .form-select {
  width: auto;
  min-width: 12rem;
}

.clinical-progress-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.clinical-progress-panel {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  padding: 0.75rem;
  background: #fff;
}

.clinical-progress-panel h2 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.clinical-progress-footer {
  justify-content: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  color: #334155;
}

.clinical-progress-note,
.clinical-progress-error {
  margin: 0.75rem 0 0;
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
}

.clinical-progress-error {
  color: #b45309;
}

@media (max-width: 992px) {
  .clinical-progress-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

  .clinical-progress-actions,
  .clinical-progress-filters {
    justify-content: flex-start;
  }
}

.rmv-related-consultation-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(var(--rmv-color-primary-rgb, 13, 110, 253), 0.18);
    border-radius: 0.5rem;
    background: #f8fbff;
}

.rmv-related-consultation-list {
    display: grid;
    gap: 0.5rem;
}

.rmv-related-consultation-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.45rem;
    background: #fff;
}

@media (max-width: 767.98px) {
    .rmv-related-consultation-card,
    .rmv-related-consultation-row {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Catalog edit navigation target */
.rmv-catalog-edit-target {
  scroll-margin-top: 6.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .rmv-catalog-edit-target {
    scroll-behavior: auto;
  }
}
/* Bitácora General: el contenido del modal no depende de CSS isolation. */
#operational-event-detail-modal .audit-paired-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2rem minmax(0, 1fr);
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

#operational-event-detail-modal .audit-kv-list {
  margin: 0;
  min-width: 0;
  padding: 0;
}

#operational-event-detail-modal .audit-kv-list--left {
  grid-column: 1;
}

#operational-event-detail-modal .audit-paired-separator {
  grid-column: 2;
  min-width: 0;
}

#operational-event-detail-modal .audit-kv-list--right {
  grid-column: 3;
}

#operational-event-detail-modal .audit-kv-row {
  border-bottom: 1px solid rgba(var(--bs-secondary-rgb), 0.1);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(120px, 155px) minmax(0, 1fr);
  min-width: 0;
  padding: 0.35rem 0;
}

#operational-event-detail-modal .audit-kv-row[hidden] {
  display: none;
}

#operational-event-detail-modal .audit-kv-label,
#operational-event-detail-modal .audit-kv-value {
  color: var(--bs-body-color);
  line-height: 1.25;
  min-width: 0;
  overflow-wrap: anywhere;
}

#operational-event-detail-modal .audit-kv-label {
  font-size: 0.72rem;
  font-weight: 600;
}

#operational-event-detail-modal .audit-kv-value {
  font-size: 0.8rem;
  font-weight: 400;
  white-space: normal;
}

@media (max-width: 767.98px) {
  #operational-event-detail-modal .audit-paired-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #operational-event-detail-modal .audit-kv-list--left,
  #operational-event-detail-modal .audit-kv-list--right {
    grid-column: 1;
  }

  #operational-event-detail-modal .audit-paired-separator {
    display: none;
  }

  #operational-event-detail-modal .audit-kv-list--right {
    margin-top: 0.5rem;
  }
}
.rmv-context-clinical-badges {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.rmv-context-clinical-badges--patient {
  justify-content: flex-start;
  margin-top: 0.35rem;
}

.rmv-context-header .rmv-clinical-condition-badges,
.rmv-context-clinical-badges .rmv-clinical-condition-badges {
  margin-top: 0;
}

.rmv-weight-history-card {
  border-left: 4px solid #16a34a;
}
.rmv-clinical-condition-badges {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  margin-top: 0.35rem;
}

.rmv-clinical-condition-badge-item {
  position: relative;
}

.rmv-clinical-condition-badge {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 0.25rem 0.55rem;
  border: 1px solid #b91c1c;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
  touch-action: manipulation;
}

.d-flex.align-items-center > .rmv-clinical-condition-badges,
.rmv-admission-header .rmv-clinical-condition-badges {
  margin-top: 0;
}

.rmv-clinical-condition-badge:hover,
.rmv-clinical-condition-badge:focus-visible,
.rmv-clinical-condition-badge[aria-expanded="true"] {
  border-color: #7f1d1d;
  background: #991b1b;
  color: #fff;
}

.rmv-clinical-condition-badge:focus-visible {
  outline: 3px solid rgba(220, 38, 38, 0.25);
  outline-offset: 2px;
}

.rmv-clinical-condition-popover {
  position: absolute;
  z-index: 1080;
  top: calc(100% + 0.45rem);
  left: 0;
  width: min(22rem, calc(100vw - 2rem));
  max-height: min(24rem, calc(100vh - 5rem));
  overflow-y: auto;
  padding: 0.8rem;
  border: 1px solid rgba(127, 29, 29, 0.2);
  border-radius: 0.65rem;
  background: #fff;
  box-shadow: 0 0.75rem 1.75rem rgba(15, 23, 42, 0.2);
  color: #1f2937;
  text-align: left;
}

.rmv-clinical-condition-badge-item:last-child .rmv-clinical-condition-popover {
  right: 0;
  left: auto;
}

.rmv-clinical-condition-popover[hidden] {
  display: none;
}

.rmv-clinical-condition-popover h3 {
  margin: 0 0 0.55rem;
  color: #7f1d1d;
  font-size: 0.9rem;
  font-weight: 700;
}

.rmv-clinical-condition-popover ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rmv-clinical-condition-popover li {
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(127, 29, 29, 0.1);
}

.rmv-clinical-condition-popover li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.rmv-clinical-condition-popover li strong,
.rmv-clinical-condition-popover li span {
  display: block;
  overflow-wrap: anywhere;
}

.rmv-clinical-condition-popover li strong {
  font-size: 0.82rem;
}

.rmv-clinical-condition-popover li span {
  margin-top: 0.1rem;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 400;
}

.rmv-clinical-condition-link {
  display: inline-flex;
  margin-top: 0.65rem;
  color: #b91c1c;
  font-size: 0.78rem;
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .rmv-clinical-condition-popover {
    position: fixed;
    top: auto;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    width: auto;
    max-height: min(70vh, 28rem);
  }
}
/* Vaccine detail is portaled under body to escape the glass-card stacking context. */
body.rmv-vaccination-detail-open > .modal-backdrop {
  height: 100vh;
  inset: 0;
  position: fixed;
  width: 100vw;
  z-index: 1990;
}

body > .rmv-vaccination-detail-modal {
  z-index: 2000;
}


.rmv-clinical-attachment-table-wrap {
  overflow-x: auto;
  margin-bottom: 1rem;
}

.rmv-clinical-attachment-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.rmv-clinical-attachment-table th,
.rmv-clinical-attachment-table td {
  padding: 0.48rem 0.55rem;
  border-bottom: 1px solid var(--rmv-border, #dce3ea);
  text-align: left;
  vertical-align: middle;
}

.rmv-clinical-attachment-file {
  min-width: 11rem;
  overflow-wrap: anywhere;
}

.rmv-clinical-attachment-file-content {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.rmv-clinical-attachment-origin {
  display: inline-flex;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--rmv-soft-blue, #eaf3ff);
  color: var(--rmv-primary, #135ca8);
  font-size: 0.76rem;
  font-weight: 700;
}

.rmv-clinical-attachment-actions {
  white-space: nowrap;
}

.rmv-clinical-attachment-actions-inner {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}
@media (min-width: 900px) {
  .rmv-aesthetic-attachment-table th:nth-child(2),
  .rmv-aesthetic-attachment-table td:nth-child(2),
  .rmv-aesthetic-attachment-table th:nth-child(5),
  .rmv-aesthetic-attachment-table td:nth-child(5) {
    width: 1%;
    white-space: nowrap;
  }

  .rmv-aesthetic-attachment-table th:nth-child(3),
  .rmv-aesthetic-attachment-table td:nth-child(3) {
    min-width: 9.5rem;
    white-space: nowrap;
  }

  .rmv-aesthetic-attachment-table th:nth-child(4),
  .rmv-aesthetic-attachment-table td:nth-child(4) {
    width: 32%;
  }

  .rmv-aesthetic-attachment-table th:nth-child(6),
  .rmv-aesthetic-attachment-table td:nth-child(6) {
    min-width: 11rem;
  }
}

.rmv-clinical-attachment-empty {
  margin-bottom: 1rem;
  padding: 0.55rem 0.7rem;
  border: 1px dashed var(--rmv-border, #dce3ea);
  border-radius: 0.55rem;
  color: var(--rmv-muted, #607080);
  font-size: 0.86rem;
}

.rmv-clinical-preview-layer {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.rmv-clinical-preview-layer[hidden] {
  display: none;
}

.rmv-clinical-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
}

.rmv-clinical-preview-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(70rem, 96vw);
  height: min(50rem, 90vh);
  overflow: hidden;
  border-radius: 0.8rem;
  background: #fff;
  box-shadow: 0 1.5rem 4rem rgba(15, 23, 42, 0.35);
}

.rmv-clinical-preview-dialog header,
.rmv-clinical-preview-dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--rmv-border, #dce3ea);
}

.rmv-clinical-preview-dialog footer {
  justify-content: flex-end;
  border-top: 1px solid var(--rmv-border, #dce3ea);
  border-bottom: 0;
}

.rmv-clinical-preview-dialog h3 {
  margin: 0;
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rmv-clinical-preview-x {
  border: 0;
  background: transparent;
  color: #334155;
  font-size: 1.7rem;
  line-height: 1;
}

.rmv-clinical-preview-body {
  min-height: 0;
  padding: 0.75rem;
  background: #eef2f7;
}

.rmv-clinical-preview-content {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #fff;
}

body.rmv-clinical-preview-open {
  overflow: hidden;
}

@media (max-width: 899px) {
  .rmv-clinical-attachment-table thead {
    display: none;
  }

  .rmv-clinical-attachment-table,
  .rmv-clinical-attachment-table tbody,
  .rmv-clinical-attachment-table tr,
  .rmv-clinical-attachment-table td {
    display: block;
    width: 100%;
  }

  .rmv-clinical-attachment-table tr {
    margin-bottom: 0.65rem;
    padding: 0.45rem;
    border: 1px solid var(--rmv-border, #dce3ea);
    border-radius: 0.65rem;
  }

  .rmv-clinical-attachment-table td {
    display: grid;
    grid-template-columns: minmax(5.5rem, 34%) minmax(0, 1fr);
    gap: 0.5rem;
    padding: 0.32rem;
    border: 0;
  }

  .rmv-clinical-attachment-table td::before {
    content: attr(data-label);
    color: var(--rmv-muted, #607080);
    font-size: 0.76rem;
    font-weight: 700;
  }

  .rmv-clinical-attachment-actions,
  .rmv-clinical-attachment-file,
  .rmv-clinical-attachment-actions-inner,
  .rmv-clinical-attachment-file-content {
    min-width: 0;
    white-space: normal;
  }

  .rmv-clinical-attachment-actions-inner {
    flex-wrap: wrap;
  }

  .rmv-clinical-preview-dialog {
    width: 100%;
    height: min(52rem, 92vh);
  }
}
.rmv-clinical-history {
  display: grid;
  gap: 0.55rem;
}

.rmv-clinical-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.rmv-clinical-history-description {
  margin-top: 0.12rem;
  color: var(--rmv-text-muted);
  font-size: 0.74rem;
  font-weight: 400;
}

.rmv-clinical-history-count {
  color: var(--rmv-primary);
  font-size: 0.82rem;
  white-space: nowrap;
}

.rmv-clinical-history-filters {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) minmax(7.5rem, 0.78fr) minmax(7.5rem, 0.78fr) minmax(11rem, 1.25fr) 5rem auto;
  align-items: end;
  gap: 0.45rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--rmv-border);
  border-radius: 0.65rem;
  background: var(--rmv-surface-muted);
}

.rmv-clinical-history-filters label {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--rmv-text-muted);
  font-size: 0.71rem;
  font-weight: 700;
}

.rmv-clinical-history-filters .form-control,
.rmv-clinical-history-filters .form-select,
.rmv-clinical-history-filters .btn {
  min-height: 2rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  font-size: 0.8rem;
}

.rmv-clinical-history-status {
  min-height: 1rem;
  font-size: 0.78rem;
}

.rmv-clinical-history-table {
  overflow: hidden;
  border: 1px solid var(--rmv-border);
  border-radius: 0.65rem;
  background: var(--rmv-surface);
}

.rmv-clinical-history-list-head,
.rmv-clinical-history-item {
  display: grid;
  grid-template-columns: minmax(8.8rem, 0.9fr) minmax(10rem, 1.1fr) minmax(14rem, 2fr) minmax(10rem, 1.15fr) auto;
  align-items: center;
  column-gap: 0.65rem;
}

.rmv-clinical-history-list-head {
  padding: 0.42rem 0.6rem;
  border-bottom: 1px solid var(--rmv-border);
  background: var(--rmv-surface-muted);
  color: var(--rmv-text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.rmv-clinical-history-list {
  display: block;
}

.rmv-clinical-history-item {
  min-height: 2.85rem;
  padding: 0.38rem 0.6rem;
  border-bottom: 1px solid color-mix(in srgb, var(--rmv-border) 72%, transparent);
  background: #fff;
  font-size: 0.81rem;
  transition: background-color 0.15s ease;
}

.rmv-clinical-history-item:nth-child(even) {
  background: #f7f9fc;
}

.rmv-clinical-history-item:hover {
  background: #eef5fc;
}

.rmv-clinical-history-item:last-child {
  border-bottom: 0;
}

.rmv-clinical-history-date {
  color: var(--rmv-text-muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.rmv-clinical-history-event {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.rmv-clinical-history-event .bi {
  flex: 0 0 auto;
  color: var(--rmv-primary);
  font-size: 0.95rem;
}

.rmv-clinical-history-type {
  min-width: 0;
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rmv-clinical-history-summary {
  display: -webkit-box;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  font-size: 0.82rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rmv-clinical-history-responsible {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
}

.rmv-clinical-history-responsible-name {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rmv-clinical-history-branch {
  overflow: hidden;
  color: var(--rmv-text-muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rmv-clinical-history-actions {
  display: flex;
  justify-content: flex-end;
}

.rmv-clinical-history-action {
  min-height: 1.85rem;
  padding: 0.2rem 0.48rem;
  font-size: 0.74rem;
  white-space: nowrap;
}

.rmv-clinical-history-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: var(--rmv-text-muted);
  font-size: 0.78rem;
}

.rmv-clinical-history-pagination[hidden] {
  display: none;
}

@media (max-width: 991.98px) {
  .rmv-clinical-history-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rmv-clinical-history-list-head,
  .rmv-clinical-history-item {
    grid-template-columns: minmax(8rem, 0.85fr) minmax(9rem, 1fr) minmax(12rem, 1.7fr) minmax(9rem, 1fr) auto;
    column-gap: 0.45rem;
  }
}

@media (max-width: 767.98px) {
  .rmv-clinical-history-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rmv-clinical-history-filters > button {
    justify-self: start;
  }

  .rmv-clinical-history-list-head {
    display: none;
  }

  .rmv-clinical-history-item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.28rem 0.55rem;
    padding: 0.55rem 0.6rem;
  }

  .rmv-clinical-history-date,
  .rmv-clinical-history-event,
  .rmv-clinical-history-summary,
  .rmv-clinical-history-responsible {
    grid-column: 1;
  }

  .rmv-clinical-history-actions {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: center;
  }
}
.rmv-owner-account-status {
    color: var(--rmv-text, #1f2937);
}

.rmv-owner-account-status-debt {
    color: #b91c1c;
}

.rmv-owner-account-status-credit {
    color: #166534;
}
/* 9C.14 compact prescription print layout */
.rmv-prescription-print-page .rmv-prescription-print-header,
.rmv-prescription-print-page .prescription-copy-header {
  margin-bottom: 2mm;
}

.rmv-prescription-print-page .prescription-header-top {
  grid-template-columns: 34mm 1fr;
  padding-bottom: 1mm;
}

.rmv-prescription-print-page .prescription-header-logo-box {
  min-height: 12mm;
}

.rmv-prescription-print-page .prescription-header-meta-row {
  font-size: 7.8pt;
  padding-top: 1mm;
}

.rmv-prescription-print-page .prescription-header-mvz {
  font-size: 7.6pt;
}

.rmv-prescription-print-page .prescription-header-legend,
.rmv-prescription-print-page .prescription-header-right,
.rmv-prescription-print-page .prescription-header-license,
.rmv-prescription-print-page .prescription-header-mr {
  font-size: 7.5pt;
}

.rmv-prescription-print-page .rmv-prescription-clinic-title,
.rmv-prescription-print-page .prescription-clinic-title {
  font-size: 12pt;
}

.rmv-prescription-print-page .rmv-prescription-copy h1,
.rmv-prescription-print-page .prescription-title {
  font-size: 13pt;
  margin: 2mm 0 1.5mm;
}

.rmv-prescription-print-page .rmv-prescription-copy-label {
  font-size: 7.6pt;
  margin: 1mm 0 0;
}

.rmv-prescription-print-page .rmv-prescription-date {
  font-size: 8.6pt;
  margin: 0 0 1mm;
}

.rmv-prescription-print-page .rmv-prescription-reference {
  font-size: 7.8pt;
  margin: 0.5mm 0 1mm;
}

.rmv-prescription-print-page .rmv-prescription-two-columns {
  gap: 2mm;
}

.rmv-prescription-print-page .rmv-prescription-two-columns h2,
.rmv-prescription-print-page .prescription-section-title,
.rmv-prescription-print-page .rmv-prescription-rx h2 {
  font-size: 9.2pt;
  margin: 0 0 0.7mm;
  padding-bottom: 0.35mm;
}

.rmv-prescription-print-page .rmv-prescription-party-line {
  display: flex;
  flex-wrap: wrap;
  font-size: 9.2pt;
  gap: 0.35mm 2.2mm;
  line-height: 1.22;
  margin: 0.35mm 0;
}

.rmv-prescription-print-page .rmv-prescription-party-line span,
.rmv-prescription-print-page .rmv-prescription-medication-line span {
  min-width: 0;
}

.rmv-prescription-print-page .rmv-prescription-party-line strong,
.rmv-prescription-print-page .rmv-prescription-medication-line strong {
  font-weight: 800;
}

.rmv-prescription-print-page .rmv-prescription-rx {
  margin-top: 1.5mm;
}

.rmv-prescription-print-page .rmv-prescription-medication {
  padding: 0.6mm 0;
}

.rmv-prescription-print-page .rmv-prescription-medication + .rmv-prescription-medication {
  border-top: 1px solid #e5e7eb;
  margin-top: 0.5mm;
  padding-top: 0.9mm;
}

.rmv-prescription-print-page .rmv-prescription-medication-line {
  display: flex;
  flex-wrap: wrap;
  font-size: 9.8pt;
  gap: 0.25mm 3mm;
  line-height: 1.22;
  margin: 0.25mm 0;
}

.rmv-prescription-print-page .rmv-prescription-medication-primary {
  font-size: 10.2pt;
}

.rmv-prescription-print-page .rmv-prescription-medication-text {
  display: block;
  white-space: pre-wrap;
}

.rmv-prescription-print-page .rmv-prescription-print-footer {
  font-size: 7.5pt;
}

.rmv-prescription-print-page .prescription-copy-bottom {
  margin-top: 4mm;
}

.rmv-prescription-print-page .prescription-copy-signature {
  margin-bottom: 2mm;
  padding-top: 0.5mm;
}

@media print {
  .rmv-prescription-print-page .prescription-copy,
  .rmv-prescription-print-page .rmv-prescription-copy {
    font-size: 9.8pt !important;
  }

  .rmv-prescription-print-page .prescription-copy-bottom {
    margin-top: 4mm !important;
  }
}
/* Participación clínica compacta y signos principales de consulta. */
.rmv-clinical-participation {
  border-top: 1px solid var(--rmv-color-border);
  padding-top: 0.75rem;
}

.rmv-clinical-participation-card {
  border: 1px solid var(--rmv-color-border);
  border-radius: 0.55rem;
  padding: 0.75rem;
}

.rmv-clinical-participation-list {
  display: grid;
  gap: 0.35rem;
}

.rmv-clinical-participation-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--rmv-color-border);
  border-radius: 0.4rem;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: minmax(0, 1fr) max-content;
  padding: 0.4rem 0.55rem;
}

.rmv-clinical-participation-row > div:first-child {
  align-items: center;
  display: grid;
  gap: 0.45rem;
  grid-template-columns: minmax(12rem, 1.3fr) minmax(8.5rem, 0.8fr) minmax(9.5rem, auto) minmax(12rem, 2fr);
}

.rmv-clinical-participation-row > div:first-child > strong,
.rmv-clinical-participation-row > div:first-child > .rmv-badge-soft,
.rmv-clinical-participation-row > div:first-child > .text-muted {
  margin-left: 0 !important;
  white-space: nowrap;
}

.rmv-clinical-participation-row form {
  justify-self: end;
  margin: 0;
}

.rmv-clinical-participation-capture {
  align-items: end;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(14rem, 3fr) minmax(11rem, 2fr) minmax(16rem, 4.5fr) max-content;
}

.rmv-clinical-participation-capture > [class*="col-"] {
  max-width: none;
  width: auto;
}

.rmv-clinical-participation-capture .form-label {
  margin-bottom: 0.25rem;
  white-space: nowrap;
}

.rmv-clinical-participation-capture .form-control,
.rmv-clinical-participation-capture .form-select {
  min-width: 0;
  width: 100%;
}

@media (min-width: 992px) {
  .rmv-anamnesis-vitals-grid {
    grid-template-columns: minmax(8rem, 0.75fr) minmax(8rem, 0.75fr) minmax(14rem, 1.5fr);
  }

  .rmv-anamnesis-vitals-grid .rmv-anamnesis-respiratory {
    grid-column: 1 / 3;
  }

  .rmv-anamnesis-vitals-grid .rmv-anamnesis-heart {
    grid-column: 3 / 4;
  }
}

@media (max-width: 991.98px) {
  .rmv-clinical-participation-row,
  .rmv-clinical-participation-row > div:first-child,
  .rmv-clinical-participation-capture {
    grid-template-columns: 1fr;
  }

  .rmv-clinical-participation-capture .btn {
    width: 100%;
  }
}
.clinical-participation-dashboard-detail {
  border-top: 1px solid var(--rmv-color-border);
  margin-top: 1rem;
  padding-top: 1rem;
}
/* Pulido compacto de la consulta clínica. */
.rmv-consultation-heading-row {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.rmv-consultation-heading-row .rmv-badge-soft {
  flex: 0 0 auto;
}

.rmv-prescription-history-empty {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding-bottom: 0.65rem;
  padding-top: 0.65rem;
}

.rmv-prescription-history-empty h4,
.rmv-prescription-history-empty p {
  margin: 0;
}

.rmv-consultation-textarea-compact {
  min-height: 4.75rem;
}

.consultation-history-list > .consultation-history-item.active,
.consultation-history-list > .consultation-history-item.active:hover,
.consultation-history-list > .consultation-history-item.active:focus-visible {
  border-left-width: 5px;
  box-shadow: inset 1px 0 0 rgba(var(--rmv-color-primary-rgb), 0.22);
  padding-left: calc(0.85rem - 5px);
}

@media (max-width: 767.98px) {
  .rmv-consultation-heading-row,
  .rmv-prescription-history-empty {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }
}
/* Admisión clínica compacta, alineada con Consulta. */
.rmv-admission-clinical-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.rmv-admission-clinical-half {
  grid-column: span 3;
}

.rmv-admission-clinical-third {
  grid-column: span 2;
}

.rmv-admission-clinical-wide {
  grid-column: 1 / -1;
}

.rmv-admission-textarea-compact {
  min-height: 4.75rem !important;
  resize: vertical;
}

.rmv-admission-panel > .rmv-admission-header {
  margin-bottom: 0.1rem;
}

.rmv-admission-panel .rmv-prescription-history-empty {
  min-height: 0;
}

.rmv-admission-panel .rmv-pathology-section {
  padding-bottom: 0.7rem;
  padding-top: 0.7rem;
}

.rmv-admission-panel .rmv-pathology-section h4 {
  margin-bottom: 0.15rem;
}

.rmv-admission-panel .rmv-clinical-participation-card,
.rmv-admission-panel .rmv-admission-attachments {
  padding: 0.75rem;
}

.rmv-admission-panel .rmv-admission-attachment-form {
  padding: 0.65rem;
}

.rmv-admission-panel .rmv-billing-line-form .form-floating > label,
.rmv-admission-panel .rmv-admission-attachment-form .form-floating > label,
.rmv-admission-panel .rmv-clinical-participation-capture .form-floating > label {
  color: #64748b;
  font-size: 0.78rem;
}

@media (max-width: 767.98px) {
  .rmv-admission-clinical-grid {
    grid-template-columns: 1fr;
  }

  .rmv-admission-clinical-half,
  .rmv-admission-clinical-third,
  .rmv-admission-clinical-wide {
    grid-column: 1;
  }
}

.clinical-participation-dashboard-list {
  display: grid;
  gap: 0.4rem;
}

.clinical-participation-dashboard-row {
  background: #fff;
  border: 1px solid var(--rmv-color-border);
  border-radius: 0.45rem;
  padding: 0.55rem 0.7rem;
}

.clinical-participation-dashboard-row summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: minmax(11rem, 1.1fr) auto minmax(12rem, 1.5fr) auto;
}

.clinical-participation-dashboard-fields {
  display: grid;
  gap: 0.5rem 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0.75rem 0;
}

.clinical-participation-dashboard-fields div { min-width: 0; }
.clinical-participation-dashboard-fields dt { color: var(--rmv-color-text-muted); font-size: 0.75rem; }
.clinical-participation-dashboard-fields dd { margin: 0; }

@media (max-width: 767.98px) {
  .clinical-participation-dashboard-row summary,
  .clinical-participation-dashboard-fields { grid-template-columns: 1fr; }
}
/* 5.11I.1E Dashboard clínico */
.clinical-activity-overview {
  display: grid;
  gap: 0.75rem;
}

.clinical-activity-overview-header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.clinical-activity-overview-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.clinical-activity-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0.85rem;
}

.clinical-activity-card h3 {
  align-items: center;
  display: flex;
  font-size: 0.98rem;
  font-weight: 700;
  gap: 0.55rem;
  line-height: 1.2;
  margin: 0 0 0.65rem;
}

.clinical-activity-card-icon {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.05rem;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.clinical-activity-card--consultations .clinical-activity-card-icon {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.clinical-activity-card--vaccines .clinical-activity-card-icon {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}

.clinical-activity-card--participations .clinical-activity-card-icon {
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
}

.clinical-activity-card .dashboard-simple-bar-list {
  gap: 0.45rem;
}

.clinical-activity-card .dashboard-simple-bar {
  gap: 0.45rem;
  grid-template-columns: minmax(9.5rem, 2.2fr) minmax(3.25rem, 0.65fr) 2rem;
}

.clinical-activity-card--vaccines .dashboard-simple-bar {
  grid-template-columns: minmax(9.5rem, 2.1fr) minmax(3rem, 0.6fr) 2rem minmax(4rem, auto);
}

.clinical-activity-card .dashboard-simple-bar-label {
  font-size: 0.95rem;
  font-weight: 650;
}

.clinical-activity-card .dashboard-simple-bar-track {
  height: 0.5rem;
}

.clinical-activity-card .dashboard-simple-bar strong {
  font-size: 1.1rem;
  font-weight: 700;
}

.clinical-activity-card .dashboard-simple-bar small {
  font-size: 0.7rem;
  min-width: 0;
}

.clinical-activity-card-total {
  align-items: center;
  border-top: 1px solid var(--rmv-color-border);
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.6rem;
}

.clinical-activity-card-total span {
  color: var(--rmv-color-text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.clinical-activity-card-total strong {
  color: var(--rmv-color-text);
  font-size: 1.25rem;
  font-weight: 700;
}

.clinical-participation-bar-fill,
.clinical-progress-panel--participations .dashboard-simple-bar-fill {
  background: linear-gradient(90deg, #6f42c1, #8b5cf6);
}

.clinical-progress-panel--vaccinations {
  grid-column: auto;
}

.clinical-progress-board .dashboard-simple-bar-list {
  gap: 0.45rem;
}

.clinical-progress-board .dashboard-simple-bar {
  gap: 0.45rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(3rem, 0.8fr) 2rem;
}

.clinical-progress-board .clinical-progress-panel--vaccinations .dashboard-simple-bar {
  grid-template-columns: minmax(0, 1.1fr) minmax(2.5rem, 0.65fr) 1.8rem minmax(4.5rem, auto);
}

.clinical-progress-board .dashboard-simple-bar-label {
  font-size: 0.875rem;
  font-weight: 700;
}

.clinical-progress-board .dashboard-simple-bar-track {
  background: #cbd5e1;
  height: 0.38rem;
}

.clinical-progress-board .dashboard-simple-bar strong {
  font-size: 1rem;
  font-weight: 800;
}

.clinical-progress-board .dashboard-simple-bar small {
  font-size: 0.78rem;
}

.clinical-progress-footer {
  background: #fff;
  border: 1px solid var(--rmv-color-border);
  border-radius: 0.55rem;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  justify-content: stretch;
  padding: 0.9rem 0;
}

.clinical-progress-indicator {
  align-items: center;
  border-right: 1px solid var(--rmv-color-border);
  display: grid;
  gap: 0.7rem;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 0.35rem 0.85rem;
}

.clinical-progress-indicator:last-child {
  border-right: 0;
}

.clinical-progress-indicator-icon {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.7rem;
  height: 2.65rem;
  justify-content: center;
  width: 2.65rem;
}

.clinical-progress-indicator > span:last-child {
  display: grid;
  min-width: 0;
}

.clinical-progress-indicator small {
  color: var(--rmv-color-text-muted);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.2;
}

.clinical-progress-indicator strong {
  color: var(--rmv-color-text);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.05;
}

.clinical-progress-indicator--blue .clinical-progress-indicator-icon {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.clinical-progress-indicator--purple .clinical-progress-indicator-icon {
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
}

.clinical-progress-indicator--green .clinical-progress-indicator-icon {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}

.clinical-progress-indicator--teal .clinical-progress-indicator-icon {
  background: rgba(15, 159, 143, 0.12);
  color: #0f9f8f;
}

.clinical-progress-board:fullscreen {
  background: #f8fafc;
  border-radius: 0;
  height: 100%;
  overflow: auto;
}

.clinical-progress-board:fullscreen .clinical-progress-footer {
  padding: 1.15rem 0;
}

.clinical-progress-board:fullscreen .clinical-progress-indicator {
  gap: 0.9rem;
  padding: 0.5rem 1.1rem;
}

.clinical-progress-board:fullscreen .clinical-progress-indicator-icon {
  font-size: 2.05rem;
  height: 3.2rem;
  width: 3.2rem;
}

.clinical-progress-board:fullscreen .clinical-progress-indicator small {
  font-size: 1rem;
}

.clinical-progress-board:fullscreen .clinical-progress-indicator strong {
  font-size: 2.35rem;
}

@media (max-width: 991.98px) {
  .clinical-activity-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .clinical-progress-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clinical-progress-panel--vaccinations {
    grid-column: auto;
  }

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

  .clinical-progress-indicator {
    border-bottom: 1px solid var(--rmv-color-border);
  }
}

@media (max-width: 767.98px) {
  .clinical-progress-panels {
    grid-template-columns: 1fr;
  }

  .clinical-activity-overview-header {
    align-items: stretch;
    flex-direction: column;
  }

  .clinical-activity-card .dashboard-simple-bar,
  .clinical-activity-card--vaccines .dashboard-simple-bar,
  .clinical-progress-board .dashboard-simple-bar,
  .clinical-progress-board .clinical-progress-panel--vaccinations .dashboard-simple-bar {
    grid-template-columns: 1fr;
  }

  .clinical-progress-board .dashboard-simple-bar strong,
  .clinical-progress-board .dashboard-simple-bar small {
    text-align: left;
  }
}

@media (max-width: 479.98px) {
  .clinical-progress-footer {
    grid-template-columns: 1fr;
  }

  .clinical-progress-indicator {
    border-right: 0;
  }
}
/* Regularización de sucursal de afiliación */
.rmv-affiliation-regularization-card {
  padding: 1.1rem 1.2rem 1.2rem;
}

.rmv-affiliation-regularization-card > .rmv-section-title {
  margin-bottom: 0.65rem;
}

.rmv-affiliation-regularization-card > .rmv-section-title + p {
  margin-bottom: 1rem;
}

.rmv-affiliation-regularization-card .rmv-table {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

.rmv-affiliation-owner-summary {
  margin-bottom: 1.1rem;
  padding: 0.9rem 1rem;
}

.rmv-affiliation-primary-action {
  margin-top: 1rem;
}

@media (max-width: 767.98px) {
  .rmv-affiliation-regularization-card {
    padding: 0.85rem;
  }

  .rmv-affiliation-owner-summary {
    padding: 0.8rem 0.85rem;
  }
}
.rmv-owner-account-status-clear { color: inherit; }

/* 5.11.1C cierre visual Ficha 360 */
.rmv-record-last-doctor {
  color: var(--rmv-color-text-muted, #64748b);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.15;
  margin-top: 0.18rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rmv-record-last-doctor abbr {
  cursor: help;
  text-decoration: none;
}
.rmv-record-header-label-row {
  align-items: center;
  display: flex;
  gap: 0.38rem;
  min-width: 0;
}

.rmv-record-header-label-row .rmv-risk-dot {
  flex: 0 0 auto;
}

.rmv-record-header-pet-text {
  min-width: 0;
}

.rmv-record-header-pet-name {
  align-items: baseline;
  display: flex;
  gap: 0.42rem;
  min-width: 0;
}

.rmv-record-header-pet-name > span:first-child,
.rmv-record-header-pet-text .rmv-record-last-doctor {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rmv-record-header-pet-deceased {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  height: 1rem;
  justify-content: center;
  position: static;
  width: 1rem;
}

.rmv-owner-pet-item {
  grid-template-columns: 1rem minmax(0, 1fr);
  min-height: 2.4rem;
}

.rmv-owner-pet-deceased {
  align-items: center;
  color: #111827;
  display: inline-flex;
  height: 1rem;
  justify-content: center;
  position: static;
  width: 1rem;
}

.rmv-owner-pet-deceased svg {
  display: block;
  height: 1rem;
  width: 1rem;
}

.rmv-btn-ticket {
  align-items: center;
  display: inline-flex;
  font-weight: 750;
  gap: 0.3rem;
  justify-content: center;
}

.rmv-consultation-catalog-search {
  min-width: 0;
  position: relative;
  z-index: 30;
}

.rmv-consultation-catalog-results {
  max-width: 100%;
  width: 100%;
}

.rmv-admission-items:has(.rmv-consultation-catalog-search) {
  overflow: visible;
}

body.rmv-discard-consultation-open > .modal-backdrop {
  z-index: 2090;
}

body > #discardConsultationModal {
  z-index: 2100;
}

@media (min-width: 900px) {
  .rmv-admission-attachments .rmv-clinical-attachment-table th:nth-child(1),
  .rmv-admission-attachments .rmv-clinical-attachment-table td:nth-child(1),
  .rmv-admission-attachments .rmv-clinical-attachment-table th:nth-child(3),
  .rmv-admission-attachments .rmv-clinical-attachment-table td:nth-child(3),
  .rmv-admission-attachments .rmv-clinical-attachment-table th:nth-child(5),
  .rmv-admission-attachments .rmv-clinical-attachment-table td:nth-child(5),
  .rmv-admission-attachments .rmv-clinical-attachment-table th:nth-child(7),
  .rmv-admission-attachments .rmv-clinical-attachment-table td:nth-child(7) {
    white-space: nowrap;
    width: 1%;
  }

  .rmv-admission-attachments .rmv-clinical-attachment-table th:nth-child(2),
  .rmv-admission-attachments .rmv-clinical-attachment-table td:nth-child(2) {
    min-width: 10rem;
  }

  .rmv-admission-attachments .rmv-clinical-attachment-table th:nth-child(4),
  .rmv-admission-attachments .rmv-clinical-attachment-table td:nth-child(4) {
    min-width: 11rem;
    width: 28%;
  }

  .rmv-admission-attachments .rmv-clinical-attachment-table th:nth-child(6),
  .rmv-admission-attachments .rmv-clinical-attachment-table td:nth-child(6) {
    min-width: 10rem;
  }
}
/* 5.11 seguimiento: autocomplete de Servicio sobre la Ficha 360 */
.rmv-record-main-card:has(.rmv-operational-service-search) {
  overflow: visible;
}

.rmv-operational-panel:has(.rmv-operational-service-search),
#tab-seguimiento:has(.rmv-operational-service-search) {
  overflow: visible;
}

.rmv-operational-service-search {
  min-width: 0;
  position: relative;
}

.rmv-operational-service-search:focus-within {
  z-index: 1200;
}

.rmv-operational-service-search .rmv-line-item-catalog-results {
  max-height: min(17rem, calc(100vh - 8rem));
  max-width: 100%;
  width: 100%;
  z-index: 1210;
}
/* Captura compartida de adjuntos clínicos: Consulta y Admisión. */
.rmv-clinical-attachment-capture {
  align-items: end;
  background: var(--rmv-color-background);
  border: 1px solid var(--rmv-color-border);
  border-radius: 8px;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(14rem, 1.35fr) minmax(11rem, 0.8fr) minmax(14rem, 1.15fr) auto;
  padding: 0.75rem;
}

.rmv-clinical-attachment-capture .form-label {
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
}

.rmv-clinical-attachment-capture .form-control,
.rmv-clinical-attachment-capture .form-select,
.rmv-clinical-attachment-capture > .btn {
  min-height: 38px;
}

.rmv-clinical-attachment-capture-validation {
  grid-column: 1 / -1;
  margin: 0;
}

@media (max-width: 899px) {
  .rmv-clinical-attachment-capture {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767.98px) {
  .rmv-admission-vitals-grid {
    grid-template-columns: 1fr;
  }

  .rmv-admission-vitals-grid .rmv-admission-weight,
  .rmv-admission-vitals-grid .rmv-admission-temperature,
  .rmv-admission-vitals-grid .rmv-admission-mucous,
  .rmv-admission-vitals-grid .rmv-admission-respiratory,
  .rmv-admission-vitals-grid .rmv-admission-heart {
    grid-column: auto;
  }
}
/* Global processing feedback for write operations. */
.rmv-processing-overlay {
  position: fixed;
  inset: 0;
  z-index: 2140;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(15, 35, 65, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 140ms ease, visibility 140ms ease;
}

.rmv-processing-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.rmv-processing-overlay-panel {
  display: grid;
  min-width: min(18rem, calc(100vw - 2rem));
  justify-items: center;
  gap: 0.35rem;
  padding: 1rem 1.35rem;
  color: var(--rmv-text, #24344d);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(42, 104, 191, 0.2);
  border-radius: 0.85rem;
  box-shadow: 0 0.8rem 2.25rem rgba(21, 51, 91, 0.18);
  text-align: center;
}

.rmv-processing-overlay-brand {
  display: block;
  max-width: 8.5rem;
  max-height: 2.5rem;
  object-fit: contain;
  margin-bottom: 0.15rem;
}

.rmv-processing-overlay-brand[hidden] {
  display: none;
}
.rmv-processing-overlay-panel .spinner-border {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--rmv-primary, #1469d8);
}

.rmv-processing-overlay-panel > span:last-child {
  color: var(--rmv-muted, #65758b);
  font-size: 0.875rem;
}

[data-rmv-processing-button='true'] {
  cursor: wait;
}

[data-rmv-processing-button='true'] .spinner-border {
  margin-right: 0.45rem;
}

@media (prefers-reduced-motion: reduce) {
  .rmv-processing-overlay {
    transition: none;
  }
}

/* Encabezado compacto: usuario, sede, pantalla, notificaciones y salida. */
.rmv-session-nav {
  align-items: center;
  flex-wrap: nowrap;
}

.rmv-header-icon-button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 2.15rem;
  height: 2.15rem;
  justify-content: center;
  line-height: 1;
  padding: 0 !important;
  width: 2.15rem;
}

.rmv-branch-context-link {
  background: #343a40;
  border: 1px solid #212529;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  color: #fff !important;
  opacity: 1 !important;
}

.rmv-navbar .rmv-branch-context-link > .bi {
  color: #fff !important;
  font-size: 1.05rem;
  opacity: 1 !important;
}

.rmv-branch-context-link:hover,
.rmv-branch-context-link:focus,
.rmv-branch-context-link:focus-visible {
  background: #f8f9fa;
  border-color: #adb5bd;
  color: #212529 !important;
}

.rmv-navbar .rmv-branch-context-link:hover > .bi,
.rmv-navbar .rmv-branch-context-link:focus > .bi,
.rmv-navbar .rmv-branch-context-link:focus-visible > .bi,
.rmv-navbar .rmv-branch-context-link:hover > .bi::before,
.rmv-navbar .rmv-branch-context-link:focus > .bi::before,
.rmv-navbar .rmv-branch-context-link:focus-visible > .bi::before {
  color: #212529 !important;
  -webkit-text-fill-color: #212529;
}

.rmv-revaccination-info {
  align-items: center;
  border: 0;
  color: #842029;
  display: inline-flex;
  font-size: 0.9rem;
  justify-content: center;
  line-height: 1;
  min-height: 1.75rem;
  padding: 0.25rem;
}

.rmv-revaccination-info:hover,
.rmv-revaccination-info:focus-visible {
  background: #fdecec;
  color: #842029;
}

.rmv-tooltip-danger-soft {
  --bs-tooltip-bg: #fdecec;
  --bs-tooltip-color: #842029;
  --bs-tooltip-opacity: 1;
  --bs-tooltip-max-width: 310px;
  opacity: 1 !important;
}

.rmv-tooltip-danger-soft .tooltip-inner {
  background-color: #fdecec !important;
  border: 1px solid #f5c2c7;
  box-shadow: 0 0.2rem 0.55rem rgba(132, 32, 41, 0.1);
  color: #842029 !important;
  max-width: min(310px, calc(100vw - 2rem));
  padding: 0.75rem 0.85rem;
  text-align: left;
  width: 310px;
}

.rmv-revaccination-tooltip-title {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.rmv-revaccination-tooltip-block {
  line-height: 1.38;
}

.rmv-revaccination-tooltip-block + .rmv-revaccination-tooltip-block {
  border-top: 1px solid rgba(245, 194, 199, 0.9);
  margin-top: 0.6rem;
  padding-top: 0.6rem;
}
.rmv-tooltip-danger-soft.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: #fdecec !important;
}

.rmv-tooltip-danger-soft.bs-tooltip-end .tooltip-arrow::before {
  border-right-color: #fdecec !important;
}

.rmv-tooltip-danger-soft.bs-tooltip-bottom .tooltip-arrow::before {
  border-bottom-color: #fdecec !important;
}

.rmv-tooltip-danger-soft.bs-tooltip-start .tooltip-arrow::before {
  border-left-color: #fdecec !important;
}

.rmv-current-user-item {
  max-width: 10.5rem;
  padding-inline: 0.25rem;
}

.rmv-current-user-name,
.rmv-current-user-role {
  max-width: 10rem;
}

@media (max-width: 575.98px) {
  .rmv-session-nav {
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
  }
}
/* 5.11.1 tablet record tabs and revaccination table stability */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .rmv-record-main-card > .rmv-tabs[data-rmv-record-tabs] {
    gap: 0.2rem;
    padding: 0.2rem 0.45rem;
  }

  .rmv-record-main-card > .rmv-tabs[data-rmv-record-tabs] .rmv-tab {
    font-size: 0.82rem;
    padding: 0.48rem 0.68rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .rmv-record-main-card > .rmv-tabs[data-rmv-record-tabs] {
    gap: 0.1rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .rmv-record-main-card > .rmv-tabs[data-rmv-record-tabs] .rmv-tab {
    padding-left: 0.28rem;
    padding-right: 0.28rem;
  }

  .rmv-record-main-card > .rmv-tabs[data-rmv-record-tabs] .rmv-icon,
  .rmv-record-main-card > .rmv-tabs[data-rmv-record-tabs] .rmv-nav-svg-icon {
    display: none;
  }
}
.rmv-record-main-card > .rmv-tabs[data-rmv-record-tabs] {
  box-sizing: border-box;
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-behavior: auto;
  scrollbar-width: thin;
  touch-action: pan-x;
  white-space: nowrap;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.rmv-record-main-card > .rmv-tabs[data-rmv-record-tabs] .rmv-tab {
  flex: 0 0 auto;
  max-width: none;
  min-width: max-content;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .rmv-report-table-card {
    display: block;
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
  }

  .rmv-report-table-card .rmv-report-table-wrap {
    display: block;
    height: auto;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    touch-action: pan-x pan-y;
    width: 100%;
    -webkit-overflow-scrolling: auto;
  }

  .rmv-report-table-card .rmv-revaccination-table {
    display: table;
    height: auto;
    opacity: 1;
    visibility: visible;
  }

  .rmv-report-table-card .rmv-revaccination-table tbody {
    display: table-row-group;
    height: auto;
    visibility: visible;
  }

  .rmv-report-table-card .rmv-revaccination-table tbody tr {
    display: table-row;
    visibility: visible;
  }
}
.rmv-support-logout-dialog {
  max-width: 720px;
}

.rmv-support-logout-actions > button,
.rmv-support-logout-actions > form {
  flex: 1 1 0;
  min-width: 0;
}

.rmv-support-logout-actions > form > .btn {
  height: 100%;
  white-space: nowrap;
  width: 100%;
}

.rmv-support-logout-actions > .btn {
  white-space: nowrap;
}

.rmv-expediente-page-header {
  display: block;
  margin-bottom: 0.6rem;
  padding-block: 0.2rem;
}

.rmv-expediente-page-header .rmv-page-title,
.rmv-record-owner-pet-header .rmv-page-title {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.rmv-expediente-branch-label,
.rmv-expediente-result-count {
  color: var(--rmv-color-text-muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.rmv-expediente-search-panel {
  padding-block: 0.75rem !important;
}

.rmv-expediente-search-row {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.rmv-expediente-search-zone {
  align-items: center;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: minmax(0, 1fr) minmax(8.5rem, 0.32fr);
}

.rmv-expediente-new-owner-zone {
  display: flex;
  justify-content: flex-end;
}

.rmv-expediente-search-panel .btn,
.rmv-expediente-search-panel .form-control,
.rmv-record-owner-pet-toolbar .btn,
.rmv-record-owner-pet-toolbar .form-control {
  min-height: 2.4rem;
}

.rmv-expediente-search-button .btn {
  width: 100%;
}

@media (max-width: 767.98px) {
  .rmv-expediente-search-row {
    gap: 0.65rem;
    grid-template-columns: minmax(0, 1fr);
  }

  .rmv-expediente-new-owner-zone {
    justify-content: flex-start;
  }
}

@media (max-width: 575.98px) {
  .rmv-expediente-search-zone {
    grid-template-columns: minmax(0, 1fr);
  }
}

.rmv-expediente-results-table > :not(caption) > * > * {
  padding-block: 0.34rem;
}

.rmv-expediente-pagination .btn {
  min-width: 7rem;
}
.rmv-expediente-pagination .rmv-expediente-page-numbers .btn {
  min-width: 2.15rem;
  padding-inline: 0.5rem;
}

.rmv-expediente-results-panel {
  padding-block: 0.75rem !important;
}

@media (max-width: 575.98px) {
  .rmv-support-logout-actions {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  .rmv-support-logout-actions > button,
  .rmv-support-logout-actions > form {
    width: 100%;
  }
}

.rmv-pathology-signer-priority {
  width: 100%;
  margin-bottom: 1rem;
  padding: 1rem;
  overflow: hidden;
  background: #fff;
  border: 3px solid #ffc107;
  border-radius: var(--bs-border-radius-lg, 0.5rem);
}

.rmv-pathology-signer-priority .form-label {
  display: block;
  margin-bottom: 0.25rem;
}

.rmv-pathology-signer-help {
  margin: 0 0 0.65rem;
  color: var(--bs-secondary-color, #6c757d);
  font-size: 0.82rem;
}

.rmv-pathology-signer-priority .form-select {
  width: 100%;
  max-width: 100%;
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .rmv-pathology-signer-priority {
    padding: 0.85rem;
  }
}
/* Pulido responsive 1024/tablet: archivos nativos y cabecera compacta del monitor. */
@media (max-width: 1199.98px) {
  .form-control[type="file"] {
    padding-inline-end: 0.55rem;
  }

  .form-control[type="file"]::file-selector-button,
  .form-control[type="file"]::-webkit-file-upload-button {
    margin-inline-end: 0.55rem;
    max-width: 64%;
    padding-inline: 0.55rem;
  }

  .rmv-monitor-board {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .rmv-monitor-table {
    min-width: 62rem;
  }

  .rmv-monitor-row {
    gap: 0.4rem;
    grid-template-columns: minmax(7rem, 1.1fr) minmax(7rem, 1fr) minmax(9.65rem, 0.95fr) minmax(7rem, 0.9fr) minmax(7rem, 0.85fr) minmax(2.6rem, 0.24fr) minmax(4.75rem, 0.6fr) minmax(4rem, 0.45fr);
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }
}
@media (min-width: 900px) and (max-width: 1199.98px) {
  .rmv-clinical-attachment-capture {
    grid-template-columns: minmax(18rem, 1.35fr) minmax(13rem, 1fr);
  }

  .rmv-clinical-attachment-capture > .btn {
    justify-self: stretch;
    width: 100%;
  }
}

/* 5.11.1 - Pantalla 01: consultas por veterinario */
.clinical-consultations-display {
  --clinical-display-accent: var(--rmv-color-primary, #0d6efd);
  background:
    radial-gradient(circle at top right, rgba(var(--rmv-color-primary-rgb, 13, 110, 253), 0.1), transparent 34rem),
    #f7faff;
  border: 1px solid var(--rmv-color-border, #dbe7f6);
  border-radius: 1.1rem;
  box-shadow: 0 1rem 2.7rem rgba(15, 48, 92, 0.09);
  color: var(--rmv-color-text, #1f2937);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: min(76vh, 880px);
  overflow: hidden;
  padding: clamp(1rem, 2vw, 2rem);
  width: 100%;
}

.clinical-consultations-display:fullscreen {
  border: 0;
  border-radius: 0;
  height: 100vh;
  max-height: none;
  min-height: 100vh;
  overflow: auto;
  padding: clamp(1.25rem, 2.3vw, 2.75rem);
  width: 100vw;
}

.clinical-consultations-display-header,
.clinical-consultations-display-meta {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.clinical-consultations-display-brand {
  align-items: center;
  display: flex;
  gap: 1rem;
  min-width: 0;
}

.clinical-consultations-display-brand img,
.clinical-consultations-display-brand-fallback {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(var(--rmv-color-primary-rgb, 13, 110, 253), 0.18);
  border-radius: 0.9rem;
  display: flex;
  flex: 0 0 auto;
  height: clamp(3.2rem, 5vw, 4.8rem);
  justify-content: center;
  object-fit: contain;
  padding: 0.35rem;
  width: clamp(4.8rem, 8vw, 7.5rem);
}

.clinical-consultations-display-brand-fallback {
  color: var(--clinical-display-accent);
  font-size: 1.25rem;
  font-weight: 800;
  width: clamp(3.2rem, 5vw, 4.8rem);
}

.clinical-consultations-display-brand p {
  color: var(--rmv-color-text-muted, #64748b);
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  font-weight: 700;
  margin: 0 0 0.2rem;
}

.clinical-consultations-display-brand h1 {
  font-size: clamp(1.45rem, 2.4vw, 2.45rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
}

.clinical-consultations-display-controls {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 0.65rem;
}

.clinical-consultations-display-controls .btn {
  align-items: center;
  display: inline-flex;
  gap: 0.4rem;
  justify-content: center;
  min-height: 2.5rem;
}

.clinical-consultations-display-meta {
  border-bottom: 1px solid var(--rmv-color-border, #dbe7f6);
  border-top: 1px solid var(--rmv-color-border, #dbe7f6);
  padding: 0.65rem 0;
}

.clinical-consultations-display-meta form {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

.clinical-consultations-display-meta label {
  color: var(--rmv-color-text-muted, #64748b);
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 0 0 0.35rem;
}

.clinical-consultations-display-meta select {
  min-width: 8.5rem;
}

.clinical-consultations-display-meta p {
  align-items: center;
  color: var(--rmv-color-text-muted, #64748b);
  display: flex;
  flex-wrap: wrap;
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  gap: 0.4rem;
  justify-content: flex-end;
  margin: 0;
  text-align: right;
}

.clinical-consultations-display-dynamic {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.clinical-consultations-display-list {
  display: grid;
  gap: clamp(0.55rem, 1vh, 0.9rem);
}

.clinical-consultations-display-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(175, 196, 224, 0.58);
  border-radius: 0.9rem;
  display: grid;
  gap: clamp(0.7rem, 1.4vw, 1.2rem);
  grid-template-columns: 3.2rem minmax(11rem, 22rem) minmax(8rem, 1fr) 4.2rem;
  min-height: clamp(4.3rem, 7vh, 5.4rem);
  padding: 0.65rem clamp(0.75rem, 1.4vw, 1.35rem);
}

.clinical-consultations-display-avatar {
  align-items: center;
  aspect-ratio: 1;
  background: #e7f1ff;
  border: 1px solid #b8d4ff;
  border-radius: 50%;
  color: #0d6efd;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 850;
  justify-content: center;
  width: 3.2rem;
}

.clinical-consultations-display-row:nth-child(4n + 2) .clinical-consultations-display-avatar {
  background: #f1eafe;
  border-color: #d8c2f3;
  color: #6f42c1;
}

.clinical-consultations-display-row:nth-child(4n + 3) .clinical-consultations-display-avatar {
  background: #dff5e8;
  border-color: #a3cfbb;
  color: #146c43;
}

.clinical-consultations-display-row:nth-child(4n) .clinical-consultations-display-avatar {
  background: #fff3cd;
  border-color: #ffe69c;
  color: #806000;
}

.clinical-consultations-display-name {
  font-size: clamp(1rem, 1.5vw, 1.45rem);
  line-height: 1.15;
  min-width: 0;
}

.clinical-consultations-display-track {
  background: #e4ebf5;
  border-radius: 999px;
  height: clamp(0.75rem, 1.2vw, 1.05rem);
  min-width: 0;
  overflow: hidden;
}

.clinical-consultations-display-track span {
  background: linear-gradient(90deg, var(--clinical-display-accent), #65a6ff);
  border-radius: inherit;
  display: block;
  height: 100%;
  min-width: 0;
  transition: width 260ms ease;
}

.clinical-consultations-display-count {
  color: var(--clinical-display-accent);
  font-size: clamp(1.6rem, 2.7vw, 2.6rem);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  line-height: 1;
  text-align: right;
}

.clinical-consultations-display-empty {
  color: var(--rmv-color-text-muted, #64748b);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  margin: 1.25rem 0 0;
  text-align: center;
}

.clinical-consultations-display-total {
  align-items: baseline;
  border-top: 2px solid rgba(var(--rmv-color-primary-rgb, 13, 110, 253), 0.16);
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 1rem;
}

.clinical-consultations-display-total span {
  color: var(--rmv-color-text-muted, #64748b);
  font-size: clamp(0.95rem, 1.3vw, 1.2rem);
  font-weight: 750;
}

.clinical-consultations-display-total strong {
  color: var(--clinical-display-accent);
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-left: 0.8rem;
}

.clinical-consultations-display.is-vertical .clinical-consultations-display-row {
  grid-template-columns: 3.2rem minmax(0, 1fr) 4rem;
  grid-template-rows: auto auto;
}

.clinical-consultations-display.is-vertical .clinical-consultations-display-track {
  grid-column: 2 / 4;
  grid-row: 2;
}

.clinical-consultations-display.is-vertical .clinical-consultations-display-count {
  grid-column: 3;
  grid-row: 1;
}

@media (orientation: portrait) {
  .clinical-consultations-display {
    min-height: 82vh;
  }

  .clinical-consultations-display.is-vertical .clinical-consultations-display-list {
    gap: clamp(0.8rem, 1.5vh, 1.3rem);
  }

  .clinical-consultations-display.is-vertical .clinical-consultations-display-row {
    min-height: clamp(5.4rem, 8vh, 7rem);
  }
}

@media (max-width: 991.98px) {
  .clinical-consultations-display-header,
  .clinical-consultations-display-meta {
    align-items: stretch;
    flex-direction: column;
  }

  .clinical-consultations-display-controls {
    flex-wrap: wrap;
  }

  .clinical-consultations-display-meta p {
    justify-content: flex-start;
    text-align: left;
  }

  .clinical-consultations-display-row {
    grid-template-columns: 3rem minmax(8rem, 14rem) minmax(7rem, 1fr) 3.2rem;
  }

  .clinical-consultations-display-avatar {
    width: 3rem;
  }
}

@media (max-width: 640px) {
  .clinical-consultations-display {
    border-radius: 0.8rem;
    padding: 0.85rem;
  }

  .clinical-consultations-display-brand img {
    width: 4.8rem;
  }

  .clinical-consultations-display-controls,
  .clinical-consultations-display-controls .btn-group,
  .clinical-consultations-display-controls .btn {
    width: 100%;
  }

  .clinical-consultations-display-meta form {
    align-items: stretch;
    flex-direction: column;
  }

  .clinical-consultations-display-meta label {
    margin-left: 0;
  }

  .clinical-consultations-display-row,
  .clinical-consultations-display.is-horizontal .clinical-consultations-display-row {
    grid-template-columns: 2.7rem minmax(0, 1fr) 3rem;
    grid-template-rows: auto auto;
  }

  .clinical-consultations-display-row .clinical-consultations-display-track {
    grid-column: 2 / 4;
    grid-row: 2;
  }

  .clinical-consultations-display-row .clinical-consultations-display-count {
    grid-column: 3;
    grid-row: 1;
  }

  .clinical-consultations-display-avatar {
    width: 2.7rem;
  }
}
/* Clinical airport-style carousel */
.clinical-progress-board .dashboard-simple-bar-label {
  display: -webkit-box;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.clinical-carousel {
  --clinical-carousel-accent: #0d6efd;
  background: linear-gradient(145deg, #f7fbff 0%, #eef5ff 100%);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: clamp(0.65rem, 1.2vh, 1rem);
  min-height: 82vh;
  overflow: hidden;
  padding: clamp(1rem, 1.8vw, 1.75rem);
  position: relative;
}

.clinical-carousel:fullscreen {
  border: 0;
  border-radius: 0;
  height: 100vh;
  max-height: none;
  min-height: 100vh;
  padding: clamp(1.2rem, 2vw, 2.25rem);
  width: 100vw;
}

.clinical-carousel-header,
.clinical-carousel-meta,
.clinical-carousel-controls {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.clinical-carousel-brand {
  align-items: center;
  display: flex;
  gap: 1rem;
  min-width: 0;
}

.clinical-carousel-brand img,
.clinical-carousel-brand-fallback {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(13, 110, 253, 0.18);
  border-radius: 0.9rem;
  display: flex;
  flex: 0 0 auto;
  height: clamp(3.2rem, 5vw, 4.8rem);
  justify-content: center;
  object-fit: contain;
  padding: 0.35rem;
  width: clamp(4.8rem, 8vw, 7.5rem);
}

.clinical-carousel-brand-fallback {
  color: var(--clinical-carousel-accent);
  font-size: 1.25rem;
  font-weight: 800;
  width: clamp(3.2rem, 5vw, 4.8rem);
}

.clinical-carousel-brand p {
  color: var(--rmv-color-text-muted, #64748b);
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  font-weight: 700;
  margin: 0 0 0.2rem;
}

.clinical-carousel-brand h1 {
  font-size: clamp(1.35rem, 2vw, 2.15rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

.clinical-carousel-fullscreen,
.clinical-carousel-controls .btn {
  align-items: center;
  display: inline-flex;
  gap: 0.4rem;
  justify-content: center;
  min-height: 2.5rem;
}

.clinical-carousel-meta {
  border-bottom: 1px solid var(--rmv-color-border, #dbe7f6);
  border-top: 1px solid var(--rmv-color-border, #dbe7f6);
  min-height: 2.5rem;
  padding: 0.55rem 0;
}

.clinical-carousel-meta p {
  align-items: center;
  color: var(--rmv-color-text-muted, #64748b);
  display: flex;
  flex-wrap: wrap;
  font-size: clamp(0.82rem, 1vw, 0.98rem);
  gap: 0.4rem;
  margin: 0;
}

.clinical-carousel-dynamic {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

.clinical-carousel-slide {
  --clinical-carousel-slide-accent: #0d6efd;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

.clinical-carousel-slide[hidden] {
  display: none !important;
}

.clinical-carousel-slide--purple {
  --clinical-carousel-slide-accent: #6f42c1;
}

.clinical-carousel-slide--green {
  --clinical-carousel-slide-accent: #198754;
}

.clinical-carousel-slide-header {
  align-items: center;
  display: flex;
  gap: 0.8rem;
  margin-bottom: clamp(0.65rem, 1.3vh, 1.1rem);
}

.clinical-carousel-slide-icon {
  align-items: center;
  background: color-mix(in srgb, var(--clinical-carousel-slide-accent) 12%, white);
  border: 1px solid color-mix(in srgb, var(--clinical-carousel-slide-accent) 30%, white);
  border-radius: 50%;
  color: var(--clinical-carousel-slide-accent);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: clamp(1.1rem, 1.8vw, 1.65rem);
  height: clamp(2.7rem, 4vw, 3.8rem);
  justify-content: center;
  width: clamp(2.7rem, 4vw, 3.8rem);
}

.clinical-carousel-slide-header h2 {
  font-size: clamp(1.75rem, 3.2vw, 3.4rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
}

.clinical-carousel-list {
  display: grid;
  flex: 1 1 auto;
  gap: clamp(0.45rem, 0.9vh, 0.8rem);
  grid-template-rows: repeat(var(--clinical-carousel-rows, 1), minmax(0, 1fr));
  min-height: 0;
}

.clinical-carousel-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(175, 196, 224, 0.6);
  border-radius: 0.9rem;
  display: grid;
  gap: clamp(0.75rem, 1.4vw, 1.35rem);
  grid-template-columns: clamp(3rem, 4.5vw, 4.3rem) minmax(10rem, 21rem) minmax(8rem, 1fr) clamp(3.8rem, 6vw, 6rem);
  min-height: 0;
  padding: clamp(0.45rem, 0.9vh, 0.8rem) clamp(0.75rem, 1.5vw, 1.5rem);
}

.clinical-carousel-avatar {
  align-items: center;
  aspect-ratio: 1;
  background: #e7f1ff;
  border: 1px solid #b8d4ff;
  border-radius: 50%;
  color: #0d6efd;
  display: inline-flex;
  font-size: clamp(0.9rem, 1.4vw, 1.25rem);
  font-weight: 850;
  justify-content: center;
  width: clamp(3rem, 4.5vw, 4.3rem);
}

.clinical-carousel-row:nth-child(4n + 2) .clinical-carousel-avatar {
  background: #f1eafe;
  border-color: #d8c2f3;
  color: #6f42c1;
}

.clinical-carousel-row:nth-child(4n + 3) .clinical-carousel-avatar {
  background: #dff5e8;
  border-color: #a3cfbb;
  color: #146c43;
}

.clinical-carousel-row:nth-child(4n) .clinical-carousel-avatar {
  background: #fff3cd;
  border-color: #ffe69c;
  color: #806000;
}

.clinical-carousel-name {
  font-size: clamp(1.15rem, 1.8vw, 1.75rem);
  line-height: 1.12;
  min-width: 0;
}

.clinical-carousel-track {
  background: #e4ebf5;
  border-radius: 999px;
  height: clamp(0.85rem, 1.35vw, 1.2rem);
  min-width: 0;
  overflow: hidden;
}

.clinical-carousel-track span {
  background: linear-gradient(90deg, var(--clinical-carousel-slide-accent), color-mix(in srgb, var(--clinical-carousel-slide-accent) 55%, white));
  border-radius: inherit;
  display: block;
  height: 100%;
  min-width: 0;
  transition: width 260ms ease;
}

.clinical-carousel-count {
  color: var(--clinical-carousel-slide-accent);
  font-size: clamp(2rem, 3.8vw, 4rem);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  line-height: 1;
  text-align: right;
}

.clinical-carousel-empty {
  color: var(--rmv-color-text-muted, #64748b);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  margin: 0.8rem 0 0;
  text-align: center;
}

.clinical-carousel-total {
  align-items: baseline;
  border-top: 2px solid color-mix(in srgb, var(--clinical-carousel-slide-accent) 18%, white);
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(0.6rem, 1.2vh, 1rem);
  padding-top: clamp(0.55rem, 1vh, 0.9rem);
}

.clinical-carousel-total span {
  color: var(--rmv-color-text-muted, #64748b);
  font-size: clamp(1rem, 1.35vw, 1.3rem);
  font-weight: 750;
}

.clinical-carousel-total strong {
  color: var(--clinical-carousel-slide-accent);
  font-size: clamp(2.2rem, 4.5vw, 4.5rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-left: 0.8rem;
}

.clinical-carousel-controls {
  border-top: 1px solid var(--rmv-color-border, #dbe7f6);
  flex-wrap: wrap;
  padding-top: 0.75rem;
}

.clinical-carousel-navigation,
.clinical-carousel-status {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

.clinical-carousel-status {
  color: var(--rmv-color-text-muted, #64748b);
  flex-direction: column;
  font-size: 0.78rem;
  line-height: 1.1;
  min-width: 7rem;
}

.clinical-carousel-status strong {
  color: var(--rmv-color-text, #1f2937);
  font-size: 0.95rem;
}

.clinical-carousel.is-vertical .clinical-carousel-row {
  grid-template-columns: clamp(3rem, 5vw, 4.6rem) minmax(0, 1fr) clamp(4rem, 8vw, 6.5rem);
  grid-template-rows: auto auto;
}

.clinical-carousel.is-vertical .clinical-carousel-track {
  grid-column: 2 / 4;
  grid-row: 2;
}

.clinical-carousel.is-vertical .clinical-carousel-count {
  grid-column: 3;
  grid-row: 1;
}

@media (orientation: portrait) {
  .clinical-carousel {
    min-height: 88vh;
  }

  .clinical-carousel.is-vertical .clinical-carousel-row {
    padding-block: clamp(0.65rem, 1.2vh, 1rem);
  }
}

@media (max-width: 991.98px) {
  .clinical-carousel-header {
    align-items: stretch;
  }

  .clinical-carousel-row {
    grid-template-columns: 3rem minmax(8rem, 13rem) minmax(6rem, 1fr) 3.5rem;
  }

  .clinical-carousel-avatar {
    width: 3rem;
  }

  .clinical-carousel-controls {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .clinical-carousel {
    border-radius: 0.8rem;
    padding: 0.8rem;
  }

  .clinical-carousel-header {
    align-items: center;
  }

  .clinical-carousel-fullscreen {
    font-size: 0;
    padding-inline: 0.75rem;
  }

  .clinical-carousel-fullscreen .bi {
    font-size: 1rem;
  }

  .clinical-carousel-row,
  .clinical-carousel.is-horizontal .clinical-carousel-row {
    grid-template-columns: 2.7rem minmax(0, 1fr) 3rem;
    grid-template-rows: auto auto;
  }

  .clinical-carousel-row .clinical-carousel-track {
    grid-column: 2 / 4;
    grid-row: 2;
  }

  .clinical-carousel-row .clinical-carousel-count {
    grid-column: 3;
    grid-row: 1;
  }

  .clinical-carousel-avatar {
    width: 2.7rem;
  }

  .clinical-carousel-orientation {
    order: 4;
    width: 100%;
  }

  .clinical-carousel-orientation .btn {
    flex: 1 1 50%;
  }
}
/* Single clinical airport summary */
.clinical-airport-dynamic {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.clinical-airport-table {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 0.9rem;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.clinical-airport-header,
.clinical-airport-row {
  align-items: center;
  display: grid;
  gap: clamp(0.65rem, 1.4vw, 1.4rem);
  grid-template-columns: minmax(18rem, 2.2fr) repeat(3, minmax(7rem, 1fr));
}

.clinical-airport-header {
  background: #f3f6fa;
  border-bottom: 2px solid #dbe5f1;
  min-height: clamp(3.4rem, 6vh, 4.6rem);
  padding: 0.7rem clamp(1rem, 2vw, 2rem);
}

.clinical-airport-heading {
  font-size: clamp(0.9rem, 1.35vw, 1.25rem);
  font-weight: 850;
  letter-spacing: 0.045em;
  text-align: center;
  text-transform: uppercase;
}

.clinical-airport-heading--veterinarian {
  color: #27364a;
  text-align: left;
}

.clinical-airport-heading--consultations {
  color: #0d6efd;
}

.clinical-airport-heading--vaccinations {
  color: #198754;
}

.clinical-airport-heading--assistances {
  color: #6f42c1;
}

.clinical-airport-body {
  display: grid;
  flex: 1 1 auto;
  grid-template-rows: repeat(var(--clinical-airport-rows, 1), minmax(0, 1fr));
  min-height: 0;
}

.clinical-airport-row {
  border-bottom: 1px solid #dce5ef;
  min-height: clamp(4rem, 8vh, 6.8rem);
  padding: clamp(0.55rem, 1vh, 0.9rem) clamp(1rem, 2vw, 2rem);
  will-change: transform;
}

.clinical-airport-row:last-child {
  border-bottom: 0;
}

.clinical-airport-row:nth-child(even) {
  background: rgba(244, 247, 251, 0.72);
}

.clinical-airport-veterinarian {
  align-items: center;
  color: var(--rmv-color-text, #1f2937);
  display: flex;
  gap: clamp(0.8rem, 1.35vw, 1.25rem);
  min-width: 0;
}

.clinical-airport-veterinarian strong {
  color: inherit;
  font-size: clamp(1.25rem, 2.25vw, 2.3rem);
  font-weight: 800;
  line-height: 1.08;
  min-width: 0;
}

.clinical-airport-avatar {
  align-items: center;
  aspect-ratio: 1;
  background: #edf3fa;
  border: 1px solid #cbd8e8;
  border-radius: 50%;
  color: #34465d;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: clamp(0.9rem, 1.35vw, 1.2rem);
  font-weight: 850;
  justify-content: center;
  width: clamp(3rem, 4.8vw, 4.8rem);
}

.clinical-airport-value {
  backface-visibility: hidden;
  color: var(--rmv-color-text, #1f2937);
  display: inline-block;
  font-size: clamp(2rem, 4.2vw, 4.6rem);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  transform-origin: center;
}

.clinical-airport-value.is-split-flipping {
  animation: rmv-clinical-split-flap 360ms ease-out;
}

.clinical-airport-empty {
  color: var(--rmv-color-text-muted, #64748b);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  margin: 0.75rem 0 0;
  text-align: center;
}

.clinical-airport-board .clinical-carousel-controls {
  justify-content: flex-end;
}

.clinical-airport-board.is-vertical .clinical-airport-header,
.clinical-airport-board.is-vertical .clinical-airport-row {
  gap: clamp(0.35rem, 0.9vw, 0.8rem);
  grid-template-columns: minmax(11rem, 2.8fr) repeat(3, minmax(4.4rem, 0.75fr));
}

.clinical-airport-board.is-vertical .clinical-airport-header,
.clinical-airport-board.is-vertical .clinical-airport-row {
  padding-inline: clamp(0.65rem, 1.4vw, 1.25rem);
}

.clinical-airport-board.is-vertical .clinical-airport-veterinarian strong {
  font-size: clamp(1.05rem, 2vw, 1.85rem);
}

.clinical-airport-board.is-vertical .clinical-airport-value {
  font-size: clamp(1.7rem, 3.8vw, 3.8rem);
}

@keyframes rmv-clinical-split-flap {
  0% {
    opacity: 1;
    transform: perspective(10rem) rotateX(0deg);
  }
  48% {
    opacity: 0.55;
    transform: perspective(10rem) rotateX(-78deg);
  }
  52% {
    opacity: 0.55;
    transform: perspective(10rem) rotateX(78deg);
  }
  100% {
    opacity: 1;
    transform: perspective(10rem) rotateX(0deg);
  }
}

@media (max-width: 900px) {
  .clinical-airport-header,
  .clinical-airport-row {
    gap: 0.4rem;
    grid-template-columns: minmax(10rem, 2.5fr) repeat(3, minmax(3.8rem, 0.7fr));
    padding-inline: 0.65rem;
  }

  .clinical-airport-heading {
    font-size: 0.76rem;
    letter-spacing: 0.015em;
  }

  .clinical-airport-veterinarian strong {
    font-size: clamp(1rem, 2.3vw, 1.35rem);
  }

  .clinical-airport-avatar {
    width: 2.7rem;
  }

  .clinical-airport-value {
    font-size: clamp(1.65rem, 4.5vw, 2.6rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .clinical-airport-row,
  .clinical-airport-value {
    animation: none !important;
    transition: none !important;
  }
}
/* Final dark split-flap presentation for the clinical carousel */
.clinical-airport-board {
  background: radial-gradient(circle at top, #1a1e24 0%, #0b0d10 58%, #050607 100%);
  border-color: #2c323a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025), 0 1rem 3rem rgba(0, 0, 0, 0.42);
  color: #f4f6f8;
}

.clinical-airport-board .clinical-carousel-brand p,
.clinical-airport-board .clinical-carousel-meta p {
  color: #aab3bf;
}

.clinical-airport-board .clinical-carousel-brand h1,
.clinical-airport-board .clinical-carousel-meta strong {
  color: #f7f8fa;
}

.clinical-airport-board .clinical-carousel-meta,
.clinical-airport-board .clinical-carousel-controls {
  border-color: #30363e;
}

.clinical-airport-board .clinical-carousel-controls .btn-outline-primary {
  --bs-btn-color: #9fc5ff;
  --bs-btn-border-color: #4d6f9e;
  --bs-btn-hover-bg: #244a7a;
  --bs-btn-hover-border-color: #72a8ef;
  --bs-btn-active-bg: #1e5ca7;
  --bs-btn-active-border-color: #8dbdff;
}

.clinical-airport-board .btn-outline-secondary {
  --bs-btn-color: #d1d7df;
  --bs-btn-border-color: #59616c;
  --bs-btn-hover-bg: #343a42;
  --bs-btn-hover-border-color: #79828e;
}

.clinical-split-table {
  background: #090b0e;
  border: 1px solid #343a43;
  border-radius: 0.55rem;
  box-shadow: inset 0 0 2rem rgba(0, 0, 0, 0.78), 0 0.65rem 1.8rem rgba(0, 0, 0, 0.38);
}

.clinical-split-header {
  background: #11151a;
  border-bottom-color: #3a414b;
}

.clinical-split-header .clinical-airport-heading {
  font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  text-shadow: 0 0 0.75rem currentColor;
}

.clinical-split-header .clinical-airport-heading--veterinarian {
  color: #f0f2f5;
}

.clinical-split-row,
.clinical-split-row:nth-child(even) {
  background: #0b0e11;
  border-bottom: 0;
}

.clinical-split-row:nth-child(even) {
  background: #0e1115;
}

.clinical-split-body {
  align-content: start;
  background: #080a0c;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.clinical-airport-board .clinical-split-row {
  border-bottom: 0;
  flex: 0 0 clamp(2.65rem, 5.1vh, 3.9rem);
  min-height: 0;
  padding-block: clamp(0.12rem, 0.35vh, 0.28rem);
}

.clinical-split-name,
.clinical-split-metric {
  align-items: stretch;
  display: flex;
  gap: clamp(1px, 0.16vw, 3px);
  min-width: 0;
  overflow: hidden;
}

.clinical-split-name {
  height: 100%;
}

.clinical-split-metric {
  justify-content: center;
  overflow: visible;
}

.clinical-flap-character {
  align-items: center;
  background:
    linear-gradient(to bottom, #292d32 0%, #1c1f23 48.5%, #090b0d 49%, #090b0d 51%, #171a1e 51.5%, #23272c 100%);
  border: 1px solid #3a3f46;
  border-radius: 0.18rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.8),
    0 2px 4px rgba(0, 0, 0, 0.65);
  color: #f4f5f6;
  display: inline-flex;
  flex: 1 1 1.35rem;
  font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  font-size: clamp(0.72rem, 1.45vw, 1.55rem);
  font-stretch: condensed;
  font-weight: 800;
  height: 100%;
  justify-content: center;
  line-height: 1;
  max-width: clamp(1.35rem, 2.1vw, 2.35rem);
  min-width: 0;
  position: relative;
  text-shadow: 0 1px 1px #000;
  transform-origin: center;
}

.clinical-flap-character::after {
  background: rgba(0, 0, 0, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.035);
  content: "";
  height: 1px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 50%;
}

.clinical-flap-character--space {
  color: transparent;
}

.clinical-flap-character--digit {
  flex: 0 0 clamp(2.25rem, 4.5vw, 4.8rem);
  font-size: clamp(2rem, 4.6vw, 5rem);
  height: 100%;
  max-width: none;
  width: clamp(2.25rem, 4.5vw, 4.8rem);
}

.clinical-flap-character--digit.is-split-flipping {
  animation: rmv-clinical-split-flap 360ms ease-out;
}

.clinical-split-empty {
  color: #aab3bf;
}

.clinical-airport-board.is-vertical .clinical-split-name {
  height: 100%;
}

.clinical-airport-board.is-vertical .clinical-flap-character {
  font-size: clamp(0.68rem, 1.3vw, 1.25rem);
  max-width: clamp(1.05rem, 1.75vw, 1.75rem);
}

.clinical-airport-board.is-vertical .clinical-flap-character--digit {
  flex-basis: clamp(1.75rem, 3.6vw, 3.5rem);
  font-size: clamp(1.65rem, 3.8vw, 3.8rem);
  height: 100%;
  max-width: none;
  width: clamp(1.75rem, 3.6vw, 3.5rem);
}

@media (max-width: 1100px) {
  .clinical-split-name {
    height: 100%;
  }

  .clinical-flap-character {
    font-size: clamp(0.62rem, 1.25vw, 1.05rem);
    max-width: clamp(0.85rem, 1.55vw, 1.45rem);
  }

  .clinical-flap-character--digit {
    flex-basis: clamp(1.8rem, 3.8vw, 3rem);
    font-size: clamp(1.55rem, 3.8vw, 3rem);
    height: 100%;
    max-width: none;
    width: clamp(1.8rem, 3.8vw, 3rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .clinical-flap-character--digit.is-split-flipping {
    animation: none !important;
  }
}
/* Retícula mecánica estable: 30 + 1 + 5 + 1 + 5 + 1 + 5 posiciones. */
.clinical-airport-board {
  --clinical-flap-grid-gap: clamp(1px, 0.1vw, 2px);
}

.clinical-airport-board .clinical-split-header,
.clinical-airport-board .clinical-split-row,
.clinical-airport-board.is-vertical .clinical-split-header,
.clinical-airport-board.is-vertical .clinical-split-row {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(48, minmax(0, 1fr));
  padding-inline: clamp(0.45rem, 1vw, 1rem);
}

.clinical-airport-board .clinical-split-header > :nth-child(1),
.clinical-airport-board .clinical-split-row > .clinical-split-name,
.clinical-airport-board.is-vertical .clinical-split-header > :nth-child(1),
.clinical-airport-board.is-vertical .clinical-split-row > .clinical-split-name {
  grid-column: 1 / span 30;
}

.clinical-airport-board .clinical-split-header > :nth-child(2),
.clinical-airport-board .clinical-split-row > [data-rmv-split-value="consultations"],
.clinical-airport-board.is-vertical .clinical-split-header > :nth-child(2),
.clinical-airport-board.is-vertical .clinical-split-row > [data-rmv-split-value="consultations"] {
  grid-column: 32 / span 5;
}

.clinical-airport-board .clinical-split-header > :nth-child(3),
.clinical-airport-board .clinical-split-row > [data-rmv-split-value="vaccinations"],
.clinical-airport-board.is-vertical .clinical-split-header > :nth-child(3),
.clinical-airport-board.is-vertical .clinical-split-row > [data-rmv-split-value="vaccinations"] {
  grid-column: 38 / span 5;
}

.clinical-airport-board .clinical-split-header > :nth-child(4),
.clinical-airport-board .clinical-split-row > [data-rmv-split-value="assistances"],
.clinical-airport-board.is-vertical .clinical-split-header > :nth-child(4),
.clinical-airport-board.is-vertical .clinical-split-row > [data-rmv-split-value="assistances"] {
  grid-column: 44 / span 5;
}

.clinical-airport-board .clinical-split-name,
.clinical-airport-board .clinical-split-metric,
.clinical-airport-board.is-vertical .clinical-split-name,
.clinical-airport-board.is-vertical .clinical-split-metric {
  display: grid;
  gap: var(--clinical-flap-grid-gap);
  height: 100%;
  min-width: 0;
}

.clinical-airport-board .clinical-split-name,
.clinical-airport-board.is-vertical .clinical-split-name {
  grid-template-columns: repeat(30, minmax(0, 1fr));
}

.clinical-airport-board .clinical-split-metric,
.clinical-airport-board.is-vertical .clinical-split-metric {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.clinical-airport-board .clinical-flap-character,
.clinical-airport-board.is-vertical .clinical-flap-character {
  flex: none;
  font-size: clamp(1rem, 2.15vw, 2.2rem);
  line-height: 0.9;
  max-width: none;
  width: auto;
}

.clinical-airport-board .clinical-flap-character--digit,
.clinical-airport-board.is-vertical .clinical-flap-character--digit {
  font-size: clamp(1.15rem, 2.4vw, 2.55rem);
  width: auto;
}

.clinical-airport-board .clinical-split-row,
.clinical-airport-board.is-vertical .clinical-split-row {
  flex: 0 0 clamp(2.7rem, 5vh, 3.55rem);
  padding-block: 0.08rem;
}
/* Carrusel clínico: controles discretos y banners tenant-aware. */
.clinical-airport-board .clinical-carousel-control {
  --bs-btn-active-bg: rgba(167, 183, 202, 0.1);
  --bs-btn-active-border-color: rgba(180, 197, 217, 0.46);
  --bs-btn-active-color: #e1e7ee;
  --bs-btn-hover-bg: rgba(167, 183, 202, 0.07);
  --bs-btn-hover-border-color: rgba(167, 183, 202, 0.38);
  --bs-btn-hover-color: #eef2f6;
  background: transparent;
  border: 1px solid rgba(145, 161, 180, 0.27);
  box-shadow: none;
  color: #bdc7d2;
}

.clinical-airport-board .clinical-carousel-control:hover,
.clinical-airport-board .clinical-carousel-control:focus-visible,
.clinical-airport-board .clinical-carousel-control.active {
  background: rgba(167, 183, 202, 0.07);
  border-color: rgba(180, 197, 217, 0.46);
  box-shadow: none;
  color: #eef2f6;
}

.clinical-airport-board .clinical-carousel-control:focus-visible {
  outline: 2px solid rgba(194, 207, 222, 0.6);
  outline-offset: 2px;
}

.clinical-carousel-stage {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.clinical-carousel-slide {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.clinical-carousel-slide.is-active {
  display: flex;
}

.clinical-carousel-slide > .clinical-carousel-dynamic {
  flex: 1 1 auto;
}

.clinical-carousel-banner-slide {
  align-items: center;
  background: #000;
  justify-content: center;
  overflow: hidden;
}

.clinical-carousel-banner-slide img {
  display: block;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  width: 100%;
}

.clinical-carousel:fullscreen .clinical-carousel-controls {
  display: none;
}

.rmv-clinical-carousel-admin-thumb {
  aspect-ratio: 16 / 9;
  background: #080a0c;
  border: 1px solid var(--rmv-color-border);
  border-radius: 0.4rem;
  display: block;
  height: 4.5rem;
  object-fit: contain;
  width: 8rem;
}
/* Procedencia visible del peso en consulta a domicilio. */
.rmv-consultation-weight-context.is-historical-weight .form-control {
  background-color: #fffbea;
  border-color: #ead58a;
}

.rmv-consultation-weight-history-note {
  margin-top: 0.35rem;
  color: #725c16;
  font-size: 0.75rem;
  line-height: 1.25;
}
/* Tenant-aware generic interactive controls */
.btn-primary {
  --bs-btn-bg: var(--rmv-color-primary);
  --bs-btn-border-color: var(--rmv-color-primary);
  --bs-btn-hover-bg: var(--rmv-color-primary-hover);
  --bs-btn-hover-border-color: var(--rmv-color-primary-hover);
  --bs-btn-active-bg: var(--rmv-color-primary-hover);
  --bs-btn-active-border-color: var(--rmv-color-primary-hover);
  --bs-btn-disabled-bg: var(--rmv-color-primary);
  --bs-btn-disabled-border-color: var(--rmv-color-primary);
}

.btn-outline-primary {
  --bs-btn-color: var(--rmv-color-primary);
  --bs-btn-border-color: var(--rmv-color-primary);
  --bs-btn-hover-bg: var(--rmv-color-primary);
  --bs-btn-hover-border-color: var(--rmv-color-primary);
  --bs-btn-active-bg: var(--rmv-color-primary-hover);
  --bs-btn-active-border-color: var(--rmv-color-primary-hover);
  --bs-btn-disabled-color: var(--rmv-color-primary);
  --bs-btn-disabled-border-color: var(--rmv-color-primary);
}

.form-check-input:checked {
  background-color: var(--rmv-color-primary);
  border-color: var(--rmv-color-primary);
}

.form-check-input:focus {
  border-color: var(--rmv-color-primary);
  box-shadow: 0 0 0 .18rem rgba(var(--rmv-color-primary-rgb), .18);
}

.rmv-tabs .nav-link,
.rmv-catalog-tabs .nav-link {
  color: var(--rmv-color-body);
  white-space: nowrap;
}

.rmv-tabs .nav-link:hover,
.rmv-tabs .nav-link:focus,
.rmv-catalog-tabs .nav-link:hover,
.rmv-catalog-tabs .nav-link:focus {
  border-color: transparent transparent rgba(var(--rmv-color-primary-rgb), .42);
  color: var(--rmv-color-primary);
  text-decoration: none;
}

.rmv-tabs .nav-link.active,
.rmv-catalog-tabs .nav-link.active {
  border-color: var(--rmv-color-border) var(--rmv-color-border) var(--rmv-color-primary);
  color: var(--rmv-color-primary);
}

.rmv-text-primary {
  color: var(--rmv-color-primary) !important;
}

.rmv-navbar-dropdown .dropdown-item:hover,
.rmv-navbar-dropdown .dropdown-item:focus {
  background: rgba(var(--rmv-color-primary-rgb), .10);
}

/* AZ46.1: nombre completo y leyenda en segundo renglon. */
.rmv-prescription-print-page .prescription-header-meta-row {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "professional credentials" "legend legend";
  row-gap: 1mm;
}
.rmv-prescription-print-page .prescription-header-mvz {
  grid-area: professional;
  min-width: 0;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
}
.rmv-prescription-print-page .prescription-header-right {
  grid-area: credentials;
}
.rmv-prescription-print-page .prescription-header-legend {
  grid-area: legend;
  text-align: center;
}

/* AZ50: referencia visible en búsqueda y selección de medicamentos. */
.rmv-line-item-catalog-result-reference,
.rmv-line-item-catalog-reference {
  color: var(--rmv-color-text-muted);
  font-size: .78rem;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}
.rmv-line-item-catalog-reference:not([hidden]) {
  display: block;
  margin-top: .3rem;
  padding: 0 .25rem;
}
.rmv-line-item-catalog-reference[hidden] { display: none; }

/* AZ52: compact consultation list, scoped to this modal only. */
#myConsultationsModal .modal-dialog { max-width: 760px; }
#myConsultationsModal .modal-content { max-height: 76vh; }
#myConsultationsModal .modal-header,
#myConsultationsModal .modal-body { padding: 10px 14px; }
#myConsultationsModal .modal-title { font-size: 1rem !important; }
#myConsultationsModal .modal-body { font-size: 13px; }
#myConsultationsModal .modal-header small { font-size: 11px; }
#myConsultationsModal td,
#myConsultationsModal th { padding: 5px 4px; line-height: 1.25; }
#myConsultationsModal td small { font-size: 11px; margin-top: 2px; }
#myConsultationsModal td:last-child { width: 64px; text-align: right; }
#myConsultationsModal .btn { min-height: 32px; padding: 4px 9px; font-size: 12px; box-shadow: none; }
#myConsultationsModal .modal-footer { padding: 4px 10px; }
#myConsultationsModal [data-my-consultations-pagination] { margin-top: 8px !important; }
@media (max-width: 575.98px) {
    #myConsultationsModal .modal-dialog { margin: 8px; }
    #myConsultationsModal .modal-content { max-height: 90vh; }
    #myConsultationsModal table { min-width: 540px; }
}
