/* SIMRS KASQRSTU - Hospital Information System Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
    --primary: #0f766e;
    --primary-hover: #115e59;
    --primary-light: #f0fdfa;
    --primary-dark: #134e4a;
    --primary-border: #99f6e4;
    --secondary: #0284c7;
    --secondary-light: #f0f9ff;
    
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-muted: #f1f5f9;
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --border-color: #cbd5e1;
    --border-subtle: #e2e8f0;
    --border-focus: #0f766e;
    
    --success: #059669;
    --success-bg: #ecfdf5;
    --warning: #d97706;
    --warning-bg: #fffbeb;
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --info: #2563eb;
    --info-bg: #eff6ff;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 8px -2px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 12px 24px -4px rgba(15, 23, 42, 0.1);
    
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-full: 9999px;
    
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --transition: all 0.15s ease-in-out;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-size: 13px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
}

/* ==========================================================================
   1. Login Screen
   ========================================================================== */
#login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9;
    padding: 24px;
}

.login-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--primary);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    width: 100%;
    max-width: 480px;
    padding: 32px;
    position: relative;
}

.login-brand {
    text-align: center;
    margin-bottom: 24px;
}

.hospital-emblem {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
    margin-bottom: 12px;
}

.login-brand h1 {
    font-size: 20px;
    letter-spacing: -0.3px;
    color: var(--text-main);
}

.login-brand p {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 4px;
}

.demo-role-selector {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.demo-role-selector h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.login-roles-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.btn-role-pill {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: var(--transition);
}

.btn-role-pill:hover {
    background: #f8fafc;
    border-color: var(--primary);
    color: var(--primary);
}

/* ==========================================================================
   2. App Shell Layout & Navigation
   ========================================================================== */
#app-shell {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
#app-sidebar {
    width: 250px;
    background: #0f172a;
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: var(--transition);
}

.sidebar-brand {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand .brand-badge {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-brand .brand-name {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #ffffff;
    line-height: 1.2;
}

.sidebar-brand .brand-sub {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-section-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    padding: 12px 12px 4px;
}

/* Collapsible Navigation Section */
.nav-section-collapsible {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease, color 0.2s ease;
    margin-top: 4px;
}

.nav-section-collapsible:hover {
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
}

.nav-section-collapsible .nav-collapse-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-section-collapsible .badge-count {
    font-size: 9px;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    padding: 1px 5px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.2;
}

.nav-section-collapsible .chevron-icon {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: #64748b;
}

.nav-section-collapsible:hover .chevron-icon {
    color: #cbd5e1;
}

.nav-section-collapsible.collapsed .chevron-icon {
    transform: rotate(-90deg);
}

.nav-section-collapsible:not(.collapsed) .chevron-icon {
    transform: rotate(0deg);
}

.nav-collapsible-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
    transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, margin 0.2s ease;
}

.nav-collapsible-content.collapsed {
    max-height: 0 !important;
    opacity: 0;
    pointer-events: none;
    margin-top: 0;
    margin-bottom: 0;
    visibility: hidden;
}

.nav-collapsible-content:not(.collapsed) {
    max-height: 800px;
    opacity: 1;
    visibility: visible;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.nav-item.active {
    background: rgba(15, 118, 110, 0.25);
    color: #2dd4bf;
    font-weight: 600;
    border-left: 3px solid #2dd4bf;
}

.nav-svg {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: inherit;
}

.sidebar-footer {
    padding: 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #090e1a;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-mini-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: #1e293b;
    color: #2dd4bf;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-details {
    overflow: hidden;
    line-height: 1.2;
}

.user-name {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role-badge {
    font-size: 10px;
    color: #2dd4bf;
    font-weight: 500;
}

/* Main Content Area */
#app-main-content {
    flex: 1;
    margin-left: 250px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Topbar */
#app-topbar {
    height: 56px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 90;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.page-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.system-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #334155;
    background: var(--bg-muted);
    border: 1px solid var(--border-subtle);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
}

/* Content Container */
.content-wrapper {
    padding: 24px;
    flex: 1;
}

/* ==========================================================================
   3. Components: Cards, Stats, Badges, Buttons, Forms, Tables
   ========================================================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
}

.card-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body {
    padding: 18px;
}

.card-footer {
    padding: 10px 18px;
    background: var(--bg-muted);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

/* Stat Grid */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.stat-info .stat-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.stat-info .stat-val {
    font-size: 22px;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-main);
    margin-top: 2px;
}

.stat-info .stat-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    border: 1px solid transparent;
}

.badge-success { background: var(--success-bg); color: #065f46; border-color: #a7f3d0; }
.badge-warning { background: var(--warning-bg); color: #92400e; border-color: #fde68a; }
.badge-danger { background: var(--danger-bg); color: #991b1b; border-color: #fecaca; }
.badge-info { background: var(--info-bg); color: #1e40af; border-color: #bfdbfe; }
.badge-teal { background: var(--primary-light); color: var(--primary-dark); border-color: #99f6e4; }
.badge-secondary { background: var(--bg-muted); color: var(--text-muted); border-color: var(--border-color); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary-dark);
}
.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--bg-muted);
    border-color: var(--border-color);
    color: var(--text-main);
}
.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary-light);
}

