/* ============================================================
   LABCARE ELITE — MASTER IDENTITY STYLESHEET (app.css)
   ============================================================
   This file contains ONLY the shared design system.
   All page-specific styles live in page.css.
   ============================================================ */

/* --- FONT IMPORT --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
}

.material-symbols-rounded {
    font-family: 'Material Symbols Rounded' !important;
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* --- GLOBAL VARIABLES --- */
:root {
    --lc-primary: #4f46e5;
    --lc-primary-dark: #4338ca;
    --lc-primary-light: #eef2ff;
    --lc-secondary: #1e40af;
    --lc-success: #10b981;
    --lc-danger: #ef4444;
    --lc-warning: #f59e0b;
    --lc-slate-50: #f8fafc;
    --lc-slate-100: #f1f5f9;
    --lc-slate-200: #e2e8f0;
    --lc-slate-400: #94a3b8;
    --lc-slate-600: #475569;
    --lc-slate-800: #1e293b;
    --lc-border: #e2e8f0;
    --lc-radius: 12px;
    --lc-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* --- BASE RESET & TYPOGRAPHY --- */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background-color: var(--lc-slate-50);
    color: var(--lc-slate-800);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* --- GLOBAL 80% SCREEN VIEW (100% FULL HEIGHT & WIDTH) --- */
#lc-app-root,
.login-page-wrapper,
.login-container,
.login-page-v2,
.auth-page-wrapper,
.login-bg-pattern,
.background-mesh {
    zoom: 0.8;
    width: 125%;
    min-height: 125vh;
    min-height: 125dvh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--lc-slate-800);
    margin-bottom: 0.5em;
}

h1 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
}

h2 {
    font-size: 24px;
    letter-spacing: -0.6px;
}

h3 {
    font-size: 16px;
    font-weight: 700;
}

h4 {
    font-size: 14px;
    font-weight: 600;
}

a,
.btn-link {
    color: var(--lc-primary);
}

/* --- BASE LAYOUT --- */
.lc-page-wrapper {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* --- HEADER CONSOLE --- */
.lc-master-header {
    background: white;
    height: 5rem;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--lc-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.lc-auth-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: var(--lc-primary-light);
    border: 1px solid #e0e7ff;
    border-radius: 999px;
}

.lc-pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--lc-primary);
    border-radius: 50%;
    animation: lc-pulse 2s infinite;
}

@keyframes lc-pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- CARDS & CONTAINERS --- */
.lc-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--lc-border);
    box-shadow: var(--lc-shadow);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.lc-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--lc-slate-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lc-card-body {
    padding: 1.5rem;
}

/* --- FORM CONTROLS --- */
.lc-form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.lc-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lc-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--lc-slate-400);
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.lc-input {
    width: 100%;
    background: var(--lc-slate-50);
    border: 1px solid var(--lc-border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--lc-slate-800);
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.lc-input:focus {
    background: white;
    border-color: var(--lc-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.lc-input::placeholder {
    color: var(--lc-slate-400);
}

.lc-input-pill {
    border-radius: 999px;
    padding-left: 40px;
}

.lc-checkbox {
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--lc-border);
    border-radius: 4px;
    cursor: pointer;
}

/* --- CUSTOM SELECT ARROWS --- */
select.lc-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

/* --- BUTTONS --- */
.lc-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
}

.lc-btn-primary {
    background: var(--lc-primary);
    color: white;
}

.lc-btn-primary:hover {
    background: var(--lc-primary-dark);
    transform: translateY(-1px);
}

.lc-btn-outline {
    background: white;
    border-color: var(--lc-primary);
    color: var(--lc-primary);
}

.lc-btn-outline:hover {
    background: var(--lc-primary-light);
}

.lc-btn-danger {
    background: white;
    border-color: #fee2e2;
    color: var(--lc-danger);
}

.lc-btn-danger:hover {
    background: #fef2f2;
}

.lc-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* --- DATA TABLES --- */
.lc-table-container {
    width: 100%;
    overflow-x: auto;
}

.lc-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.lc-table thead tr {
    background: var(--lc-slate-50);
    border-bottom: 1px solid var(--lc-border);
}

.lc-table th {
    padding: 1rem 1.5rem;
    font-size: 11px;
    font-weight: 700;
    color: var(--lc-slate-400);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lc-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--lc-slate-100);
    font-size: 14px;
}

.lc-table-row:hover {
    background: rgba(248, 250, 252, 0.8);
}

/* --- MODALS --- */
.lc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lc-modal {
    background: white;
    width: 90%;
    max-width: 900px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

/* --- BADGES & PILLS --- */
.lc-status-pill {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
}

.lc-pill-success {
    background: #dcfce7;
    color: #166534;
}

.lc-pill-danger {
    background: #fee2e2;
    color: #991b1b;
}

.lc-pill-warning {
    background: #fef3c7;
    color: #b45309;
}

/* --- ALERTS --- */
.lc-alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 13px;
}

.lc-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.lc-alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

/* --- SHARED ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes badgeFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* --- BLAZOR FRAMEWORK (DO NOT REMOVE) --- */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(79, 70, 229, 0.25);
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--lc-success);
}

.invalid {
    outline: 1px solid var(--lc-danger);
}

.validation-message {
    color: var(--lc-danger);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* --- VALIDATION & MANDATORY INDICATORS --- */
.lbl-req::after {
    content: " *";
    color: #dc2626;
    /* High-visibility Red */
    font-weight: 800;
}

.validation-message {
    display: block;
    font-size: 11px;
    font-weight: 600;
    margin-top: 2px;
    color: #dc2626;
}

.invalid {
    border: 1.5px solid #dc2626 !important;
    background-color: #fef2f2;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .lc-form-grid {
        grid-template-columns: 1fr;
    }

    .lc-page-wrapper {
        padding: 1rem;
    }
}

.icon-box-container {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.header-left-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-lg {
    font-size: 24px;
}

.mt-2px {
    margin-top: 2px;
}

.status-pulse-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
}

