/* =========================================================
   Laboratorio Camioneros — Tema Inspirado en Logo
   Navy + Teal · Diseño Clínico Moderno
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Paleta logo */
    --lab-navy:        #1a2f50;
    --lab-navy-dark:   #111f38;
    --lab-navy-light:  #243659;
    --lab-teal:        #0891b2;
    --lab-teal-dark:   #0e7490;
    --lab-teal-light:  #22d3ee;
    --lab-teal-subtle: #ecfeff;

    /* Neutros */
    --lab-white:       #ffffff;
    --lab-off-white:   #f0f4f8;
    --lab-border:      #e2e8f0;
    --lab-border-dark: #cbd5e1;

    /* Sombras */
    --lab-shadow-sm:  0 1px 3px 0 rgb(0 0 0 / 0.08), 0 1px 2px -1px rgb(0 0 0 / 0.06);
    --lab-shadow:     0 4px 12px -2px rgb(0 0 0 / 0.08), 0 2px 6px -2px rgb(0 0 0 / 0.05);
    --lab-shadow-md:  0 8px 24px -4px rgb(0 0 0 / 0.10), 0 4px 10px -4px rgb(0 0 0 / 0.06);

    --lab-radius:     0.75rem;
    --lab-radius-sm:  0.5rem;
}

/* ── Base ───────────────────────────────────────────────── */
body,
.fi-body {
    background-color: var(--lab-off-white) !important;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif !important;
}

/* ══════════════════════════════════════════════════════════
   SIDEBAR — Oscura, con acento teal
   ══════════════════════════════════════════════════════════ */

/* Anular variables de color primario dentro de sidebar para que
   las clases de Filament (bg-primary-50, text-primary-600) no
   rompan el esquema oscuro */
.fi-sidebar {
    --c-primary-50:  26, 47, 80;
    --c-primary-100: 26, 47, 80;
    --c-primary-400: 34, 211, 238;
    --c-primary-600: 103, 232, 249;
    background-color: var(--lab-navy) !important;
    border-right: none !important;
    box-shadow: 4px 0 24px -4px rgba(0, 0, 0, 0.25) !important;
}

/* ── Header ─────────────────────────────────────────────── */
.fi-sidebar-header {
    background: linear-gradient(180deg, var(--lab-navy-dark) 0%, var(--lab-navy) 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
    padding: 1rem 0.875rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.625rem !important;
    min-height: 4rem !important;
}

/* Logo: círculo blanco bien definido */
.fi-sidebar-header .fi-logo {
    background: white !important;
    border-radius: 0.625rem !important;
    padding: 0.3rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    width: 2.5rem !important;
    height: 2.5rem !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255,255,255,0.08) !important;
}

.fi-sidebar-header .fi-logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    filter: none !important;
}

/* Nombre del sistema junto al logo */
.fi-sidebar-header .fi-brand-name {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    letter-spacing: -0.01em !important;
    line-height: 1.35 !important;
    flex: 1 !important;
    min-width: 0 !important;
}

/* ── Nav container ──────────────────────────────────────── */
.fi-sidebar-nav-groups {
    padding: 0.5rem 0.625rem 1rem !important;
}

/* ── Labels de grupos ───────────────────────────────────── */
.fi-sidebar-group-label,
.fi-sidebar-group-label * {
    font-size: 0.6rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    color: rgba(103, 232, 249, 0.45) !important;
    padding: 0.875rem 0.5rem 0.3rem !important;
}

/* ── RESET total de background en items — con máxima especificidad */
html body .fi-sidebar .fi-sidebar-item-button,
html body .fi-sidebar a.fi-sidebar-item-button {
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border-left: 2.5px solid transparent !important;
    border-radius: var(--lab-radius-sm) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: rgba(220, 235, 245, 0.85) !important;
    transition: background 0.15s ease, color 0.15s ease !important;
    padding-left: calc(0.625rem - 2.5px) !important;
}

/* Todos los textos e íconos dentro del item */
html body .fi-sidebar .fi-sidebar-item-button *,
html body .fi-sidebar a.fi-sidebar-item-button * {
    color: inherit !important;
}

/* ── Hover ──────────────────────────────────────────────── */
html body .fi-sidebar .fi-sidebar-item-button:hover,
html body .fi-sidebar a.fi-sidebar-item-button:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

