/* ── Sample Collection Styles ── */
@keyframes sc-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
.sc-container {
    padding: 16px 20px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1e293b;
    background: #f8fafc;
    height: 100%;
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.sc-tabs-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgb(79, 70, 229);
    margin-bottom: 8px;
    padding-bottom: 8px;
}
.sc-search-wrap {
    position: relative;
    width: 320px;
}
.sc-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
    pointer-events: none;
}
.sc-search-input {
    height: 36px;
    width: 100%;
    padding: 0 12px 0 38px;
    border-radius: 20px;
    border: 1.5px solid #cbd5e1;
    font-size: 0.85rem;
    color: #1e293b;
    outline: none;
    background: #f1f5f9;
    transition: all 0.2s;
    font-weight: 600;
}
.sc-search-input:focus {
    border-color: rgb(79, 70, 229);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
.sc-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.sc-date-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sc-date-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}
.sc-date-input {
    height: 36px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
    outline: none;
    background: #f1f5f9;
    transition: all 0.2s;
}
.sc-date-input:focus {
    border-color: rgb(79, 70, 229);
    background: #fff;
}
.sc-filter-btn {
    height: 36px;
    padding: 0 16px;
    border-radius: 20px;
    border: 1.5px solid rgb(79, 70, 229);
    background: #f5f3ff;
    color: #4f46e5;
    font-size: 0.85rem;
    font-weight: 750;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    position: relative;
}
.sc-filter-btn:hover {
    background: #ede9fe;
}
.sc-filter-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid white;
}

.sc-filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 16px 24px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1.5px solid #e2e8f0;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.sc-filter-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sc-filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sc-filter-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    width: 100px;
    text-align: right;
    flex-shrink: 0;
}
.sc-filter-input {
    height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1.5px solid #cbd5e1;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    outline: none;
    flex: 1;
    background: #f8fafc;
    transition: all 0.2s;
}
.sc-filter-input:focus {
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 241, 0.1);
}
.sc-view-btn {
    background: #fff;
    color: #3b82f6;
    border: 1.5px solid #3b82f6;
    border-radius: 8px;
    height: 90px;
    width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.8rem;
    transition: all 0.2s;
}
.sc-view-btn:hover {
    background: #eff6ff;
    transform: translateY(-1px);
}

