/* Restrained, Apple-like presentation for Enfermería. No decorative boxes. */
.nux-brief { display: grid; gap: 20px; color: hsl(var(--foreground)); }
.nux-brief-head { display: flex; align-items: center; gap: 14px; }
.nux-avatar { width: 52px; height: 52px; border-radius: 999px; object-fit: cover; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 16px;
  background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
.nux-eyebrow { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: hsl(var(--muted-foreground)); font-weight: 600; }
.nux-name { font-size: 22px; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; margin: 2px 0 0; }
.nux-sub { font-size: 13px; color: hsl(var(--muted-foreground)); margin-top: 2px; }
.nux-facts { display: flex; flex-wrap: wrap; gap: 28px; margin: 0; padding: 0 0 16px; border-bottom: 1px solid hsl(var(--border)); }
.nux-facts dt { font-size: 12px; color: hsl(var(--muted-foreground)); }
.nux-facts dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.nux-facts dd[data-empty="true"] { color: hsl(var(--muted-foreground)); font-weight: 500; }
.nux-notice { font-size: 13px; color: #9a5b00; display: flex; gap: 8px; align-items: flex-start; }
.dark .nux-notice { color: #f0b45a; }
.nux-section-title { font-size: 13px; font-weight: 600; margin: 0 0 8px; }
.nux-timeline { list-style: none; margin: 0; padding: 0; }
.nux-timeline li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid hsl(var(--border) / .6); }
.nux-timeline li:first-child { border-top: 0; }
.nux-time { font-size: 12px; color: hsl(var(--muted-foreground)); font-variant-numeric: tabular-nums; padding-top: 1px; }
.nux-item-title { font-size: 14px; font-weight: 600; }
.nux-item-body { font-size: 14px; margin-top: 2px; white-space: pre-wrap; color: hsl(var(--foreground) / .85); }
.nux-empty { font-size: 14px; color: hsl(var(--muted-foreground)); padding: 8px 0; }
.nux-foot { font-size: 12px; color: hsl(var(--muted-foreground)); }
.nux-link { background: none; border: 0; padding: 0; color: #c8102e; font: inherit; font-size: 13px; cursor: pointer; }
.nux-link:focus-visible { outline: 2px solid #c8102e; outline-offset: 3px; border-radius: 4px; }

/* Stock: the one deliberately bordered surface — a separate tab. */
.nux-stock { border: 1px solid hsl(var(--border)); border-radius: 14px; background: hsl(var(--card)); color: hsl(var(--card-foreground)); overflow: hidden; }
.nux-stock-tab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid hsl(var(--border)); }
.nux-stock-title { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.nux-stock-sub { font-size: 12px; color: hsl(var(--muted-foreground)); }
.nux-stock-open { border: 1px solid hsl(var(--border)); background: transparent; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 500; cursor: pointer; color: inherit; }
.nux-stock-open:hover { background: hsl(var(--muted)); }
.nux-stock-rows { list-style: none; margin: 0; padding: 4px 16px; }
.nux-stock-rows li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid hsl(var(--border) / .6); font-size: 14px; }
.nux-stock-rows li:first-child { border-top: 0; }
.nux-stock-count { font-variant-numeric: tabular-nums; font-weight: 600; }
.nux-stock-rows li[data-tone="attention"] .nux-stock-count { color: #0a66c2; }
.nux-stock-rows li[data-tone="muted"] .nux-stock-count { color: hsl(var(--muted-foreground)); font-weight: 500; }
.nux-stock-note { font-size: 12px; color: hsl(var(--muted-foreground)); }
.nux-stock-button { display: block; width: 100%; text-align: left; cursor: pointer; font: inherit; padding: 0; transition: border-color .15s; }
.nux-stock-button:hover { border-color: hsl(var(--foreground) / .35); }
.nux-stock-button:focus-visible { outline: 2px solid #c8102e; outline-offset: 2px; }
.nux-stock-go { font-size: 13px; color: #c8102e; font-weight: 500; }
.nux-stock-badges { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 12px; }
.nux-badge { display: inline-flex; gap: 5px; align-items: baseline; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: hsl(var(--muted)); }
.nux-badge[data-tone="attention"] { background: #0a66c2; color: #f5f8fc; }
.nux-badge[data-tone="attention"] .nux-stock-count { color: inherit; }
.nux-badge[data-tone="muted"] { color: hsl(var(--muted-foreground)); }
.nux-stock-tab { border-bottom: 0 !important; padding-bottom: 0 !important; }
.nux-stock-badges[data-stale="true"] { opacity: .7; }

  [data-testid="button-stock-alerts"]{display:inline-flex;align-items:center;gap:6px;border-radius:8px;padding:8px;color:var(--primary);background:transparent}
  [data-testid="stock-alert-count"]{background:#c41e46;color:white;border-radius:999px;padding:2px 7px;font-size:12px;font-weight:600}
  [data-testid="stock-alert-summary"]{max-width:672px;gap:16px}
  [data-testid="stock-alert-summary"] ul{max-height:55dvh;overflow:auto;padding:0;list-style:none}
  [data-testid="stock-alert-summary"] li{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:16px 0;border-bottom:1px solid #8883}
  [data-testid="stock-alert-summary"] li>div{flex:1;min-width:0}
  [data-testid="stock-alert-summary"] li p{margin-top:4px;overflow-wrap:anywhere}
  [data-testid="stock-alert-summary"] li button,[data-testid="button-close-stock-alerts"]{border:1px solid #8884;border-radius:8px;padding:8px 12px;flex-shrink:0;font-size:13px}
  .rp-nursing-request-highlight{outline:1px solid #c41e4670!important;outline-offset:-1px;background:#c41e4609!important}
  .rp-nursing-request-detail{display:flex;justify-content:space-between;gap:16px;padding:16px;margin-bottom:12px;border:1px solid #c41e4660;border-radius:10px;background:#c41e4609;font-size:13px;outline:none}
  .rp-nursing-request-detail p{margin-top:4px}.rp-nursing-request-detail button{flex-shrink:0;align-self:start;font-size:12px;color:#b7193f}
  