/* ── Activo — especificidad máxima para vencer a Filament ── */
html body .fi-sidebar .fi-sidebar-item-button.fi-active,
html body .fi-sidebar a.fi-sidebar-item-button.fi-active,
html body .fi-sidebar .fi-sidebar-item-button[aria-current],
html body .fi-sidebar a[aria-current] {
    background-color: rgba(34, 211, 238, 0.14) !important;
    background-image: none !important;
    border-left-color: #22d3ee !important;
    color: #67e8f9 !important;
    font-weight: 600 !important;
}

/* ── Botón colapsar ─────────────────────────────────────── */
.fi-sidebar-close-button,
.fi-sidebar-close-button svg {
    color: rgba(255, 255, 255, 0.45) !important;
}
.fi-sidebar-close-button:hover {
    color: rgba(255, 255, 255, 0.8) !important;
    background: rgba(255, 255, 255, 0.07) !important;
}

/* ══════════════════════════════════════════════════════════
   TOPBAR — Blanca, limpia
   ══════════════════════════════════════════════════════════ */

.fi-topbar,
nav.fi-topbar {
    background-color: var(--lab-white) !important;
    border-bottom: 1px solid var(--lab-border) !important;
    box-shadow: var(--lab-shadow-sm) !important;
}

/* ══════════════════════════════════════════════════════════
   WIDGETS DE ESTADÍSTICAS — Cards con acento teal
   ══════════════════════════════════════════════════════════ */

.fi-wi-stats-overview-stat {
    background-color: var(--lab-white) !important;
    border: 1px solid var(--lab-border) !important;
    border-radius: var(--lab-radius) !important;
    box-shadow: var(--lab-shadow-sm) !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.fi-wi-stats-overview-stat::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, var(--lab-teal) 0%, var(--lab-teal-light) 100%) !important;
}

.fi-wi-stats-overview-stat:hover {
    box-shadow: var(--lab-shadow-md) !important;
    transform: translateY(-2px) !important;
}

.fi-wi-stats-overview-stat-label {
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    color: #64748b !important;
    letter-spacing: 0.01em !important;
}

.fi-wi-stats-overview-stat-value {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: var(--lab-navy) !important;
    letter-spacing: -0.03em !important;
    line-height: 1.1 !important;
}

.fi-wi-stats-overview-stat-description {
    font-size: 0.75rem !important;
}

/* ══════════════════════════════════════════════════════════
   SECCIONES / CARDS
   ══════════════════════════════════════════════════════════ */

.fi-section {
    background-color: var(--lab-white) !important;
    border: 1px solid var(--lab-border) !important;
    border-radius: var(--lab-radius) !important;
    box-shadow: var(--lab-shadow-sm) !important;
}

.fi-section-header {
    border-bottom: 1px solid var(--lab-border) !important;
    padding: 1rem 1.25rem !important;
}

.fi-section-header-heading {
    font-weight: 600 !important;
    color: var(--lab-navy) !important;
    font-size: 0.9375rem !important;
}

.fi-section-content {
    padding: 1.25rem !important;
}

/* ══════════════════════════════════════════════════════════
   TABLA
   ══════════════════════════════════════════════════════════ */

.fi-ta-ctn {
    background-color: var(--lab-white) !important;
    border: 1px solid var(--lab-border) !important;
    border-radius: var(--lab-radius) !important;
    box-shadow: var(--lab-shadow-sm) !important;
    overflow: hidden !important;
}

.fi-ta-header-cell {
    background-color: #f8fafc !important;
    font-size: 0.6875rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.07em !important;
    color: #64748b !important;
    border-bottom: 1px solid var(--lab-border) !important;
}

.fi-ta-row:hover td,
.fi-ta-row:hover th {
    background-color: #f0f9ff !important;
}

.fi-ta-cell {
    font-size: 0.875rem !important;
    color: #1e293b !important;
}

/* Toolbar de tabla */
.fi-ta-header {
    background-color: var(--lab-white) !important;
    border-bottom: 1px solid var(--lab-border) !important;
    padding: 0.875rem 1rem !important;
}

/* ══════════════════════════════════════════════════════════
   FORMULARIOS
   ══════════════════════════════════════════════════════════ */

