/* ════════════════════════════════════════════════════════════════
   SAMPLE RECEIVING MODULE — PREMIUM MODERN THEME
   Route: /sample-receiving
   Prefix: sr-*
   ════════════════════════════════════════════════════════════════ */

:root {
    --sr-bg: #f6f8fb;
    --sr-card-bg: #ffffff;
    --sr-border: #e2e8f0;
    --sr-text-main: #0f172a;
    --sr-text-muted: #64748b;
    --sr-primary: #4f46e5;
    --sr-primary-light: #eff6ff;
    --sr-received-color: #0ea5e9;
    --sr-await-color: #f59e0b;
}

/* ── Page Container ──────────────────────────────────────────── */
.sr-page-container {
    width: 100%;
    height: 100%;
    max-height: 100%;
    background-color: var(--sr-bg);
    padding: 10px 18px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--sr-text-main);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    gap: 8px;
}

/* ── Header ───────────────────────────────────────────────────── */
.sr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.sr-header-left { display: flex; flex-direction: column; gap: 1px; }

.sr-page-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
}

.sr-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: #94a3b8;
}

.sr-breadcrumb-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
}
.sr-breadcrumb-link:hover { color: #4f46e5; text-decoration: underline; }

.sr-header-actions { display: flex; align-items: center; gap: 8px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.sr-btn-primary {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 13px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff; border: none; border-radius: 7px;
    font-size: 0.78rem; font-weight: 600; cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 2px 6px rgba(79,70,229,0.25);
}
.sr-btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.sr-btn-secondary {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    background: #fff; color: #475569;
    border: 1.5px solid #e2e8f0; border-radius: 7px;
    font-size: 0.78rem; font-weight: 600; cursor: pointer;
    transition: background 0.2s;
}
.sr-btn-secondary:hover { background: #f1f5f9; }
.sr-btn-secondary:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── KPI Stat Cards (Minimized Compact Layout) ───────────────── */
.sr-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex-shrink: 0;
}

.sr-stat-card {
    background: var(--sr-card-bg);
    border-radius: 10px;
    padding: 6px 14px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border: 1.5px solid var(--sr-border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    min-height: 44px;
    box-sizing: border-box;
}
.sr-stat-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 10px 10px 0 0;
}

.sr-card-await::before    { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.sr-card-received::before { background: linear-gradient(90deg, #0ea5e9, #38bdf8); }
.sr-card-rejected::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.sr-card-resample::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }

.sr-stat-left {
    display: flex;
    align-items: center;
    gap: 9px;
}

.sr-stat-icon-wrap {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.sr-stat-icon-wrap .material-symbols-outlined {
    font-size: 16px;
}
.sr-card-await    .sr-stat-icon-wrap { background: #fffbeb; color: #d97706; }
.sr-card-received .sr-stat-icon-wrap { background: #e0f2fe; color: #0284c7; }
.sr-card-rejected .sr-stat-icon-wrap { background: #fef2f2; color: #dc2626; }
.sr-card-resample .sr-stat-icon-wrap { background: #f5f3ff; color: #7c3aed; }

.sr-stat-label {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.sr-stat-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    margin: 0;
    flex-shrink: 0;
}

/* ── Department Selection Bar ────────────────────────────────── */
.sr-dept-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--sr-border);
    border-radius: 10px;
    padding: 5px 12px;
    flex-shrink: 0;
    overflow-x: auto;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.sr-dept-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    padding-right: 8px;
    border-right: 1.5px solid #e2e8f0;
    flex-shrink: 0;
}
.sr-dept-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}
.sr-dept-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    line-height: 1.2;
}
.sr-dept-pill:hover {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}
.sr-dept-pill.active {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 1px 5px rgba(79, 70, 229, 0.28);
}
.sr-dept-count {
    font-size: 0.68rem;
    padding: 1px 6px;
    border-radius: 10px;
    background: rgba(0,0,0,0.06);
    font-weight: 700;
}
.sr-dept-pill.active .sr-dept-count {
    background: rgba(255,255,255,0.25);
    color: #ffffff;
}

/* ── Toolbar ──────────────────────────────────────────────────── */
.sr-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid var(--sr-border);
    border-radius: 12px;
    padding: 8px 14px;
}

.sr-toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

/* Barcode Scanner Input */
.sr-scanner-wrap {
    display: flex;
    align-items: center;
    position: relative;
    min-width: 260px;
}
.sr-scanner-icon {
    position: absolute;
    left: 10px;
    color: #94a3b8;
    font-size: 18px;
    pointer-events: none;
}
.sr-scanner-input {
    width: 100%;
    height: 36px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 32px 0 36px;
    font-size: 0.82rem;
    font-weight: 500;
    background: #f8fafc;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}
.sr-scanner-input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
    background: #fff;
}
.sr-scanner-clear {
    position: absolute; right: 6px;
    background: none; border: none; cursor: pointer;
    color: #94a3b8; padding: 4px; display: flex; align-items: center;
}
.sr-scanner-clear:hover { color: #475569; }

/* Date Pills */
.sr-pill-container { display: flex; align-items: center; gap: 4px; }
.sr-pill-btn {
    padding: 5px 11px;
    border-radius: 20px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.73rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.sr-pill-btn:hover { border-color: #4f46e5; color: #4f46e5; background: #eff6ff; }
.sr-pill-btn.active {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 6px rgba(79,70,229,0.25);
}

.sr-custom-range-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 2px 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.sr-custom-range-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sr-custom-range-label {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.sr-custom-input {
    height: 28px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 12px;
    color: #1e293b;
    font-weight: 600;
    background: #ffffff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sr-custom-input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.12);
}

.sr-custom-date {
    width: 125px;
}

.sr-custom-time {
    width: 95px;
}

.sr-btn-custom-apply {
    height: 28px;
    padding: 0 10px;
    border-radius: 6px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 2px rgba(79, 70, 229, 0.2);
    transition: all 0.15s ease;
}

.sr-btn-custom-apply:hover {
    background: linear-gradient(135deg, #4338ca, #4f46e5);
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.3);
}

/* Dropdown */
.sr-select-dropdown {
    height: 34px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 0.78rem;
    font-weight: 500;
    background: #f8fafc;
    color: #334155;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s;
}
.sr-select-dropdown:focus { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,0.10); }

/* ── Table Card ─────────────────────────────────────────────── */
.sr-table-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--sr-card-bg);
    border: 1px solid var(--sr-border);
    border-radius: 14px;
    overflow: hidden;
    min-height: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.sr-table-container {
    flex: 1;
    overflow-y: auto;
}

.sr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.sr-thead {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fafc;
}

.sr-th {
    padding: 10px 12px;
    text-align: left;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}
.sr-th-checkbox { width: 40px; text-align: center; }

.sr-tbody {}

.sr-tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.12s;
}
.sr-tr:hover { background: #fafbff; }
.sr-row-highlight {
    background: linear-gradient(90deg, #fffbeb, #fff) !important;
    border-left: 3px solid #f59e0b;
    animation: sr-pulse 1.5s ease 2;
}

@keyframes sr-pulse {
    0%, 100% { background: linear-gradient(90deg, #fffbeb, #fff); }
    50% { background: #fff7ed; }
}

.sr-td {
    padding: 10px 12px;
    vertical-align: middle;
    color: #334155;
}
.sr-td-checkbox { text-align: center; }

/* ── Table Cell Components ───────────────────────────────────── */
.sr-checkbox { width: 16px; height: 16px; cursor: pointer; accent-color: #4f46e5; }

.sr-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.75rem;
    flex-shrink: 0;
}
.sr-avatar.male  { background: #eff6ff; color: #1d4ed8; border: 1.5px solid #bfdbfe; }
.sr-avatar.female { background: #fdf4ff; color: #7e22ce; border: 1.5px solid #e9d5ff; }

.sr-patient-name { font-weight: 700; font-size: 0.82rem; color: #1e293b; }

.sr-emergency-badge {
    font-size: 0.6rem; font-weight: 800;
    background: #fef2f2; color: #dc2626;
    border: 1px solid #fca5a5;
    padding: 1px 5px; border-radius: 4px;
    letter-spacing: 0.04em;
}

.sr-sub-text { font-size: 0.7rem; color: #94a3b8; margin-top: 2px; display: flex; align-items: center; gap: 4px; }

.sr-barcode-pill {
    display: inline-flex; align-items: center;
    padding: 3px 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #334155;
    font-family: 'Courier New', monospace;
}

.sr-dept-badge {
    display: inline-block;
    padding: 3px 8px;
    background: #f5f3ff;
    color: #5b21b6;
    border: 1px solid #ddd6fe;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.sr-status-pill {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
}
.sr-status-awaiting {
    background: #fffbeb; color: #b45309; border: 1px solid #fcd34d;
}
.sr-status-received {
    background: #e0f2fe; color: #0369a1; border: 1px solid #7dd3fc;
}

/* ── Action Buttons ─────────────────────────────────────────── */
.sr-btn-receive {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: #fff; border: none; border-radius: 7px;
    font-size: 0.75rem; font-weight: 700; cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
    box-shadow: 0 2px 6px rgba(14,165,233,0.3);
}
.sr-btn-receive:hover  { opacity: 0.9; transform: translateY(-1px); }
.sr-btn-receive:active { transform: scale(0.97); }
.sr-btn-receive:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.sr-btn-revoke {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 10px;
    background: #fff;
    color: #dc2626;
    border: 1.5px solid #fecaca;
    border-radius: 7px;
    font-size: 0.74rem; font-weight: 700; cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(220,38,38,0.08);
}
.sr-btn-revoke:hover {
    background: #fef2f2;
    border-color: #f87171;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(220,38,38,0.18);
}
.sr-btn-revoke:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.sr-btn-revoke-bulk {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff; border: none; border-radius: 8px;
    font-size: 0.8rem; font-weight: 700; cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
    box-shadow: 0 3px 10px rgba(239,68,68,0.3);
}
.sr-btn-revoke-bulk:hover { opacity: 0.9; transform: translateY(-1px); }
.sr-btn-revoke-bulk:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.sr-done-text {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.73rem; font-weight: 600; color: #10b981;
}

/* ── Empty State ─────────────────────────────────────────────── */
.sr-empty-cell {
    padding: 40px; text-align: center;
    color: #94a3b8; font-style: italic; font-size: 0.85rem;
}

/* ── Table Footer ────────────────────────────────────────────── */
.sr-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
    gap: 12px;
    flex-wrap: wrap;
}

.sr-bulk-action-wrap { display: flex; align-items: center; gap: 10px; }

.sr-selected-badge {
    display: inline-flex; align-items: center;
    padding: 4px 10px;
    background: #eff6ff; color: #1d4ed8;
    border: 1px solid #bfdbfe; border-radius: 20px;
    font-size: 0.75rem; font-weight: 700;
}

.sr-btn-receive-bulk {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #0ea5e9, #4f46e5);
    color: #fff; border: none; border-radius: 8px;
    font-size: 0.8rem; font-weight: 700; cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
    box-shadow: 0 3px 10px rgba(14,165,233,0.3);
    animation: sr-glow 2s ease-in-out infinite;
}
.sr-btn-receive-bulk:hover  { opacity: 0.9; transform: translateY(-1px); }
.sr-btn-receive-bulk:disabled { opacity: 0.5; cursor: not-allowed; animation: none; transform: none; }

@keyframes sr-glow {
    0%, 100% { box-shadow: 0 3px 10px rgba(14,165,233,0.3); }
    50%       { box-shadow: 0 3px 20px rgba(14,165,233,0.55); }
}

.sr-footer-hint {
    font-size: 0.72rem; color: #94a3b8; font-style: italic;
    display: flex; align-items: center; gap: 4px;
}

.sr-page-info { font-size: 0.73rem; color: #64748b; font-weight: 500; white-space: nowrap; }

/* ── Pagination ─────────────────────────────────────────────── */
.sr-pagination-controls { display: flex; align-items: center; gap: 4px; }

.sr-page-nav-btn {
    width: 30px; height: 30px; border-radius: 7px;
    border: 1.5px solid #e2e8f0; background: #fff; color: #475569;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.15s;
}
.sr-page-nav-btn:hover:not(:disabled) { background: #f1f5f9; border-color: #4f46e5; color: #4f46e5; }
.sr-page-nav-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.sr-page-number-btn {
    min-width: 30px; height: 30px; padding: 0 4px;
    border-radius: 7px; border: 1.5px solid transparent;
    background: none; color: #475569;
    font-size: 0.78rem; font-weight: 600; cursor: pointer;
    transition: background 0.15s;
    display: flex; align-items: center; justify-content: center;
}
.sr-page-number-btn:hover   { background: #f1f5f9; }
.sr-page-number-btn.active  {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff; border-color: transparent;
}

/* ── Spinner ────────────────────────────────────────────────── */
@keyframes sr-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Grouped Patient Request Row & Status Styles ─────────────── */
.sr-status-partial {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.sr-bill-id {
    font-weight: 700;
    color: #4f46e5;
    font-size: 0.84rem;
    white-space: nowrap;
}

.sr-tr-selected {
    background-color: #f5f3ff !important;
}

.sr-btn-action-view {
    background: #eff6ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.sr-btn-action-view:hover {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}

.sr-specimen-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid #64748b;
    flex-shrink: 0;
}

/* ── Sample Receiving Detail Modal ──────────────────────────── */
.sr-modal-backdrop {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    animation: fadeIn 0.15s ease-out;
}

.sr-modal-content {
    background: #f8fafc;
    width: 94%;
    max-width: 1200px;
    height: 84vh;
    max-height: 820px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    animation: scaleUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sr-modal-header {
    background: #ffffff;
    padding: 16px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.sr-modal-title-info {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    align-items: center;
}

.sr-modal-info-item {
    display: flex;
    flex-direction: column;
}

.sr-modal-info-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.sr-modal-info-value {
    font-size: 0.92rem;
    color: #0f172a;
    font-weight: 800;
}

.sr-modal-divider {
    width: 1px;
    height: 26px;
    background: #e2e8f0;
    align-self: center;
}

.sr-badge-receiving-header {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.sr-modal-close-btn {
    background: #f1f5f9;
    border: none;
    color: #64748b;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}
.sr-modal-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.sr-modal-subbar {
    background: #ffffff;
    padding: 10px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.sr-modal-summary-pills {
    display: flex;
    gap: 8px;
    align-items: center;
}

.sr-summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.78rem;
    color: #475569;
}
.sr-chip-awaiting {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}
.sr-chip-received {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.sr-btn-receive-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #0ea5e9, #4f46e5);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.25);
}
.sr-btn-receive-all:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}
.sr-btn-receive-all:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.sr-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 24px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.sr-modal-table-wrap {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.sr-modal-table {
    width: 100%;
    border-collapse: collapse;
}
.sr-modal-table thead {
    background: #f8fafc;
    border-bottom: 1.5px solid #e2e8f0;
}
.sr-modal-table th {
    padding: 10px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.sr-modal-table td {
    padding: 12px 14px;
    font-size: 0.82rem;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.sr-modal-table tr:hover td {
    background: #f8fafc;
}
.sr-modal-row-received td {
    background: #fafffd;
}
.sr-modal-row-awaiting td {
    background: #ffffff;
}

.sr-modal-footer {
    background: #ffffff;
    padding: 12px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

/* ── Doctor Column Styles ─────────────────────────────────────── */
.sr-doctor-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 220px;
}
.sr-doctor-icon {
    font-size: 15px;
    color: #4f46e5;
    flex-shrink: 0;
}
.sr-doctor-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Department Bar Actions ─────────────────────────────────── */
.sr-dept-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.sr-btn-dept-accept {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.28);
    transition: all 0.15s ease;
    white-space: nowrap;
}
.sr-btn-dept-accept:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.35);
}
.sr-btn-dept-accept:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.sr-dept-count-awaiting {
    background: #fef3c7 !important;
    color: #b45309 !important;
    font-weight: 800 !important;
}
.sr-dept-pill.active .sr-dept-count-awaiting {
    background: rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
}
.sr-btn-toolbar-dept-accept {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 8px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.sr-btn-toolbar-dept-accept:hover:not(:disabled) {
    background: #d1fae5;
    border-color: #6ee7b7;
    color: #047857;
}
.sr-btn-toolbar-dept-accept:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.sr-btn-dept-bulk-accept {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, #059669, #047857);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(5, 150, 105, 0.25);
    transition: all 0.15s ease;
    white-space: nowrap;
}
.sr-btn-dept-bulk-accept:hover:not(:disabled) {
    background: linear-gradient(135deg, #047857, #065f46);
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.35);
    transform: translateY(-1px);
}
.sr-btn-dept-bulk-accept:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ── Status Rejected & Chip ──────────────────────────────────── */
.sr-status-rejected {
    background: #fef2f2 !important;
    color: #b91c1c !important;
    border: 1px solid #fca5a5 !important;
}
.sr-chip-rejected {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border-color: #fca5a5 !important;
}

/* ── Specimen Reject & Undo Action Buttons ────────────────────── */
.sr-btn-reject {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: #fff;
    color: #b91c1c;
    border: 1.5px solid #fecaca;
    border-radius: 7px;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(185, 28, 28, 0.08);
}
.sr-btn-reject:hover:not(:disabled) {
    background: #fef2f2;
    border-color: #f87171;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(185, 28, 28, 0.2);
}
.sr-btn-reject:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.sr-btn-action-undo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: #f8fafc;
    color: #475569;
    border: 1.5px solid #cbd5e1;
    border-radius: 7px;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}
.sr-btn-action-undo:hover:not(:disabled) {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
    transform: translateY(-1px);
}
.sr-btn-action-undo:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ── Revoke / Reject Reason Dialog ────────────────────────────── */
.sr-reason-dialog {
    background: #ffffff;
    border-radius: 14px;
    width: 92%;
    max-width: 520px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: sr-modal-pop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sr-reason-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    color: #ffffff;
}
.sr-reason-header-reject {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}
.sr-reason-header-revoke {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
}

.sr-reason-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sr-reason-sample-pill {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.sr-reason-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.sr-reason-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.sr-reason-chip {
    padding: 4px 10px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: 0.73rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.sr-reason-chip:hover {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}
.sr-reason-chip.active {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
}

.sr-reason-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #1e293b;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}
.sr-reason-textarea:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.sr-reason-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 0.74rem;
    color: #475569;
    line-height: 1.4;
}

.sr-reason-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.sr-btn-confirm-reject {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 8px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(220, 38, 38, 0.3);
    transition: all 0.15s ease;
}
.sr-btn-confirm-reject:hover:not(:disabled) {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-1px);
}
.sr-btn-confirm-reject:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.sr-btn-confirm-revoke {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 8px;
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(79, 70, 229, 0.3);
    transition: all 0.15s ease;
}
.sr-btn-confirm-revoke:hover:not(:disabled) {
    background: linear-gradient(135deg, #4338ca, #3730a3);
    transform: translateY(-1px);
}
.sr-btn-confirm-revoke:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}