.btn-success {
    background: var(--success);
    color: white;
    border-color: #047857;
}
.btn-success:hover {
    background: #047857;
}

.btn-danger {
    background: var(--danger);
    color: white;
    border-color: #b91c1c;
}
.btn-danger:hover {
    background: #b91c1c;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 11px;
}

.btn-lg {
    padding: 10px 20px;
    font-size: 14px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form Controls */
.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.form-control, .form-select, .form-textarea {
    width: 100%;
    padding: 7px 10px;
    font-size: 12px;
    font-family: inherit;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--text-main);
    transition: var(--transition);
}

.form-control:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

/* Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table-modern {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    text-align: left;
}

.table-modern th {
    background: var(--bg-muted);
    padding: 9px 14px;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.table-modern td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-main);
    vertical-align: middle;
}

.table-modern tbody tr:hover {
    background-color: #f8fafc;
}

.empty-state {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 28px;
    margin-bottom: 6px;
    opacity: 0.6;
}

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-dialog {
    background: #ffffff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.98);
    transition: transform 0.15s ease;
}

.modal-backdrop.active .modal-dialog {
    transform: scale(1);
}

.modal-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
}

.modal-header h3 {
    font-size: 15px;
    font-weight: 700;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
    border-radius: var(--radius-sm);
}
.modal-close:hover {
    color: var(--text-main);
    background: var(--bg-muted);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

.modal-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-muted);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

/* Modal Switch Role Table Styling */
.roles-table-container {
    max-height: 360px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.staff-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.staff-table th {
    background: #f1f5f9;
    padding: 8px 12px;
    font-weight: 600;
    color: #475569;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 5;
}

.staff-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
}

.staff-table tr:hover td {
    background: #f8fafc;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    background: #ffffff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: toastIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 4px solid var(--primary);
}

.toast.toast-success { border-left-color: var(--success); }
.toast.toast-error { border-left-color: var(--danger); }
.toast.toast-warning { border-left-color: var(--warning); }
.toast.toast-info { border-left-color: var(--info); }

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
}

.toast-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Invoice & Card Styling */
@media print {
    body {
        background: #ffffff !important;
    }
    #app-sidebar, #app-topbar, .no-print, .btn, .card-header button {
        display: none !important;
    }
    #app-main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    .content-wrapper {
        padding: 0 !important;
    }
    .print-only {
        display: block !important;
    }
    .card {
        border: none !important;
        box-shadow: none !important;
    }
}

.print-only {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    #app-sidebar {
        transform: translateX(-100%);
    }
    #app-sidebar.show {
        transform: translateX(0);
    }
    #app-main-content {
        margin-left: 0;
    }
}

/* ICD-10 Search Autocomplete Dropdown */
.icd10-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 260px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    margin-top: 4px;
}
.icd10-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    cursor: pointer;
    font-size: 13px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
    text-align: left;
}
.icd10-item:last-child {
    border-bottom: none;
}
.icd10-item:hover, .icd10-item.active {
    background: #f0fdfa;
}
.icd10-badge {
    display: inline-block;
    padding: 2px 7px;
    font-weight: 700;
    font-size: 11px;
    color: #0f766e;
    background: #ccfbf1;
    border-radius: 4px;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}
.icd10-desc {
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}
.icd10-loading, .icd10-empty {
    padding: 10px 12px;
    font-size: 12px;
    color: #64748b;
    text-align: center;
}

.status-dot.disconnected {
    background: var(--danger) !important;
}

.status-dot.warning {
    background: var(--warning) !important;
}


/* Emergency Triage Badges & Styles */
.badge-triage-1 {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #f87171;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.badge-triage-2 {
    background: #ffedd5;
    color: #9a3412;
    border: 1px solid #fb923c;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.badge-triage-3 {
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid #facc15;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.badge-triage-4 {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #4ade80;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.badge-triage-5 {
    background: #e0f2fe;
    color: #075985;
    border: 1px solid #38bdf8;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.badge-triage-0 {
    background: #0f172a;
    color: #f8fafc;
    border: 1px solid #334155;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   Direktori Formulir Khusus & Rekam Medis (Clean Enterprise Medical SIMRS)
   ========================================================================== */
.badge-rm {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.badge-rm-blue,
.badge-rm-emerald,
.badge-rm-amber,
.badge-rm-rose,
.badge-rm-purple {
    background: #f8fafc;
    color: #334155;
    border-color: #cbd5e1;
}
.fk-table-search {
    padding: 7px 12px;
    font-size: 13px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    width: 320px;
    max-width: 100%;
    outline: none;
    background: var(--bg-surf);
    color: var(--text-main);
}
.fk-table-search:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.15);
}
#fk-table {
    width: 100%;
    border-collapse: collapse;
}
#fk-table th {
    background: var(--bg-muted, #f8fafc);
    color: var(--text-muted, #475569);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 11px 16px;
    border-bottom: 2px solid var(--border-color, #e2e8f0);
}
#fk-table td {
    padding: 10px 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    font-size: 12.5px;
}
#fk-table tbody tr:hover {
    background: rgba(241, 245, 249, 0.5);
}