.fi-input,
.fi-select-input,
.fi-textarea {
    background-color: var(--lab-white) !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: var(--lab-radius-sm) !important;
    font-size: 0.875rem !important;
    color: #1e293b !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.fi-input:focus,
.fi-select-input:focus,
.fi-textarea:focus {
    border-color: var(--lab-teal) !important;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.12) !important;
    outline: none !important;
}

.fi-fo-field-wrp-label {
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
    letter-spacing: 0.01em !important;
}

/* ══════════════════════════════════════════════════════════
   BOTONES
   ══════════════════════════════════════════════════════════ */

.fi-btn-primary {
    background: linear-gradient(135deg, var(--lab-teal) 0%, var(--lab-teal-dark) 100%) !important;
    border-color: var(--lab-teal-dark) !important;
    border-radius: var(--lab-radius-sm) !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    box-shadow: 0 2px 8px rgba(8, 145, 178, 0.3) !important;
    transition: all 0.15s ease !important;
    color: white !important;
}

.fi-btn-primary:hover {
    background: linear-gradient(135deg, var(--lab-teal-dark) 0%, #155e75 100%) !important;
    box-shadow: 0 4px 14px rgba(8, 145, 178, 0.45) !important;
    transform: translateY(-1px) !important;
}

/* ══════════════════════════════════════════════════════════
   BADGES
   ══════════════════════════════════════════════════════════ */

.fi-badge {
    border-radius: 9999px !important;
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em !important;
    padding: 0.2rem 0.625rem !important;
}

/* ══════════════════════════════════════════════════════════
   MODALES
   ══════════════════════════════════════════════════════════ */

.fi-modal-window {
    border-radius: 1rem !important;
    box-shadow:
        0 20px 60px -10px rgb(0 0 0 / 0.15),
        0 4px 12px -4px rgb(0 0 0 / 0.08) !important;
}

.fi-modal-header {
    border-bottom: 1px solid var(--lab-border) !important;
    padding: 1.25rem 1.5rem !important;
    background-color: #f8fafc !important;
    border-radius: 1rem 1rem 0 0 !important;
}

.fi-modal-header-heading {
    font-weight: 700 !important;
    color: var(--lab-navy) !important;
}

.fi-modal-footer {
    border-top: 1px solid var(--lab-border) !important;
    padding: 1rem 1.5rem !important;
    background-color: #f8fafc !important;
    border-radius: 0 0 1rem 1rem !important;
}

/* ══════════════════════════════════════════════════════════
   HEADER DE PÁGINA
   ══════════════════════════════════════════════════════════ */

.fi-header-heading {
    font-size: 1.375rem !important;
    font-weight: 700 !important;
    color: var(--lab-navy) !important;
    letter-spacing: -0.02em !important;
}

.fi-breadcrumbs-item {
    font-size: 0.8125rem !important;
    color: #64748b !important;
}

/* ══════════════════════════════════════════════════════════
   INFOLIST (detalle de registro)
   ══════════════════════════════════════════════════════════ */

.fi-in-entry-wrp-label {
    font-size: 0.6875rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: #94a3b8 !important;
}

.fi-in-entry-wrp-content {
    color: #1e293b !important;
    font-weight: 500 !important;
    font-size: 0.9375rem !important;
}

/* ══════════════════════════════════════════════════════════
   TABS
   ══════════════════════════════════════════════════════════ */

.fi-tabs-tab {
    border-radius: var(--lab-radius-sm) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    transition: all 0.15s ease !important;
}

/* ══════════════════════════════════════════════════════════
   PÁGINA DE LOGIN — Navy + Teal
   ══════════════════════════════════════════════════════════ */

.fi-simple-layout {
    min-height: 100vh !important;
    background: linear-gradient(135deg, var(--lab-navy-dark) 0%, var(--lab-navy) 50%, #1a3a60 100%) !important;
    position: relative !important;
}

/* Efectos decorativos de fondo */
.fi-simple-layout::before {
    content: '' !important;
    position: fixed !important;
    inset: 0 !important;
    background:
        radial-gradient(ellipse at 15% 85%, rgba(8, 145, 178, 0.2) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 15%, rgba(34, 211, 238, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 70%) !important;
    pointer-events: none !important;
}

.fi-simple-main {
    background: transparent !important;
    position: relative !important;
    z-index: 1 !important;
}

.fi-simple-page {
    background-color: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 1.5rem !important;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.15),
        0 32px 80px -12px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.15) !important;
    padding: 2.5rem !important;
    width: 100% !important;
    max-width: 420px !important;
}

.fi-simple-page .fi-logo {
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 0.5rem !important;
}

.fi-simple-page .fi-logo img {
    height: 4rem !important;
    width: auto !important;
    filter: none !important;
}

.fi-simple-page .fi-brand-name {
    text-align: center !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: var(--lab-navy) !important;
    letter-spacing: -0.02em !important;
}

.fi-simple-page h1,
.fi-auth-heading {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--lab-navy) !important;
    text-align: center !important;
    margin-bottom: 0.25rem !important;
}