.status-text {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.search-input-field {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 8px 16px 8px 36px;
    font-size: 13px;
    color: #1e293b;
    outline: none;
    width: 220px;
}

.alert-custom-style {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
}

.alert-modal-style {
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
}

.btn-icon-mr {
    margin-right: 8px;
}

.directory-section-connected {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-top: -4px;
}

.th-order-no {
    width: 64px;
}

.th-actions {
    width: 128px;
}

.td-shortname {
    color: #64748b;
    font-family: monospace;
}

/* --- UTILITY CLASSES --- */
.text-center {
    text-align: center !important;
}

.text-start {
    text-align: left !important;
}

.text-end {
    text-align: right !important;
}

.w-full {
    width: 100% !important;
}

.h-full {
    height: 100% !important;
}

.p-0 {
    padding: 0 !important;
}

.m-0 {
    margin: 0 !important;
}

.position-relative {
    position: relative !important;
}

.ls-05 {
    letter-spacing: 0.5px;
}

.ls-1 {
    letter-spacing: 1px;
}

.uppercase {
    text-transform: uppercase;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.pointer {
    cursor: pointer;
}

.rounded-0 {
    border-radius: 0 !important;
}

.resize-none {
    resize: none !important;
}

.border-right {
    border-right: 1px solid var(--lc-border);
}

.border-left {
    border-left: 1px solid var(--lc-border);
}

.border-top {
    border-top: 1px solid var(--lc-border);
}

.border-bottom {
    border-bottom: 1px solid var(--lc-border);
}

.overflow-auto {
    overflow: auto !important;
}

.z-1 {
    z-index: 1 !important;
}

/* Flexbox Layout Utilities */
.flex {
    display: flex !important;
}

.flex-col {
    flex-direction: column !important;
}

.flex-between {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.flex-start {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
}

.flex-center {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.items-center {
    align-items: center !important;
}

.justify-between {
    justify-content: space-between !important;
}

.justify-center {
    justify-content: center !important;
}

.flex-1 {
    flex: 1 !important;
}

/* Gap Utilities */
.gap-8 {
    gap: 8px !important;
}

.gap-12 {
    gap: 12px !important;
}

.gap-16 {
    gap: 16px !important;
}

.gap-24 {
    gap: 24px !important;
}

/* Font Size & Spacing Utilities */
.font-10 {
    font-size: 10px !important;
}

.font-12 {
    font-size: 12px !important;
}

.font-14 {
    font-size: 14px !important;
}

.font-18 {
    font-size: 18px !important;
}

.font-20 {
    font-size: 20px !important;
}

.tracking-tight {
    letter-spacing: -0.025em !important;
}

.tracking-wider {
    letter-spacing: 0.05em !important;
}

.tracking-widest {
    letter-spacing: 0.1em !important;
}

/* Spacing Helpers */
.mb-24 {
    margin-bottom: 24px !important;
}

.mt-8 {
    margin-top: 8px !important;
}

.p-48 {
    padding: 48px !important;
}

.p-4 {
    padding: 4px !important;
}

.w-64 {
    width: 64px !important;
}

.w-128 {
    width: 128px !important;
}

.w-300 {
    width: 300px !important;
}

.w-220 {
    width: 220px !important;
}

.h-40 {
    height: 40px !important;
}

/* --- EXTRACTED PAGE UTILITIES --- */

/* Icon Size Variants */
.icon-16 {
    font-size: 16px !important;
}

.icon-12 {
    font-size: 12px !important;
}

.icon-14 {
    font-size: 14px !important;
}

/* Form Row & Layout */
.row {
    display: flex !important;
    gap: 24px !important;
}

.form-cols-5 {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 20px !important;
}

.form-cols-4-area {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
}

.form-cols-3 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
}

.form-cols-2 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
}

/* Min-Width Utilities */
.min-w-500 {
    min-width: 500px !important;
}

.min-w-400 {
    min-width: 400px !important;
}

/* Modal & Form Styles */
.modal-form-max-width {
    max-width: 900px !important;
    width: 90% !important;
}

.form-section-no-margin {
    margin-bottom: 0 !important;
}

/* Label Styles */
.label-flex-center {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

.label-checkbox-radio {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

/* Flex Checkbox/Radio Containers */
.flex-checkbox-row {
    display: flex !important;
    gap: 16px !important;
    margin-top: 8px !important;
}

/* Icon Positioning */
.icon-prefix {
    position: relative !important;
}

.icon-prefix--icon {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

/* Search & Input Styles */
.input-search-fill {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 8px 16px 8px 36px !important;
    font-size: 13px !important;
    color: #1e293b !important;
    outline: none !important;
    width: 220px !important;
}

/* Text Color Utilities */
.text-slate-400 {
    color: #64748b !important;
}

.text-slate-600 {
    color: #475569 !important;
}

.text-slate-800 {
    color: #1e293b !important;
}

.text-white {
    color: #ffffff !important;
}

.text-primary {
    color: var(--lc-primary) !important;
}

.text-success {
    color: var(--lc-success) !important;
}

.text-danger {
    color: var(--lc-danger) !important;
}

/* Font Weight Utilities */
.font-700 {
    font-weight: 700 !important;
}

.font-600 {
    font-weight: 600 !important;
}

.font-500 {
    font-weight: 500 !important;
}

/* Color Utilities for Forms */
.color-primary {
    color: var(--lc-primary) !important;
}

.color-slate-400 {
    color: #64748b !important;
}

.color-red-300 {
    color: #f87171 !important;
}

/* Display & Flex Utilities */
.display-flex {
    display: flex !important;
}

.display-grid {
    display: grid !important;
}

.display-inline-flex {
    display: inline-flex !important;
}

.inline-block {
    display: inline-block !important;
}

/* Transform Utilities */
.translate-y-minus-50 {
    transform: translateY(-50%) !important;
}

/* Monospace Font */
.font-mono {
    font-family: monospace !important;
}

/* Margin Utilities */
.mb-0 {
    margin-bottom: 0 !important;
}

.mb-8 {
    margin-bottom: 8px !important;
}

.mb-16 {
    margin-bottom: 16px !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mt-16 {
    margin-top: 16px !important;
}

.mt-24 {
    margin-top: 24px !important;
}

.m-0 {
    margin: 0 !important;
}

/* Padding Utilities */
.p-8 {
    padding: 8px !important;
}

.p-12 {
    padding: 12px !important;
}

.p-16 {
    padding: 16px !important;
}

.p-24 {
    padding: 24px !important;
}

.px-16 {
    padding-left: 16px !important;
    padding-right: 16px !important;
}

.py-8 {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

/* Width Utilities */
.w-90p {
    width: 90% !important;
}

.w-100p {
    width: 100% !important;
}

.w-auto {
    width: auto !important;
}

/* Height Utilities */
.h-auto {
    height: auto !important;
}

.h-100p {
    height: 100% !important;
}

.h-36 {
    height: 36px !important;
}

.h-40 {
    height: 40px !important;
}

/* Border Radius Utilities */
.rounded-8 {
    border-radius: 8px !important;
}

.rounded-12 {
    border-radius: 12px !important;
}

.rounded-20 {
    border-radius: 20px !important;
}

.rounded-50p {
    border-radius: 50% !important;
}

/* Border Utilities */
.border-e2e8f0 {
    border: 1px solid #e2e8f0 !important;
}

.border-e2f1e2 {
    border: 1px solid #e2f1e2 !important;
}

/* Background Colors */
.bg-white {
    background: #ffffff !important;
}

.bg-f8fafc {
    background: #f8fafc !important;
}

.bg-f1f5f9 {
    background: #f1f5f9 !important;
}

/* Overflow & Positioning  */
.absolute-positioned {
    position: absolute !important;
}

.relative-positioned {
    position: relative !important;
}

.overflow-hidden {
    overflow: hidden !important;
}

.overflow-auto {
    overflow: auto !important;
}

.overflow-x-auto {
    overflow-x: auto !important;
}

.overflow-y-auto {
    overflow-y: auto !important;
}

/* Flex & Alignment Helpers */
.align-center {
    align-items: center !important;
}

.align-start {
    align-items: flex-start !important;
}

.align-end {
    align-items: flex-end !important;
}

.justify-start {
    justify-content: flex-start !important;
}

.justify-end {
    justify-content: flex-end !important;
}

.justify-between {
    justify-content: space-between !important;
}

.justify-center {
    justify-content: center !important;
}

/* Column Utilities */
.flex-col-start {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

/* Z-Index Helpers */
.z-10 {
    z-index: 10 !important;
}

.z-100 {
    z-index: 100 !important;
}

.z-1000 {
    z-index: 1000 !important;
}

/* ============================================================
   AUTH & LOGIN STYLES
   ============================================================ */
.login-page-v2 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lc-secondary);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.login-mesh {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0, transparent 50%),
        radial-gradient(at 100% 0%, rgba(124, 58, 237, 0.15) 0, transparent 50%),
        radial-gradient(at 50% 100%, rgba(79, 70, 229, 0.1) 0, transparent 50%);
    z-index: 1;
}

.login-glass-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 48px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: loginFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes loginFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-logo-accent {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.5);
}

.login-v2-input-group {
    margin-bottom: 20px;
}

.login-v2-label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
    margin-left: 4px;
}

.login-v2-input-wrapper {
    position: relative;
}

.login-v2-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
    padding: 14px 16px 14px 44px !important;
    color: white !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
}

.login-v2-input:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15) !important;
    outline: none;
}

.login-v2-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 20px !important;
}

