/* artifacts/red-patrol/src/components/reference-design/reference-design.css */
.ref-shell,
.ref-page {
  --rf-text:#1D1D1F;
  --rf-text2:#3F3F46;
  --rf-sec:#5F5F66;
  --rf-bg:#F4F4F5;
  --rf-surface:#FFFFFF;
  --rf-line:#DEDEE3;
  --rf-hair:#F0F0F2;
  --rf-red:#A50D26;
  --rf-red-d:#7F0A1D;
  --rf-pink:#FDE8EC;
  --rf-ok:#166534;
  --rf-ok-bg:#E7F6EC;
  --rf-warn:#92400E;
  --rf-warn-bg:#FEF3C7;
  --rf-bad:#B91C1C;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "SF Pro Display",
    Inter,
    "Segoe UI",
    Roboto,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--rf-text);
  font-size: 13px;
  line-height: 16px;
}
.dark .ref-shell,
.dark .ref-page {
  --rf-text:#F5F5F7;
  --rf-text2:#D1D1D6;
  --rf-sec:#A1A1A6;
  --rf-bg:#1C1C1E;
  --rf-surface:#2C2C2E;
  --rf-line:#3A3A3C;
  --rf-hair:#38383A;
  --rf-pink:#3A1A20;
  --rf-ok-bg:#12301d;
  --rf-warn-bg:#493b17;
}
.ref-shell {
  background: var(--rf-bg);
}
.ref-sidebar {
  width: 256px;
  padding: 12px 10px;
  gap: 4px;
  background: var(--rf-bg);
  border: 0;
}
.ref-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 10px;
}
.ref-brand img {
  width: 36px;
  height: 40px;
  object-fit: contain;
  flex: none;
}
.ref-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--rf-text2);
  text-decoration: none;
}
.ref-nav-link:hover {
  background: rgba(0, 0, 0, .05);
}
.dark .ref-nav-link:hover {
  background: rgba(255, 255, 255, .08);
}
.ref-nav-link.is-active {
  background: var(--rf-pink);
  color: var(--rf-red);
  font-weight: 600;
}
.ref-header {
  height: 48px;
  padding: 0 24px;
  background: var(--rf-surface);
  border-bottom: 1px solid var(--rf-line);
  display: flex;
  align-items: center;
  gap: 12px;
}
.ref-main {
  background: var(--rf-surface);
  border: 1px solid var(--rf-line);
  border-radius: 12px;
  margin: 8px 8px 8px 0;
  overflow: hidden;
}
.ref-content {
  padding: 24px 32px;
}
.ref-page a {
  color: var(--rf-red);
}
.ref-page a:hover {
  color: var(--rf-red-d);
}
.ref-page h1 {
  font-size: 26px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -.02em;
  text-transform: none;
  color: var(--rf-text);
}
.ref-page h2 {
  font-size: 17px;
  line-height: 22px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.ref-page h3 {
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.ref-page :is(button, input, select, textarea, td) {
  font-family: inherit;
  font-size: 13px;
  line-height: 16px;
}
.ref-page :is(.text-xs, .text-\[11px\], .text-\[10px\], .text-\[9px\], .text-\[8px\]) {
  font-size: 11px;
  line-height: 14px;
}
.ref-page :is(.text-muted-foreground) {
  color: var(--rf-sec);
}
.ref-page :is(.font-black, .font-extrabold) {
  font-weight: 700;
}
.ref-page :is(.font-light, .font-extralight) {
  font-weight: 400;
}
.ref-page :is(.text-3xl, .text-4xl, .text-5xl) {
  font-size: 28px;
  line-height: 34px;
  font-weight: 600;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.ref-page :is(.uppercase) {
  text-transform: none;
  letter-spacing: 0;
}
.ref-page ::placeholder {
  color: var(--rf-sec);
}
.ref-page :is(.bg-card.border, .bg-card.rounded-2xl, .bg-card.rounded-xl, .rounded-2xl.border) {
  background: var(--rf-surface);
  border: 1px solid var(--rf-line);
  border-radius: 10px;
  box-shadow: none;
}
.ref-page :is(.shadow-soft, .shadow-sm, .shadow-md, .shadow-lg) {
  box-shadow: none;
}
.ref-page :is(input:not([type=checkbox]):not([type=radio]), select, textarea) {
  min-height: 34px;
  border: 1px solid var(--rf-line);
  border-radius: 8px;
  background: var(--rf-surface);
  color: var(--rf-text);
}
.ref-page :is(input, select, textarea):focus {
  outline: 0;
  border-color: var(--rf-red);
  box-shadow: 0 0 0 3px rgba(165, 13, 38, .12);
}
.ref-page :is(button.bg-primary, button.bg-\[\#da3633\]) {
  background: var(--rf-red);
  color: #fff;
  border-radius: 8px;
  box-shadow: none;
  font-weight: 600;
}
.ref-page :is(button.bg-primary, button.bg-\[\#da3633\]):hover {
  background: var(--rf-red-d);
}
.ref-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.ref-page th {
  padding: 10px 12px;
  font-size: 12px;
  line-height: 15px;
  font-weight: 500;
  color: var(--rf-sec);
  text-transform: none;
  letter-spacing: 0;
  border-bottom: 1px solid var(--rf-line);
  background: transparent;
  text-align: left;
}
.ref-page td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--rf-hair);
  color: var(--rf-text2);
}
.ref-page tbody tr:hover {
  background: rgba(0, 0, 0, .02);
}
.dark .ref-page tbody tr:hover {
  background: rgba(255, 255, 255, .04);
}
.ref-page thead {
  background: transparent;
}
.ref-page :is([role=tablist], .ref-tabs) {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--rf-line);
  overflow-x: auto;
}
.ref-page :is([role=tab], .ref-tabs > button) {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  white-space: nowrap;
  color: var(--rf-sec);
  font-weight: 500;
}
.ref-page :is([role=tab][aria-selected=true], [role=tab][data-state=active], .ref-tabs > button.bg-primary) {
  color: var(--rf-red);
  border-bottom-color: var(--rf-red);
  background: transparent;
  font-weight: 600;
}
.ref-page :is(.rounded-full.text-xs, .rounded-full.text-\[10px\], .rounded-full.text-\[11px\]) {
  padding: 3px 9px;
  font-weight: 500;
}
.ref-page--residentes,
.ref-page--camas,
.ref-page--historia-clinica,
.ref-page--compras,
.ref-page--farmacia,
.ref-page--facturacion,
.ref-page--profesionales,
.ref-page--administrativos,
.ref-page--especialidades,
.ref-page--enfermeria,
.ref-page--visitas,
.ref-page--auditoria {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ref-page--camas :is(.ab-tile) {
  border-radius: 10px;
  border: 1px solid var(--rf-line);
  background: var(--rf-surface);
  box-shadow: none;
}
.ref-page--camas .ab-status-label {
  font-size: 11px;
  line-height: 14px;
  font-weight: 500;
}
.ref-page--historia-clinica .apple-clinical-summary > section {
  border: 1px solid var(--rf-line);
  border-radius: 10px;
  background: var(--rf-surface);
}
.ref-page--auditoria table {
  min-width: 920px;
}
@media (max-width:767px) {
  .ref-shell,
  .ref-page {
    font-size: 17px;
    line-height: 22px;
  }
  .ref-content {
    padding: 16px;
  }
  .ref-page h1 {
    font-size: 34px;
    line-height: 41px;
  }
  .ref-page :is(input, select, textarea) {
    font-size: 17px;
    line-height: 22px;
    min-height: 44px;
  }
  .ref-page :is(button, td, th) {
    font-size: 15px;
    line-height: 20px;
  }
  .ref-page :is(.text-xs, .text-\[11px\], .text-\[10px\]) {
    font-size: 13px;
    line-height: 18px;
  }
  .ref-page :is(.text-3xl, .text-4xl, .text-5xl) {
    font-size: 22px;
    line-height: 28px;
    font-weight: 700;
  }
  .ref-sidebar {
    width: min(320px, 88vw);
  }
  .ref-main {
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .ref-header {
    padding: 0 16px;
  }
}
.reference-design-shell {
  --rf-text:#1D1D1F;
  --rf-sec:#5F5F66;
  --rf-bg:#F4F4F5;
  --rf-surface:#FFFFFF;
  --rf-line:#DEDEE3;
  --rf-red:#A50D26;
  --rf-pink:#FDE8EC;
  --ap-text:#1D1D1F;
  --ap-sec:#5F5F66;
  --ap-bg:#F4F4F5;
  --ap-surface:#FFFFFF;
  --ap-line:#DEDEE3;
  --ap-red:#A50D26;
  --ap-pink:#FDE8EC;
  font-size: 13px;
  line-height: 16px;
  background: var(--rf-bg);
}
.dark .reference-design-shell {
  --rf-text:#F5F5F7;
  --rf-sec:#A1A1A6;
  --rf-bg:#1C1C1E;
  --rf-surface:#2C2C2E;
  --rf-line:#3A3A3C;
  --rf-pink:#3A1A20;
  --ap-text:#F5F5F7;
  --ap-sec:#A1A1A6;
  --ap-bg:#1C1C1E;
  --ap-surface:#2C2C2E;
  --ap-line:#3A3A3C;
  --ap-pink:#3A1A20;
}
.reference-design-shell .apple-sidebar {
  width: 256px;
  padding: 12px 10px;
  gap: 4px;
  border: 0;
  background: var(--rf-bg);
}
.reference-design-shell.apple-rail .apple-sidebar {
  width: 64px;
  padding: 12px 6px;
}
.reference-design-shell .apple-brand {
  padding: 6px 6px 10px;
  min-height: 0;
  gap: 10px;
}
.reference-design-shell .apple-brand img {
  width: 36px;
  height: 40px;
}
.reference-design-shell .apple-nav-search {
  margin: 0 0 8px;
  height: 38px;
  border-radius: 8px;
}
.reference-design-shell .apple-nav-scroll {
  padding: 0;
}
.reference-design-shell .apple-nav-link {
  height: 34px;
  padding: 0 10px;
  font-weight: 500;
  color: #3F3F46;
  border-radius: 8px;
}
.dark .reference-design-shell .apple-nav-link {
  color: #D1D1D6;
}
.reference-design-shell .apple-nav-link.is-active {
  background: var(--rf-pink);
  color: var(--rf-red);
  font-weight: 600;
}
.reference-design-shell .apple-nav-group-head {
  padding: 6px 10px 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--rf-sec);
}
.reference-design-shell .apple-header {
  height: 44px;
  min-height: 44px;
  padding: 0 24px;
}
.reference-design-shell .apple-main {
  margin: 8px 8px 8px 0;
  border-radius: 12px;
  border: 1px solid var(--rf-line);
}
.reference-design-shell .apple-page-content {
  padding: 0;
}
.reference-design-shell .apple-page-content > div {
  padding: 24px;
  max-width: none;
}
.reference-design-shell .apple-page-content > div > .ref-page {
  padding: 0;
}
.reference-design-shell .apple-page-content h1 {
  font-size: 26px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.reference-design-shell .apple-page-content :is(th, td) {
  padding: 10px 12px;
}
@media (max-width:767px) {
  .reference-design-shell {
    font-size: 17px;
    line-height: 22px;
  }
  .reference-design-shell .apple-sidebar {
    width: min(320px, 88vw) !important;
  }
  .reference-design-shell .apple-main {
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .reference-design-shell .apple-page-content > div {
    padding: 16px;
  }
  .reference-design-shell .apple-page-content h1 {
    font-size: 34px;
    line-height: 41px;
  }
}

/* artifacts/red-patrol/src/components/reference-design/reference-pages.css */
.ref-page {
  --rf-btn:#C8102E;
}
.ref-page :is([class*="bg-[#0d1117]"], [class*="bg-[#161b22]"], [class*="bg-[#f3f5fa]"], [class*=bg-background]) {
  background-color: var(--rf-surface);
}
.ref-page :is([class*="bg-[#010409]"], [class*="bg-[#1c2128]"], [class*=bg-muted]) {
  background-color: #FAFAFA;
}
.dark .ref-page :is([class*="bg-[#010409]"], [class*="bg-[#1c2128]"], [class*=bg-muted]) {
  background-color: #252527;
}
.ref-page :is([class*="border-[#21262d]"], [class*="border-[#30363d]"], [class*="border-[#e3e6ef]"], .border-border) {
  border-color: var(--rf-line);
}
.ref-page :is([class*="text-[#8b949e]"], [class*="text-[#6e7681]"]) {
  color: var(--rf-sec);
}
.ref-page :is(.text-white, [class*="text-[#e6edf3]"], [class*="text-[#c9d1d9"], .text-foreground) {
  color: var(--rf-text);
}
.ref-page :is(button.bg-primary, button[class*="bg-[#da3633]"], button[class*="bg-[#238636]"], button[class*="bg-[#1f6feb]"]) {
  background: var(--rf-btn);
  border-color: var(--rf-btn);
  color: #fff;
  height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 500;
  box-shadow: none;
}
.ref-page :is(button.bg-primary, button[class*="bg-[#da3633]"]):hover {
  background: #A60D26;
}
.ref-page {
  padding: 24px 32px 40px;
  gap: 20px;
  width: 100%;
}
.ref-page :is(.nursing-module, .specialties-module) {
  max-width: none;
  margin: 0;
  padding-bottom: 0;
}
.ref-page .ref-page-head {
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}
.ref-page .ref-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ref-page .ref-title svg {
  display: none;
}
.ref-page .ref-title + p,
.ref-page .ref-page-head p {
  color: var(--rf-sec);
  font-size: 13px;
  line-height: 16px;
  margin: 6px 0 0;
}
.ref-page .ref-page-head :is(button, a[class*=border]) {
  height: 38px;
  border-radius: 8px;
  font-size: 13px;
}
.ref-page .ref-page-head > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.ref-page .ref-kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  border: 1px solid var(--rf-line);
  border-radius: 12px;
  background: #FAFAFA;
  overflow: hidden;
}
.dark .ref-page .ref-kpi-strip {
  background: #252527;
}
.ref-page .ref-kpi-strip > * {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  padding: 16px 12px;
  border: 0;
  border-right: 1px solid var(--rf-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.ref-page .ref-kpi-strip > *:last-child {
  border-right: 0;
}
.ref-page .ref-kpi-strip > * svg {
  display: none;
}
.ref-page .ref-kpi-strip :is(.text-xs, .text-sm, [class*="text-[10px]"], [class*="text-[11px]"]) {
  font-size: 12px;
  line-height: 15px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.ref-page .ref-kpi-strip :is([class*=text-xl], [class*=text-2xl], [class*=text-3xl], [class*=text-4xl], [class*=text-5xl]) {
  font-size: 28px;
  line-height: 34px;
  font-weight: 600;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.ref-page :is(.ref-tabs, [role=tablist], [role=tablist].inline-flex) {
  display: flex;
  gap: 22px;
  height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rf-line);
  border-radius: 0;
  overflow-x: auto;
}
.ref-page .ref-tabs > button,
.ref-page [role=tablist] > :is(button, [role=tab]) {
  height: 40px;
  padding: 0;
  margin: 0 0 -1px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  color: var(--rf-sec);
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ref-page .ref-tabs > button svg {
  display: none;
}
.ref-page .ref-tabs > button:is(.bg-primary, [class*=border-b-2][class*=border-][class*=text-]:not([class*=border-transparent]), [aria-selected=true]),
.ref-page [role=tablist] > :is([data-state=active], [aria-selected=true]) {
  color: var(--rf-text);
  border-bottom-color: var(--rf-btn);
  font-weight: 600;
}
.ref-page .ref-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}
.ref-page .ref-toolbar :is(input, select, button) {
  height: 36px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--rf-line);
  border-radius: 8px;
  background: var(--rf-surface);
  color: var(--rf-text);
  font-weight: 500;
}
.ref-page .ref-toolbar input {
  flex: 1 1 240px;
  font-weight: 400;
}
.ref-page .ref-table-card {
  border: 1px solid var(--rf-line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--rf-surface);
}
.ref-page .ref-table-card > div {
  overflow-x: auto;
}
.ref-page .ref-table {
  min-width: 720px;
}
.ref-page .ref-table thead,
.ref-page .ref-table thead tr {
  background: transparent;
}
.ref-page .ref-table th {
  height: auto;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rf-line);
}
.ref-page .ref-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--rf-hair);
  vertical-align: middle;
}
.ref-page .ref-table tbody tr:last-child td {
  border-bottom: 0;
}
.ref-page .ref-table :is(td, th):is(.text-right, [align=right]) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.ref-page .ref-table td:first-child {
  font-weight: 600;
  color: var(--rf-text);
}
.ref-page .ref-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  line-height: 14px;
  font-weight: 500;
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
  border: 0;
}
.ref-page .ref-pill:is([class*="3fb950"], [class*=emerald], [class*=green]) {
  color: var(--rf-ok);
  background: var(--rf-ok-bg);
}
.ref-page .ref-pill:is([class*=e3b341], [class*=f59e0b], [class*=amber], [class*=yellow]) {
  color: var(--rf-warn);
  background: var(--rf-warn-bg);
}
.ref-page .ref-pill:is([class*=f85149], [class*=red]) {
  color: var(--rf-bad);
  background: #FDECEC;
}
.dark .ref-page .ref-pill:is([class*=f85149], [class*=red]) {
  background: #3a1a1a;
}
.ref-page .ref-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.ref-page .ref-card-grid > * {
  border: 1px solid var(--rf-line);
  border-radius: 12px;
  background: var(--rf-surface);
  box-shadow: none;
  padding: 16px;
}
.ref-page :is(.rp-ledger-page, .rp-pharmacy-grids) {
  height: auto;
  min-height: 0;
  background: transparent;
  padding: 0;
}
.ref-page .rp-ledger-header {
  padding: 0 0 16px;
  border: 0;
  background: transparent;
}
.ref-page--compras [class*=px-6],
.ref-page--farmacia [class*=px-6] {
  padding-left: 0;
  padding-right: 0;
}
.ref-page--compras h1,
.ref-page--farmacia h1,
.ref-page--facturacion h1 {
  font-size: 26px;
  line-height: 32px;
}
.ref-page--compras h1 > div,
.ref-page--facturacion h1 > svg {
  display: none;
}
.ref-page--facturacion .rp-ledger-billing > .flex:first-child {
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}
.ref-page--auditoria .ref-title > svg {
  display: none;
}
.ref-page--auditoria .ref-table td {
  font-size: 13px;
}
.ref-page--auditoria .ref-table td:first-child {
  font-weight: 400;
  color: var(--rf-sec);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ref-page--visitas h1 {
  font-size: 26px;
  line-height: 32px;
}
.ref-page--visitas [data-state] {
  box-shadow: none;
}
.ref-page--enfermeria .nursing-module > * {
  margin-top: 0;
}
.ref-page--enfermeria [role=tab] {
  height: 40px;
}
.ref-page :is(.ref-page--profesionales, .ref-page--administrativos) {
}
.ref-page--profesionales h1,
.ref-page--administrativos h1 {
  font-size: 26px;
  line-height: 32px;
  font-weight: 700;
}
.ref-page--profesionales .rounded-2xl.overflow-hidden,
.ref-page--administrativos .rounded-2xl.overflow-hidden {
  border-radius: 12px;
}
.ref-page--profesionales table td:first-child,
.ref-page--administrativos table td:first-child {
  font-weight: 600;
}
.ref-page--residentes .apple-resident-table-card {
  border-radius: 12px;
}
.ref-page--residentes .apple-resident-photo {
  width: 36px;
  height: 36px;
}
.ref-page--camas .ab-stats {
  border: 1px solid var(--rf-line);
  border-radius: 12px;
  background: #FAFAFA;
}
.ref-page--historia-clinica .apple-clinical-tabs {
  gap: 22px;
  padding: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--rf-line);
}
.ref-page--historia-clinica .apple-clinical-tabs button {
  height: 40px;
  padding: 0;
  margin-bottom: -1px;
  font-weight: 500;
}
@media (max-width:767px) {
  .ref-page {
    padding: 16px;
    gap: 16px;
  }
  .ref-page .ref-kpi-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .ref-page .ref-kpi-strip > * {
    border-bottom: 1px solid var(--rf-line);
  }
  .ref-page .ref-card-grid {
    grid-template-columns: 1fr;
  }
  .ref-page .ref-toolbar > * {
    flex: 1 1 100%;
  }
  .ref-page .ref-tabs,
  .ref-page [role=tablist] {
    gap: 18px;
  }
  .ref-page .ref-tabs > button,
  .ref-page [role=tablist] > * {
    font-size: 15px;
    height: 44px;
  }
  .ref-page--residentes .apple-table-scroll table {
    min-width: 0 !important;
    display: block;
  }
  .ref-page--residentes .apple-table-scroll thead {
    display: none;
  }
  .ref-page--residentes .apple-table-scroll tbody {
    display: flex;
    flex-direction: column;
  }
  .ref-page--residentes .apple-table-scroll tr {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--rf-hair);
  }
  .ref-page--residentes .apple-table-scroll td {
    display: block;
    padding: 0 !important;
    border: 0;
    font-size: 15px;
    line-height: 20px;
  }
  .ref-page--residentes .apple-table-scroll td:first-child {
    flex: 1 1 100%;
  }
  .ref-page--residentes .apple-table-scroll td:last-child {
    flex: 1 1 100%;
  }
  .ref-page--residentes .apple-table-scroll td:empty {
    display: none;
  }
}

/* artifacts/red-patrol/src/components/reference-design/directory-page.css */
.refd {
  --d-line:#DEDEE3;
  --d-hair:#F0F0F2;
  --d-sec:#5F5F66;
  --d-text:#1D1D1F;
  --d-red:#C8102E;
  --d-seg:#F4F4F5;
  --d-surface:#fff;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.dark .refd {
  --d-line:#3A3A3C;
  --d-hair:#38383A;
  --d-sec:#A1A1A6;
  --d-text:#F5F5F7;
  --d-seg:#1C1C1E;
  --d-surface:#2C2C2E;
}
.refd > * {
  margin: 0;
}
.refd h1 {
  font-size: 26px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -.02em;
  text-transform: none;
}
.refd h1 > svg:first-child:not(:only-child) {
  display: none;
}
.refd :is(h1 + p, p.text-sm, p.text-xs) {
  color: var(--d-sec);
}
.refd [data-ref-tone=danger] {
  background: #FDECEC;
  border-color: #F5C2C7;
  color: #B91C1C;
}
.refd [data-ref-tone=warn] {
  background: #FFFBEB;
  border-color: #FDE68A;
  color: #92400E;
}
.dark .refd [data-ref-tone=danger] {
  background: #3a1a1a;
  border-color: #6b2a2a;
  color: #ffb4b4;
}
.dark .refd [data-ref-tone=warn] {
  background: #493b17;
  border-color: #6b5a22;
  color: #ffe29c;
}
.refd [data-ref-tone] :is(svg, p, span, strong) {
  color: inherit;
}
.refd :is(.refd--profesionales, .refd--administrativos) {
}
.refd--profesionales > div > .flex:first-child,
.refd--administrativos > div > .flex:first-child {
  align-items: flex-end;
}
.refd :is(button.bg-\[\#1f6feb\], button[class*="bg-[#1f6feb]"]) {
  background: var(--d-red);
  color: #fff;
  height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
}
.refd :is(button.bg-\[\#1f6feb\], button[class*="bg-[#1f6feb]"]):hover {
  background: #A60D26;
}
.refd .bg-card.border.rounded-2xl {
  border: 1px solid var(--d-line);
  border-radius: 12px;
  background: var(--d-surface);
  box-shadow: none;
}
.refd .bg-card.border.rounded-2xl > .border-b {
  padding: 10px 14px;
  border-bottom: 1px solid var(--d-line);
}
.refd .bg-card.border.rounded-2xl > .border-b h3 {
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
}
.refd .bg-card.border.rounded-2xl > .border-b > .flex > svg {
  display: none;
}
.refd .bg-card.border.rounded-2xl input[type=text] {
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--d-line);
  background: transparent;
  font-size: 13px;
  padding-top: 0;
  padding-bottom: 0;
}
.refd table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.refd thead {
  background: transparent;
}
.refd th {
  padding: 10px 12px;
  font-size: 12px;
  line-height: 15px;
  font-weight: 500;
  color: var(--d-sec);
  text-transform: none;
  letter-spacing: 0;
  border-bottom: 1px solid var(--d-line);
  text-align: left;
  white-space: nowrap;
}
.refd th:last-child,
.refd td:last-child {
  text-align: right;
}
.refd td {
  padding: 10px 12px;
  font-size: 13px;
  line-height: 16px;
  vertical-align: middle;
  border-top: 0;
  border-bottom: 1px solid var(--d-hair);
}
.refd tbody tr {
  border-top: 0;
}
.refd tbody tr:last-child td {
  border-bottom: 0;
}
.refd td:first-child {
  font-weight: 600;
}
.refd td > .flex {
  align-items: center;
}
.refd td:last-child > .flex,
.refd td:last-child > div {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}
.refd td button,
.refd td a {
  font-size: 12px;
}
.refd--especialidades > .relative > .flex {
  height: auto;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--d-surface);
  border: 1px solid var(--d-line);
}
.refd--especialidades > .relative input {
  font-size: 13px;
  color: var(--d-text);
}
.refd--especialidades > .relative > .absolute {
  background: var(--d-surface);
  border: 1px solid var(--d-line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}
.refd--especialidades > .relative > .absolute button {
  color: var(--d-text);
}
.refd--especialidades > .flex.overflow-x-auto {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.refd--especialidades > .flex.overflow-x-auto > button {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--d-line);
  background: var(--d-surface);
  color: #3F3F46;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
}
.dark .refd--especialidades > .flex.overflow-x-auto > button {
  color: #D1D1D6;
}
.refd--especialidades > .flex.overflow-x-auto > button[class*=bg-]:not([class*=bg-transparent]) {
  border-color: var(--d-text);
  background: var(--d-text);
  color: var(--d-surface);
  font-weight: 600;
}
.refd--especialidades :is(.rounded-xl, .rounded-2xl):is([class*=border]):not([data-ref-tone]) {
  border-color: var(--d-line);
  box-shadow: none;
}
.refd--especialidades :is(.rounded-xl, .rounded-2xl)[class*="bg-["]:not([data-ref-tone]) {
  background: var(--d-surface);
}
.refd--especialidades :is(h2, h3) {
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  color: var(--d-text);
}
.refd--especialidades [class*=text-white],
.refd--enfermeria [class*=text-white] {
  color: var(--d-text);
}
.refd--especialidades [class*="text-[#484f58]"],
.refd--enfermeria [class*="text-[#484f58]"] {
  color: var(--d-sec);
}
.refd--enfermeria .nursing-module {
  max-width: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.refd--enfermeria .nursing-module > .flex:first-of-type {
  align-items: flex-end;
}
.refd--enfermeria .nursing-module > .flex:first-of-type > .flex {
  background: var(--d-surface);
  border: 1px solid var(--d-line);
  border-radius: 10px;
  padding: 8px 12px;
}
.refd--enfermeria :is(.nursing-module select, .nursing-module input) {
  min-height: 34px;
  border: 1px solid var(--d-line);
  border-radius: 8px;
  background: var(--d-surface);
  color: var(--d-text);
  font-size: 13px;
}
.refd--enfermeria :is(.nursing-module [class*="bg-[#161b22]"], .nursing-module [class*="bg-[#0d1117]"]):not([data-ref-tone]) {
  background: var(--d-surface);
  border-color: var(--d-line);
  box-shadow: none;
}
.refd--enfermeria [role=tab] {
  height: 40px;
  border-radius: 0;
}
.refd--enfermeria h2,
.refd--enfermeria h3 {
  text-transform: none;
  letter-spacing: 0;
}
.refd--enfermeria :is([class*="text-[9px]"], [class*="text-[10px]"]) {
  font-size: 11px;
  line-height: 14px;
  text-transform: none;
  letter-spacing: 0;
}
.refd--visitas h1 {
  font-size: 26px;
}
.refd--visitas [role=tablist] {
  display: flex;
  gap: 22px;
  background: transparent;
  border-bottom: 1px solid var(--d-line);
  padding: 0;
  height: auto;
  border-radius: 0;
}
.refd--visitas [role=tab] {
  height: 40px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--d-sec);
  font-weight: 500;
  box-shadow: none;
}
.refd--visitas [role=tab][data-state=active] {
  color: var(--d-text);
  border-bottom-color: var(--d-red);
  font-weight: 600;
}
.refd--visitas [data-testid^=day-] {
  min-height: 0;
  border-radius: 10px;
  box-shadow: none;
  border-color: var(--d-line);
}
.refd--visitas [data-testid^=day-] > button {
  padding: 8px 10px 6px;
}
.refd--visitas [data-testid^=day-] > :not(button) {
  font-size: 12px;
  line-height: 15px;
}
.refd--visitas table td,
.refd--visitas table th {
  padding: 8px 12px;
}
.refd--auditoria h1 > svg {
  display: none;
}
.refd--auditoria td {
  padding: 7px 12px;
  font-size: 12px;
  line-height: 15px;
}
.refd--auditoria td:first-child {
  color: var(--d-sec);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 400;
}
.refd--auditoria td:last-child,
.refd--auditoria th:last-child {
  text-align: left;
}
.refd--auditoria :is(.font-mono, code) {
  font-size: 11px;
}
.refd--auditoria tbody tr {
  cursor: pointer;
}
.refd--auditoria tbody tr:hover {
  background: rgba(0, 0, 0, .025);
}
.refd--auditoria [role=group],
.refd--auditoria .inline-flex.bg-muted {
  background: var(--d-seg);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.refd--auditoria [aria-pressed=true] {
  background: var(--d-surface);
  color: var(--d-text);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(24, 24, 27, .1);
  border-radius: 6px;
}
@media (max-width:767px) {
  .refd {
    gap: 16px;
  }
  .refd h1 {
    font-size: 34px;
    line-height: 41px;
  }
  .refd table:has(td[data-column-label]),
  .refd table:has(td[data-column-label]) tbody {
    display: block;
    min-width: 0 !important;
  }
  .refd table:has(td[data-column-label]) thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .refd table:has(td[data-column-label]) tbody tr {
    display: block;
    padding: 10px 14px;
    border-bottom: 1px solid var(--d-hair);
  }
  .refd table:has(td[data-column-label]) td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    border: 0;
    text-align: right !important;
    font-size: 15px;
    line-height: 20px;
  }
  .refd td[data-column-label]::before {
    content: attr(data-column-label);
    color: var(--d-sec);
    font-size: 13px;
    line-height: 18px;
    font-weight: 500;
    text-align: left;
    flex: none;
  }
  .refd td:first-child {
    font-size: 17px;
    line-height: 22px;
  }
  .refd td:last-child {
    justify-content: flex-end;
  }
  .refd--especialidades > .flex.overflow-x-auto > button {
    height: 44px;
  }
}

/* artifacts/red-patrol/src/components/reference-design/reference-refinements.css */
.reference-design-shell [data-reference-content] {
  max-width: none !important;
  padding: 0 !important;
}
.reference-design-shell .apple-page-content {
  padding: 0 !important;
}
.reference-design-shell .ref-page {
  padding: 24px 32px 40px;
  min-width: 0;
}
.reference-design-shell .apple-page-content > [data-reference-content] > .ref-page {
  padding: 24px 32px 40px;
}
.reference-design-shell .ref-page h1 {
  font-size: 26px !important;
  line-height: 32px !important;
  font-weight: 700 !important;
  letter-spacing: -.02em;
}
.reference-design-shell .ref-page button.bg-primary {
  color: white !important;
}
.reference-design-shell .ref-page--residentes .ref-kpi-strip {
  border: 0;
  background: transparent;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: visible;
}
.reference-design-shell .ref-page--residentes .ref-kpi-strip > * {
  border: 1px solid var(--rf-line);
  border-radius: 10px;
  background: var(--rf-surface);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
}
.reference-design-shell .ref-page--residentes .ref-kpi-strip > * > div {
  align-items: flex-start;
  text-align: left;
}
.reference-design-shell .ref-page--residentes .ref-kpi-strip :is(.text-3xl, .text-4xl, .text-5xl) {
  font-size: 28px !important;
  line-height: 34px !important;
  font-weight: 600;
}
.reference-design-shell .ref-page--residentes .apple-resident-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px;
}
.reference-design-shell .ref-page--residentes .apple-resident-toolbar button {
  color: var(--rf-sec) !important;
  background: transparent !important;
  border: 1px solid transparent;
  border-radius: 6px;
  min-height: 28px;
  height: auto;
  padding: 4px 9px;
}
.reference-design-shell .ref-page--residentes .apple-resident-toolbar button.bg-primary {
  color: var(--rf-text) !important;
  background: var(--rf-surface) !important;
  border-color: var(--rf-line);
}
.reference-design-shell .ref-page--residentes .apple-resident-toolbar input {
  height: 34px;
}
.reference-design-shell .ref-page--residentes .apple-resident-table-card {
  margin-top: 16px;
}
.reference-design-shell .ref-page--historia-clinica .apple-clinical-summary {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--rf-line);
  border-radius: 10px;
  overflow: visible;
}
.reference-design-shell .ref-page--historia-clinica .apple-clinical-summary > section {
  border: 0;
  border-bottom: 1px solid var(--rf-line);
  border-radius: 0;
}
.reference-design-shell .ref-page--historia-clinica .apple-clinical-summary > section:last-child {
  border-bottom: 0;
}
.reference-design-shell .ref-page--historia-clinica .apple-clinical-tabs button {
  padding: 0 12px;
  border-radius: 8px;
  border-bottom: 0;
  margin-bottom: 0;
}
.reference-design-shell .ref-page--historia-clinica .apple-clinical-tabs button[aria-pressed=true] {
  background: #FDECEF !important;
  color: #C8102E !important;
  border-bottom: 0;
  font-weight: 600;
}
.reference-design-shell .ref-page--historia-clinica .apple-clinical-tabs button[aria-pressed=true] :is(span, svg) {
  color: inherit;
}
.reference-design-shell .ref-page--historia-clinica .apple-clinical-tabs button:not([aria-pressed=true]):hover {
  background: #FFF3F6 !important;
  color: #C8102E !important;
}
.reference-design-shell .ref-page--historia-clinica .apple-clinical-tabs button:focus-visible {
  outline: 2px solid #C8102E;
  outline-offset: 2px;
}
.dark .reference-design-shell .ref-page--historia-clinica .apple-clinical-tabs button[aria-pressed=true],
.dark .reference-design-shell .ref-page--historia-clinica .apple-clinical-tabs button:not([aria-pressed=true]):hover {
  background: #3A1A20 !important;
  color: #FFB1B8 !important;
}
.reference-design-shell .ref-page--camas .ab-stats {
  background: var(--rf-surface);
}
.reference-design-shell .ref-page--camas .ab-toolbar {
  gap: 8px;
}
.reference-design-shell .ref-page--camas .ab-detail {
  border-color: var(--rf-line);
  background: var(--rf-surface);
}
.reference-design-shell .ref-page--camas .ab-tile {
  min-height: 78px;
  border-color: var(--rf-line);
}
.reference-design-shell .ref-page--camas .ab-tile[aria-pressed=true] {
  border-color: var(--rf-text);
}
.reference-design-shell .ref-page :is(button, a)[class*="bg-[#ef4444]"],
.reference-design-shell .ref-page :is(button, a)[class*="bg-[#da3633]"],
.reference-design-shell .ref-page :is(button, a)[class*="bg-[#238636]"],
.reference-design-shell .ref-page :is(button, a)[class*="bg-[#1f6feb]"] {
  color: #fff !important;
}
.reference-design-shell .ref-page--residentes .apple-resident-toolbar button[class*=bg-] {
  color: var(--rf-text) !important;
  background: var(--rf-surface) !important;
}
.reference-design-shell .ref-page :is(.ref-tabs > button, [role=tablist] > [role=tab]) {
  color: var(--rf-sec) !important;
  background: transparent !important;
}
.reference-design-shell .ref-page :is(.ref-tabs > button, [role=tablist] > [role=tab]):is([aria-selected=true], [data-state=active], .bg-primary, [class*="bg-[#1f6feb]"], [class*="text-[#58a6ff]"]) {
  color: var(--rf-text) !important;
  border-bottom-color: #C8102E !important;
  font-weight: 600;
}
.reference-design-shell .ref-page [role=alert] {
  border-width: 1px;
}
.reference-design-shell .ref-page :is(table, tbody, tr, td, th) {
  font-variant-numeric: tabular-nums;
}
body:has(.reference-design-shell) [role=dialog] {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "SF Pro Display",
    Inter,
    "Segoe UI",
    Roboto,
    sans-serif;
}
@media (max-width:767px) {
  .reference-design-shell .apple-header {
    height: auto !important;
    min-height: 86px;
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .reference-design-shell .ref-page {
    padding: 16px;
  }
  .reference-design-shell .apple-page-content > [data-reference-content] > .ref-page {
    padding: 16px;
  }
  .reference-design-shell .ref-page h1 {
    font-size: 34px !important;
    line-height: 41px !important;
  }
  .reference-design-shell .ref-page--historia-clinica .apple-clinical-identity h1 {
    font-size: 22px !important;
    line-height: 28px !important;
  }
  .reference-design-shell .ref-page--residentes .ref-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .reference-design-shell .ref-page--residentes .ref-kpi-strip :is(.text-3xl, .text-4xl, .text-5xl) {
    font-size: 22px !important;
    line-height: 28px !important;
  }
  .reference-design-shell .ref-page--residentes .apple-table-scroll {
    overflow: visible;
  }
  .reference-design-shell .ref-page--residentes table {
    min-width: 0 !important;
    table-layout: auto;
  }
  .reference-design-shell .ref-page--residentes colgroup {
    display: none;
  }
  .reference-design-shell .ref-page--residentes td[data-column-label]:not(:first-child):not(:last-child)::before {
    content: attr(data-column-label);
    display: block;
    color: var(--rf-sec);
    font-size: 12px;
    line-height: 16px;
    margin-bottom: 2px;
  }
  .reference-design-shell .ref-page--residentes .apple-table-scroll tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 8px;
    padding: 12px;
    border: 1px solid var(--rf-line);
    border-radius: 10px;
  }
  .reference-design-shell .ref-page--residentes .apple-table-scroll td:first-child,
  .reference-design-shell .ref-page--residentes .apple-table-scroll td:last-child {
    grid-column: 1/-1;
  }
  .reference-design-shell .ref-page--residentes .apple-table-scroll td {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .reference-design-shell .ref-page--residentes .apple-resident-toolbar > div {
    flex-wrap: wrap;
    width: 100%;
    gap: 8px;
    min-width: 0;
  }
  .reference-design-shell .ref-page--residentes .apple-resident-toolbar input {
    width: 100%;
    min-width: 0;
  }
  .reference-design-shell .ref-page--residentes .apple-resident-toolbar > div > div:has(input) {
    flex: 1 1 100%;
    width: 100%;
  }
}