.fi-simple-page .fi-fo-field-wrp-label label {
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
}

.fi-simple-page .fi-input {
    background-color: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 0.625rem !important;
    padding: 0.625rem 0.875rem !important;
    font-size: 0.9375rem !important;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s !important;
}

.fi-simple-page .fi-input:focus {
    background-color: white !important;
    border-color: var(--lab-teal) !important;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15) !important;
}

.fi-simple-page .fi-btn-primary {
    width: 100% !important;
    background: linear-gradient(135deg, var(--lab-teal) 0%, var(--lab-teal-dark) 100%) !important;
    border: none !important;
    border-radius: 0.625rem !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    box-shadow: 0 2px 12px rgba(8, 145, 178, 0.4) !important;
    transition: all 0.2s ease !important;
    transform: none !important;
}

.fi-simple-page .fi-btn-primary:hover {
    background: linear-gradient(135deg, var(--lab-teal-dark) 0%, #155e75 100%) !important;
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.5) !important;
    transform: translateY(-1px) !important;
}

.fi-simple-page::after {
    content: 'Laboratorio Clínico · Obra Social Camioneros Jujuy' !important;
    display: block !important;
    text-align: center !important;
    font-size: 0.6875rem !important;
    color: #94a3b8 !important;
    margin-top: 1.75rem !important;
    padding-top: 1.25rem !important;
    border-top: 1px solid #f1f5f9 !important;
    letter-spacing: 0.02em !important;
}

/* ══════════════════════════════════════════════════════════
   WIDGET DE ACTIVIDAD RECIENTE
   ══════════════════════════════════════════════════════════ */

.fi-wi-chart {
    background-color: var(--lab-white) !important;
    border: 1px solid var(--lab-border) !important;
    border-radius: var(--lab-radius) !important;
    box-shadow: var(--lab-shadow-sm) !important;
}

/* ══════════════════════════════════════════════════════════
   SCROLLBAR
   ══════════════════════════════════════════════════════════ */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(8, 145, 178, 0.25);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(8, 145, 178, 0.45);
}

/* Scrollbar en sidebar */
.fi-sidebar ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
}
.fi-sidebar ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.28);
}

/* ══════════════════════════════════════════════════════════
   BUG REPORT BUBBLE
   ══════════════════════════════════════════════════════════ */

.lab-report-root {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 9999;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.lab-report-fab {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lab-teal) 0%, var(--lab-teal-dark) 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(8, 145, 178, 0.5), 0 1px 4px rgba(0,0,0,0.12);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    flex-shrink: 0;
}

.lab-report-fab svg {
    width: 1.375rem;
    height: 1.375rem;
    transition: transform 0.25s ease;
}

.lab-report-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 22px rgba(8, 145, 178, 0.6);
}

.lab-report-fab--open {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    box-shadow: 0 4px 14px rgba(71, 85, 105, 0.4);
}

.lab-report-tooltip {
    position: absolute;
    bottom: 3.75rem;
    right: 0;
    background: var(--lab-navy);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.lab-report-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 1rem;
    border: 5px solid transparent;
    border-top-color: var(--lab-navy);
}