.login-v2-btn {
    width: 100%;
    background: #4f46e5;
    color: white;
    padding: 16px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 12px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.login-v2-btn:hover {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

.login-v2-btn:active {
    transform: translateY(0);
}

.login-v2-footer {
    margin-top: 32px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
}

.login-v2-link {
    color: #818cf8;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: color 0.2s;
}

.login-v2-link:hover {
    color: #a5b4fc;
}

.login-v2-subtitle {
    color: #94a3b8;
    font-size: 14px;
    text-align: center;
    margin-bottom: 32px;
}

/* ============================================================
   REGISTER PAGE STYLES (Commented out to prevent conflict with SharedComponents.Rcl)
   ============================================================
.register-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    padding: 2rem;
    font-family: 'Inter', sans-serif;
}

.register-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 900px;
    overflow: hidden;
    border: none;
    animation: fadeInUp 0.6s ease-out;
}

.register-card .card-header {
    padding: 2.5rem 3rem 1rem;
    background: transparent;
    border-bottom: none;
}

.register-card .card-body {
    padding: 0 3rem 1.5rem;
}

.register-card .card-footer {
    padding: 1.5rem 3rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
}

.register-card .login-prompt {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}


.register-card .progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.register-card .step-badge {
    background-color: #eef2ff;
    color: #4f46e5;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.register-card .step-text {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.register-card .progress-bar {
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.register-card .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #6366f1);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.register-card .page-title {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.register-card .page-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 32px;
}

.register-card .section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}

.register-card .section-title h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.register-card .section-title .material-icons-outlined {
    color: #4f46e5;
    font-size: 20px;
}

.register-card .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
}

.register-card .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.register-card .form-label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.register-card .form-label .optional {
    color: #94a3b8;
    font-weight: 400;
    font-size: 11px;
}

.register-card .form-control {
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 14px;
    color: #1e293b;
    transition: all 0.2s ease;
    width: 100%;
}

.register-card .input-icon-wrapper .form-control {
    padding-left: 44px;
    padding-right: 44px;
}


.register-card .form-control:focus {
    background: white;
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    outline: none;
}

.register-card .btn-text {
    background: transparent;
    border: none;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.register-card .btn-primary {
    background: #4f46e5;
    color: white;
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
    transition: all 0.2s;
}

.register-success-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #f8fafc;
    text-align: center;
    padding: 24px;
}

.success-illustration {
    width: 350px;
    max-width: 90%;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.success-title {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.success-subtitle {
    color: #64748b;
    font-size: 18px;
    font-weight: 500;
}
*/

/* ============================================================
   GENERAL UTILITIES
   ============================================================ */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.material-symbols-outlined.fill-1 {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.bg-accent-blue {
    background-color: #eff6ff;
}

.text-accent-blue {
    color: #eff6ff;
}

/* ============================================================
   FORGOT PASSWORD PAGE STYLES
   ============================================================ */
.auth-page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    position: relative;
    overflow: hidden;
}

.auth-bg-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #f8fafc;
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 0.1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 0.1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 0.1) 0, transparent 50%);
    z-index: 0;
}

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    padding: 20px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.brand-section {
    padding: 40px 40px 20px;
    text-align: center;
}