.sc-content-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.3s ease;
}
.sc-left-panel {
    flex: 1;
    transition: all 0.3s ease;
    background: white;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.sc-right-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sc-modal-backdrop {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    animation: fadeIn 0.15s ease-out;
}
.sc-modal-content {
    background: #f8fafc;
    width: 96%;
    max-width: 1400px;
    height: 90vh;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    animation: scaleUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.sc-modal-header {
    background: white;
    padding: 18px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sc-modal-title-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
}
.sc-modal-info-item {
    display: flex;
    flex-direction: column;
}
.sc-modal-info-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.sc-modal-info-value {
    font-size: 0.9rem;
    color: #0f172a;
    font-weight: 800;
}
.sc-modal-close-btn {
    background: #f1f5f9;
    border: none;
    color: #64748b;
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.sc-modal-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.sc-modal-body {
    padding: 20px 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}
.sc-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 20px;
    flex: 1;
    min-height: 0;
    height: 100%;
}
.sc-grid-left, .sc-grid-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scaleUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.sc-table-wrapper {
    overflow-x: auto;
}
.sc-table {
    width: 100%;
    border-collapse: collapse;
}
.sc-table thead {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.15), transparent) !important;
}
.sc-table th {
    background: transparent !important;
    color: rgb(79, 70, 229);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 12px 16px;
    text-align: left;
    letter-spacing: 0.05em;
    border-bottom: 2px solid rgba(99, 102, 241, 0.2);
}
.sc-table td {
    padding: 12px 16px;
    font-size: 0.85rem;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 600;
    vertical-align: middle;
}
.sc-table tbody tr {
    cursor: pointer;
    transition: background-color 0.2s;
}
.sc-table tbody tr:hover {
    background-color: #f8fafc;
}
.sc-tr-selected {
    background-color: #f5f3ff !important;
    color: #4338ca !important;
    border-left: 4px solid rgb(79, 70, 229);
}
.sc-tr-selected td {
    color: #4338ca !important;
}
.sc-play-icon {
    color: rgb(79, 70, 229);
    font-size: 14px;
    vertical-align: middle;
}
.sc-footer-bar {
    padding: 12px 16px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    font-size: 0.85rem;
    font-weight: 800;
    color: rgb(79, 70, 229);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sc-sample-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sc-tube {
    width: 12px;
    height: 28px;
    border-radius: 6px;
    background: #e2e8f0;
    position: relative;
}
.sc-tube.red { background: linear-gradient(to bottom, #ef4444 50%, #fca5a5 100%); }
.sc-tube.purple { background: linear-gradient(to bottom, #a855f7 50%, #d8b4fe 100%); }
.sc-tube.grey { background: linear-gradient(to bottom, #94a3b8 50%, #cbd5e1 100%); }
.sc-tube.blue { background: linear-gradient(to bottom, #3b82f6 50%, #93c5fd 100%); }
.sc-tube.green { background: linear-gradient(to bottom, #10b981 50%, #6ee7b7 100%); }

.sc-sample-name {
    font-size: 0.85rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}
.sc-sample-desc {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 600;
    margin: 2px 0 0;
    text-transform: uppercase;
}

.sc-card-panel {
    background: white;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    overflow: hidden;
}
.sc-card-header-brand {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.15), transparent) !important;
    color: rgb(79, 70, 229);
    padding: 10px 16px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-left: 4px solid rgb(79, 70, 229);
    border-bottom: 1.5px solid rgba(99, 102, 241, 0.2);
}
.sc-card-body-row {
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.sc-card-table-wrap {
    width: 100%;
    max-height: 240px;
    overflow-y: auto;
}
.sc-card-buttons-wrap {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.sc-side-btn {
    flex: 1;
    min-width: 120px;
    background: #fff;
    color: rgb(79, 70, 229);
    border: 1.5px solid rgb(79, 70, 229);
    border-radius: 6px;
    padding: 8px 12px;
    font-weight: 800;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.sc-side-btn:hover {
    background: #f5f3ff;
}
.sc-side-btn.sc-btn-danger {
    color: #ef4444;
    border-color: #ef4444;
}
.sc-side-btn.sc-btn-danger:hover {
    background: #fef2f2;
}
.sc-card-footer {
    padding: 10px 16px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.sc-footer-action-btn {
    height: 32px;
    padding: 0 12px;
    border-radius: 7px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sc-footer-action-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.sc-footer-action-btn.btn-danger-soft {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fee2e2;
}

.sc-footer-action-btn.btn-danger-soft:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

.sc-btn-save-collection {
    height: 34px;
    padding: 0 16px;
    border-radius: 8px;
    background: #059669;
    color: #ffffff;
    border: none;
    font-size: 12.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
    transition: all 0.15s ease;
}

.sc-btn-save-collection:hover {
    background: #047857;
    box-shadow: 0 3px 8px rgba(5, 150, 105, 0.35);
}

.sc-card-body-full {
    padding: 16px;
    max-height: 180px;
    overflow-y: auto;
}

/* ── Modern Table System for Sample Collection ────────────── */
.sc-modern-table,
.sc-card-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    font-size: 12.5px;
    text-align: left;
    white-space: nowrap;
    background: #ffffff;
}

.sc-modern-table thead,
.sc-card-table thead,
.sc-modern-table thead tr,
.sc-card-table thead tr {
    background: #f1f5f9 !important;
}

.sc-modern-table th,
.sc-card-table th {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 10px 14px !important;
    border-bottom: 2px solid #cbd5e1 !important;
    border-top: 1px solid #e2e8f0 !important;
    border-left: none !important;
    border-right: none !important;
    vertical-align: middle;
}

.sc-modern-table td,
.sc-card-table td {
    padding: 10px 14px !important;
    color: #1e293b !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    font-size: 12.5px;
    font-weight: 500;
    vertical-align: middle;
}

.sc-modern-table tbody tr,
.sc-card-table tbody tr {
    background-color: #ffffff;
    transition: background-color 0.12s ease;
}

.sc-modern-table tbody tr:nth-child(even),
.sc-card-table tbody tr:nth-child(even) {
    background-color: #f8fafc !important;
}

.sc-modern-table tbody tr:hover,
.sc-card-table tbody tr:hover {
    background-color: #f1f5f9 !important;
}

.is-transferred-sample-row {
    background-color: #eff6ff !important;
}

.sc-input-grid {
    height: 28px;
    padding: 0 8px;
    border-radius: 4px;
    border: 1.5px solid #cbd5e1;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e293b;
    background: #f8fafc;
    width: 100px;
    outline: none;
    transition: all 0.2s;
}
.sc-input-grid:focus {
    border-color: #4f46e5;
    background: #fff;
}

.sc-action-cell,
.sc-actions-cell-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
    width: 100%;
}

.sc-actions-flex {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

.sc-btn-accept-mod {
    height: 30px !important;
    padding: 0 12px !important;
    border-radius: 6px !important;
    background: #10b981 !important;
    color: #ffffff !important;
    border: 1px solid #059669 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3) !important;
    transition: all 0.15s ease !important;
}

.sc-btn-accept-mod:hover {
    background: #059669 !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.45) !important;
    transform: translateY(-1px);
}

.sc-btn-reject-mod {
    height: 30px !important;
    padding: 0 12px !important;
    border-radius: 6px !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    border: 1px solid #dc2626 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.3) !important;
    transition: all 0.15s ease !important;
}

.sc-btn-reject-mod:hover {
    background: #dc2626 !important;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.45) !important;
    transform: translateY(-1px);
}

.sc-btn-resample-mod {
    height: 30px !important;
    padding: 0 12px !important;
    border-radius: 6px !important;
    background: #f59e0b !important;
    color: #ffffff !important;
    border: 1px solid #d97706 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.3) !important;
    transition: all 0.15s ease !important;
}

.sc-btn-resample-mod:hover {
    background: #d97706 !important;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.45) !important;
    transform: translateY(-1px);
}

.sc-btn-receive-mod {
    height: 30px !important;
    padding: 0 14px !important;
    border-radius: 6px !important;
    background: #3b82f6 !important;
    color: #ffffff !important;
    border: 1px solid #2563eb !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3) !important;
    transition: all 0.15s ease !important;
}

.sc-btn-receive-mod:hover {
    background: #2563eb !important;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.45) !important;
    transform: translateY(-1px);
}

.dch-btn-tr-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dch-btn-tr-icon:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.sc-btn {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
}
.sc-btn-accept { background: #10b981; color: white; box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3); }
.sc-btn-accept:hover { background: #059669; }
.sc-btn-reject { background: #ef4444; color: white; box-shadow: 0 1px 3px rgba(239, 68, 68, 0.3); }
.sc-btn-reject:hover { background: #dc2626; }
.sc-btn-resample { background: #f59e0b; color: white; box-shadow: 0 1px 3px rgba(245, 158, 11, 0.3); }
.sc-btn-resample:hover { background: #d97706; }

.sc-pill-accepted {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    background: #10b981;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 2px rgba(16, 185, 129, 0.2);
}

.sc-pill-rejected {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    background: #ef4444;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 2px rgba(239, 68, 68, 0.2);
}

.sc-pill-resampling {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    background: #f59e0b;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 2px rgba(245, 158, 11, 0.2);
}

.sc-pill-received {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    background: #6366f1;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 2px rgba(99, 102, 241, 0.2);
}

.sc-btn-receive {
    background: #3b82f6;
    color: white;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
}
.sc-btn-receive:hover {
    background: #2563eb;
}
.sc-legend-item.active-tab {
    background-color: #cbd5e1 !important;
    border: 1.5px solid #94a3b8 !important;
}
.dot-received { background: #3b82f6; }

.sc-checkbox {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1.5px solid #cbd5e1;
    appearance: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}
.sc-checkbox:checked {
    background-color: rgb(79, 70, 229);
    border-color: rgb(79, 70, 229);
}
.sc-checkbox:checked::after {
    content: '\2714';
    font-size: 9px;
    color: white;
    position: absolute;
    top: -1px;
    left: 1.5px;
}

.sc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    animation: fadeIn 0.2s ease-out;
}
.sc-modal-card {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.sc-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sc-modal-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--lc-secondary);
    margin: 0;
}
.sc-modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s;
}
.sc-modal-close:hover {
    background: #f1f5f9;
    color: #475569;
}
.sc-modal-body {
    padding: 24px;
}
.sc-modal-footer {
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
.sc-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}
.sc-input {
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    background: #f8fafc;
    width: 100%;
    outline: none;
}
.sc-btn-outline {
    background: #fff;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
}

@keyframes slideUp {
    from { transform: translateY(12px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.sc-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
    animation: fadeIn 0.2s ease-out;
}
.sc-filter-drawer {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 480px;
    background: #fff;
    box-shadow: -4px 0 25px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    animation: slideLeft 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideLeft {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
.sc-drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sc-drawer-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e293b;
}
.sc-drawer-header-left h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
}
.sc-drawer-close {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 50%;
    transition: background-color 0.2s;
}
.sc-drawer-close:hover {
    background-color: #f1f5f9;
    color: #1e293b;
}
.sc-drawer-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}
.sc-drawer-tabs {
    width: 140px;
    border-right: 1px solid #f1f5f9;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
}
.sc-drawer-tab-btn {
    width: 100%;
    padding: 14px 16px;
    text-align: left;
    border: none;
    background: transparent;
    font-size: 0.8rem;
    font-weight: 750;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.sc-drawer-tab-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}
.sc-drawer-tab-btn.active {
    background: #fff;
    color: rgb(79, 70, 229);
    border-left: 3px solid rgb(79, 70, 229);
}
.sc-drawer-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
}
.sc-drawer-search-wrap {
    padding: 12px 16px;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}
.sc-drawer-search-icon {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
}
.sc-drawer-search-input {
    width: 100%;
    height: 34px;
    padding: 0 12px 0 34px;
    border-radius: 6px;
    border: 1.5px solid #e2e8f0;
    font-size: 0.8rem;
    font-weight: 600;
    outline: none;
}
.sc-drawer-search-input:focus {
    border-color: rgb(79, 70, 229);
}
.sc-drawer-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sc-drawer-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
}
.sc-drawer-list-item:hover {
    background-color: #f8fafc;
}
.sc-drawer-list-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: rgb(79, 70, 229);
    cursor: pointer;
}
.sc-drawer-list-item.select-all {
    font-weight: 750;
    color: #1e293b;
}
.sc-drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    gap: 12px;
    background: #fff;
}
.sc-drawer-clear-btn {
    flex: 1;
    height: 40px;
    border-radius: 6px;
    border: 1.5px solid rgb(79, 70, 229);
    background: #fff;
    color: rgb(79, 70, 229);
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}
.sc-drawer-clear-btn:hover {
    background: #f5f3ff;
}
.sc-drawer-apply-btn {
    flex: 1;
    height: 40px;
    border-radius: 6px;
    border: none;
    background: rgb(79, 70, 229);
    color: #fff;
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}
.sc-drawer-apply-btn:hover {
    background: #4338ca;
}

.sc-legend-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1.5px solid #e2e8f0;
}
.sc-legend-title {
    font-size: 0.7rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.sc-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 750;
    color: #334155;
}
.sc-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.dot-accepted { background: #10b981; }
.dot-rejected { background: #ef4444; }
.dot-resampling { background: #f59e0b; }
.dot-pending { background: #94a3b8; }

.sc-status-pill {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-left: 8px;
    vertical-align: middle;
}
.pill-accepted {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #10b981;
}
.pill-rejected {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #f87171;
}
.pill-resampling {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fbbf24;
}
.pill-pending {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

.sc-notif-stack {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    pointer-events: none;
}
.sc-notif-card {
    pointer-events: all;
    width: 360px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.08);
    border: 1.5px solid #e2e8f0;
    overflow: hidden;
    animation: notifSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.sc-notif-card.is-return {
    border-color: #f59e0b;
}
@keyframes notifSlideIn {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
.sc-notif-header {
    padding: 12px 16px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sc-notif-header.incoming { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.sc-notif-header.returning { background: linear-gradient(135deg, #d97706, #f59e0b); }
.sc-notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    color: white;
}
.sc-notif-title-wrap { flex: 1; }
.sc-notif-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.sc-notif-subtitle {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.75);
    font-weight: 600;
    margin-top: 1px;
}
.sc-notif-dismiss {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}
.sc-notif-dismiss:hover { color: white; }
.sc-notif-body {
    padding: 14px 16px 6px;
}
.sc-notif-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.sc-notif-patient {
    font-weight: 800;
    font-size: 0.875rem;
    color: #1e293b;
}
.sc-notif-sno {
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 600;
    font-family: monospace;
}
.sc-notif-route {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    background: #f8fafc;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.sc-notif-dept {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}
.sc-notif-dept.from { background: #ede9fe; color: #6d28d9; }
.sc-notif-dept.to   { background: #dcfce7; color: #16a34a; }
.sc-notif-dept.ret  { background: #fef3c7; color: #b45309; }
.sc-notif-sample {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 4px;
}
.sc-notif-progress {
    height: 3px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}
.sc-notif-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    border-radius: 2px;
    transition: width 1s linear;
}
.sc-notif-progress-bar.returning { background: linear-gradient(90deg, #d97706, #f59e0b); }
.sc-notif-actions {
    padding: 0 16px 14px;
    display: flex;
    gap: 8px;
}
.sc-notif-btn {
    flex: 1;
    height: 36px;
    border-radius: 8px;
    border: none;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.sc-notif-btn.accept  { background: #4f46e5; color: white; }
.sc-notif-btn.accept:hover  { background: #4338ca; }
.sc-notif-btn.ack     { background: #f59e0b; color: white; }
.sc-notif-btn.ack:hover     { background: #d97706; }
.sc-notif-btn.later   { background: #f1f5f9; color: #64748b; }
.sc-notif-btn.later:hover   { background: #e2e8f0; }
.sc-notif-badge {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1999;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(239,68,68,0.4);
}