.lab-report-root:hover .lab-report-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.lab-report-panel {
    position: absolute;
    bottom: 4rem;
    right: 0;
    width: 370px;
    background: var(--lab-white);
    border-radius: 1rem;
    box-shadow:
        0 0 0 1px rgba(226, 232, 240, 0.8),
        0 8px 24px -4px rgba(0,0,0,0.12),
        0 24px 64px -12px rgba(8, 145, 178, 0.12);
    animation: lab-panel-in 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

@keyframes lab-panel-in {
    from { opacity: 0; transform: translateY(14px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.lab-report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.125rem;
    background: linear-gradient(135deg, var(--lab-navy) 0%, var(--lab-navy-light) 100%);
    border-bottom: none;
}

.lab-report-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lab-report-header-icon {
    width: 2.25rem;
    height: 2.25rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lab-teal-light);
    flex-shrink: 0;
}
.lab-report-header-icon svg { width: 1.125rem; height: 1.125rem; }

.lab-report-header h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.25;
}

.lab-report-header p {
    font-size: 0.7375rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    margin-top: 0.1rem;
}

.lab-report-x {
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    transition: all 0.15s;
    flex-shrink: 0;
}
.lab-report-x svg { width: 0.9rem; height: 0.9rem; }
.lab-report-x:hover { background: rgba(255, 255, 255, 0.16); color: white; }

.lab-report-form {
    padding: 1.125rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.lab-report-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.lab-report-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
}

.lab-report-required { color: #e11d48; margin-left: 2px; }
.lab-report-optional  { font-weight: 400; color: #94a3b8; font-size: 0.725rem; }

.lab-report-field textarea {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.625rem;
    padding: 0.6rem 0.75rem;
    font-size: 0.875rem;
    color: #1e293b;
    resize: vertical;
    min-height: 5.5rem;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    font-family: inherit;
    background: #fafafa;
    line-height: 1.5;
}

.lab-report-field textarea:focus {
    outline: none;
    border-color: var(--lab-teal);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.12);
    background: #fff;
}

.lab-report-input--error {
    border-color: #e11d48 !important;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1) !important;
}

.lab-report-file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.875rem 1rem;
    border: 2px dashed #e2e8f0;
    border-radius: 0.625rem;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
    color: #64748b;
    background: #fafafa;
    position: relative;
    overflow: hidden;
}

.lab-report-file-label:hover {
    border-color: var(--lab-teal);
    background: var(--lab-teal-subtle);
    color: var(--lab-teal-dark);
}

.lab-report-file-label svg  { width: 1.5rem; height: 1.5rem; }
.lab-report-file-label span { font-size: 0.8125rem; font-weight: 500; }
.lab-report-file-label small { font-size: 0.6875rem; color: #94a3b8; }

.lab-report-file-label--has {
    border-style: solid;
    border-color: var(--lab-teal);
    background: var(--lab-teal-subtle);
    padding: 0.5rem;
}

.lab-report-preview {
    width: 100%;
    max-height: 110px;
    object-fit: cover;
    border-radius: 0.375rem;
}

.lab-report-file-change {
    font-size: 0.75rem;
    color: var(--lab-teal);
    font-weight: 500;
}

.lab-report-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.lab-report-uploading {
    font-size: 0.75rem;
    color: var(--lab-teal);
    text-align: center;
    padding: 0.25rem 0;
}

.lab-report-error {
    font-size: 0.75rem;
    color: #e11d48;
}

.lab-report-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

.lab-report-user {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.725rem;
    color: #94a3b8;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lab-report-user svg { width: 0.875rem; height: 0.875rem; flex-shrink: 0; }

.lab-report-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--lab-teal) 0%, var(--lab-teal-dark) 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(8, 145, 178, 0.3);
}
.lab-report-submit-btn svg { width: 0.8rem; height: 0.8rem; }

.lab-report-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--lab-teal-dark) 0%, #155e75 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(8, 145, 178, 0.45);
}

.lab-report-submit-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.lab-report-success {
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.lab-report-success-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    animation: lab-pop-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes lab-pop-in {
    from { transform: scale(0.6); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.lab-report-success-icon svg { width: 1.5rem; height: 1.5rem; }

.lab-report-success h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.lab-report-success p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.lab-report-close-btn {
    padding: 0.5rem 1.5rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.5rem;
    background: white;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    margin-top: 0.5rem;
}

.lab-report-close-btn:hover {
    background: #f0f9ff;
    border-color: var(--lab-teal);
    color: var(--lab-teal-dark);
}