.logo-circle {
    width: 64px;
    height: 64px;
    background: #4F46E5;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

.brand-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.brand-section p {
    color: #64748b;
    font-size: 0.875rem;
}

.auth-form-content {
    padding: 0 40px 40px;
}

.form-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.form-subtitle {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 24px;
}

.auth-form-content .form-group {
    margin-bottom: 20px;
}

.auth-form-content .form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 8px;
}

.auth-form-content .input-container {
    position: relative;
}

.auth-form-content .input-container i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.auth-form-content .form-control {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.auth-form-content .form-control:focus {
    background: #fff;
    border-color: #4F46E5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    outline: none;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: #4F46E5;
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    transition: all 0.2s;
    margin-top: 10px;
}

.btn-primary:hover:not(:disabled) {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-link {
    background: none;
    border: none;
    color: #4F46E5;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0;
    cursor: pointer;
}

.auth-form-content .alert {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-form-content .alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fee2e2;
}

.auth-form-content .alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #dcfce7;
}

.auth-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}

.auth-footer a {
    color: #4F46E5;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.reset-account-info {
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    color: #4F46E5;
}

.reset-account-info i {
    font-size: 1.1rem;
}

/* --- TEST MASTER SPECIFIC STYLES --- */
.lc-checkbox-large {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #4f46e5;
    flex-shrink: 0;
}

.status-flag-label {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    margin: 0;
    white-space: nowrap;
    user-select: none;
}

.lc-select-minimal {
    position: relative;
    display: flex;
    align-items: center;
}

.lc-select-minimal select {
    appearance: none;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 4px 28px 4px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #4f46e5;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}

.lc-select-minimal select:hover {
    border-color: #4f46e5;
}

.lc-select-minimal .select-arrow {
    position: absolute;
    right: 8px;
    pointer-events: none;
    color: #64748b;
    font-size: 16px;
}

.tm-red-header {
    background: #e11d48;
    color: white;
    padding: 10px 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Billing Page Custom Styles */
.no-spin::-webkit-inner-spin-button,
.no-spin::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.no-spin {
    -moz-appearance: textfield;
}

.pay-input.no-spin {
    appearance: textfield;
}

.bl-select,
.bl-input {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #1e293b !important;
}

.bl-select.select-placeholder,
select.select-placeholder {
    color: #94a3b8 !important;
    font-weight: 500 !important;
}

.bl-select.select-placeholder option[value=""],
.bl-select.select-placeholder option[value="0"],
.bl-select option[value=""],
.bl-select option[value="0"] {
    color: #94a3b8 !important;
}

.bl-select.select-placeholder option:not([value=""]):not([value="0"]) {
    color: #1e293b !important;
    font-weight: 600 !important;
}

html.dark-mode .bl-select.select-placeholder,
html.dark-mode select.select-placeholder {
    color: #94a3b8 !important;
}

html.dark-mode .bl-select.select-placeholder option:not([value=""]):not([value="0"]) {
    color: #f1f5f9 !important;
}

.bl-input::placeholder,
.form-control::placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
    font-style: italic !important;
    opacity: 0.8 !important;
}

.bl-select option {
    color: #1e293b !important;
    background: #ffffff !important;
}

.bl-select-wrapper {
    margin-bottom: 2px;
    position: relative;
    z-index: 5;
}

.bl-search-dropdown {
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.2), 0 10px 15px -5px rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px !important;
    z-index: 5000 !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
}

.bl-input-with-icon .bl-input {
    padding-left: 38px !important;
}

.bl-report-date .small-input {
    width: 105px !important;
    padding: 0 4px !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.bl-form-group.position-relative:focus-within,
.bl-form-group.position-relative:has(.bl-search-dropdown) {
    z-index: 1000 !important;
}

.bl-hidden-search {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
    pointer-events: none;
}

.bl-card {
    overflow: visible !important;
    position: relative;
}

.bl-input,
.bl-select {
    outline: none !important;
}

.bl-id-type-select {
    background: transparent;
    color: #475569 !important;
    border: none;
    width: 100%;
    height: 100%;
    padding: 0 24px 0 8px !important;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    font-size: 11px !important;
    font-weight: 700;
    text-transform: uppercase;
    outline: none;
}

.bl-id-type-select option {
    color: #1e293b !important;
    background: #ffffff !important;
    text-transform: none;
}

.bl-id-type-combo {
    display: none;
}

.bl-id-type-header {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    display: flex;
    align-items: center;
    position: relative;
    border-radius: 6px !important;
    height: 36px !important;
    padding: 0 10px !important;
    flex: 1 !important;
    width: auto !important;
}

.bl-id-type-header .material-symbols-outlined {
    position: absolute;
    right: 10px !important;
    pointer-events: none;
    font-size: 18px !important;
    color: #64748b !important;
    opacity: 0.9;
}

.bl-id-input {
    border: 1px solid #e2e8f0;
    border-top: none;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    border-radius: 0 0 8px 8px;
    background: #ffffff;
    color: #1e293b;
    width: 100%;
    transition: all 0.2s;
}

.bl-id-input:focus {
    background: #fdfdfd;
    border-color: #4f46e5;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.1);
}

/* ============================================================
   FLAT PREMIUM ENTERPRISE TABLE DESIGN
   Sharp Flat Edges (No Rounded Corners), No Header Icons,
   Clean Crisp Typography & Compact High-End SaaS Contrast
   ============================================================ */

/* Table Wrapper Card - Flat Sharp Edges */
.table-wrapper,
.lc-table-container,
.dch-table-wrapper,
.dch-table-inner,
.dc-table-wrapper,
.pkg-table-wrapper,
.re-table-container,
.table-container {
    overflow-x: auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    position: relative !important;
    margin-bottom: 16px !important;
}

/* ============================================================
   MASTER ULTRA-PREMIUM TABLE DESIGN SYSTEM (GLOBAL)
   ============================================================ */

/* Base Table */
.directory-table,
.lc-table,
.dc-table,
.dch-table,
.dch-table-lux,
.pkg-table,
.pkg-tests-table,
.re-data-table,
.re-table,
.sc-table,
.tm-param-table,
.tm-age-table,
.table-wrapper>table,
table.table,
table.data-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    text-align: left;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* === LUXURY MIDNIGHT INDIGO HEADER === */
.directory-table thead,
.lc-table thead,
.dch-table thead,
.dch-table-lux thead,
.sc-table thead,
.tm-param-table thead,
.tm-age-table thead,
.table-wrapper>table thead,
.dch-table-thead {
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%) !important;
}

.directory-table th,
.lc-table th,
.dch-table th,
.dch-table-lux th,
.sc-table th,
.tm-param-table th,
.tm-age-table th,
.table-wrapper>table th,
.dch-table-th,
.dch-table-th-center,
table.table th {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    padding: 11px 14px !important;
    white-space: nowrap;
    border-top: none !important;
    border-bottom: 2px solid #4338ca !important;
    border-left: none !important;
    border-right: none !important;
}

/* === HIDE ALL ICONS FROM TABLE HEADERS === */
.th-wrap i,
.th-wrap .material-symbols-outlined,
.th-icon-wrap i,
.th-icon-wrap i.bi,
.th-icon-wrap .material-symbols-outlined,
th i,
th i.bi,
th .material-symbols-outlined,
thead th i,
thead th .material-symbols-outlined,
.directory-table th i,
.lc-table th i,
.dch-table th i,
.dch-table-lux th i,
.pkg-table th i,
.sc-table th i {
    display: none !important;
}

.th-wrap,
.th-icon-wrap {
    display: inline !important;
    gap: 0 !important;
}

/* === TABLE CONTAINERS: PROPER SMOOTH ROUNDED CORNERS === */
.dch-table-wrapper,
.dch-table-inner,
.table-wrapper,
.table-container,
.dch-table-lux-card,
.table-responsive {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden !important;
}

/* Rounded top header corners */
.directory-table thead tr th:first-child,
.lc-table thead tr th:first-child,
.dch-table thead tr th:first-child,
.dch-table-lux thead tr th:first-child,
.pkg-table thead tr th:first-child,
.pkg-tests-table thead tr th:first-child,
.sc-table thead tr th:first-child,
.tm-param-table thead tr th:first-child,
.tm-age-table thead tr th:first-child,
.table-wrapper>table thead tr th:first-child,
table thead tr th:first-child {
    border-top-left-radius: 12px !important;
}

.directory-table thead tr th:last-child,
.lc-table thead tr th:last-child,
.dch-table thead tr th:last-child,
.dch-table-lux thead tr th:last-child,
.pkg-table thead tr th:last-child,
.pkg-tests-table thead tr th:last-child,
.sc-table thead tr th:last-child,
.tm-param-table thead tr th:last-child,
.tm-age-table thead tr th:last-child,
.table-wrapper>table thead tr th:last-child,
table thead tr th:last-child {
    border-top-right-radius: 12px !important;
}

/* === CLEAN ALTERNATING ROWS === */
.directory-table tbody tr:nth-child(odd),
.lc-table tbody tr:nth-child(odd),
.dch-table tbody tr:nth-child(odd),
.dch-table-lux tbody tr:nth-child(odd),
.pkg-table tbody tr:nth-child(odd),
.pkg-tests-table tbody tr:nth-child(odd),
.re-data-table tbody tr:nth-child(odd),
.re-table tbody tr:nth-child(odd),
.sc-table tbody tr:nth-child(odd),
.table-wrapper>table tbody tr:nth-child(odd) {
    background: #ffffff !important;
}

.directory-table tbody tr:nth-child(even),
.lc-table tbody tr:nth-child(even),
.dc-table tbody tr:nth-child(even),
.dch-table tbody tr:nth-child(even),
.dch-table-lux tbody tr:nth-child(even),
.pkg-table tbody tr:nth-child(even),
.pkg-tests-table tbody tr:nth-child(even),
.re-data-table tbody tr:nth-child(even),
.re-table tbody tr:nth-child(even),
.sc-table tbody tr:nth-child(even),
.table-wrapper>table tbody tr:nth-child(even) {
    background: #fafcff !important;
}

/* === COMPACT CELLS === */
.directory-table td,
.lc-table td,
.dc-table td,
.dch-table td,
.dch-table-lux td,
.pkg-table td,
.pkg-tests-table td,
.re-data-table td,
.re-table td,
.sc-table td,
.tm-param-table td,
.tm-age-table td,
.table-wrapper>table td,
.dch-table-td,
table.table td {
    padding: 10px 14px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    font-size: 12.5px !important;
    color: #334155 !important;
    vertical-align: middle !important;
    transition: background 0.12s ease;
}

/* === HOVER EFFECT === */
.directory-table tbody tr,
.lc-table tbody tr,
.dc-table tbody tr,
.dch-table tbody tr,
.dch-table-lux tbody tr,
.pkg-table tbody tr,
.pkg-tests-table tbody tr,
.re-data-table tbody tr,
.re-table tbody tr,
.sc-table tbody tr,
.table-wrapper>table tbody tr,
.dch-table-tr {
    transition: background 0.12s ease;
    cursor: default;
}

.directory-table tbody tr:hover,
.lc-table tbody tr:hover,
.dc-table tbody tr:hover,
.dch-table tbody tr:hover,
.dch-table-lux tbody tr:hover,
.pkg-table tbody tr:hover,
.pkg-tests-table tbody tr:hover,
.re-data-table tbody tr:hover,
.re-table tbody tr:hover,
.sc-table tbody tr:hover,
.table-wrapper>table tbody tr:hover,
.dch-table-tr:hover {
    background: #f0f7ff !important;
}

/* === ACTIVE / SELECTED ROW === */
.directory-table tbody tr.selected-row,
.lc-table tbody tr.selected-row,
.dc-table tbody tr.selected-row,
.dch-table tbody tr.selected-row,
.dch-table-lux tbody tr.selected-row,
.pkg-table tbody tr.selected-row,
.re-table tbody tr.selected-row,
.sc-table tbody tr.selected-row,
.table-wrapper>table tbody tr.selected-row {
    background: #e0e7ff !important;
}

/* Empty row state */
.directory-table tbody tr:only-child td,
.lc-table tbody tr:only-child td,
.dc-table tbody tr:only-child td,
.dch-table tbody tr:only-child td,
.dch-table-lux tbody tr:only-child td,
.pkg-table tbody tr:only-child td,
.re-table tbody tr:only-child td,
.sc-table tbody tr:only-child td,
.table-wrapper>table tbody tr:only-child td {
    padding: 40px 16px !important;
    text-align: center;
    color: #94a3b8 !important;
    font-size: 13px !important;
    background: #ffffff !important;
}

/* === GLOBAL TABLE BADGES & ACTIONS === */
.dch-badge-receipt,
.code-badge-blue {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-weight: 700;
    font-size: 0.76rem;
}

.dch-badge-custcode,
.code-badge-gray {
    display: inline-flex;
    padding: 2px 7px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.72rem;
}

.dch-customer-cell {
    display: flex;
    align-items: center;
    gap: 9px;
}

.dch-customer-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1d4ed8;
    font-weight: 700;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dch-customer-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.82rem;
}

.dch-amt-received,
.amt-received-highlight {
    font-weight: 800;
    color: #059669;
    font-size: 0.88rem;
    font-feature-settings: "tnum";
}

/* Global Paymode Badges */
.dch-paymode-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dch-paymode-cash {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.dch-paymode-card {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.dch-paymode-upi {
    background: #f5f3ff;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
}

.dch-paymode-cheque {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

/* Action Buttons */
.dch-action-btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 7px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s;
    text-transform: uppercase;
}

.dch-action-btn-patient {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.dch-action-btn-patient:hover {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.dch-action-btn-referral {
    background: #ecfdf5;
    color: #059669;
    border-color: #a7f3d0;
}

.dch-action-btn-referral:hover {
    background: #059669;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

.dch-action-btn-delete {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.dch-action-btn-delete:hover {
    background: #e11d48;
    color: #ffffff;
    border-color: #e11d48;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.3);
}

/* === FLAT ACTION BUTTONS === */
.btn-action {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 4px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    cursor: pointer;
    font-size: 12px !important;
    transition: all 0.15s ease !important;
    margin: 0 2px;
    color: #64748b !important;
}

.btn-action.btn-edit {
    border-color: #cbd5e1 !important;
    color: #2563eb !important;
    background: #ffffff !important;
}

.btn-action.btn-edit:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

.btn-action.btn-delete-action {
    border-color: #fecdd3 !important;
    color: #e11d48 !important;
    background: #ffffff !important;
}

.btn-action.btn-delete-action:hover {
    background: #e11d48 !important;
    color: #ffffff !important;
    border-color: #e11d48 !important;
}

.btn-action.btn-view-action {
    border-color: #bae6fd !important;
    color: #0284c7 !important;
    background: #ffffff !important;
}

.btn-action.btn-view-action:hover {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
}

/* === STATUS BADGES === */
.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px !important;
    font-size: 11px;
    font-weight: 600;
}

.premium-badge.badge-active {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.premium-badge.badge-inactive {
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
}

.premium-badge.badge-pending {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

/* === SERIAL NUMBER CELL === */
.td-sno {
    background: #f1f5f9 !important;
    color: #475569 !important;
    font-weight: 700 !important;
    font-size: 11.5px !important;
    text-align: center;
    min-width: 32px;
    border-radius: 2px !important;
    padding: 2px 5px;
}

/* === CODE LINK === */
.code-link {
    color: #2563eb !important;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.code-link:hover {
    text-decoration: underline;
}

/* === COMPACT SCROLLBAR === */
.table-wrapper::-webkit-scrollbar,
.lc-table-container::-webkit-scrollbar,
.dch-table-wrapper::-webkit-scrollbar,
.dc-table-wrapper::-webkit-scrollbar {
    height: 5px;
}

.table-wrapper::-webkit-scrollbar-track,
.lc-table-container::-webkit-scrollbar-track,
.dch-table-wrapper::-webkit-scrollbar-track,
.dc-table-wrapper::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 0;
}

.table-wrapper::-webkit-scrollbar-thumb,
.lc-table-container::-webkit-scrollbar-thumb,
.dch-table-wrapper::-webkit-scrollbar-thumb,
.dc-table-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 0;
}

.table-wrapper::-webkit-scrollbar-thumb:hover,
.lc-table-container::-webkit-scrollbar-thumb:hover,
.dch-table-wrapper::-webkit-scrollbar-thumb:hover,
.dc-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ============================================================
   GLOBAL PAGE HEADER REDESIGN — MODERN SEAMLESS CLEAN HEADER
   No Bulky Box Banner, Clean Bold Typography, Subtle Divider
   & Sleek Aligned Controls (Like Stripe / Linear)
   ============================================================ */

.lab-header-card,
.directory-header-card,
.dc-header,
.page-header-card,
.billing-header-card,
.dch-page-container .lab-header-card {
    background: transparent !important;
    border: none !important;
    border-bottom: 1.5px solid #e2e8f0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 8px 0 16px 0 !important;
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
}

/* Page Title & Subtitle */
.lab-title-text,
.lab-header-card h1,
.lab-header-card h2,
.directory-header-card h1,
.directory-header-card h2 {
    color: #0f172a !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.025em !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.lab-header-card p,
.directory-header-card p {
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin: 3px 0 0 0 !important;
}

/* Page Header Icon Badge */
.lab-header-card .flex-center,
.directory-header-card .flex-center {
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
    background: #eff6ff !important;
    color: #2563eb !important;
    border: 1px solid #dbeafe !important;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.08) !important;
}

.lab-header-card .flex-center span,
.directory-header-card .flex-center span {
    font-size: 22px !important;
}

/* Header Quick Find / Search Box */
.search-input-field,
.search-box-input,
.lab-header-card .search-input-field,
.directory-header-card .search-input-field {
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    height: 36px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 6px 14px 6px 34px !important;
    width: 220px !important;
    outline: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.15s ease !important;
}

.search-input-field:focus,
.search-box-input:focus,
.lab-header-card .search-input-field:focus,
.directory-header-card .search-input-field:focus {
    background: #ffffff !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

.search-icon,
.lab-header-card .search-icon {
    top: 50% !important;
    transform: translateY(-50%) !important;
    left: 11px !important;
    position: absolute !important;
}

/* Header Primary Action Button */
.btn-new-entry,
.lab-header-card .btn-new-entry,
.directory-header-card .btn-new-entry {
    background: #4f46e5 !important;
    border: 1px solid #4338ca !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 12.5px !important;
    padding: 0 18px !important;
    box-shadow: 0 1px 3px rgba(79, 70, 229, 0.2) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    height: 36px !important;
    transition: all 0.15s ease !important;
}

.btn-new-entry:hover,
.lab-header-card .btn-new-entry:hover,
.directory-header-card .btn-new-entry:hover {
    background: #4338ca !important;
    border-color: #3730a3 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.28) !important;
}

/* Header Filter Toggle Button */
.dch-btn-filter-toggle,
.lab-header-card .dch-btn-filter-toggle {
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    color: #334155 !important;
    font-weight: 600 !important;
    font-size: 12.5px !important;
    height: 36px !important;
    padding: 0 14px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.dch-btn-filter-toggle:hover,
.lab-header-card .dch-btn-filter-toggle:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

/* ══════════════════════════════════════════════════════════════
   GLOBAL UNIFIED FONT SYSTEM — INTER (CLEAN ENTERPRISE DESIGN)
   Enforce Consistent, Identical Modern Typography Across All Pages
   ══════════════════════════════════════════════════════════════ */
*,
*::before,
*::after,
html,
body,
button,
input,
optgroup,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
label,
table,
th,
td,
div,
.workspace-tabs-bar,
.workspace-tab,
.workspace-tab-title,
.tab-branch-name,
.tab-branch-btn,
.bl-card-title,
.bl-form-group,
.bl-form-group label,
.bl-segment-btn,
.lab-header-card,
.lab-title-text,
.directory-table,
.dc-table,
.dch-table,
.re-table,
.sc-table,
.pkg-table,
.tm-param-table {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* --- EXCLUDE & PRESERVE FONT ICONS --- */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
}

.material-symbols-rounded {
    font-family: 'Material Symbols Rounded' !important;
}

.material-icons,
.material-icons-outlined {
    font-family: 'Material Icons Outlined' !important;
}

.material-icons-round {
    font-family: 'Material Icons Round' !important;
}

[class^="bi-"],
[class*=" bi-"],
.bi {
    font-family: 'bootstrap-icons' !important;
}

.fa,
.fas,
.fa-solid {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
}

.far,
.fa-regular {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free' !important;
    font-weight: 400 !important;
}

.fab,
.fa-brands {
    font-family: 'Font Awesome 6 Brands', 'Font Awesome 5 Brands' !important;
    font-weight: 400 !important;
}

/* Code & Monospace tags */
code,
kbd,
samp,
pre,
.mono-text {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
}

/* END GLOBAL UNIFIED FONT SYSTEM */

/* ══════════════════════════════════════════════════════════════
   PROFESSIONAL ACTIVE BRANCH SELECTOR (NORMAL LIGHT MODE)
   ══════════════════════════════════════════════════════════════ */
.active-branch-btn,
.active-branch-luxury-badge {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    height: 32px !important;
    padding: 0 10px 0 6px !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    color: #0f172a !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    outline: none !important;
    user-select: none !important;
    margin-bottom: 6px !important;
    margin-right: 2px !important;
    text-decoration: none !important;
    animation: none !important;
}

.active-branch-btn:hover,
.active-branch-luxury-badge:hover {
    background: #f8fafc !important;
    border-color: var(--branch-color, #4f46e5) !important;
    box-shadow: 0 3px 8px color-mix(in srgb, var(--branch-color, #4f46e5) 16%, rgba(0, 0, 0, 0.08)) !important;
    transform: translateY(-1px) !important;
}

.active-branch-btn:active,
.active-branch-luxury-badge:active {
    transform: translateY(0) scale(0.98) !important;
}

/* Icon Badge */
.active-branch-btn .branch-icon-box,
.active-branch-luxury-badge .branch-icon-box,
.branch-icon-box {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 6px !important;
    background: color-mix(in srgb, var(--branch-color, #4f46e5) 12%, #ffffff) !important;
    color: var(--branch-color, #4f46e5) !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
}

.active-branch-btn:hover .branch-icon-box,
.active-branch-luxury-badge:hover .branch-icon-box {
    background: var(--branch-color, #4f46e5) !important;
    color: #ffffff !important;
}

/* Two-tier Clean Typography - Enlarged for High Readability */
.active-branch-btn .branch-text-group,
.active-branch-luxury-badge .branch-text-group,
.branch-text-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    line-height: 1.1 !important;
    gap: 1.5px !important;
    text-align: left !important;
}

/* Line 1: Kicker (Larger, crisp uppercase) */
.active-branch-btn .branch-kicker,
.active-branch-luxury-badge .branch-kicker,
.branch-kicker {
    font-size: 9.5px !important;
    font-weight: 800 !important;
    letter-spacing: 0.6px !important;
    color: #475569 !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    text-shadow: none !important;
}

/* Line 2: Branch Name Title (Larger, bold, crisp) */
.active-branch-btn .branch-name-title,
.active-branch-luxury-badge .branch-name-title,
.branch-name-title {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: -0.2px !important;
    white-space: nowrap !important;
    max-width: 170px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.15 !important;
    text-shadow: none !important;
}

/* Chevron */
.active-branch-btn .branch-chevron,
.active-branch-luxury-badge .branch-chevron,
.branch-chevron {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #64748b !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
    margin-left: -1px !important;
    flex-shrink: 0 !important;
}

.active-branch-btn:hover .branch-chevron,
.active-branch-luxury-badge:hover .branch-chevron {
    color: var(--branch-color, #4f46e5) !important;
    transform: translateY(1px) !important;
}

/* Dark Mode Fallback */
.dark-mode .active-branch-btn,
.dark-theme .active-branch-btn,
html.dark-mode .active-branch-btn,
.dark-mode .active-branch-luxury-badge,
.dark-theme .active-branch-luxury-badge,
html.dark-mode .active-branch-luxury-badge {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    color: #f8fafc !important;
}

.dark-mode .active-branch-btn:hover,
.dark-theme .active-branch-btn:hover,
html.dark-mode .active-branch-btn:hover,
.dark-mode .active-branch-luxury-badge:hover,
.dark-theme .active-branch-luxury-badge:hover,
html.dark-mode .active-branch-luxury-badge:hover {
    background: #243248 !important;
    border-color: var(--branch-color, #4f46e5) !important;
}

.dark-mode .branch-kicker,
.dark-theme .branch-kicker,
html.dark-mode .branch-kicker {
    color: #94a3b8 !important;
}

.dark-mode .branch-name-title,
.dark-theme .branch-name-title,
html.dark-mode .branch-name-title {
    color: #f8fafc !important;
}

.dark-mode .branch-icon-box,
.dark-theme .branch-icon-box,
html.dark-mode .branch-icon-box {
    background: color-mix(in srgb, var(--branch-color, #4f46e5) 24%, #1e293b) !important;
    color: color-mix(in srgb, var(--branch-color, #4f46e5) 85%, #ffffff) !important;
}

.dark-mode .branch-chevron,
.dark-theme .branch-chevron,
html.dark-mode .branch-chevron {
    color: #94a3b8 !important;
}

/* Deprecated Ribbon Elements */
.ribbon-3d-tail-left,
.ribbon-3d-tail-right,
.ribbon-crease-left,
.ribbon-crease-right,
.ribbon-loop-left,
.ribbon-loop-right,
.ribbon-gleam-sweep,
.active-branch-ribbon-wrap {
    display: inline-flex !important;
}
.active-branch-ribbon-wrap {
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
}
.ribbon-3d-tail-left,
.ribbon-3d-tail-right,
.ribbon-crease-left,
.ribbon-crease-right,
.ribbon-loop-left,
.ribbon-loop-right,
.ribbon-gleam-sweep {
    display: none !important;
}

/* ============================================================
   GLOBAL TABLE TYPOGRAPHY ENHANCEMENT
   ============================================================ */
table {
    font-size: 13px;
}

table th,
.table th,
[class$="-th"],
[class*="-th "] {
    font-size: 12px !important;
    letter-spacing: 0.03em !important;
}

table td,
.table td,
[class$="-td"],
[class*="-td "] {
    font-size: 13px !important;
}

[class*="-badge-code"],
[class*="-badge-voucher"],
[class*="-badge-pill"] {
    font-size: 12px !important;
}

[class*="-patient-name"],
[class*="-doctor-name"],
[class*="-party-name"] {
    font-size: 13.5px !important;
}

[class*="-patient-sub"],
[class*="-doctor-sub"] {
    font-size: 11.5px !important;
}

/* ═════════════════════════════════════════════════════════════════
   LIVE BILLS & BOOKINGS NOTIFICATION BUTTON & FLYOUT
   ═════════════════════════════════════════════════════════════════ */
.lc-bill-notif-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lc-live-bill-btn {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    height: 32px !important;
    padding: 0 10px 0 8px !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    color: #0f172a !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    outline: none !important;
    user-select: none !important;
    margin-bottom: 6px !important;
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
}

.lc-live-bill-btn:hover {
    background: #f8fafc !important;
    border-color: #6366f1 !important;
    color: #4f46e5 !important;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.15) !important;
}

.lc-live-bill-btn.active {
    background: #eef2ff !important;
    border-color: #4f46e5 !important;
    color: #4338ca !important;
}

.lc-live-bill-btn .bill-icon-box {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    background: #e0e7ff;
    color: #4f46e5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.lc-live-bill-btn.has-unseen .bill-icon-box {
    background: #fee2e2;
    color: #dc2626;
    animation: bill-icon-bounce 1.5s infinite;
}

@keyframes bill-icon-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.bill-live-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9999px;
    background: #4f46e5;
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 800;
    line-height: 1;
}

.bill-live-badge.emergency {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 0 0 2px #ffffff, 0 0 8px rgba(239, 68, 68, 0.6);
    animation: ab-badge-pulse 1.8s infinite;
}

@keyframes ab-badge-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.lc-bill-flyout {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    width: 440px;
    max-width: 92vw;
    max-height: 600px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.22), 0 8px 16px -6px rgba(15, 23, 42, 0.12);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: lc-flyout-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lc-flyout-in {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.lc-bill-flyout-header {
    padding: 12px 14px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lc-bill-flyout-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 800;
    color: #0f172a;
}

.lc-live-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
    animation: lc-live-dot-pulse 2s infinite;
}

@keyframes lc-live-dot-pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.lc-bill-flyout-tabs {
    display: flex;
    gap: 4px;
    padding: 6px 12px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.lc-bill-tab-btn {
    padding: 4px 10px;
    border-radius: 6px;
    border: none;
    background: transparent;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
}

.lc-bill-tab-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.lc-bill-tab-btn.active {
    background: #eef2ff;
    color: #4f46e5;
    font-weight: 700;
}

.lc-bill-flyout-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 420px;
}

.lc-bill-item-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    background: #ffffff;
    transition: all 0.2s;
    cursor: pointer;
}

.lc-bill-item-card:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.lc-bill-item-card.is-emergency {
    border-left: 4px solid #ef4444;
    background: #fff5f5;
}

.lc-bill-flyout-footer {
    padding: 10px 14px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

:global(html.dark) .lc-live-bill-btn {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

:global(html.dark) .lc-bill-flyout {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

:global(html.dark) .lc-bill-flyout-header {
    background: #1e293b;
    border-color: #334155;
}

:global(html.dark) .lc-bill-item-card {
    background: #1e293b;
    border-color: #334155;
}

:global(html.dark) .lc-bill-item-card:hover {
    background: #242f47;
}

:global(html.dark) .lc-bill-flyout-footer {
    background: #1e293b;
    border-color: #334155;
}
