@import '_content/SharedComponents.Rcl/SharedComponents.Rcl.4xlav8wws8.bundle.scp.css';

/* /Components/Pages/AntibioticsGroupMaster.razor.rz.scp.css */
/* ==========================================================================
   ANTIBIOTICS GROUP MASTER — MODERN OBSIDIAN THEME
   Strict Single-Viewport Layout with Pagination Footer
   ========================================================================== */

/* ── 1. Page Root & Main Layout Wrapper ────────────────────── */
.abg-page-root[b-9ru6w3rclv] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.abg-top-bar[b-9ru6w3rclv] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.abg-title-block[b-9ru6w3rclv] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.abg-title-icon-wrap[b-9ru6w3rclv] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.abg-title-icon-wrap .material-symbols-outlined[b-9ru6w3rclv] {
    font-size: 20px;
}

.abg-breadcrumbs[b-9ru6w3rclv] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.abg-breadcrumb-link[b-9ru6w3rclv] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.abg-breadcrumb-link:hover[b-9ru6w3rclv] {
    color: #2563eb;
}

.abg-breadcrumb-sep[b-9ru6w3rclv] {
    font-size: 11px;
}

.abg-page-title[b-9ru6w3rclv] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.abg-badge-directory[b-9ru6w3rclv] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.abg-live-dot[b-9ru6w3rclv] {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.abg-top-actions[b-9ru6w3rclv] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.abg-search-wrap[b-9ru6w3rclv] {
    position: relative;
    width: 240px;
}

.abg-search-wrap .material-symbols-outlined[b-9ru6w3rclv] {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.abg-search-input[b-9ru6w3rclv] {
    width: 100%;
    height: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 10px 0 32px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.abg-search-input:focus[b-9ru6w3rclv] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.abg-btn-primary[b-9ru6w3rclv] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.abg-btn-primary:hover[b-9ru6w3rclv] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

.abg-btn-icon[b-9ru6w3rclv] {
    font-size: 16px;
}

/* ── 3. KPI / Stat Cards Grid ───────────────────────────────── */
.abg-stats-grid[b-9ru6w3rclv] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex-shrink: 0;
}

.abg-stat-card[b-9ru6w3rclv] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 7px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.abg-stat-card[b-9ru6w3rclv]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.abg-card-total[b-9ru6w3rclv]::before  { background: #3b82f6; }
.abg-card-short[b-9ru6w3rclv]::before  { background: #6366f1; }
.abg-card-notes[b-9ru6w3rclv]::before  { background: #10b981; }
.abg-card-active[b-9ru6w3rclv]::before { background: #f59e0b; }

.abg-stat-card:hover[b-9ru6w3rclv] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.abg-stat-top[b-9ru6w3rclv] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.abg-stat-icon-wrap[b-9ru6w3rclv] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.abg-stat-icon-wrap .material-symbols-outlined[b-9ru6w3rclv] {
    font-size: 15px;
}

.abg-stat-tag[b-9ru6w3rclv] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.abg-stat-tag .material-symbols-outlined[b-9ru6w3rclv] {
    font-size: 13px;
}

.abg-card-total .abg-stat-icon-wrap[b-9ru6w3rclv]    { background: #eff6ff; color: #3b82f6; }
.abg-card-total .abg-stat-tag[b-9ru6w3rclv]          { background: #eff6ff; color: #2563eb; }

.abg-card-short .abg-stat-icon-wrap[b-9ru6w3rclv]    { background: #eef2ff; color: #6366f1; }
.abg-card-short .abg-stat-tag[b-9ru6w3rclv]          { background: #eef2ff; color: #4f46e5; }

.abg-card-notes .abg-stat-icon-wrap[b-9ru6w3rclv]    { background: #ecfdf5; color: #059669; }
.abg-card-notes .abg-stat-tag[b-9ru6w3rclv]          { background: #ecfdf5; color: #047857; }

.abg-card-active .abg-stat-icon-wrap[b-9ru6w3rclv]   { background: #fffbeb; color: #d97706; }
.abg-card-active .abg-stat-tag[b-9ru6w3rclv]         { background: #fffbeb; color: #b45309; }

.abg-stat-mid[b-9ru6w3rclv] {
    margin-top: 1px;
}

.abg-stat-label[b-9ru6w3rclv] {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.abg-stat-bottom[b-9ru6w3rclv] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.abg-stat-val[b-9ru6w3rclv] {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.abg-stat-subtext[b-9ru6w3rclv] {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── 4. Table Card Container (Single Viewport Inner Area) ─── */
.abg-table-card[b-9ru6w3rclv] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.abg-table-container[b-9ru6w3rclv] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

.abg-table[b-9ru6w3rclv] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    text-align: left;
}

/* Light Slate Sticky Header */
.abg-thead[b-9ru6w3rclv] {
    position: sticky;
    top: 0;
    z-index: 10;
}

.abg-th[b-9ru6w3rclv] {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 9px 12px;
    border-bottom: 1px solid #e2e8f0;
    border-top: none;
    white-space: nowrap;
    user-select: none;
}

.abg-tbody tr[b-9ru6w3rclv] {
    background-color: #ffffff;
    transition: background-color 0.12s ease;
}

.abg-tbody tr:hover[b-9ru6w3rclv] {
    background-color: #f8fafc;
}

.abg-td[b-9ru6w3rclv] {
    padding: 7px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
    font-size: 12px;
}

.abg-badge-code[b-9ru6w3rclv] {
    display: inline-block;
    padding: 2px 6px;
    background: #f1f5f9;
    color: #475569;
    font-family: monospace;
    font-weight: 700;
    font-size: 11px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.abg-shortname-pill[b-9ru6w3rclv] {
    display: inline-block;
    color: #64748b;
    font-family: monospace;
    font-weight: 600;
    font-size: 11.5px;
}

.abg-name-cell[b-9ru6w3rclv] {
    font-weight: 700;
    color: #0f172a;
    font-size: 12px;
}

.abg-date-text[b-9ru6w3rclv] {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

/* Action Buttons */
.abg-actions-cell[b-9ru6w3rclv] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.abg-btn-action[b-9ru6w3rclv] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.abg-btn-action .material-symbols-outlined[b-9ru6w3rclv] {
    font-size: 14px;
}

.abg-btn-edit:hover[b-9ru6w3rclv] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.abg-btn-delete:hover[b-9ru6w3rclv] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* ── 5. Pagination & Table Footer ─────────────────────────── */
.abg-table-footer[b-9ru6w3rclv] {
    padding: 6px 14px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 10px;
    background: #ffffff;
    font-size: 12px;
}

.abg-page-size-wrap[b-9ru6w3rclv] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.abg-page-size-select[b-9ru6w3rclv] {
    height: 26px;
    padding: 0 6px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    outline: none;
    cursor: pointer;
}

.abg-page-info[b-9ru6w3rclv] {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.abg-page-info strong[b-9ru6w3rclv] {
    color: #0f172a;
    font-weight: 700;
}

.abg-pagination-wrap[b-9ru6w3rclv] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.abg-page-btn[b-9ru6w3rclv] {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.abg-page-btn:hover:not(:disabled)[b-9ru6w3rclv] {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.abg-page-btn.active[b-9ru6w3rclv] {
    background: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
    font-weight: 700;
}

.abg-page-btn:disabled[b-9ru6w3rclv] {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
}

/* ── 6. Modal Backdrop & Card Form ──────────────────────────── */
.abg-modal-overlay[b-9ru6w3rclv] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 16px;
    animation: abgFadeIn-b-9ru6w3rclv 0.15s ease-out;
}

@keyframes abgFadeIn-b-9ru6w3rclv {
    from { opacity: 0; }
    to { opacity: 1; }
}

.abg-modal-card[b-9ru6w3rclv] {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: abgSlideUp-b-9ru6w3rclv 0.15s ease-out;
}

@keyframes abgSlideUp-b-9ru6w3rclv {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.abg-modal-header[b-9ru6w3rclv] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.abg-modal-title[b-9ru6w3rclv] {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.abg-modal-close-btn[b-9ru6w3rclv] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.abg-modal-close-btn:hover[b-9ru6w3rclv] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.abg-modal-body[b-9ru6w3rclv] {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 75vh;
    overflow-y: auto;
}

.abg-form-group[b-9ru6w3rclv] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.abg-form-label[b-9ru6w3rclv] {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.abg-form-input[b-9ru6w3rclv] {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.abg-form-input:focus[b-9ru6w3rclv] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.abg-grid-2col[b-9ru6w3rclv] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.abg-modal-footer[b-9ru6w3rclv] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.abg-btn-delete[b-9ru6w3rclv] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #fca5a5;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.abg-btn-delete:hover:not(:disabled)[b-9ru6w3rclv] {
    background: #fee2e2;
}

.abg-btn-delete:disabled[b-9ru6w3rclv] {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #e2e8f0;
    color: #94a3b8;
}

.abg-btn-save[b-9ru6w3rclv] {
    height: 32px;
    padding: 0 16px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.abg-btn-save:hover[b-9ru6w3rclv] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}
/* /Components/Pages/AntibioticsMaster.razor.rz.scp.css */
/* ==========================================================================
   ANTIBIOTICS MASTER — MODERN OBSIDIAN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Main Layout Wrapper ────────────────────── */
.ab-page-root[b-3f5z9mxgjp] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.ab-top-bar[b-3f5z9mxgjp] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.ab-title-block[b-3f5z9mxgjp] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ab-title-icon-wrap[b-3f5z9mxgjp] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ab-title-icon-wrap .material-symbols-outlined[b-3f5z9mxgjp] {
    font-size: 20px;
}

.ab-breadcrumbs[b-3f5z9mxgjp] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.ab-breadcrumb-link[b-3f5z9mxgjp] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.ab-breadcrumb-link:hover[b-3f5z9mxgjp] {
    color: #2563eb;
}

.ab-breadcrumb-sep[b-3f5z9mxgjp] {
    font-size: 11px;
}

.ab-page-title[b-3f5z9mxgjp] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ab-badge-directory[b-3f5z9mxgjp] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ab-live-dot[b-3f5z9mxgjp] {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.ab-top-actions[b-3f5z9mxgjp] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ab-search-wrap[b-3f5z9mxgjp] {
    position: relative;
    width: 240px;
}

.ab-search-wrap .material-symbols-outlined[b-3f5z9mxgjp] {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.ab-search-input[b-3f5z9mxgjp] {
    width: 100%;
    height: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 10px 0 32px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ab-search-input:focus[b-3f5z9mxgjp] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.ab-btn-primary[b-3f5z9mxgjp] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.ab-btn-primary:hover[b-3f5z9mxgjp] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

.ab-btn-icon[b-3f5z9mxgjp] {
    font-size: 16px;
}

/* ── 3. KPI / Stat Cards Grid ───────────────────────────────── */
.ab-stats-grid[b-3f5z9mxgjp] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex-shrink: 0;
}

.ab-stat-card[b-3f5z9mxgjp] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 7px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.ab-stat-card[b-3f5z9mxgjp]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.ab-card-total[b-3f5z9mxgjp]::before  { background: #3b82f6; }
.ab-card-group[b-3f5z9mxgjp]::before  { background: #6366f1; }
.ab-card-short[b-3f5z9mxgjp]::before  { background: #10b981; }
.ab-card-active[b-3f5z9mxgjp]::before { background: #f59e0b; }

.ab-stat-card:hover[b-3f5z9mxgjp] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.ab-stat-top[b-3f5z9mxgjp] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ab-stat-icon-wrap[b-3f5z9mxgjp] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ab-stat-icon-wrap .material-symbols-outlined[b-3f5z9mxgjp] {
    font-size: 15px;
}

.ab-stat-tag[b-3f5z9mxgjp] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.ab-stat-tag .material-symbols-outlined[b-3f5z9mxgjp] {
    font-size: 13px;
}

.ab-card-total .ab-stat-icon-wrap[b-3f5z9mxgjp]    { background: #eff6ff; color: #3b82f6; }
.ab-card-total .ab-stat-tag[b-3f5z9mxgjp]          { background: #eff6ff; color: #2563eb; }

.ab-card-group .ab-stat-icon-wrap[b-3f5z9mxgjp]    { background: #eef2ff; color: #6366f1; }
.ab-card-group .ab-stat-tag[b-3f5z9mxgjp]          { background: #eef2ff; color: #4f46e5; }

.ab-card-short .ab-stat-icon-wrap[b-3f5z9mxgjp]    { background: #ecfdf5; color: #059669; }
.ab-card-short .ab-stat-tag[b-3f5z9mxgjp]          { background: #ecfdf5; color: #047857; }

.ab-card-active .ab-stat-icon-wrap[b-3f5z9mxgjp]   { background: #fffbeb; color: #d97706; }
.ab-card-active .ab-stat-tag[b-3f5z9mxgjp]         { background: #fffbeb; color: #b45309; }

.ab-stat-mid[b-3f5z9mxgjp] {
    margin-top: 1px;
}

.ab-stat-label[b-3f5z9mxgjp] {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ab-stat-bottom[b-3f5z9mxgjp] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.ab-stat-val[b-3f5z9mxgjp] {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.ab-stat-subtext[b-3f5z9mxgjp] {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── 4. Table Card Container (Single Viewport Inner Area) ─── */
.ab-table-card[b-3f5z9mxgjp] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.ab-table-container[b-3f5z9mxgjp] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

.ab-table[b-3f5z9mxgjp] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    text-align: left;
}

/* Light Slate Sticky Header */
.ab-thead[b-3f5z9mxgjp] {
    position: sticky;
    top: 0;
    z-index: 10;
}

.ab-th[b-3f5z9mxgjp] {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 9px 12px;
    border-bottom: 1px solid #e2e8f0;
    border-top: none;
    white-space: nowrap;
    user-select: none;
}

.ab-tbody tr[b-3f5z9mxgjp] {
    background-color: #ffffff;
    transition: background-color 0.12s ease;
}

.ab-tbody tr:hover[b-3f5z9mxgjp] {
    background-color: #f8fafc;
}

.ab-td[b-3f5z9mxgjp] {
    padding: 7px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
    font-size: 12px;
}

.ab-badge-code[b-3f5z9mxgjp] {
    display: inline-block;
    padding: 2px 6px;
    background: #f1f5f9;
    color: #475569;
    font-family: monospace;
    font-weight: 700;
    font-size: 11px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.ab-shortname-pill[b-3f5z9mxgjp] {
    display: inline-block;
    color: #64748b;
    font-family: monospace;
    font-weight: 600;
    font-size: 11.5px;
}

.ab-name-cell[b-3f5z9mxgjp] {
    font-weight: 700;
    color: #0f172a;
    font-size: 12px;
}

.ab-group-pill[b-3f5z9mxgjp] {
    display: inline-block;
    padding: 2px 8px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid #dbeafe;
}

.ab-type-badge[b-3f5z9mxgjp] {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    background: #f8fafc;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
}

.ab-date-text[b-3f5z9mxgjp] {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

/* Action Buttons */
.ab-actions-cell[b-3f5z9mxgjp] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.ab-btn-action[b-3f5z9mxgjp] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.ab-btn-action .material-symbols-outlined[b-3f5z9mxgjp] {
    font-size: 14px;
}

.ab-btn-edit:hover[b-3f5z9mxgjp] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.ab-btn-delete:hover[b-3f5z9mxgjp] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* ── 5. Modal Backdrop & Card Form ──────────────────────────── */
.ab-modal-overlay[b-3f5z9mxgjp] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 16px;
    animation: abFadeIn-b-3f5z9mxgjp 0.15s ease-out;
}

@keyframes abFadeIn-b-3f5z9mxgjp {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ab-modal-card[b-3f5z9mxgjp] {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 540px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: abSlideUp-b-3f5z9mxgjp 0.15s ease-out;
}

@keyframes abSlideUp-b-3f5z9mxgjp {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ab-modal-header[b-3f5z9mxgjp] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.ab-modal-title[b-3f5z9mxgjp] {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.ab-modal-close-btn[b-3f5z9mxgjp] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.ab-modal-close-btn:hover[b-3f5z9mxgjp] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.ab-modal-body[b-3f5z9mxgjp] {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 75vh;
    overflow-y: auto;
}

.ab-form-group[b-3f5z9mxgjp] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ab-form-label[b-3f5z9mxgjp] {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ab-form-input[b-3f5z9mxgjp],
.ab-form-select[b-3f5z9mxgjp] {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ab-form-input:focus[b-3f5z9mxgjp],
.ab-form-select:focus[b-3f5z9mxgjp] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.ab-grid-3col[b-3f5z9mxgjp] {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.ab-grid-2col[b-3f5z9mxgjp] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ab-modal-footer[b-3f5z9mxgjp] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.ab-btn-delete[b-3f5z9mxgjp] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #fca5a5;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ab-btn-delete:hover:not(:disabled)[b-3f5z9mxgjp] {
    background: #fee2e2;
}

.ab-btn-delete:disabled[b-3f5z9mxgjp] {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #e2e8f0;
    color: #94a3b8;
}

.ab-btn-save[b-3f5z9mxgjp] {
    height: 32px;
    padding: 0 16px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ab-btn-save:hover[b-3f5z9mxgjp] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

/* ── 6. Pagination & Table Footer ─────────────────────────── */
.ab-table-footer[b-3f5z9mxgjp] {
    padding: 6px 14px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 10px;
    background: #ffffff;
    font-size: 12px;
}

.ab-page-size-wrap[b-3f5z9mxgjp] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.ab-page-size-select[b-3f5z9mxgjp] {
    height: 26px;
    padding: 0 6px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    outline: none;
    cursor: pointer;
}

.ab-page-info[b-3f5z9mxgjp] {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.ab-page-info strong[b-3f5z9mxgjp] {
    color: #0f172a;
    font-weight: 700;
}

.ab-pagination-wrap[b-3f5z9mxgjp] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ab-page-btn[b-3f5z9mxgjp] {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ab-page-btn:hover:not(:disabled)[b-3f5z9mxgjp] {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.ab-page-btn.active[b-3f5z9mxgjp] {
    background: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
    font-weight: 700;
}

.ab-page-btn:disabled[b-3f5z9mxgjp] {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
}

/* /Components/Pages/AppointmentBooking.razor.rz.scp.css */
/* Appointment Booking Styles */
.ab-page-root[b-b04ywt95ie] {
    padding: 1.25rem 1.5rem;
    background: #f8fafc;
    min-height: 100vh;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
    display: flex;
    flex-direction: column;
}

/* Dark Mode Adaptation */
:global(html.dark) .ab-page-root[b-b04ywt95ie] {
    background: #090d16;
    color: #f1f5f9;
}

/* 1. TOP BAR */
.ab-top-bar[b-b04ywt95ie] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.ab-title-block[b-b04ywt95ie] {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.ab-title-icon-wrap[b-b04ywt95ie] {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.ab-breadcrumbs[b-b04ywt95ie] {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.125rem;
}

.ab-breadcrumb-link[b-b04ywt95ie] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.ab-breadcrumb-link:hover[b-b04ywt95ie] {
    color: #2563eb;
}

.ab-breadcrumb-sep[b-b04ywt95ie] {
    color: #94a3b8;
}

.ab-page-title[b-b04ywt95ie] {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

:global(html.dark) .ab-page-title[b-b04ywt95ie] {
    color: #f8fafc;
}

.ab-badge-directory[b-b04ywt95ie] {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: #e0e7ff;
    color: #3730a3;
    padding: 2px 8px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

:global(html.dark) .ab-badge-directory[b-b04ywt95ie] {
    background: #312e81;
    color: #c7d2fe;
}

.ab-live-dot[b-b04ywt95ie] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4f46e5;
    animation: pulse-b-b04ywt95ie 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-b-b04ywt95ie {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.ab-top-actions[b-b04ywt95ie] {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.ab-btn-primary[b-b04ywt95ie] {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
    transition: all 0.2s ease;
}

.ab-btn-primary:hover[b-b04ywt95ie] {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.ab-btn-secondary[b-b04ywt95ie] {
    background: #ffffff;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: all 0.2s;
}

.ab-btn-secondary:hover[b-b04ywt95ie] {
    background: #f1f5f9;
    border-color: #94a3b8;
}

:global(html.dark) .ab-btn-secondary[b-b04ywt95ie] {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

:global(html.dark) .ab-btn-secondary:hover[b-b04ywt95ie] {
    background: #334155;
}

/* 2. STATS KPI GRID */
.ab-stats-grid[b-b04ywt95ie] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.ab-stat-card[b-b04ywt95ie] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.ab-stat-card:hover[b-b04ywt95ie] {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.ab-stat-card.active[b-b04ywt95ie] {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

:global(html.dark) .ab-stat-card[b-b04ywt95ie] {
    background: #111827;
    border-color: #1f2937;
}

:global(html.dark) .ab-stat-card.active[b-b04ywt95ie] {
    background: #1e3a8a33;
    border-color: #3b82f6;
}

.ab-stat-icon[b-b04ywt95ie] {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.ab-stat-info[b-b04ywt95ie] {
    display: flex;
    flex-direction: column;
}

.ab-stat-value[b-b04ywt95ie] {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.ab-stat-label[b-b04ywt95ie] {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.04em;
}

/* Stat color variants */
.stat-all .ab-stat-icon[b-b04ywt95ie] { background: #e0f2fe; color: #0284c7; }
.stat-pending .ab-stat-icon[b-b04ywt95ie] { background: #fef3c7; color: #d97706; }
.stat-confirmed .ab-stat-icon[b-b04ywt95ie] { background: #dbeafe; color: #2563eb; }
.stat-assigned .ab-stat-icon[b-b04ywt95ie] { background: #f3e8ff; color: #7c3aed; }
.stat-collected .ab-stat-icon[b-b04ywt95ie] { background: #ccfbf1; color: #0d9488; }
.stat-completed .ab-stat-icon[b-b04ywt95ie] { background: #dcfce7; color: #16a34a; }
.stat-cancelled .ab-stat-icon[b-b04ywt95ie] { background: #ffe4e6; color: #e11d48; }

/* 3. FILTERS CARD */
.ab-filters-card[b-b04ywt95ie] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

:global(html.dark) .ab-filters-card[b-b04ywt95ie] {
    background: #111827;
    border-color: #1f2937;
}

.ab-filters-row[b-b04ywt95ie] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ab-search-wrap[b-b04ywt95ie] {
    flex: 1 1 260px;
    position: relative;
    display: flex;
    align-items: center;
}

.ab-search-icon[b-b04ywt95ie] {
    position: absolute;
    left: 10px;
    color: #94a3b8;
    pointer-events: none;
    font-size: 18px;
}

.ab-search-input[b-b04ywt95ie] {
    width: 100%;
    height: 38px;
    padding: 0 10px 0 34px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.8125rem;
    background: #f8fafc;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ab-search-input:focus[b-b04ywt95ie] {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

:global(html.dark) .ab-search-input[b-b04ywt95ie] {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

.ab-select-filter[b-b04ywt95ie] {
    height: 38px;
    padding: 0 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.8125rem;
    background: #f8fafc;
    color: #1e293b;
    outline: none;
    cursor: pointer;
    min-width: 140px;
}

:global(html.dark) .ab-select-filter[b-b04ywt95ie] {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

.ab-date-filter[b-b04ywt95ie] {
    height: 38px;
    padding: 0 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.8125rem;
    background: #f8fafc;
    color: #1e293b;
    outline: none;
}

:global(html.dark) .ab-date-filter[b-b04ywt95ie] {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}


.ab-btn-apply[b-b04ywt95ie] {
    height: 38px;
    padding: 0 1rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: 1px solid #1d4ed8;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.ab-btn-apply:hover[b-b04ywt95ie] {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.ab-btn-reset[b-b04ywt95ie] {
    height: 38px;
    padding: 0 0.75rem;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.ab-btn-reset:hover[b-b04ywt95ie] {
    background: #f1f5f9;
    color: #0f172a;
}

/* 4. APPOINTMENT TABLE CONTAINER */
.ab-table-container[b-b04ywt95ie] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 290px);
}

:global(html.dark) .ab-table-container[b-b04ywt95ie] {
    background: #111827;
    border-color: #1f2937;
}

.ab-table-responsive[b-b04ywt95ie] {
    overflow-x: auto;
    overflow-y: auto;
    width: 100%;
    flex: 1;
    min-height: 220px;
}

.ab-table[b-b04ywt95ie] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
    text-align: left;
}

.ab-table th[b-b04ywt95ie] {
    background: #f8fafc;
    color: #475569;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

:global(html.dark) .ab-table th[b-b04ywt95ie] {
    background: #1e293b;
    color: #94a3b8;
    border-color: #334155;
}

.ab-table td[b-b04ywt95ie] {
    padding: 0.35rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

:global(html.dark) .ab-table td[b-b04ywt95ie] {
    border-color: #1e293b;
}

.ab-table tr:hover td[b-b04ywt95ie] {
    background: #f8fafc;
}

:global(html.dark) .ab-table tr:hover td[b-b04ywt95ie] {
    background: #1f2937;
}

/* Booking ID pill */
.ab-booking-id[b-b04ywt95ie] {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 700;
    color: #2563eb;
    background: #eff6ff;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
    border: 1px solid #bfdbfe;
    cursor: pointer;
    transition: all 0.15s;
}

.ab-booking-id:hover[b-b04ywt95ie] {
    background: #dbeafe;
    color: #1d4ed8;
}

:global(html.dark) .ab-booking-id[b-b04ywt95ie] {
    background: #1e3a8a33;
    color: #60a5fa;
    border-color: #1e40af;
}

/* Patient cell */
.ab-patient-name[b-b04ywt95ie] {
    font-weight: 600;
    color: #0f172a;
    display: block;
}

:global(html.dark) .ab-patient-name[b-b04ywt95ie] {
    color: #f8fafc;
}

.ab-patient-sub[b-b04ywt95ie] {
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

/* Status Badges */
.ab-status-badge[b-b04ywt95ie] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-pending[b-b04ywt95ie] { background: #fef3c7; color: #b45309; }
.badge-confirmed[b-b04ywt95ie] { background: #dbeafe; color: #1d4ed8; }
.badge-assigned[b-b04ywt95ie] { background: #f3e8ff; color: #6b21a8; }
.badge-dispatched[b-b04ywt95ie] { background: #cffafe; color: #0e7490; }
.badge-collected[b-b04ywt95ie] { background: #ccfbf1; color: #0f766e; }
.badge-completed[b-b04ywt95ie] { background: #dcfce7; color: #15803d; }
.badge-cancelled[b-b04ywt95ie] { background: #ffe4e6; color: #be123c; }

:global(html.dark) .badge-pending[b-b04ywt95ie] { background: #78350f44; color: #fde68a; }
:global(html.dark) .badge-confirmed[b-b04ywt95ie] { background: #1e3a8a44; color: #93c5fd; }
:global(html.dark) .badge-assigned[b-b04ywt95ie] { background: #581c8744; color: #d8b4fe; }
:global(html.dark) .badge-dispatched[b-b04ywt95ie] { background: #164e6344; color: #67e8f9; }
:global(html.dark) .badge-collected[b-b04ywt95ie] { background: #134e4a44; color: #5eead4; }
:global(html.dark) .badge-completed[b-b04ywt95ie] { background: #14532d44; color: #86efac; }
:global(html.dark) .badge-cancelled[b-b04ywt95ie] { background: #88133744; color: #fda4af; }

/* Driver tag */
.ab-driver-chip[b-b04ywt95ie] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #334155;
    font-weight: 500;
}

:global(html.dark) .ab-driver-chip[b-b04ywt95ie] {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

.ab-unassigned-chip[b-b04ywt95ie] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #fef2f2;
    border: 1px dashed #fca5a5;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #dc2626;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.ab-unassigned-chip:hover[b-b04ywt95ie] {
    background: #fee2e2;
}

/* Mode badge */
.ab-mode-badge[b-b04ywt95ie] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #475569;
    font-weight: 500;
}

:global(html.dark) .ab-mode-badge[b-b04ywt95ie] {
    color: #94a3b8;
}

/* Row action buttons */
.ab-row-actions[b-b04ywt95ie] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ab-icon-btn[b-b04ywt95ie] {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.ab-icon-btn:hover[b-b04ywt95ie] {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.ab-icon-btn.btn-assign:hover[b-b04ywt95ie] {
    color: #7c3aed;
    background: #f3e8ff;
    border-color: #d8b4fe;
}

.ab-icon-btn.btn-status:hover[b-b04ywt95ie] {
    color: #0284c7;
    background: #e0f2fe;
    border-color: #bae6fd;
}

.ab-icon-btn.btn-edit:hover[b-b04ywt95ie] {
    color: #2563eb;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.ab-icon-btn.btn-delete:hover[b-b04ywt95ie] {
    color: #e11d48;
    background: #ffe4e6;
    border-color: #fecdd3;
}

:global(html.dark) .ab-icon-btn:hover[b-b04ywt95ie] {
    background: #1e293b;
    color: #f8fafc;
}

/* Empty State */
.ab-empty-state[b-b04ywt95ie] {
    padding: 4rem 1.5rem;
    text-align: center;
    color: #94a3b8;
}

.ab-empty-icon[b-b04ywt95ie] {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 0.75rem;
}

.ab-empty-title[b-b04ywt95ie] {
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.25rem;
}

:global(html.dark) .ab-empty-title[b-b04ywt95ie] {
    color: #cbd5e1;
}

/* 5. MODAL SYSTEM */
.ab-modal-overlay[b-b04ywt95ie] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10005;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ab-modal-container[b-b04ywt95ie] {
    background: #ffffff;
    border-radius: 14px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: modalSlideUp-b-b04ywt95ie 0.2s ease-out;
}

.ab-modal-sm[b-b04ywt95ie] {
    max-width: 440px;
}

@keyframes modalSlideUp-b-b04ywt95ie {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

:global(html.dark) .ab-modal-container[b-b04ywt95ie] {
    background: #0f172a;
    border: 1px solid #1e293b;
    color: #f1f5f9;
}

.ab-modal-header[b-b04ywt95ie] {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

:global(html.dark) .ab-modal-header[b-b04ywt95ie] {
    border-color: #1e293b;
}

.ab-modal-title[b-b04ywt95ie] {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

:global(html.dark) .ab-modal-title[b-b04ywt95ie] {
    color: #f8fafc;
}

.ab-modal-close[b-b04ywt95ie] {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    transition: all 0.15s;
}

.ab-modal-close:hover[b-b04ywt95ie] {
    background: #f1f5f9;
    color: #0f172a;
}

:global(html.dark) .ab-modal-close:hover[b-b04ywt95ie] {
    background: #1e293b;
    color: #f8fafc;
}

.ab-modal-body[b-b04ywt95ie] {
    padding: 1.25rem;
    overflow-y: auto;
    max-height: calc(90vh - 130px);
}

.ab-modal-footer[b-b04ywt95ie] {
    padding: 0.875rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.625rem;
    background: #f8fafc;
}

:global(html.dark) .ab-modal-footer[b-b04ywt95ie] {
    border-color: #1e293b;
    background: #090d16;
}

/* Form Styles */
.ab-form-grid[b-b04ywt95ie] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.ab-form-full[b-b04ywt95ie] {
    grid-column: span 2;
}

.ab-form-group[b-b04ywt95ie] {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.ab-form-label[b-b04ywt95ie] {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

:global(html.dark) .ab-form-label[b-b04ywt95ie] {
    color: #94a3b8;
}

.ab-form-input[b-b04ywt95ie], .ab-form-select[b-b04ywt95ie], .ab-form-textarea[b-b04ywt95ie] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.8125rem;
    background: #ffffff;
    color: #0f172a;
    box-sizing: border-box;
    outline: none;
    transition: all 0.2s;
}

.ab-form-input:focus[b-b04ywt95ie], .ab-form-select:focus[b-b04ywt95ie], .ab-form-textarea:focus[b-b04ywt95ie] {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

:global(html.dark) .ab-form-input[b-b04ywt95ie],
:global(html.dark) .ab-form-select[b-b04ywt95ie],
:global(html.dark) .ab-form-textarea[b-b04ywt95ie] {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

.ab-form-textarea[b-b04ywt95ie] {
    resize: vertical;
    min-height: 64px;
}

.ab-geo-btn[b-b04ywt95ie] {
    padding: 0.4rem 0.65rem;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #2563eb;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
    text-decoration: none;
}

.ab-geo-btn:hover[b-b04ywt95ie] {
    background: #e0e7ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.ab-geo-btn-wa[b-b04ywt95ie] {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #16a34a;
}

.ab-geo-btn-wa:hover[b-b04ywt95ie] {
    background: #dcfce7;
    border-color: #86efac;
    color: #15803d;
}

.ab-geo-actions-row[b-b04ywt95ie] {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ab-map-preview-container[b-b04ywt95ie] {
    margin-top: 0.625rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

:global(html.dark) .ab-map-preview-container[b-b04ywt95ie] {
    background: #1e293b;
    border-color: #334155;
}

.ab-map-iframe[b-b04ywt95ie] {
    width: 100%;
    height: 190px;
    border: none;
    display: block;
}

.ab-loc-actions[b-b04ywt95ie] {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.ab-loc-chip[b-b04ywt95ie] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid transparent;
}

.chip-map[b-b04ywt95ie] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.chip-map:hover[b-b04ywt95ie] {
    background: #dbeafe;
    color: #1d4ed8;
}

.chip-wa[b-b04ywt95ie] {
    background: #f0fdf4;
    color: #16a34a;
    border-color: #bbf7d0;
}

.chip-wa:hover[b-b04ywt95ie] {
    background: #dcfce7;
    color: #15803d;
}

.chip-copy[b-b04ywt95ie] {
    background: #f8fafc;
    color: #475569;
    border-color: #e2e8f0;
}

.chip-copy:hover[b-b04ywt95ie] {
    background: #f1f5f9;
    color: #0f172a;
}

:global(html.dark) .chip-map[b-b04ywt95ie] { background: #1e3a8a33; color: #60a5fa; border-color: #1e40af; }
:global(html.dark) .chip-wa[b-b04ywt95ie] { background: #14532d33; color: #86efac; border-color: #166534; }
:global(html.dark) .chip-copy[b-b04ywt95ie] { background: #1e293b; color: #cbd5e1; border-color: #334155; }


/* ══════════════════════════════════════════════════════════════════
   VIEW SWITCHER: APPOINTMENTS <-> REFERRAL BOOKINGS
   ══════════════════════════════════════════════════════════════════ */
.ab-mode-switch-wrapper[b-b04ywt95ie] {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    padding: 3px;
    gap: 2px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

:global(html.dark) .ab-mode-switch-wrapper[b-b04ywt95ie] {
    background: #1e293b;
    border-color: #334155;
}

.ab-switch-btn[b-b04ywt95ie] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border: none;
    border-radius: 9999px;
    background: transparent;
    color: #475569;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ab-switch-btn:hover[b-b04ywt95ie] {
    color: #1e293b;
}

.ab-switch-btn.active[b-b04ywt95ie] {
    background: #ffffff;
    color: #2563eb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

:global(html.dark) .ab-switch-btn[b-b04ywt95ie] {
    color: #94a3b8;
}

:global(html.dark) .ab-switch-btn:hover[b-b04ywt95ie] {
    color: #f1f5f9;
}

:global(html.dark) .ab-switch-btn.active[b-b04ywt95ie] {
    background: #0f172a;
    color: #60a5fa;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.ab-switch-count[b-b04ywt95ie] {
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 9999px;
    background: #e2e8f0;
    color: #475569;
}

.ab-switch-btn.active .ab-switch-count[b-b04ywt95ie] {
    background: #eff6ff;
    color: #2563eb;
}

.ab-switch-count.highlight[b-b04ywt95ie] {
    background: #2563eb;
    color: #ffffff;
}

.icon-bookings[b-b04ywt95ie] {
    background: linear-gradient(135deg, #4338ca, #6366f1) !important;
    box-shadow: 0 4px 12px rgba(67, 56, 202, 0.25) !important;
}

/* Barcode chip */
.ab-barcode-chip[b-b04ywt95ie] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e0e7ff;
    border: 1px solid #c7d2fe;
    padding: 2px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.ab-barcode-chip:hover[b-b04ywt95ie] {
    background: #c7d2fe;
    border-color: #a5b4fc;
}

:global(html.dark) .ab-barcode-chip[b-b04ywt95ie] {
    background: #312e81;
    border-color: #4338ca;
}

.ab-test-count-badge[b-b04ywt95ie] {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 1px 6px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 4px;
    margin-top: 2px;
}

.ab-urgency-chip[b-b04ywt95ie] {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 6px;
    border-radius: 4px;
}

.chip-stat[b-b04ywt95ie] {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.chip-routine[b-b04ywt95ie] {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.ab-transit-sub[b-b04ywt95ie] {
    font-size: 0.6875rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Referral Detail Modal Grid */
.ab-referral-detail-grid[b-b04ywt95ie] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.detail-box[b-b04ywt95ie] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.625rem 0.75rem;
}

:global(html.dark) .detail-box[b-b04ywt95ie] {
    background: #1e293b;
    border-color: #334155;
}

.detail-lbl[b-b04ywt95ie] {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.detail-val[b-b04ywt95ie] {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    margin-top: 2px;
}

:global(html.dark) .detail-val[b-b04ywt95ie] {
    color: #f8fafc;
}

.btn-view[b-b04ywt95ie] {
    color: #4338ca;
}

.btn-view:hover[b-b04ywt95ie] {
    background: #e0e7ff;
    color: #3730a3;
}

/* =========================================================
   RIGHT-SIDE SLIDE-OVER WINDOW / DRAWER STYLES
   ========================================================= */
.ab-drawer-overlay[b-b04ywt95ie] {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
}

.ab-drawer-overlay.open[b-b04ywt95ie] {
    opacity: 1;
    visibility: visible;
}

.ab-right-drawer[b-b04ywt95ie] {
    position: fixed;
    top: 0;
    right: -560px;
    bottom: 0;
    width: 520px;
    max-width: 95vw;
    background: #ffffff;
    box-shadow: -8px 0 36px rgba(15, 23, 42, 0.18);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transition: right 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

:global(html.dark) .ab-right-drawer[b-b04ywt95ie] {
    background: #0f172a;
    box-shadow: -8px 0 36px rgba(0, 0, 0, 0.5);
    border-left: 1px solid #1e293b;
}

.ab-right-drawer.open[b-b04ywt95ie] {
    right: 0;
}

/* Header */
.ab-drawer-header[b-b04ywt95ie] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

:global(html.dark) .ab-drawer-header[b-b04ywt95ie] {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-bottom-color: #334155;
}

.ab-drawer-category[b-b04ywt95ie] {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #4338ca;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}

:global(html.dark) .ab-drawer-category[b-b04ywt95ie] {
    color: #818cf8;
}

.ab-drawer-title[b-b04ywt95ie] {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}

:global(html.dark) .ab-drawer-title[b-b04ywt95ie] {
    color: #f8fafc;
}

.ab-drawer-barcode[b-b04ywt95ie] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 6px;
    padding: 3px 8px;
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: #3730a3;
    margin-top: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.ab-drawer-barcode:hover[b-b04ywt95ie] {
    background: #e0e7ff;
    border-color: #a5b4fc;
}

:global(html.dark) .ab-drawer-barcode[b-b04ywt95ie] {
    background: #1e1b4b;
    border-color: #3730a3;
    color: #a5b4fc;
}

.ab-drawer-header-actions[b-b04ywt95ie] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ab-drawer-close[b-b04ywt95ie] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
}

.ab-drawer-close:hover[b-b04ywt95ie] {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

:global(html.dark) .ab-drawer-close[b-b04ywt95ie] {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

/* Body */
.ab-drawer-body[b-b04ywt95ie] {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Cards */
.ab-drawer-card[b-b04ywt95ie] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.125rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

:global(html.dark) .ab-drawer-card[b-b04ywt95ie] {
    background: #1e293b;
    border-color: #334155;
}

.ab-drawer-card-header[b-b04ywt95ie] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.875rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
}

:global(html.dark) .ab-drawer-card-header[b-b04ywt95ie] {
    color: #f8fafc;
    border-bottom-color: #334155;
}

.ab-drawer-grid[b-b04ywt95ie] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
}

.ab-drawer-grid-item.full-width[b-b04ywt95ie] {
    grid-column: span 2;
}

.ab-drawer-grid-item .lbl[b-b04ywt95ie] {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ab-drawer-grid-item .val[b-b04ywt95ie] {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    margin-top: 2px;
}

:global(html.dark) .ab-drawer-grid-item .val[b-b04ywt95ie] {
    color: #f8fafc;
}

.ab-phone-link[b-b04ywt95ie] {
    color: #2563eb;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
}

.ab-phone-link:hover[b-b04ywt95ie] {
    text-decoration: underline;
}

/* Tests Breakdown */
.ab-drawer-chip-count[b-b04ywt95ie] {
    background: #ede9fe;
    color: #6d28d9;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
}

:global(html.dark) .ab-drawer-chip-count[b-b04ywt95ie] {
    background: #3b0764;
    color: #c4b5fd;
}

.ab-drawer-test-list[b-b04ywt95ie] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ab-drawer-test-item[b-b04ywt95ie] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.15s;
}

:global(html.dark) .ab-drawer-test-item[b-b04ywt95ie] {
    background: #0f172a;
    border-color: #334155;
}

.ab-drawer-test-item:hover[b-b04ywt95ie] {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.ab-drawer-test-title[b-b04ywt95ie] {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

:global(html.dark) .ab-drawer-test-title[b-b04ywt95ie] {
    color: #f8fafc;
}

.ab-drawer-test-badges[b-b04ywt95ie] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.ab-chip-code[b-b04ywt95ie] {
    font-size: 0.6875rem;
    font-family: monospace;
    font-weight: 700;
    color: #4338ca;
    background: #eef2ff;
    padding: 1px 6px;
    border-radius: 4px;
}

.ab-chip-cat[b-b04ywt95ie] {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #0369a1;
    background: #e0f2fe;
    padding: 1px 6px;
    border-radius: 4px;
}

.ab-chip-spec[b-b04ywt95ie] {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #854d0e;
    background: #fef9c3;
    padding: 1px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.ab-drawer-test-amount[b-b04ywt95ie] {
    font-size: 0.9375rem;
    font-weight: 800;
    color: #047857;
    white-space: nowrap;
}

:global(html.dark) .ab-drawer-test-amount[b-b04ywt95ie] {
    color: #34d399;
}

/* Cost Summary */
.ab-drawer-cost-row[b-b04ywt95ie] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: #475569;
    margin-bottom: 6px;
}

:global(html.dark) .ab-drawer-cost-row[b-b04ywt95ie] {
    color: #94a3b8;
}

.ab-drawer-cost-divider[b-b04ywt95ie] {
    height: 1px;
    background: #e2e8f0;
    margin: 8px 0;
}

:global(html.dark) .ab-drawer-cost-divider[b-b04ywt95ie] {
    background: #334155;
}

.ab-drawer-cost-row.grand-total[b-b04ywt95ie] {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 4px;
}

:global(html.dark) .ab-drawer-cost-row.grand-total[b-b04ywt95ie] {
    color: #f8fafc;
}

.ab-drawer-cost-row.grand-total span:last-child[b-b04ywt95ie] {
    color: #047857;
    font-size: 1.125rem;
}

:global(html.dark) .ab-drawer-cost-row.grand-total span:last-child[b-b04ywt95ie] {
    color: #34d399;
}

/* Notes Box */
.ab-drawer-notes-box[b-b04ywt95ie] {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #78350f;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 10px 12px;
}

:global(html.dark) .ab-drawer-notes-box[b-b04ywt95ie] {
    background: #451a03;
    border-color: #78350f;
    color: #fde68a;
}

/* Footer & Buttons */
.ab-drawer-footer[b-b04ywt95ie] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

:global(html.dark) .ab-drawer-footer[b-b04ywt95ie] {
    background: #0f172a;
    border-top-color: #334155;
}

.ab-drawer-btn-cancel[b-b04ywt95ie] {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s;
}

.ab-drawer-btn-cancel:hover[b-b04ywt95ie] {
    background: #f1f5f9;
    color: #0f172a;
}

:global(html.dark) .ab-drawer-btn-cancel[b-b04ywt95ie] {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

.ab-drawer-btn-bill[b-b04ywt95ie] {
    flex: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    font-size: 0.9375rem;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    cursor: pointer;
    transition: all 0.2s;
}

.ab-drawer-btn-bill:hover[b-b04ywt95ie] {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

/* Actions column Make Bill table button */
.ab-btn-make-bill-table[b-b04ywt95ie] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(67, 56, 202, 0.25);
    transition: all 0.15s;
    white-space: nowrap;
}

.ab-btn-make-bill-table:hover[b-b04ywt95ie] {
    background: linear-gradient(135deg, #3730a3 0%, #312e81 100%);
    box-shadow: 0 3px 10px rgba(67, 56, 202, 0.35);
    transform: translateY(-1px);
}

/* Row clickable styling */
.ab-clickable-row[b-b04ywt95ie] {
    cursor: pointer;
    transition: background-color 0.15s;
}

.ab-clickable-row:hover[b-b04ywt95ie] {
    background-color: #f1f5f9 !important;
}

:global(html.dark) .ab-clickable-row:hover[b-b04ywt95ie] {
    background-color: #1e293b !important;
}

/* Filter controls wrap */
.ab-filter-control-wrap[b-b04ywt95ie] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2px 8px;
}

:global(html.dark) .ab-filter-control-wrap[b-b04ywt95ie] {
    background: #1e293b;
    border-color: #334155;
}

.ab-filter-label[b-b04ywt95ie] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

:global(html.dark) .ab-filter-label[b-b04ywt95ie] {
    color: #94a3b8;
}

.ab-filter-control-wrap .ab-date-filter[b-b04ywt95ie] {
    border: none;
    background: transparent;
    font-size: 0.8125rem;
    color: #0f172a;
    padding: 4px 2px;
    outline: none;
}

:global(html.dark) .ab-filter-control-wrap .ab-date-filter[b-b04ywt95ie] {
    color: #f8fafc;
}

.ab-filter-control-wrap .ab-select-filter[b-b04ywt95ie] {
    border: none;
    background: transparent;
    font-size: 0.8125rem;
    color: #0f172a;
    padding: 4px 2px;
    outline: none;
}

:global(html.dark) .ab-filter-control-wrap .ab-select-filter[b-b04ywt95ie] {
    color: #f8fafc;
}

/* =========================================================
   COMPACT LIST CARDS (SUPER LOW HEIGHT) OVERRIDES
   ========================================================= */
.ab-stats-grid[b-b04ywt95ie] {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
    gap: 6px !important;
    margin-bottom: 8px !important;
}

.ab-stat-card[b-b04ywt95ie] {
    padding: 4px 8px !important;
    min-height: 38px !important;
    max-height: 42px !important;
    gap: 6px !important;
    border-radius: 6px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.ab-stat-icon[b-b04ywt95ie] {
    width: 24px !important;
    height: 24px !important;
    border-radius: 4px !important;
}

.ab-stat-icon .material-symbols-outlined[b-b04ywt95ie] {
    font-size: 15px !important;
}

.ab-stat-value[b-b04ywt95ie] {
    font-size: 0.875rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

.ab-stat-label[b-b04ywt95ie] {
    font-size: 0.625rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    line-height: 1 !important;
    margin-top: 1px !important;
}


/* Billed Badges & Chips */
.badge-billed[b-b04ywt95ie] {
    background: #ede9fe !important;
    color: #6d28d9 !important;
    border: 1px solid #ddd6fe !important;
    font-weight: 700 !important;
}
:global(html.dark) .badge-billed[b-b04ywt95ie] {
    background: #4c1d9544 !important;
    color: #c4b5fd !important;
    border: 1px solid #6d28d966 !important;
}

.ab-billed-chip-table[b-b04ywt95ie] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 9999px;
    background: #ede9fe;
    color: #6d28d9;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid #ddd6fe;
    white-space: nowrap;
}
:global(html.dark) .ab-billed-chip-table[b-b04ywt95ie] {
    background: #4c1d9544;
    color: #c4b5fd;
    border-color: #6d28d966;
}

.ab-drawer-billed-badge[b-b04ywt95ie] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    background: #ede9fe;
    color: #6d28d9;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #ddd6fe;
}
:global(html.dark) .ab-drawer-billed-badge[b-b04ywt95ie] {
    background: #4c1d9544;
    color: #c4b5fd;
    border-color: #6d28d966;
}

.stat-billed .ab-stat-icon[b-b04ywt95ie] {
    background: #ede9fe;
    color: #6d28d9;
}
.stat-billed.active[b-b04ywt95ie] {
    border-color: #7c3aed;
    background: #f5f3ff;
}
:global(html.dark) .stat-billed .ab-stat-icon[b-b04ywt95ie] {
    background: #4c1d9544;
    color: #c4b5fd;
}
:global(html.dark) .stat-billed.active[b-b04ywt95ie] {
    border-color: #8b5cf6;
    background: #2e106544;
}


/* Actions column Cancel table button */
.ab-btn-cancel-table[b-b04ywt95ie] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ffffff;
    color: #e11d48;
    border: 1px solid #fecdd3;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(225, 29, 72, 0.05);
    transition: all 0.15s ease-in-out;
    white-space: nowrap;
}

.ab-btn-cancel-table:hover[b-b04ywt95ie] {
    background: #fff1f2;
    border-color: #fda4af;
    color: #be123c;
    box-shadow: 0 2px 6px rgba(225, 29, 72, 0.15);
    transform: translateY(-1px);
}

:global(html.dark) .ab-btn-cancel-table[b-b04ywt95ie] {
    background: #1e1b2e;
    color: #fda4af;
    border-color: #881337;
}

:global(html.dark) .ab-btn-cancel-table:hover[b-b04ywt95ie] {
    background: #88133733;
    border-color: #f43f5e;
}


/* ═══════════════════════════════════════════════════════════════
   PAGINATION & TABLE FOOTER STYLES (ANCHORED TO BOTTOM)
   ═══════════════════════════════════════════════════════════════ */
.ab-table-footer[b-b04ywt95ie] {
    padding: 10px 18px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 12px;
    background: #ffffff;
    font-size: 0.8125rem;
    flex-wrap: wrap;
}

:global(html.dark) .ab-table-footer[b-b04ywt95ie] {
    background: #111827;
    border-color: #1f2937;
}

.ab-page-size-wrap[b-b04ywt95ie] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 500;
}

.ab-page-size-select[b-b04ywt95ie] {
    height: 30px;
    padding: 0 8px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    outline: none;
    cursor: pointer;
    transition: all 0.15s;
}

.ab-page-size-select:focus[b-b04ywt95ie] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

:global(html.dark) .ab-page-size-select[b-b04ywt95ie] {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

.ab-page-info[b-b04ywt95ie] {
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 500;
}

.ab-page-info strong[b-b04ywt95ie] {
    color: #0f172a;
    font-weight: 700;
}

:global(html.dark) .ab-page-info strong[b-b04ywt95ie] {
    color: #f1f5f9;
}

.ab-pagination-wrap[b-b04ywt95ie] {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ab-page-btn[b-b04ywt95ie] {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ab-page-btn:hover:not(:disabled)[b-b04ywt95ie] {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #2563eb;
}

.ab-page-btn.active[b-b04ywt95ie] {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #1d4ed8;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.ab-page-btn:disabled[b-b04ywt95ie] {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8fafc;
}

:global(html.dark) .ab-page-btn[b-b04ywt95ie] {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

:global(html.dark) .ab-page-btn:hover:not(:disabled)[b-b04ywt95ie] {
    background: #334155;
    color: #ffffff;
}

:global(html.dark) .ab-page-btn.active[b-b04ywt95ie] {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
}

.ab-page-btn .material-symbols-outlined[b-b04ywt95ie] {
    font-size: 16px;
}

.ab-page-dots[b-b04ywt95ie] {
    padding: 0 6px;
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.8125rem;
    user-select: none;
}


/* Emergency and Specimen / Result Status Badges */
.ab-emergency-chip[b-b04ywt95ie] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff !important;
    font-size: 0.6875rem;
    font-weight: 800;
    border-radius: 6px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
    animation: ab-pulse-emergency-b-b04ywt95ie 2s infinite;
    margin-bottom: 4px;
}

@keyframes ab-pulse-emergency-b-b04ywt95ie {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.ab-billno-chip[b-b04ywt95ie] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    background: #e0e7ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 6px;
    margin-top: 3px;
}

:global(html.dark) .ab-billno-chip[b-b04ywt95ie] {
    background: #312e81;
    color: #c7d2fe;
    border-color: #4338ca;
}

.ab-specimen-badge[b-b04ywt95ie] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.sample-badge-collected[b-b04ywt95ie] {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.sample-badge-partial[b-b04ywt95ie] {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.sample-badge-pending[b-b04ywt95ie] {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

:global(html.dark) .sample-badge-collected[b-b04ywt95ie] {
    background: #064e3b;
    color: #a7f3d0;
    border-color: #047857;
}

:global(html.dark) .sample-badge-partial[b-b04ywt95ie] {
    background: #78350f;
    color: #fde68a;
    border-color: #92400e;
}

:global(html.dark) .sample-badge-pending[b-b04ywt95ie] {
    background: #1e293b;
    color: #94a3b8;
    border-color: #334155;
}

.ab-result-badge[b-b04ywt95ie] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.result-badge-ready[b-b04ywt95ie] {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.result-badge-partial[b-b04ywt95ie] {
    background: #fae8ff;
    color: #86198f;
    border: 1px solid #f5d0fe;
}

.result-badge-processing[b-b04ywt95ie] {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

:global(html.dark) .result-badge-ready[b-b04ywt95ie] {
    background: #0c4a6e;
    color: #bae6fd;
    border-color: #0284c7;
}

:global(html.dark) .result-badge-partial[b-b04ywt95ie] {
    background: #701a75;
    color: #f5d0fe;
    border-color: #a21caf;
}

:global(html.dark) .result-badge-processing[b-b04ywt95ie] {
    background: #1e293b;
    color: #94a3b8;
    border-color: #334155;
}

/* =========================================================
   RESPONSIVE LAYOUT, STICKY ACTIONS & SCROLLBAR ENHANCEMENTS
   ========================================================= */

/* Patient Sub Details & Meta */
.ab-patient-sub[b-b04ywt95ie] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.3;
}

:global(html.dark) .ab-patient-sub[b-b04ywt95ie] {
    color: #94a3b8;
}

.ab-patient-meta-item[b-b04ywt95ie] {
    white-space: nowrap !important;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

/* Actions Column (Natural alignment at the end of the table, revealed when scrolled) */
.ab-table .ab-col-actions[b-b04ywt95ie] {
    text-align: right;
    white-space: nowrap;
}

.ab-table th.ab-col-actions[b-b04ywt95ie] {
    text-align: right;
}


/* Table Scrollbar & Touch Scrolling */
.ab-table-responsive[b-b04ywt95ie] {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.ab-table-responsive[b-b04ywt95ie]::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

.ab-table-responsive[b-b04ywt95ie]::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.ab-table-responsive[b-b04ywt95ie]::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.ab-table-responsive[b-b04ywt95ie]::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

:global(html.dark) .ab-table-responsive[b-b04ywt95ie] {
    scrollbar-color: #334155 #0f172a;
}

:global(html.dark) .ab-table-responsive[b-b04ywt95ie]::-webkit-scrollbar-track {
    background: #0f172a;
}

:global(html.dark) .ab-table-responsive[b-b04ywt95ie]::-webkit-scrollbar-thumb {
    background: #334155;
}

/* Responsive Media Queries for Tablets and Mobile */
@media (max-width: 1200px) {
    .ab-page-root[b-b04ywt95ie] {
        padding: 0.75rem 1rem !important;
    }

    .ab-stats-grid[b-b04ywt95ie] {
        grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)) !important;
        gap: 5px !important;
        margin-bottom: 8px !important;
    }

    .ab-filters-card[b-b04ywt95ie] {
        padding: 8px 10px !important;
        margin-bottom: 10px !important;
    }

    .ab-filters-row[b-b04ywt95ie] {
        gap: 6px !important;
    }

    .ab-search-wrap[b-b04ywt95ie] {
        flex: 1 1 100% !important;
        width: 100%;
    }

    .ab-filter-control-wrap[b-b04ywt95ie] {
        flex: 1 1 auto;
    }

    .ab-btn-apply[b-b04ywt95ie], .ab-btn-reset[b-b04ywt95ie] {
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) {
    .ab-page-root[b-b04ywt95ie] {
        padding: 0.5rem 0.75rem !important;
    }

    .ab-stats-grid[b-b04ywt95ie] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .ab-top-bar[b-b04ywt95ie] {
        margin-bottom: 0.75rem;
    }

    .ab-filter-control-wrap[b-b04ywt95ie] {
        flex: 1 1 100%;
        width: 100%;
    }

    .ab-btn-apply[b-b04ywt95ie] {
        flex: 1 1 auto;
        justify-content: center;
    }
}

/* /Components/Pages/AreaMaster.razor.rz.scp.css */
/* ==========================================================================
   AREA MASTER — MODERN OBSIDIAN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Layout Wrapper ─────────────────────────── */
.am-page-root[b-zz26btw6is] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.am-top-bar[b-zz26btw6is] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.am-title-block[b-zz26btw6is] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.am-title-icon-wrap[b-zz26btw6is] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.am-title-icon-wrap .material-symbols-outlined[b-zz26btw6is] {
    font-size: 20px;
}

.am-breadcrumbs[b-zz26btw6is] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.am-breadcrumb-link[b-zz26btw6is] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.am-breadcrumb-link:hover[b-zz26btw6is] {
    color: #2563eb;
}

.am-breadcrumb-sep[b-zz26btw6is] {
    font-size: 11px;
}

.am-page-title[b-zz26btw6is] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.am-badge-directory[b-zz26btw6is] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.am-live-dot[b-zz26btw6is] {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.am-top-actions[b-zz26btw6is] {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Filter Pills */
.am-filter-pills[b-zz26btw6is] {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f8fafc;
    padding: 2px 4px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.am-filter-pill[b-zz26btw6is] {
    padding: 3px 10px;
    border-radius: 4px;
    border: none;
    background: transparent;
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
}

.am-filter-pill:hover[b-zz26btw6is] {
    color: #0f172a;
}

.am-filter-pill.active[b-zz26btw6is] {
    background: #0f172a;
    color: #ffffff;
}

/* Search input */
.am-search-wrap[b-zz26btw6is] {
    position: relative;
    width: 220px;
}

.am-search-wrap .material-symbols-outlined[b-zz26btw6is] {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.am-search-input[b-zz26btw6is] {
    width: 100%;
    height: 32px;
    padding: 0 10px 0 30px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.am-search-input:focus[b-zz26btw6is] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.am-btn-primary[b-zz26btw6is] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.am-btn-primary:hover[b-zz26btw6is] {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(15, 23, 42, 0.12);
}

/* ── 3. KPI / Stat Cards Grid ───────────────────────────────── */
.am-stats-grid[b-zz26btw6is] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex-shrink: 0;
}

.am-stat-card[b-zz26btw6is] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 7px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.am-stat-card[b-zz26btw6is]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.am-card-total[b-zz26btw6is]::before {
    background: #3b82f6;
}

.am-card-city[b-zz26btw6is]::before {
    background: #10b981;
}

.am-card-charge[b-zz26btw6is]::before {
    background: #f59e0b;
}

.am-card-pincode[b-zz26btw6is]::before {
    background: #6366f1;
}

.am-stat-card:hover[b-zz26btw6is] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.am-stat-top[b-zz26btw6is] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.am-stat-icon-wrap[b-zz26btw6is] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.am-stat-icon-wrap .material-symbols-outlined[b-zz26btw6is] {
    font-size: 15px;
}

.am-stat-tag[b-zz26btw6is] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.am-stat-tag .material-symbols-outlined[b-zz26btw6is] {
    font-size: 13px;
}

.am-card-total .am-stat-icon-wrap[b-zz26btw6is] {
    background: #eff6ff;
    color: #3b82f6;
}

.am-card-total .am-stat-tag[b-zz26btw6is] {
    background: #eff6ff;
    color: #2563eb;
}

.am-card-city .am-stat-icon-wrap[b-zz26btw6is] {
    background: #ecfdf5;
    color: #10b981;
}

.am-card-city .am-stat-tag[b-zz26btw6is] {
    background: #ecfdf5;
    color: #059669;
}

.am-card-charge .am-stat-icon-wrap[b-zz26btw6is] {
    background: #fffbeb;
    color: #f59e0b;
}

.am-card-charge .am-stat-tag[b-zz26btw6is] {
    background: #fffbeb;
    color: #d97706;
}

.am-card-pincode .am-stat-icon-wrap[b-zz26btw6is] {
    background: #eef2ff;
    color: #6366f1;
}

.am-card-pincode .am-stat-tag[b-zz26btw6is] {
    background: #eef2ff;
    color: #4f46e5;
}

.am-stat-mid[b-zz26btw6is] {
    margin-top: 1px;
}

.am-stat-label[b-zz26btw6is] {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.am-stat-bottom[b-zz26btw6is] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.am-stat-val[b-zz26btw6is] {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.am-stat-subtext[b-zz26btw6is] {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── 4. Table Card Container (Single Viewport) ─────────────── */
.am-table-card[b-zz26btw6is] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.am-table-container[b-zz26btw6is] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

.am-table[b-zz26btw6is] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    text-align: left;
}

/* Light Slate Sticky Header */
.am-thead[b-zz26btw6is] {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8fafc !important;
}

.am-th[b-zz26btw6is] {
    background-color: #f8fafc !important;
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    padding: 9px 12px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: none !important;
    white-space: nowrap;
    user-select: none;
}

.am-tbody tr[b-zz26btw6is] {
    background-color: #ffffff;
    transition: background-color 0.12s ease;
}

.am-tbody tr:hover[b-zz26btw6is] {
    background-color: #f8fafc;
}

.am-td[b-zz26btw6is] {
    padding: 7px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
    font-size: 13px;
}

.am-badge-pill[b-zz26btw6is] {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.am-badge-charge[b-zz26btw6is] {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.am-badge-zero[b-zz26btw6is] {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

/* Action buttons in row */
.am-row-actions[b-zz26btw6is] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.am-btn-icon-action[b-zz26btw6is] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: #f8fafc;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.am-btn-icon-action:hover[b-zz26btw6is] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.am-btn-icon-delete:hover[b-zz26btw6is] {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
}

.am-btn-icon-action .material-symbols-outlined[b-zz26btw6is] {
    font-size: 15px;
}

/* ── 5. Pagination Footer ───────────────────────────────────── */
.am-pagination-bar[b-zz26btw6is] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 14px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
    font-size: 11.5px;
    color: #64748b;
}

.am-page-controls[b-zz26btw6is] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.am-btn-page[b-zz26btw6is] {
    height: 26px;
    min-width: 26px;
    padding: 0 6px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.am-btn-page:hover:not(:disabled)[b-zz26btw6is] {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.am-btn-page:disabled[b-zz26btw6is] {
    opacity: 0.4;
    cursor: not-allowed;
}

.am-btn-page .material-symbols-outlined[b-zz26btw6is] {
    font-size: 14px;
}

/* ── 6. Modal Form Overlay & Card ───────────────────────────── */
.am-modal-overlay[b-zz26btw6is] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 16px;
}

.am-modal-card[b-zz26btw6is] {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 540px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.am-modal-header[b-zz26btw6is] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.am-modal-title[b-zz26btw6is] {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.am-modal-close-btn[b-zz26btw6is] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.am-modal-close-btn:hover[b-zz26btw6is] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.am-modal-body[b-zz26btw6is] {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.am-form-group[b-zz26btw6is] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.am-field-label[b-zz26btw6is] {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.am-input[b-zz26btw6is] {
    width: 100%;
    height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 12.5px;
    color: #1e293b;
    background: #ffffff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.am-input:focus[b-zz26btw6is] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.am-modal-footer[b-zz26btw6is] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}
/* /Components/Pages/Billing.razor.rz.scp.css */
/* ═══════════════════════════════════════════════════════════════
   LABCARE ELITE — BILLING PAGE CONTAINER QUERIES & RESPONSIVE LAYOUT
   Breakpoints: >=1160px 3-col | 700-1159px 2-col | <700px 1-col
   ═══════════════════════════════════════════════════════════════ */

.billing-page-wrapper[b-v8fmpo7tqh] {
    container-type: inline-size;
    container-name: bl-page;
    min-height: 100% !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
}

.billing-page-wrapper .bl-header-bar[b-v8fmpo7tqh] {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08) !important;
    backdrop-filter: blur(8px) !important;
}

html.dark-mode .billing-page-wrapper .bl-header-bar[b-v8fmpo7tqh] {
    background: #1e293b !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
}

.billing-page-wrapper .bl-main-grid[b-v8fmpo7tqh] {
    overflow: visible !important;
    height: auto !important;
    padding-bottom: 95px !important;
}

.billing-page-wrapper .bl-col[b-v8fmpo7tqh],
.billing-page-wrapper .bl-col-left[b-v8fmpo7tqh],
.billing-page-wrapper .bl-col-mid[b-v8fmpo7tqh],
.billing-page-wrapper .bl-col-right[b-v8fmpo7tqh] {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
}

.billing-page-wrapper .patient-card[b-v8fmpo7tqh],
.billing-page-wrapper .referral-card[b-v8fmpo7tqh],
.billing-page-wrapper .finance-card[b-v8fmpo7tqh],
.billing-page-wrapper .payment-card[b-v8fmpo7tqh],
.billing-page-wrapper .collection-card[b-v8fmpo7tqh],
.billing-page-wrapper .bl-card[b-v8fmpo7tqh] {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* 1. FULL CONTAINER (>= 1160px) — 3-Column Layout */
@container bl-page (min-width: 1160px) {
    .billing-page-wrapper .bl-main-grid[b-v8fmpo7tqh] {
        display: grid !important;
        grid-template-columns: minmax(460px, 500px) minmax(420px, 1fr) minmax(290px, 320px) !important;
        gap: 16px !important;
        align-items: start !important;
    }

    .billing-page-wrapper .bl-col-left[b-v8fmpo7tqh] {
        grid-column: 1 !important;
        grid-row: auto !important;
        width: 100% !important;
    }

    .billing-page-wrapper .bl-col-mid[b-v8fmpo7tqh] {
        grid-column: 2 !important;
        grid-row: auto !important;
        width: 100% !important;
    }

    .billing-page-wrapper .bl-col-right[b-v8fmpo7tqh] {
        grid-column: 3 !important;
        grid-row: auto !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    .billing-page-wrapper .bl-header-bar[b-v8fmpo7tqh] {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
    }
}

/* 2. TWO-COL CONTAINER (700px – 1159px) — 2-Column Optimized Layout */
@container bl-page (min-width: 700px) and (max-width: 1159px) {
    /* Header Bar: 3 Columns x 2 Rows */
    .billing-page-wrapper .bl-header-bar[b-v8fmpo7tqh] {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px 16px !important;
        padding: 10px 16px !important;
        overflow: visible !important;
    }

    /* Hide divider lines and spacer so they do not consume grid cells */
    .billing-page-wrapper .bl-header-divider[b-v8fmpo7tqh],
    .billing-page-wrapper .bl-header-spacer[b-v8fmpo7tqh] {
        display: none !important;
    }

    .billing-page-wrapper .bl-header-item[b-v8fmpo7tqh] {
        width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
    }

    .billing-page-wrapper .header-select[b-v8fmpo7tqh],
    .billing-page-wrapper .branch-select-width[b-v8fmpo7tqh] {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .billing-page-wrapper .bl-header-bar .bl-select[b-v8fmpo7tqh] {
        width: 100% !important;
    }

    .billing-page-wrapper .bl-patient-type-item[b-v8fmpo7tqh] {
        margin-left: 0 !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    .billing-page-wrapper .bl-patient-type-item .bl-label[b-v8fmpo7tqh] {
        text-align: left !important;
    }

    .billing-page-wrapper .bl-patient-type-pill[b-v8fmpo7tqh] {
        display: flex !important;
        width: 100% !important;
        gap: 4px !important;
    }

    .billing-page-wrapper .bl-patient-type-pill .bl-pt-btn[b-v8fmpo7tqh] {
        flex: 1 1 0 !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .billing-page-wrapper .bl-header-time-box[b-v8fmpo7tqh],
    .billing-page-wrapper .bl-datetime-inline[b-v8fmpo7tqh],
    .billing-page-wrapper .bl-billno-badge[b-v8fmpo7tqh] {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Main Grid: 2 Columns */
    .billing-page-wrapper .bl-main-grid[b-v8fmpo7tqh] {
        display: grid !important;
        grid-template-columns: minmax(430px, 470px) minmax(380px, 1fr) !important;
        gap: 16px !important;
        align-items: start !important;
    }

    /* Column 1, Row 1: Patient Info */
    .billing-page-wrapper .bl-col-left[b-v8fmpo7tqh] {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 100% !important;
    }

    /* Column 2, Row 1: Referral Details & Tests Table */
    .billing-page-wrapper .bl-col-mid[b-v8fmpo7tqh] {
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    /* Row 2: Across Both Columns */
    .billing-page-wrapper .bl-col-right[b-v8fmpo7tqh] {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 16px !important;
        align-items: start !important;
    }

    .billing-page-wrapper .bl-col-right .collection-card[b-v8fmpo7tqh] {
        grid-column: 1 / -1 !important;
        margin-bottom: 0 !important;
        padding: 8px 14px !important;
    }

    .billing-page-wrapper .bl-col-right .finance-card[b-v8fmpo7tqh] {
        grid-column: 1 !important;
        margin-bottom: 0 !important;
        height: auto !important;
    }

    .billing-page-wrapper .bl-col-right .payment-card[b-v8fmpo7tqh] {
        grid-column: 2 !important;
        margin-bottom: 0 !important;
        height: auto !important;
    }

    .billing-page-wrapper .bl-col-right .bl-card[b-v8fmpo7tqh] {
        margin-bottom: 0 !important;
    }
}

/* 3. SINGLE-COL CONTAINER (< 700px) — 1 Column Vertical Stack */
@container bl-page (max-width: 699px) {
    .billing-page-wrapper .bl-header-bar[b-v8fmpo7tqh] {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        padding: 10px !important;
        overflow: visible !important;
    }

    .billing-page-wrapper .bl-header-divider[b-v8fmpo7tqh],
    .billing-page-wrapper .bl-header-spacer[b-v8fmpo7tqh] {
        display: none !important;
    }

    .billing-page-wrapper .bl-header-item[b-v8fmpo7tqh] {
        width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
    }

    .billing-page-wrapper .header-select[b-v8fmpo7tqh],
    .billing-page-wrapper .branch-select-width[b-v8fmpo7tqh] {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .billing-page-wrapper .bl-patient-type-item[b-v8fmpo7tqh] {
        margin-left: 0 !important;
        min-width: 0 !important;
        width: 100% !important;
        grid-column: span 2 !important;
    }

    .billing-page-wrapper .bl-patient-type-item .bl-label[b-v8fmpo7tqh] {
        text-align: left !important;
    }

    .billing-page-wrapper .bl-patient-type-pill[b-v8fmpo7tqh] {
        display: flex !important;
        width: 100% !important;
    }

    .billing-page-wrapper .bl-patient-type-pill .bl-pt-btn[b-v8fmpo7tqh] {
        flex: 1 !important;
        justify-content: center !important;
    }

    .billing-page-wrapper .bl-main-grid[b-v8fmpo7tqh] {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
    }

    .billing-page-wrapper .bl-col-left[b-v8fmpo7tqh],
    .billing-page-wrapper .bl-col-mid[b-v8fmpo7tqh],
    .billing-page-wrapper .bl-col-right[b-v8fmpo7tqh] {
        grid-column: auto !important;
        grid-row: auto !important;
        width: 100% !important;
    }

    .billing-page-wrapper .bl-bottom-bar[b-v8fmpo7tqh] {
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 8px 12px !important;
    }

    .billing-page-wrapper .bl-bottom-bar .bbar-left[b-v8fmpo7tqh],
    .billing-page-wrapper .bl-bottom-bar .bbar-right[b-v8fmpo7tqh] {
        width: 100% !important;
        justify-content: space-between !important;
        flex-wrap: wrap !important;
    }
}

/* 4. TOUCH ERGONOMICS & STICKY BOTTOM BAR */
.billing-page-wrapper .bl-bottom-bar[b-v8fmpo7tqh] {
    position: sticky !important;
    bottom: 0 !important;
    bottom: env(safe-area-inset-bottom, 0px) !important;
    z-index: 100 !important;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.16) !important;
    background: #ffffff !important;
    margin-top: auto !important;
    backdrop-filter: blur(8px) !important;
    border-top: 1.5px solid #cbd5e1 !important;
    padding: 10px 18px calc(10px + env(safe-area-inset-bottom, 0px)) 18px !important;
}

html.dark-mode .billing-page-wrapper .bl-bottom-bar[b-v8fmpo7tqh] {
    background: #1e293b !important;
    border-top-color: #334155 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5) !important;
}

.billing-page-wrapper .bl-bottom-bar .bl-btn[b-v8fmpo7tqh] {
    min-height: 38px !important;
    height: 38px !important;
    touch-action: manipulation !important;
    cursor: pointer !important;
}

/* Test table touch scrolling & full width visibility */
.billing-page-wrapper .bl-table-container[b-v8fmpo7tqh] {
    -webkit-overflow-scrolling: touch !important;
    overflow-x: auto !important;
}

.billing-page-wrapper .bl-table[b-v8fmpo7tqh] {
    min-width: 520px !important;
}
/* /Components/Pages/BillingLogs.razor.rz.scp.css */
/* ==========================================================================
   BILLING ACTIVITY LOGS & AUDIT TRAIL — MODERN OBSIDIAN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Layout Wrapper ─────────────────────────── */
.bl-page-root[b-bgrw5yyl2m] {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 52px);
    min-height: calc(100vh - 52px);
    max-height: calc(100vh - 52px);
    flex: 1 1 auto;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.bl-top-bar[b-bgrw5yyl2m] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.bl-title-block[b-bgrw5yyl2m] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bl-title-icon-wrap[b-bgrw5yyl2m] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bl-title-icon-wrap .material-symbols-outlined[b-bgrw5yyl2m] {
    font-size: 20px;
}

.bl-breadcrumbs[b-bgrw5yyl2m] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.bl-breadcrumb-link[b-bgrw5yyl2m] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.bl-breadcrumb-link:hover[b-bgrw5yyl2m] {
    color: #2563eb;
}

.bl-breadcrumb-sep[b-bgrw5yyl2m] {
    font-size: 11px;
}

.bl-page-title[b-bgrw5yyl2m] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bl-badge-directory[b-bgrw5yyl2m] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bl-live-dot[b-bgrw5yyl2m] {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.bl-top-actions[b-bgrw5yyl2m] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bl-btn-secondary[b-bgrw5yyl2m] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    padding: 0 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.bl-btn-secondary:hover[b-bgrw5yyl2m] {
    background: #f1f5f9;
    color: #0f172a;
}

.bl-btn-primary[b-bgrw5yyl2m] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 14px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.bl-btn-primary:hover[b-bgrw5yyl2m] {
    background: #1e293b;
    box-shadow: 0 3px 6px rgba(15, 23, 42, 0.12);
    transform: translateY(-0.5px);
}

/* ── 3. KPI / Stat Cards Grid ───────────────────────────────── */
.bl-stats-grid[b-bgrw5yyl2m] {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
    margin-bottom: 0 !important;
}

.bl-stat-card[b-bgrw5yyl2m] {
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    height: 68px !important;
    box-sizing: border-box !important;
}

.bl-stat-card[b-bgrw5yyl2m]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2.5px;
}

.bl-card-total[b-bgrw5yyl2m]::before { background: #0284c7; }
.bl-card-billing[b-bgrw5yyl2m]::before { background: #2563eb; }
.bl-card-specimen[b-bgrw5yyl2m]::before { background: #9333ea; }
.bl-card-auth[b-bgrw5yyl2m]::before { background: #16a34a; }

.bl-stat-top[b-bgrw5yyl2m] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bl-stat-icon-wrap[b-bgrw5yyl2m] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bl-card-total .bl-stat-icon-wrap[b-bgrw5yyl2m] { background: #f0f9ff; color: #0284c7; }
.bl-card-billing .bl-stat-icon-wrap[b-bgrw5yyl2m] { background: #eff6ff; color: #2563eb; }
.bl-card-specimen .bl-stat-icon-wrap[b-bgrw5yyl2m] { background: #f5f3ff; color: #9333ea; }
.bl-card-auth .bl-stat-icon-wrap[b-bgrw5yyl2m] { background: #ecfdf5; color: #16a34a; }

.bl-stat-icon-wrap .material-symbols-outlined[b-bgrw5yyl2m] {
    font-size: 15px;
}

.bl-stat-tag[b-bgrw5yyl2m] {
    font-size: 9.5px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
}

.bl-card-total .bl-stat-tag[b-bgrw5yyl2m] { background: #e0f2fe; color: #0369a1; }
.bl-card-billing .bl-stat-tag[b-bgrw5yyl2m] { background: #eff6ff; color: #1e40af; }
.bl-card-specimen .bl-stat-tag[b-bgrw5yyl2m] { background: #fae8ff; color: #86198f; }
.bl-card-auth .bl-stat-tag[b-bgrw5yyl2m] { background: #dcfce7; color: #15803d; }

.bl-stat-mid[b-bgrw5yyl2m] {
    margin-top: 1px;
}

.bl-stat-label[b-bgrw5yyl2m] {
    font-size: 9.5px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.bl-stat-bottom[b-bgrw5yyl2m] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.bl-stat-val[b-bgrw5yyl2m] {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.bl-stat-subtext[b-bgrw5yyl2m] {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── 4. Filter Bar ──────────────────────────────────────────── */
.bl-filter-card[b-bgrw5yyl2m] {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    padding: 8px 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    margin-bottom: 0 !important;
}

.bl-filter-grid[b-bgrw5yyl2m] {
    display: grid;
    grid-template-columns: 140px 140px 150px 160px 1fr;
    gap: 8px;
    align-items: end;
}

.bl-filter-group[b-bgrw5yyl2m] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bl-filter-label[b-bgrw5yyl2m] {
    font-size: 9.5px;
    font-weight: 750;
    color: #64748b;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bl-input[b-bgrw5yyl2m] {
    height: 28px;
    padding: 0 8px;
    font-size: 11.5px;
    color: #1e293b;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    outline: none;
    transition: all 0.15s ease;
    box-sizing: border-box;
    width: 100%;
}

.bl-input:focus[b-bgrw5yyl2m] {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

/* ── 5. Main Table Container (Single-Viewport) ──────────────── */
.bl-table-card[b-bgrw5yyl2m] {
    background: #ffffff !important;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
}

.bl-table-container[b-bgrw5yyl2m] {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow-y: auto !important;
    overflow-x: auto !important;
}

.bl-table-container[b-bgrw5yyl2m]::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.bl-table-container[b-bgrw5yyl2m]::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.bl-table[b-bgrw5yyl2m] {
    width: 100%;
    border-collapse: collapse;
    font-size: 11.5px;
    text-align: left;
}

.bl-table thead[b-bgrw5yyl2m],
.bl-table thead tr[b-bgrw5yyl2m],
.bl-thead[b-bgrw5yyl2m] {
    position: sticky !important;
    top: 0 !important;
    background: #f8fafc !important;
    background-image: none !important;
    z-index: 10;
    box-shadow: inset 0 -1px 0 #e2e8f0;
}

.bl-table th[b-bgrw5yyl2m],
.bl-th[b-bgrw5yyl2m] {
    background: #f8fafc !important;
    background-color: #f8fafc !important;
    background-image: none !important;
    padding: 8px 12px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    border-bottom: 1px solid #e2e8f0 !important;
    user-select: none;
}

.bl-table th span[b-bgrw5yyl2m],
.bl-th span[b-bgrw5yyl2m],
.bl-table th .th-icon-wrap[b-bgrw5yyl2m],
.bl-th .th-icon-wrap[b-bgrw5yyl2m] {
    background: transparent !important;
    color: #475569 !important;
}

.bl-tbody tr[b-bgrw5yyl2m] {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.12s ease;
}

.bl-tbody tr:hover[b-bgrw5yyl2m] {
    background: #f8fafc;
}

.bl-td[b-bgrw5yyl2m] {
    padding: 7px 12px;
    color: #1e293b;
    vertical-align: middle;
}

/* Badges */
.bl-badge[b-bgrw5yyl2m] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 5px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.bl-badge-module-billing[b-bgrw5yyl2m] { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.bl-badge-module-specimen[b-bgrw5yyl2m] { background: #faf5ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.bl-badge-module-result[b-bgrw5yyl2m] { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.bl-badge-module-authorization[b-bgrw5yyl2m] { background: #ecfeff; color: #0e7490; border: 1px solid #a5f3fc; }

.bl-badge-event-create[b-bgrw5yyl2m] { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.bl-badge-event-update[b-bgrw5yyl2m] { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.bl-badge-event-delete[b-bgrw5yyl2m] { background: #fef2f2; color: #b91c1c; border: 1px solid #fca5a5; }
.bl-badge-event-cancel[b-bgrw5yyl2m] { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.bl-badge-event-print[b-bgrw5yyl2m] { background: #f8fafc; color: #475569; border: 1px solid #cbd5e1; }
.bl-badge-event-result[b-bgrw5yyl2m] { background: #faf5ff; color: #6b21a8; border: 1px solid #e9d5ff; }
.bl-badge-event-auth[b-bgrw5yyl2m] { background: #ecfeff; color: #0f766e; border: 1px solid #99f6e4; }

.bl-bill-badge[b-bgrw5yyl2m] {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    font-family: monospace;
    font-weight: 700;
    font-size: 11.5px;
    letter-spacing: 0.02em;
}

.bl-user-badge[b-bgrw5yyl2m] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    font-weight: 700;
    font-size: 11px;
}

.bl-btn-icon[b-bgrw5yyl2m] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.bl-btn-icon:hover[b-bgrw5yyl2m] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.bl-btn-icon .material-symbols-outlined[b-bgrw5yyl2m] {
    font-size: 15px;
}

/* ── 6. Pagination Footer ───────────────────────────────────── */
.bl-pagination[b-bgrw5yyl2m] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 6px 14px;
    font-size: 11px;
    color: #64748b;
    flex-shrink: 0;
    gap: 12px;
}

.bl-pagination-left[b-bgrw5yyl2m] {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bl-pagesize-wrap[b-bgrw5yyl2m] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #64748b;
}

.bl-pagesize-select[b-bgrw5yyl2m] {
    height: 24px;
    padding: 0 6px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
    cursor: pointer;
}

.bl-pagesize-select:focus[b-bgrw5yyl2m] {
    border-color: #2563eb;
}

.bl-page-btns[b-bgrw5yyl2m] {
    display: flex;
    align-items: center;
    gap: 3px;
}

.bl-page-btn[b-bgrw5yyl2m] {
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.bl-page-btn:hover:not(:disabled)[b-bgrw5yyl2m] {
    background: #f1f5f9;
    color: #0f172a;
}

.bl-page-btn.active[b-bgrw5yyl2m] {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.bl-page-btn:disabled[b-bgrw5yyl2m] {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── 7. Details Modal ───────────────────────────────────────── */
.bl-modal-overlay[b-bgrw5yyl2m] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    padding: 16px;
}

.bl-modal-card[b-bgrw5yyl2m] {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideUp-b-bgrw5yyl2m 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp-b-bgrw5yyl2m {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.bl-modal-header[b-bgrw5yyl2m] {
    background: #0f172a;
    color: #ffffff;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.bl-modal-title-wrap[b-bgrw5yyl2m] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bl-modal-title[b-bgrw5yyl2m] {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.bl-modal-close-btn[b-bgrw5yyl2m] {
    background: transparent;
    border: none;
    color: #94a3b8;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.bl-modal-close-btn:hover[b-bgrw5yyl2m] {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.bl-modal-body[b-bgrw5yyl2m] {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bl-modal-body[b-bgrw5yyl2m]::-webkit-scrollbar {
    width: 5px;
}
.bl-modal-body[b-bgrw5yyl2m]::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.bl-modal-footer[b-bgrw5yyl2m] {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.bl-modal-icon-badge[b-bgrw5yyl2m] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bl-modal-sub-id[b-bgrw5yyl2m] {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 2px;
}

.bl-overview-grid[b-bgrw5yyl2m] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.bl-overview-card[b-bgrw5yyl2m] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bl-overview-title[b-bgrw5yyl2m] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding-bottom: 6px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 2px;
}

.bl-overview-row[b-bgrw5yyl2m] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    gap: 8px;
}

.bl-overview-label[b-bgrw5yyl2m] {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
}

.bl-action-banner[b-bgrw5yyl2m] {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.bl-action-banner-icon[b-bgrw5yyl2m] {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #dbeafe;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bl-action-banner-label[b-bgrw5yyl2m] {
    font-size: 10.5px;
    font-weight: 800;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bl-action-banner-text[b-bgrw5yyl2m] {
    font-size: 12.5px;
    font-weight: 600;
    color: #1e293b;
    margin-top: 3px;
    line-height: 1.5;
}

.bl-remarks-box[b-bgrw5yyl2m] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
}

.bl-remarks-label[b-bgrw5yyl2m] {
    font-size: 10.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.bl-remarks-text[b-bgrw5yyl2m] {
    font-size: 12px;
    color: #334155;
    margin-top: 3px;
    line-height: 1.4;
}
/* /Components/Pages/BillNoMaster.razor.rz.scp.css */
/* ==========================================================================
   BILL NO & SAMPLE GENERATION CONFIGURATION — MODERN OBSIDIAN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Layout Wrapper ─────────────────────────── */
.bn-page-root[b-2u7gf49y62] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.bn-top-bar[b-2u7gf49y62] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.bn-title-block[b-2u7gf49y62] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bn-title-icon-wrap[b-2u7gf49y62] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bn-title-icon-wrap .material-symbols-outlined[b-2u7gf49y62] {
    font-size: 20px;
}

.bn-breadcrumbs[b-2u7gf49y62] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.bn-breadcrumb-link[b-2u7gf49y62] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.bn-breadcrumb-link:hover[b-2u7gf49y62] {
    color: #2563eb;
}

.bn-breadcrumb-sep[b-2u7gf49y62] {
    font-size: 11px;
}

.bn-page-title[b-2u7gf49y62] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bn-badge-directory[b-2u7gf49y62] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bn-live-dot[b-2u7gf49y62] {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.bn-top-actions[b-2u7gf49y62] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

/* Filter Pills */
.bn-filter-pills[b-2u7gf49y62] {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 2px 4px;
    border-radius: 6px;
    gap: 4px;
}

.bn-filter-pill[b-2u7gf49y62] {
    border: none;
    background: transparent;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.bn-filter-pill:hover[b-2u7gf49y62] {
    color: #0f172a;
}

.bn-filter-pill.active[b-2u7gf49y62] {
    background: #0f172a;
    color: #ffffff;
    font-weight: 700;
}

/* Search input */
.bn-search-wrap[b-2u7gf49y62] {
    position: relative;
    display: flex;
    align-items: center;
}

.bn-search-wrap .material-symbols-outlined[b-2u7gf49y62] {
    position: absolute;
    left: 9px;
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.bn-search-input[b-2u7gf49y62] {
    width: 200px;
    height: 32px;
    padding: 0 26px 0 30px;
    font-size: 11.5px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #1e293b;
    outline: none;
    transition: all 0.2s ease;
}

.bn-search-input:focus[b-2u7gf49y62] {
    width: 240px;
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.bn-search-clear[b-2u7gf49y62] {
    position: absolute;
    right: 7px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bn-search-clear:hover[b-2u7gf49y62] {
    color: #ef4444;
}

.bn-btn-primary[b-2u7gf49y62] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 14px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.bn-btn-primary:hover[b-2u7gf49y62] {
    background: #1e293b;
    box-shadow: 0 3px 6px rgba(15, 23, 42, 0.12);
    transform: translateY(-0.5px);
}

/* ── 3. KPI / Stat Cards Grid ───────────────────────────────── */
.bn-stats-grid[b-2u7gf49y62] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex-shrink: 0;
}

.bn-stat-card[b-2u7gf49y62] {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    padding: 8px 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bn-stat-card[b-2u7gf49y62]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
}

.bn-card-total[b-2u7gf49y62]::before { background: #2563eb; }
.bn-card-coverage[b-2u7gf49y62]::before { background: #10b981; }
.bn-card-branch[b-2u7gf49y62]::before { background: #0284c7; }
.bn-card-cadence[b-2u7gf49y62]::before { background: #8b5cf6; }

.bn-stat-top[b-2u7gf49y62] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

.bn-stat-icon-wrap[b-2u7gf49y62] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bn-card-total .bn-stat-icon-wrap[b-2u7gf49y62] { background: #eff6ff; color: #2563eb; }
.bn-card-coverage .bn-stat-icon-wrap[b-2u7gf49y62] { background: #ecfdf5; color: #10b981; }
.bn-card-branch .bn-stat-icon-wrap[b-2u7gf49y62] { background: #f0f9ff; color: #0284c7; }
.bn-card-cadence .bn-stat-icon-wrap[b-2u7gf49y62] { background: #f5f3ff; color: #8b5cf6; }

.bn-stat-icon-wrap .material-symbols-outlined[b-2u7gf49y62] {
    font-size: 16px;
}

.bn-stat-tag[b-2u7gf49y62] {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
}

.bn-card-total .bn-stat-tag[b-2u7gf49y62] { background: #f1f5f9; color: #475569; }
.bn-card-coverage .bn-stat-tag[b-2u7gf49y62] { background: #dcfce7; color: #15803d; }
.bn-card-branch .bn-stat-tag[b-2u7gf49y62] { background: #e0f2fe; color: #0369a1; }
.bn-card-cadence .bn-stat-tag[b-2u7gf49y62] { background: #ede9fe; color: #6d28d9; }

.bn-stat-label[b-2u7gf49y62] {
    font-size: 9.5px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.bn-stat-bottom[b-2u7gf49y62] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.bn-stat-val[b-2u7gf49y62] {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.bn-stat-subtext[b-2u7gf49y62] {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── 4. Main Body Container (Single-Viewport) ───────────────── */
.bn-main-content[b-2u7gf49y62] {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    gap: 8px;
    overflow: hidden;
}

/* Table Card Container */
.bn-table-card[b-2u7gf49y62] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.bn-table-container[b-2u7gf49y62] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
}

.bn-table-container[b-2u7gf49y62]::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.bn-table-container[b-2u7gf49y62]::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.bn-table[b-2u7gf49y62] {
    width: 100%;
    border-collapse: collapse;
    font-size: 11.5px;
    text-align: left;
}

.bn-thead[b-2u7gf49y62] {
    position: sticky;
    top: 0;
    background: #f8fafc;
    z-index: 10;
    box-shadow: inset 0 -1px 0 #e2e8f0;
}

.bn-th[b-2u7gf49y62] {
    padding: 8px 12px;
    font-size: 10px;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    border-bottom: 1px solid #e2e8f0;
    user-select: none;
}

.bn-tbody tr[b-2u7gf49y62] {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.12s ease;
}

.bn-tbody tr:hover[b-2u7gf49y62] {
    background: #f8fafc;
}

.bn-td[b-2u7gf49y62] {
    padding: 7px 12px;
    color: #1e293b;
    vertical-align: middle;
}

/* Table Elements */
.bn-order-pill[b-2u7gf49y62] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    background: #eff6ff;
    color: #2563eb;
    font-weight: 700;
    font-size: 11px;
    border-radius: 6px;
    padding: 0 4px;
}

.bn-name-cell[b-2u7gf49y62] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bn-name-title[b-2u7gf49y62] {
    font-weight: 700;
    color: #0f172a;
    font-size: 12px;
}

.bn-name-sub[b-2u7gf49y62] {
    font-size: 10.5px;
    color: #64748b;
}

.bn-type-badge[b-2u7gf49y62] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
}

.bn-type-sample[b-2u7gf49y62] {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.bn-type-bill[b-2u7gf49y62] {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.bn-restart-pill[b-2u7gf49y62] {
    display: inline-flex;
    align-items: center;
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 5px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.bn-chip-list[b-2u7gf49y62] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 240px;
}

.bn-chip[b-2u7gf49y62] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10.5px;
    font-weight: 500;
    padding: 1px 6px;
    border-radius: 4px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.bn-chip-accent[b-2u7gf49y62] {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
    font-weight: 600;
}

/* Action Buttons */
.bn-actions-wrap[b-2u7gf49y62] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.bn-btn-action[b-2u7gf49y62] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.bn-btn-action .material-symbols-outlined[b-2u7gf49y62] {
    font-size: 15px;
}

.bn-btn-edit:hover[b-2u7gf49y62] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.bn-btn-delete:hover[b-2u7gf49y62] {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
}

/* ── 5. Coverage Checker Bottom Panel ───────────────────────── */
.bn-coverage-panel[b-2u7gf49y62] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    max-height: 180px;
    overflow-y: auto;
}

.bn-coverage-panel[b-2u7gf49y62]::-webkit-scrollbar {
    width: 5px;
}
.bn-coverage-panel[b-2u7gf49y62]::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.bn-coverage-header[b-2u7gf49y62] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.bn-coverage-title-wrap[b-2u7gf49y62] {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bn-coverage-title[b-2u7gf49y62] {
    font-size: 11px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.bn-coverage-sub[b-2u7gf49y62] {
    font-size: 10.5px;
    color: #64748b;
}

.bn-coverage-branches[b-2u7gf49y62] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bn-branch-group[b-2u7gf49y62] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bn-branch-name-tag[b-2u7gf49y62] {
    font-size: 10.5px;
    font-weight: 700;
    color: #334155;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.bn-counters-list[b-2u7gf49y62] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bn-counter-badge[b-2u7gf49y62] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 600;
    transition: all 0.15s ease;
}

.bn-counter-covered[b-2u7gf49y62] {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.bn-counter-missing[b-2u7gf49y62] {
    background: #fff1f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    animation: pulseMissing-b-2u7gf49y62 2s infinite;
}

@keyframes pulseMissing-b-2u7gf49y62 {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

.bn-counter-dot[b-2u7gf49y62] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.bn-counter-covered .bn-counter-dot[b-2u7gf49y62] { background: #22c55e; }
.bn-counter-missing .bn-counter-dot[b-2u7gf49y62] { background: #ef4444; }

.bn-coverage-banner[b-2u7gf49y62] {
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
}

.bn-banner-success[b-2u7gf49y62] {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #15803d;
}

.bn-banner-warning[b-2u7gf49y62] {
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
}

/* ── 6. Modal Dialog (Obsidian Theme) ───────────────────────── */
.bn-modal-overlay[b-2u7gf49y62] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    padding: 16px;
}

.bn-modal-card[b-2u7gf49y62] {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideUp-b-2u7gf49y62 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp-b-2u7gf49y62 {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.bn-modal-header[b-2u7gf49y62] {
    background: #0f172a;
    color: #ffffff;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.bn-modal-title-wrap[b-2u7gf49y62] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bn-modal-title[b-2u7gf49y62] {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.01em;
}

.bn-modal-badge[b-2u7gf49y62] {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bn-modal-badge-edit[b-2u7gf49y62] {
    background: rgba(234, 179, 8, 0.2);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.bn-modal-badge-new[b-2u7gf49y62] {
    background: rgba(79, 70, 229, 0.25);
    color: #a5b4fc;
    border: 1px solid rgba(79, 70, 229, 0.4);
}

.bn-modal-close-btn[b-2u7gf49y62] {
    background: transparent;
    border: none;
    color: #94a3b8;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.bn-modal-close-btn:hover[b-2u7gf49y62] {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.bn-modal-body[b-2u7gf49y62] {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bn-modal-body[b-2u7gf49y62]::-webkit-scrollbar {
    width: 5px;
}
.bn-modal-body[b-2u7gf49y62]::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

/* Modal Form Layout */
.bn-form-section[b-2u7gf49y62] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
}

.bn-section-title[b-2u7gf49y62] {
    font-size: 11px;
    font-weight: 750;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bn-form-row[b-2u7gf49y62] {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.bn-form-row:last-child[b-2u7gf49y62] {
    margin-bottom: 0;
}

.bn-form-group[b-2u7gf49y62] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.bn-label[b-2u7gf49y62] {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bn-input[b-2u7gf49y62], .bn-select[b-2u7gf49y62] {
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
    color: #1e293b;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    transition: all 0.15s ease;
    box-sizing: border-box;
    width: 100%;
}

.bn-input:focus[b-2u7gf49y62], .bn-select:focus[b-2u7gf49y62] {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.bn-input.is-invalid[b-2u7gf49y62] {
    border-color: #ef4444;
    background: #fffafa;
}

/* Radio Pill Group */
.bn-cadence-grid[b-2u7gf49y62] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.bn-cadence-option[b-2u7gf49y62] {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 6px 8px;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    transition: all 0.15s ease;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.bn-cadence-option:hover[b-2u7gf49y62] {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.bn-cadence-option.selected[b-2u7gf49y62] {
    background: #eef2ff;
    border-color: #6366f1;
    color: #4338ca;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(99, 102, 241, 0.1);
}

/* Mapping Builder & Checkbox List */
.bn-checkbox-container[b-2u7gf49y62] {
    max-height: 110px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bn-checkbox-item[b-2u7gf49y62] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #334155;
    cursor: pointer;
}

.bn-mappings-tags-grid[b-2u7gf49y62] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 6px;
    max-height: 120px;
    overflow-y: auto;
    margin-top: 8px;
}

.bn-mapping-tag-card[b-2u7gf49y62] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.bn-mapping-tag-info[b-2u7gf49y62] {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.bn-tag-branch[b-2u7gf49y62] {
    font-size: 11px;
    font-weight: 700;
    color: #4338ca;
    text-transform: uppercase;
}

.bn-tag-counter[b-2u7gf49y62] {
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
}

/* Switch styling */
.bn-switch-label[b-2u7gf49y62] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}

.bn-modal-footer[b-2u7gf49y62] {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.bn-btn-secondary[b-2u7gf49y62] {
    height: 32px;
    padding: 0 14px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.bn-btn-secondary:hover[b-2u7gf49y62] {
    background: #f1f5f9;
    color: #0f172a;
}

.bn-btn-delete-modal[b-2u7gf49y62] {
    height: 32px;
    padding: 0 12px;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #b91c1c;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bn-btn-delete-modal:hover[b-2u7gf49y62] {
    background: #fecaca;
    color: #991b1b;
}
/* /Components/Pages/Branch.razor.rz.scp.css */
/* ==========================================================================
   BRANCH MASTER — MODERN OBSIDIAN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Layout Wrapper ─────────────────────────── */
.bm-page-root[b-go1jnsyew0] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.bm-top-bar[b-go1jnsyew0] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.bm-title-block[b-go1jnsyew0] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bm-title-icon-wrap[b-go1jnsyew0] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bm-title-icon-wrap .material-symbols-outlined[b-go1jnsyew0] {
    font-size: 20px;
}

.bm-breadcrumbs[b-go1jnsyew0] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.bm-breadcrumb-link[b-go1jnsyew0] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.bm-breadcrumb-link:hover[b-go1jnsyew0] {
    color: #2563eb;
}

.bm-breadcrumb-sep[b-go1jnsyew0] {
    font-size: 11px;
}

.bm-page-title[b-go1jnsyew0] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bm-badge-directory[b-go1jnsyew0] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bm-live-dot[b-go1jnsyew0] {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.bm-top-actions[b-go1jnsyew0] {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Branch Type Filter Pills */
.bm-filter-pills[b-go1jnsyew0] {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f8fafc;
    padding: 2px 4px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.bm-filter-pill[b-go1jnsyew0] {
    padding: 3px 10px;
    border-radius: 4px;
    border: none;
    background: transparent;
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
}

.bm-filter-pill:hover[b-go1jnsyew0] {
    color: #0f172a;
}

.bm-filter-pill.active[b-go1jnsyew0] {
    background: #0f172a;
    color: #ffffff;
}

/* Search input */
.bm-search-wrap[b-go1jnsyew0] {
    position: relative;
    width: 220px;
}

.bm-search-wrap .material-symbols-outlined[b-go1jnsyew0] {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.bm-search-input[b-go1jnsyew0] {
    width: 100%;
    height: 32px;
    padding: 0 10px 0 30px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bm-search-input:focus[b-go1jnsyew0] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.bm-btn-primary[b-go1jnsyew0] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.bm-btn-primary:hover[b-go1jnsyew0] {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(15, 23, 42, 0.12);
}

/* ── 3. KPI / Stat Cards Grid ───────────────────────────────── */
.bm-stats-grid[b-go1jnsyew0] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex-shrink: 0;
}

.bm-stat-card[b-go1jnsyew0] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 7px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.bm-stat-card[b-go1jnsyew0]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.bm-card-total[b-go1jnsyew0]::before    { background: #3b82f6; }
.bm-card-main[b-go1jnsyew0]::before     { background: #10b981; }
.bm-card-sub[b-go1jnsyew0]::before      { background: #6366f1; }
.bm-card-cc[b-go1jnsyew0]::before       { background: #f59e0b; }

.bm-stat-card:hover[b-go1jnsyew0] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.bm-stat-top[b-go1jnsyew0] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bm-stat-icon-wrap[b-go1jnsyew0] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bm-stat-icon-wrap .material-symbols-outlined[b-go1jnsyew0] {
    font-size: 15px;
}

.bm-stat-tag[b-go1jnsyew0] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.bm-stat-tag .material-symbols-outlined[b-go1jnsyew0] {
    font-size: 13px;
}

.bm-card-total .bm-stat-icon-wrap[b-go1jnsyew0]  { background: #eff6ff; color: #3b82f6; }
.bm-card-total .bm-stat-tag[b-go1jnsyew0]        { background: #eff6ff; color: #2563eb; }

.bm-card-main .bm-stat-icon-wrap[b-go1jnsyew0]   { background: #ecfdf5; color: #10b981; }
.bm-card-main .bm-stat-tag[b-go1jnsyew0]         { background: #ecfdf5; color: #059669; }

.bm-card-sub .bm-stat-icon-wrap[b-go1jnsyew0]    { background: #eef2ff; color: #6366f1; }
.bm-card-sub .bm-stat-tag[b-go1jnsyew0]          { background: #eef2ff; color: #4f46e5; }

.bm-card-cc .bm-stat-icon-wrap[b-go1jnsyew0]     { background: #fffbeb; color: #f59e0b; }
.bm-card-cc .bm-stat-tag[b-go1jnsyew0]           { background: #fffbeb; color: #d97706; }

.bm-stat-mid[b-go1jnsyew0] {
    margin-top: 1px;
}

.bm-stat-label[b-go1jnsyew0] {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bm-stat-bottom[b-go1jnsyew0] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.bm-stat-val[b-go1jnsyew0] {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.bm-stat-subtext[b-go1jnsyew0] {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── 4. Table Card Container (Single Viewport) ─────────────── */
.bm-table-card[b-go1jnsyew0] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.bm-table-container[b-go1jnsyew0] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

.bm-table[b-go1jnsyew0] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    text-align: left;
}

/* Light Slate Sticky Header */
.bm-thead[b-go1jnsyew0] {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8fafc !important;
}

.bm-th[b-go1jnsyew0] {
    background-color: #f8fafc !important;
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 8px 12px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: none !important;
    white-space: nowrap;
    user-select: none;
}

.bm-tbody tr[b-go1jnsyew0] {
    background-color: #ffffff;
    transition: background-color 0.12s ease;
}

.bm-tbody tr:hover[b-go1jnsyew0] {
    background-color: #f8fafc;
}

.bm-td[b-go1jnsyew0] {
    padding: 6px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
    font-size: 12px;
}

.bm-badge-pill[b-go1jnsyew0] {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.bm-badge-main[b-go1jnsyew0] {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.bm-badge-sub[b-go1jnsyew0] {
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
}

.bm-badge-cc[b-go1jnsyew0] {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.bm-badge-feetype[b-go1jnsyew0] {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* Action buttons in row */
.bm-row-actions[b-go1jnsyew0] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bm-btn-icon-action[b-go1jnsyew0] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: #f8fafc;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.bm-btn-icon-action:hover[b-go1jnsyew0] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.bm-btn-icon-delete:hover[b-go1jnsyew0] {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
}

.bm-btn-icon-action .material-symbols-outlined[b-go1jnsyew0] {
    font-size: 15px;
}

/* ── 5. Pagination Footer ───────────────────────────────────── */
.bm-pagination-bar[b-go1jnsyew0] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 14px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
    font-size: 11.5px;
    color: #64748b;
}

.bm-page-controls[b-go1jnsyew0] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.bm-btn-page[b-go1jnsyew0] {
    height: 26px;
    min-width: 26px;
    padding: 0 6px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.bm-btn-page:hover:not(:disabled)[b-go1jnsyew0] {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.bm-btn-page:disabled[b-go1jnsyew0] {
    opacity: 0.4;
    cursor: not-allowed;
}

.bm-btn-page .material-symbols-outlined[b-go1jnsyew0] {
    font-size: 14px;
}

/* ── 6. Modal Form Overlay & Card ───────────────────────────── */
.bm-modal-overlay[b-go1jnsyew0] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 16px;
}

.bm-modal-card[b-go1jnsyew0] {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 90vh;
}

.bm-modal-card-sm[b-go1jnsyew0] {
    max-width: 440px;
}

.bm-modal-header[b-go1jnsyew0] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.bm-modal-title[b-go1jnsyew0] {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.bm-modal-close-btn[b-go1jnsyew0] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.bm-modal-close-btn:hover[b-go1jnsyew0] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.bm-modal-body[b-go1jnsyew0] {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}

.bm-form-group[b-go1jnsyew0] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bm-field-label[b-go1jnsyew0] {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.bm-input[b-go1jnsyew0] {
    width: 100%;
    height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 12.5px;
    color: #1e293b;
    background: #ffffff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bm-input:focus[b-go1jnsyew0] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.bm-btn-quick-add[b-go1jnsyew0] {
    height: 34px;
    width: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.bm-btn-quick-add:hover[b-go1jnsyew0] {
    background: #1e293b;
}

.bm-modal-footer[b-go1jnsyew0] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.bm-radio-pill[b-go1jnsyew0] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.bm-radio-pill input[b-go1jnsyew0] {
    display: none;
}

.bm-radio-pill.active[b-go1jnsyew0] {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}
/* /Components/Pages/CashAdvice.razor.rz.scp.css */
/* ==========================================================================
   CASH ADVICE / VOUCHER MASTER — SINGLE VIEWPORT MODERN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Main Layout Wrapper ────────────────────── */
.ca-page-root[b-74iubjm395] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.ca-top-bar[b-74iubjm395] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.ca-title-block[b-74iubjm395] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ca-title-icon-wrap[b-74iubjm395] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ca-title-icon-wrap .material-symbols-outlined[b-74iubjm395] {
    font-size: 20px;
}

.ca-breadcrumbs[b-74iubjm395] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.ca-breadcrumb-link[b-74iubjm395] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.ca-breadcrumb-link:hover[b-74iubjm395] {
    color: #2563eb;
}

.ca-breadcrumb-sep[b-74iubjm395] {
    font-size: 11px;
}

.ca-page-title[b-74iubjm395] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ca-badge-directory[b-74iubjm395] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1.5px 6px;
    border-radius: 10px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.ca-live-dot[b-74iubjm395] {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.ca-top-actions[b-74iubjm395] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ca-search-wrap[b-74iubjm395] {
    position: relative;
    width: 260px;
}

.ca-search-wrap .material-symbols-outlined[b-74iubjm395] {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.ca-search-input[b-74iubjm395] {
    width: 100%;
    height: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 10px 0 32px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ca-search-input:focus[b-74iubjm395] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.ca-btn-primary[b-74iubjm395] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ca-btn-primary:hover[b-74iubjm395] {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

.ca-btn-icon[b-74iubjm395] {
    font-size: 16px;
}

/* ── 3. KPI / Stat Cards Grid ───────────────────────────────── */
.ca-stats-grid[b-74iubjm395] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    flex-shrink: 0;
}

@media (max-width: 1100px) {
    .ca-stats-grid[b-74iubjm395] {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ca-stat-card[b-74iubjm395] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 7px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ca-stat-card:hover[b-74iubjm395] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.ca-stat-top[b-74iubjm395] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ca-stat-icon-wrap[b-74iubjm395] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ca-stat-icon-wrap .material-symbols-outlined[b-74iubjm395] {
    font-size: 15px;
}

.ca-stat-tag[b-74iubjm395] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.ca-card-total .ca-stat-icon-wrap[b-74iubjm395] { background: #eff6ff; color: #3b82f6; }
.ca-card-total .ca-stat-tag[b-74iubjm395] { background: #eff6ff; color: #2563eb; }

.ca-card-payment .ca-stat-icon-wrap[b-74iubjm395] { background: #fff1f2; color: #e11d48; }
.ca-card-payment .ca-stat-tag[b-74iubjm395] { background: #fff1f2; color: #be123c; }

.ca-card-receipt .ca-stat-icon-wrap[b-74iubjm395] { background: #f0fdf4; color: #16a34a; }
.ca-card-receipt .ca-stat-tag[b-74iubjm395] { background: #f0fdf4; color: #15803d; }

.ca-card-net .ca-stat-icon-wrap[b-74iubjm395] { background: #eef2ff; color: #6366f1; }
.ca-card-net .ca-stat-tag[b-74iubjm395] { background: #eef2ff; color: #4f46e5; }

.ca-stat-mid[b-74iubjm395] {
    margin-top: 2px;
}

.ca-stat-label[b-74iubjm395] {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    margin: 0;
}

.ca-stat-bottom[b-74iubjm395] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.ca-stat-val[b-74iubjm395] {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1;
}

.ca-stat-subtext[b-74iubjm395] {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
}

/* ── 4. Table Card & Single Viewport Table ─────────────────── */
.ca-table-card[b-74iubjm395] {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    margin-bottom: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
}

.ca-table-container[b-74iubjm395] {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    width: 100%;
}

.ca-table[b-74iubjm395] {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    text-align: left;
}

.ca-thead[b-74iubjm395] {
    background: #f8fafc !important;
}

.ca-th[b-74iubjm395] {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8fafc !important;
    padding: 9px 10px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
    border-top: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-left: none !important;
    border-right: none !important;
    vertical-align: middle !important;
    box-shadow: 0 1px 0 #e2e8f0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ca-tbody tr[b-74iubjm395] {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.12s ease;
}

.ca-tbody tr:hover[b-74iubjm395] {
    background-color: #f8fafc;
}

.ca-td[b-74iubjm395] {
    padding: 7px 10px;
    color: #334155;
    vertical-align: middle;
    border-bottom: 1px solid #f8fafc;
    font-size: 13px;
    overflow: hidden;
}

.ca-text-truncate[b-74iubjm395] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
}

/* Party Cell */
.ca-party-cell[b-74iubjm395] {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    width: 100%;
}

.ca-party-text-wrap[b-74iubjm395] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.ca-avatar[b-74iubjm395] {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    transition: transform 0.15s ease;
}

.ca-avatar:hover[b-74iubjm395] {
    transform: scale(1.08);
}

.ca-avatar-blue[b-74iubjm395] {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.ca-avatar-indigo[b-74iubjm395] {
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
}

.ca-avatar-teal[b-74iubjm395] {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.ca-avatar-amber[b-74iubjm395] {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
}

.ca-party-name[b-74iubjm395] {
    font-weight: 700;
    color: #0f172a;
    font-size: 12.5px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
}

.ca-badge-voucher[b-74iubjm395] {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    white-space: nowrap;
}

/* Pay / Receipt Badges */
.ca-badge-pill[b-74iubjm395] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.ca-badge-payment[b-74iubjm395] {
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
}

.ca-badge-receipt[b-74iubjm395] {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.ca-amt-val[b-74iubjm395] {
    font-weight: 800;
    font-size: 12.5px;
    white-space: nowrap;
}

.ca-amt-payment[b-74iubjm395] {
    color: #e11d48;
}

.ca-amt-receipt[b-74iubjm395] {
    color: #15803d;
}

/* Action Buttons */
.ca-actions-cell[b-74iubjm395] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.ca-btn-edit[b-74iubjm395] {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.ca-btn-edit:hover[b-74iubjm395] {
    background: #2563eb;
    color: #ffffff;
}

.ca-btn-edit .material-symbols-outlined[b-74iubjm395] {
    font-size: 15px;
}

.ca-btn-delete[b-74iubjm395] {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.ca-btn-delete:hover[b-74iubjm395] {
    background: #e11d48;
    color: #ffffff;
}

.ca-btn-delete .material-symbols-outlined[b-74iubjm395] {
    font-size: 15px;
}

/* ── 5. Pagination & Table Footer ─────────────────────────── */
.ca-table-footer[b-74iubjm395] {
    padding: 6px 14px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 10px;
    background: #ffffff;
    font-size: 12px;
}

.ca-page-size-wrap[b-74iubjm395] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.ca-page-size-select[b-74iubjm395] {
    height: 26px;
    padding: 0 6px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    outline: none;
}

.ca-page-info[b-74iubjm395] {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.ca-page-info strong[b-74iubjm395] {
    color: #0f172a;
    font-weight: 700;
}

.ca-pagination-wrap[b-74iubjm395] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ca-page-btn[b-74iubjm395] {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ca-page-btn:hover:not(:disabled)[b-74iubjm395] {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.ca-page-btn.active[b-74iubjm395] {
    background: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
    font-weight: 700;
}

.ca-page-btn:disabled[b-74iubjm395] {
    opacity: 0.4;
    cursor: not-allowed;
}

.ca-page-btn .material-symbols-outlined[b-74iubjm395] {
    font-size: 15px;
}

/* ── 6. Add/Edit Modal Dialog ─────────────────────────────── */
.ca-modal-overlay[b-74iubjm395] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.ca-modal-card[b-74iubjm395] {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
    animation: caModalIn-b-74iubjm395 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes caModalIn-b-74iubjm395 {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.ca-modal-header[b-74iubjm395] {
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafafa;
}

.ca-modal-header h3[b-74iubjm395] {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.ca-modal-close-btn[b-74iubjm395] {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.15s;
}

.ca-modal-close-btn:hover[b-74iubjm395] {
    background: #f1f5f9;
    color: #0f172a;
}

.ca-modal-body[b-74iubjm395] {
    padding: 16px 18px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ca-form-grid[b-74iubjm395] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.ca-form-col-1[b-74iubjm395] { grid-column: span 1; }
.ca-form-col-2[b-74iubjm395] { grid-column: span 2; }

.ca-form-group[b-74iubjm395] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ca-form-label[b-74iubjm395] {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.ca-form-input[b-74iubjm395],
.ca-form-select[b-74iubjm395],
.ca-form-textarea[b-74iubjm395] {
    height: 32px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.ca-form-textarea[b-74iubjm395] {
    height: 60px;
    padding: 6px 10px;
    resize: vertical;
}

.ca-form-input:focus[b-74iubjm395],
.ca-form-select:focus[b-74iubjm395],
.ca-form-textarea:focus[b-74iubjm395] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

/* Type Toggle Buttons */
.ca-type-toggle[b-74iubjm395] {
    display: flex;
    gap: 8px;
    height: 32px;
}

.ca-type-btn[b-74iubjm395] {
    flex: 1;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ca-type-btn.active.payment[b-74iubjm395] {
    background: #fff1f2;
    color: #e11d48;
    border-color: #fecdd3;
}

.ca-type-btn.active.receipt[b-74iubjm395] {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.ca-modal-footer[b-74iubjm395] {
    padding: 10px 18px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    background: #fafafa;
}

.ca-btn-cancel[b-74iubjm395] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.ca-btn-cancel:hover[b-74iubjm395] {
    background: #f1f5f9;
    color: #0f172a;
}

.ca-btn-save[b-74iubjm395] {
    height: 32px;
    padding: 0 18px;
    border-radius: 6px;
    background: #0f172a;
    border: none;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}

.ca-btn-save:hover:not(:disabled)[b-74iubjm395] {
    background: #1e293b;
}

.ca-btn-save:disabled[b-74iubjm395] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── 7. Empty & Loading States ────────────────────────────── */
.ca-empty-state-cell[b-74iubjm395] {
    padding: 60px 20px !important;
    text-align: center !important;
    vertical-align: middle !important;
}

.ca-empty-state[b-74iubjm395] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #64748b;
    font-size: 13.5px;
    font-weight: 500;
    width: 100%;
    margin: 0 auto;
}

.ca-spinner-icon[b-74iubjm395] {
    font-size: 38px !important;
    color: #4f46e5 !important;
    animation: spin 1s linear infinite !important;
}

.ca-spinner-text[b-74iubjm395] {
    color: #475569;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.ca-empty-icon[b-74iubjm395] {
    font-size: 42px !important;
    color: #cbd5e1 !important;
}
/* /Components/Pages/CategoryMaster.razor.rz.scp.css */
/* Isolated styles for CategoryMaster component */

.items-page[b-8g9vebaeve] {
    min-height: 100vh;
    background: transparent !important;
}

.items-shell[b-8g9vebaeve] {
    max-width: 1320px;
    margin: 0 auto;
}

.items-content[b-8g9vebaeve] {
    width: min(1240px, 100%);
    margin: 0 auto;
    text-align: center;
}

.premium-header-card[b-8g9vebaeve] {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-radius: 16px !important;
    padding: 1.25rem 2rem !important;
    color: #1e1b4b !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem !important;
}

.header-card-left[b-8g9vebaeve] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-card-icon[b-8g9vebaeve] {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

.header-card-icon svg[b-8g9vebaeve] {
    stroke: #2563eb !important;
}

.header-card-text[b-8g9vebaeve] {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.header-card-heading[b-8g9vebaeve] {
    color: #0f172a !important;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
}

.header-card-subheading[b-8g9vebaeve] {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b !important;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.status-dot[b-8g9vebaeve] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    margin-right: 6px;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
}

.header-card-right[b-8g9vebaeve] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.items-search-wrap[b-8g9vebaeve] {
    position: relative;
    display: flex;
    align-items: center;
}

.items-search[b-8g9vebaeve] {
    width: 220px;
    height: 38px !important;
    border-radius: 20px !important;
    border: 1px solid #cbd5e1 !important;
    padding-left: 2.4rem !important;
    font-size: 0.8rem !important;
    background: #ffffff !important;
    color: #1e293b !important;
    box-shadow: none !important;
    transition: all 0.25s ease !important;
}

.items-search:focus[b-8g9vebaeve] {
    outline: none !important;
    width: 280px !important;
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

.items-search-icon[b-8g9vebaeve] {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
}

.view-toggle[b-8g9vebaeve] {
    display: inline-flex;
    border: 1px solid #cbd5e1 !important;
    border-radius: 20px !important;
    overflow: hidden;
    background: #f8fafc !important;
    height: 38px;
    padding: 2px;
    align-items: center;
}

.view-toggle button[b-8g9vebaeve] {
    border: 0 !important;
    background: transparent !important;
    color: #64748b !important;
    width: 36px;
    height: 32px;
    border-radius: 16px !important;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle button.active[b-8g9vebaeve] {
    background: #ffffff !important;
    color: #4f46e5 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.add-item-btn[b-8g9vebaeve] {
    height: 38px !important;
    border-radius: 20px !important;
    background: #4f46e5 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0 1.5rem !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
    transition: all 0.2s ease-in-out !important;
}

.add-item-btn:hover[b-8g9vebaeve] {
    background: #3f39c5 !important;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35) !important;
    transform: translateY(-1.5px);
}

.items-main-card[b-8g9vebaeve] {
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    overflow: hidden;
    margin-top: 1.5rem !important;
    background: #ffffff !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
}

.items-table[b-8g9vebaeve] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

table.table.items-table thead tr th[b-8g9vebaeve],
.items-table th[b-8g9vebaeve] {
    background: #ffffff !important;
    color: #8a99ad !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.74rem !important;
    letter-spacing: 0.8px !important;
    padding: 10px 16px !important;
    border-bottom: 2px solid #eef2f6 !important;
    text-align: center !important;
}

.items-table td[b-8g9vebaeve] {
    border-top: none !important;
    border-bottom: 1px solid #eef2f6 !important;
    padding: 10px 16px !important;
    font-size: 0.8rem !important;
    background: #ffffff !important;
    color: #64748b !important;
    vertical-align: middle !important;
    text-align: center !important;
}

.items-table td:last-child[b-8g9vebaeve] {
    white-space: nowrap !important;
    text-align: center !important;
}

.items-table tr td:first-child[b-8g9vebaeve] {
    color: #3b82f6 !important;
    font-weight: 700 !important;
}

.items-table tr td:nth-child(2)[b-8g9vebaeve],
.items-table tr td:nth-child(3)[b-8g9vebaeve] {
    color: #1e293b !important;
    font-weight: 700 !important;
}

.action-btn[b-8g9vebaeve] {
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    margin: 0 2px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #94a3b8 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.action-btn:hover[b-8g9vebaeve] {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}

.action-btn i[b-8g9vebaeve] {
    font-size: 0.85rem !important;
}

.items-card-grid[b-8g9vebaeve] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
}

.item-card[b-8g9vebaeve] {
    background: #ffffff !important;
    border: 1px solid #eef2f6 !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.item-card:hover[b-8g9vebaeve] {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(37, 99, 235, 0.25) !important;
}

.item-card-head[b-8g9vebaeve] {
    background: #ffffff !important;
    color: #1e293b !important;
    padding: 0.6rem 1rem !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid rgba(99, 102, 241, 0.1) !important;
}

.card-item-code[b-8g9vebaeve] {
    color: #4b5563 !important;
    font-weight: 700 !important;
    margin-right: 6px;
}

.card-item-name[b-8g9vebaeve] {
    color: #374151 !important;
    font-weight: 700 !important;
}

.item-card-body[b-8g9vebaeve] {
    padding: 0.75rem 1rem !important;
    color: #64748b !important;
    font-size: 0.8rem !important;
}

.detail-row[b-8g9vebaeve] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0 !important;
    border-bottom: 1px solid #eef2f6 !important;
}

.detail-row:last-child[b-8g9vebaeve] {
    border-bottom: none !important;
}

.detail-row span[b-8g9vebaeve] {
    color: #8a99ad !important;
    font-weight: 700 !important;
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.detail-row strong[b-8g9vebaeve] {
    color: #000000 !important;
    font-weight: 600 !important;
}

/* Modal styles */
.modal-overlay[b-8g9vebaeve] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.modal-card[b-8g9vebaeve] {
    border-radius: 20px !important;
    border: none !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
    background: #fff;
}

.modal-header-bar[b-8g9vebaeve] {
    background: #fff !important;
    color: #333 !important;
    padding: 16px 32px !important;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-left[b-8g9vebaeve] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-title[b-8g9vebaeve] {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    color: #000000 !important;
    letter-spacing: -0.2px;
}

.btn-close-modal[b-8g9vebaeve] {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}

.btn-close-modal:hover[b-8g9vebaeve] {
    background: #e2e8f0;
    color: #1e293b;
}

.modal-inner[b-8g9vebaeve] {
    padding: 16px 32px !important;
    background: #fff;
}

.form-section-header[b-8g9vebaeve] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    margin-top: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid #f1f5f9;
}

.form-section-title[b-8g9vebaeve] {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #4f46e5;
}

.form-grid[b-8g9vebaeve] {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    margin-bottom: 12px;
    row-gap: 12px;
}

.col-1[b-8g9vebaeve] {
    grid-column: span 1;
}

.col-2[b-8g9vebaeve] {
    grid-column: span 2;
}

.col-3[b-8g9vebaeve] {
    grid-column: span 3;
}

.col-4[b-8g9vebaeve] {
    grid-column: span 4;
}

.col-5[b-8g9vebaeve] {
    grid-column: span 5;
}

.col-6[b-8g9vebaeve] {
    grid-column: span 6;
}

.col-7[b-8g9vebaeve] {
    grid-column: span 7;
}

.col-8[b-8g9vebaeve] {
    grid-column: span 8;
}

.col-9[b-8g9vebaeve] {
    grid-column: span 9;
}

.col-10[b-8g9vebaeve] {
    grid-column: span 10;
}

.col-11[b-8g9vebaeve] {
    grid-column: span 11;
}

.col-12[b-8g9vebaeve] {
    grid-column: span 12;
}

.field-group[b-8g9vebaeve] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label[b-8g9vebaeve] {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 2px;
}

.field-label.required[b-8g9vebaeve]::after {
    content: " *";
    color: #ef4444;
}

.premium-input[b-8g9vebaeve] {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 0.88rem !important;
    color: #4b5563 !important;
    transition: all 0.2s !important;
    height: auto !important;
}

.premium-input[b-8g9vebaeve]::placeholder {
    color: #cbd5e1 !important;
    opacity: 1 !important;
}

.premium-input:focus[b-8g9vebaeve] {
    background: #fff !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1) !important;
    outline: none !important;
}

.modal-footer-actions[b-8g9vebaeve] {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 16px !important;
    padding: 24px 32px !important;
    border-top: 1px solid #f0f0f0 !important;
    background: #ffffff !important;
}

.btn-cancel-modal[b-8g9vebaeve] {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: none !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    min-width: 100px !important;
    transition: all 0.2s !important;
}

.btn-cancel-modal:hover[b-8g9vebaeve] {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.btn-save-premium[b-8g9vebaeve] {
    background: #1c9f5f !important;
    color: white !important;
    border: none !important;
    padding: 10px 28px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(28, 159, 95, 0.3) !important;
    transition: all 0.2s !important;
    white-space: nowrap;
}

.btn-save-premium:hover[b-8g9vebaeve] {
    background: #168a52 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(28, 159, 95, 0.4) !important;
}

/* Pagination bar */
.page-btn[b-8g9vebaeve] {
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #64748b !important;
    border-radius: 8px !important;
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
    font-weight: 600;
    margin: 0 2px;
    transition: all 0.2s;
}

.page-btn.active[b-8g9vebaeve] {
    background: #4f46e5 !important;
    color: #ffffff !important;
    border-color: #4f46e5 !important;
}

.page-btn:hover:not(.active):not(:disabled)[b-8g9vebaeve] {
    background: #f8fafc !important;
    color: #1e293b !important;
}
/* /Components/Pages/CityMaster.razor.rz.scp.css */
/* ==========================================================================
   CITY MASTER — MODERN OBSIDIAN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Layout Wrapper ─────────────────────────── */
.cm-page-root[b-tcd36h3ery] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.cm-top-bar[b-tcd36h3ery] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.cm-title-block[b-tcd36h3ery] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cm-title-icon-wrap[b-tcd36h3ery] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cm-title-icon-wrap .material-symbols-outlined[b-tcd36h3ery] {
    font-size: 20px;
}

.cm-breadcrumbs[b-tcd36h3ery] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.cm-breadcrumb-link[b-tcd36h3ery] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.cm-breadcrumb-link:hover[b-tcd36h3ery] {
    color: #2563eb;
}

.cm-breadcrumb-sep[b-tcd36h3ery] {
    font-size: 11px;
}

.cm-page-title[b-tcd36h3ery] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cm-badge-directory[b-tcd36h3ery] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cm-live-dot[b-tcd36h3ery] {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.cm-top-actions[b-tcd36h3ery] {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Filter Pills */
.cm-filter-pills[b-tcd36h3ery] {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f8fafc;
    padding: 2px 4px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.cm-filter-pill[b-tcd36h3ery] {
    padding: 3px 10px;
    border-radius: 4px;
    border: none;
    background: transparent;
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cm-filter-pill:hover[b-tcd36h3ery] {
    color: #0f172a;
}

.cm-filter-pill.active[b-tcd36h3ery] {
    background: #0f172a;
    color: #ffffff;
}

/* Search input */
.cm-search-wrap[b-tcd36h3ery] {
    position: relative;
    width: 220px;
}

.cm-search-wrap .material-symbols-outlined[b-tcd36h3ery] {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.cm-search-input[b-tcd36h3ery] {
    width: 100%;
    height: 32px;
    padding: 0 10px 0 30px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cm-search-input:focus[b-tcd36h3ery] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.cm-btn-primary[b-tcd36h3ery] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.cm-btn-primary:hover[b-tcd36h3ery] {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(15, 23, 42, 0.12);
}

/* ── 3. KPI / Stat Cards Grid ───────────────────────────────── */
.cm-stats-grid[b-tcd36h3ery] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex-shrink: 0;
}

.cm-stat-card[b-tcd36h3ery] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 7px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.cm-stat-card[b-tcd36h3ery]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.cm-card-total[b-tcd36h3ery]::before     { background: #3b82f6; }
.cm-card-state[b-tcd36h3ery]::before     { background: #10b981; }
.cm-card-country[b-tcd36h3ery]::before   { background: #f59e0b; }
.cm-card-code[b-tcd36h3ery]::before      { background: #6366f1; }

.cm-stat-card:hover[b-tcd36h3ery] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.cm-stat-top[b-tcd36h3ery] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cm-stat-icon-wrap[b-tcd36h3ery] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cm-stat-icon-wrap .material-symbols-outlined[b-tcd36h3ery] {
    font-size: 15px;
}

.cm-stat-tag[b-tcd36h3ery] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.cm-stat-tag .material-symbols-outlined[b-tcd36h3ery] {
    font-size: 13px;
}

.cm-card-total .cm-stat-icon-wrap[b-tcd36h3ery]   { background: #eff6ff; color: #3b82f6; }
.cm-card-total .cm-stat-tag[b-tcd36h3ery]         { background: #eff6ff; color: #2563eb; }

.cm-card-state .cm-stat-icon-wrap[b-tcd36h3ery]   { background: #ecfdf5; color: #10b981; }
.cm-card-state .cm-stat-tag[b-tcd36h3ery]         { background: #ecfdf5; color: #059669; }

.cm-card-country .cm-stat-icon-wrap[b-tcd36h3ery] { background: #fffbeb; color: #f59e0b; }
.cm-card-country .cm-stat-tag[b-tcd36h3ery]       { background: #fffbeb; color: #d97706; }

.cm-card-code .cm-stat-icon-wrap[b-tcd36h3ery]    { background: #eef2ff; color: #6366f1; }
.cm-card-code .cm-stat-tag[b-tcd36h3ery]          { background: #eef2ff; color: #4f46e5; }

.cm-stat-mid[b-tcd36h3ery] {
    margin-top: 1px;
}

.cm-stat-label[b-tcd36h3ery] {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cm-stat-bottom[b-tcd36h3ery] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.cm-stat-val[b-tcd36h3ery] {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.cm-stat-subtext[b-tcd36h3ery] {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── 4. Table Card Container (Single Viewport) ─────────────── */
.cm-table-card[b-tcd36h3ery] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.cm-table-container[b-tcd36h3ery] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

.cm-table[b-tcd36h3ery] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    text-align: left;
}

/* Light Slate Sticky Header */
.cm-thead[b-tcd36h3ery] {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8fafc !important;
}

.cm-th[b-tcd36h3ery] {
    background-color: #f8fafc !important;
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 8px 12px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: none !important;
    white-space: nowrap;
    user-select: none;
}

.cm-tbody tr[b-tcd36h3ery] {
    background-color: #ffffff;
    transition: background-color 0.12s ease;
}

.cm-tbody tr:hover[b-tcd36h3ery] {
    background-color: #f8fafc;
}

.cm-td[b-tcd36h3ery] {
    padding: 6px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
    font-size: 12px;
}

.cm-badge-pill[b-tcd36h3ery] {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.cm-badge-state[b-tcd36h3ery] {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

/* Action buttons in row */
.cm-row-actions[b-tcd36h3ery] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cm-btn-icon-action[b-tcd36h3ery] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: #f8fafc;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.cm-btn-icon-action:hover[b-tcd36h3ery] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.cm-btn-icon-delete:hover[b-tcd36h3ery] {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
}

.cm-btn-icon-action .material-symbols-outlined[b-tcd36h3ery] {
    font-size: 15px;
}

/* ── 5. Pagination Footer ───────────────────────────────────── */
.cm-pagination-bar[b-tcd36h3ery] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 14px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
    font-size: 11.5px;
    color: #64748b;
}

.cm-page-controls[b-tcd36h3ery] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cm-btn-page[b-tcd36h3ery] {
    height: 26px;
    min-width: 26px;
    padding: 0 6px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.cm-btn-page:hover:not(:disabled)[b-tcd36h3ery] {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.cm-btn-page:disabled[b-tcd36h3ery] {
    opacity: 0.4;
    cursor: not-allowed;
}

.cm-btn-page .material-symbols-outlined[b-tcd36h3ery] {
    font-size: 14px;
}

/* ── 6. Modal Form Overlay & Card ───────────────────────────── */
.cm-modal-overlay[b-tcd36h3ery] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 16px;
}

.cm-modal-card[b-tcd36h3ery] {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 540px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cm-modal-header[b-tcd36h3ery] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.cm-modal-title[b-tcd36h3ery] {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.cm-modal-close-btn[b-tcd36h3ery] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.cm-modal-close-btn:hover[b-tcd36h3ery] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.cm-modal-body[b-tcd36h3ery] {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cm-form-group[b-tcd36h3ery] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cm-field-label[b-tcd36h3ery] {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cm-input[b-tcd36h3ery] {
    width: 100%;
    height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 12.5px;
    color: #1e293b;
    background: #ffffff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cm-input:focus[b-tcd36h3ery] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.cm-modal-footer[b-tcd36h3ery] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}
/* /Components/Pages/ContainerMaster.razor.rz.scp.css */
/* ==========================================================================
   CONTAINER MASTER — SINGLE VIEWPORT MODERN OBSIDIAN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Main Layout Wrapper ────────────────────── */
.cm-page-root[b-byx0abi2u6] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.cm-top-bar[b-byx0abi2u6] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.cm-title-block[b-byx0abi2u6] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cm-title-icon-wrap[b-byx0abi2u6] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cm-title-icon-wrap .material-symbols-outlined[b-byx0abi2u6] {
    font-size: 20px;
}

.cm-breadcrumbs[b-byx0abi2u6] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.cm-breadcrumb-link[b-byx0abi2u6] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.cm-breadcrumb-link:hover[b-byx0abi2u6] {
    color: #2563eb;
}

.cm-breadcrumb-sep[b-byx0abi2u6] {
    font-size: 11px;
}

.cm-page-title[b-byx0abi2u6] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cm-badge-directory[b-byx0abi2u6] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cm-live-dot[b-byx0abi2u6] {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.cm-top-actions[b-byx0abi2u6] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cm-btn-primary[b-byx0abi2u6] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.cm-btn-primary:hover[b-byx0abi2u6] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

.cm-btn-icon[b-byx0abi2u6] {
    font-size: 16px;
}

/* ── 3. Split Workspace (Left Sidebar + Right Editor) ───────── */
.cm-split-workspace[b-byx0abi2u6] {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 8px;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

/* ── Left Sidebar Directory ── */
.cm-sidebar-card[b-byx0abi2u6] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.cm-sidebar-header[b-byx0abi2u6] {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.cm-sidebar-title-row[b-byx0abi2u6] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cm-sidebar-heading[b-byx0abi2u6] {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.cm-count-badge[b-byx0abi2u6] {
    font-size: 10.5px;
    font-weight: 700;
    background: #f1f5f9;
    color: #475569;
    padding: 1px 6px;
    border-radius: 10px;
}

.cm-search-wrap[b-byx0abi2u6] {
    position: relative;
    width: 100%;
}

.cm-search-wrap .material-symbols-outlined[b-byx0abi2u6] {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #94a3b8;
    pointer-events: none;
}

.cm-search-input[b-byx0abi2u6] {
    width: 100%;
    height: 30px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 10px 0 28px;
    font-size: 11.5px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.cm-search-input:focus[b-byx0abi2u6] {
    background: #ffffff;
    border-color: #3b82f6;
}

.cm-list-scroll[b-byx0abi2u6] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cm-list-item[b-byx0abi2u6] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.12s ease;
}

.cm-list-item:hover[b-byx0abi2u6] {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.cm-list-item.active[b-byx0abi2u6] {
    background: #eff6ff;
    border-color: #bfdbfe;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.08);
}

.cm-item-icon-wrap[b-byx0abi2u6] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.cm-item-icon-wrap img[b-byx0abi2u6] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cm-item-meta[b-byx0abi2u6] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.cm-item-name[b-byx0abi2u6] {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.cm-item-sub[b-byx0abi2u6] {
    font-size: 10.5px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cm-code-badge[b-byx0abi2u6] {
    font-family: monospace;
    font-weight: 600;
    color: #475569;
}

.cm-cap-pill[b-byx0abi2u6] {
    font-size: 10px;
    padding: 0 4px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #475569;
}

.cm-inactive-pill[b-byx0abi2u6] {
    font-size: 9.5px;
    font-weight: 700;
    color: #dc2626;
    background: #fee2e2;
    padding: 1px 5px;
    border-radius: 4px;
}

.cm-sidebar-footer[b-byx0abi2u6] {
    padding: 8px 10px;
    border-top: 1px solid #f1f5f9;
    background: #ffffff;
    flex-shrink: 0;
}

.cm-btn-add-sidebar[b-byx0abi2u6] {
    width: 100%;
    height: 30px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #475569;
    font-size: 11.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cm-btn-add-sidebar:hover[b-byx0abi2u6] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #93c5fd;
}

/* ── Tube Graphic Visual ── */
.tube-visual[b-byx0abi2u6] {
    width: 18px;
    height: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tube-cap[b-byx0abi2u6] {
    width: 14px;
    height: 7px;
    border-radius: 3px 3px 1px 1px;
    box-shadow: inset 0 -1px 2px rgba(0,0,0,0.2);
}

.tube-body[b-byx0abi2u6] {
    width: 10px;
    height: 20px;
    background: rgba(226, 232, 240, 0.7);
    border: 1px solid #cbd5e1;
    border-radius: 0 0 5px 5px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.tube-liquid[b-byx0abi2u6] {
    width: 100%;
    height: 55%;
    border-radius: 0 0 4px 4px;
    opacity: 0.85;
}

/* ── Right Workspace Card ── */
.cm-form-card[b-byx0abi2u6] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    height: 100%;
}

.cm-form-card > form[b-byx0abi2u6],
.cm-form-card form[b-byx0abi2u6] {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.cm-form-header[b-byx0abi2u6] {
    padding: 10px 18px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: #ffffff;
}

.cm-form-title[b-byx0abi2u6] {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.cm-form-actions[b-byx0abi2u6] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cm-btn-delete[b-byx0abi2u6] {
    height: 30px;
    padding: 0 12px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #fca5a5;
    color: #dc2626;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cm-btn-delete:hover[b-byx0abi2u6] {
    background: #fee2e2;
}

.cm-btn-save[b-byx0abi2u6] {
    height: 30px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cm-btn-save:hover[b-byx0abi2u6] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

.cm-form-body[b-byx0abi2u6] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto !important;
    overflow-x: hidden;
    padding: 14px 18px 30px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cm-grid-2col[b-byx0abi2u6] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cm-form-group[b-byx0abi2u6] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cm-label[b-byx0abi2u6] {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
}

.cm-input[b-byx0abi2u6],
.cm-textarea[b-byx0abi2u6] {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cm-input:focus[b-byx0abi2u6],
.cm-textarea:focus[b-byx0abi2u6] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.cm-input-readonly[b-byx0abi2u6] {
    background-color: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
}

/* Image Upload Dropzone */
.cm-image-upload-card[b-byx0abi2u6] {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.cm-preview-box[b-byx0abi2u6] {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.cm-preview-box img[b-byx0abi2u6] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cm-upload-details[b-byx0abi2u6] {
    flex: 1;
}

.cm-upload-title[b-byx0abi2u6] {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2px 0;
}

.cm-upload-desc[b-byx0abi2u6] {
    font-size: 10.5px;
    color: #64748b;
    margin: 0 0 8px 0;
}

.cm-btn-file-select[b-byx0abi2u6] {
    height: 28px;
    padding: 0 10px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.15s;
}

.cm-btn-file-select:hover[b-byx0abi2u6] {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #2563eb;
}

.cm-btn-file-remove[b-byx0abi2u6] {
    height: 28px;
    padding: 0 10px;
    border-radius: 6px;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    margin-left: 8px;
}

.cm-checkbox-wrap[b-byx0abi2u6] {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    user-select: none;
}

/* Details Section */
.cm-details-section[b-byx0abi2u6] {
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cm-details-header-row[b-byx0abi2u6] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cm-details-heading[b-byx0abi2u6] {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.cm-btn-add-detail[b-byx0abi2u6] {
    height: 26px;
    padding: 0 10px;
    border-radius: 5px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.cm-btn-add-detail:hover[b-byx0abi2u6] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #93c5fd;
}

.cm-detail-row-card[b-byx0abi2u6] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cm-detail-row-top[b-byx0abi2u6] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cm-row-tag[b-byx0abi2u6] {
    font-size: 11px;
    font-weight: 700;
    color: #2563eb;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cm-btn-delete-row[b-byx0abi2u6] {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 10.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.cm-tag-pill[b-byx0abi2u6] {
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cm-tag-specimen[b-byx0abi2u6] {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.cm-tag-test[b-byx0abi2u6] {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
/* /Components/Pages/Counter.razor.rz.scp.css */
/* ==========================================================================
   COUNTER MASTER — SINGLE VIEWPORT MODERN OBSIDIAN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Main Layout Wrapper ────────────────────── */
.cnt-page-root[b-ljqomu3lkz] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.cnt-top-bar[b-ljqomu3lkz] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.cnt-title-block[b-ljqomu3lkz] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cnt-title-icon-wrap[b-ljqomu3lkz] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cnt-title-icon-wrap .material-symbols-outlined[b-ljqomu3lkz] {
    font-size: 20px;
}

.cnt-breadcrumbs[b-ljqomu3lkz] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.cnt-breadcrumb-link[b-ljqomu3lkz] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.cnt-breadcrumb-link:hover[b-ljqomu3lkz] {
    color: #2563eb;
}

.cnt-breadcrumb-sep[b-ljqomu3lkz] {
    font-size: 11px;
}

.cnt-page-title[b-ljqomu3lkz] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cnt-badge-directory[b-ljqomu3lkz] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cnt-live-dot[b-ljqomu3lkz] {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.cnt-top-actions[b-ljqomu3lkz] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cnt-search-wrap[b-ljqomu3lkz] {
    position: relative;
    width: 240px;
}

.cnt-search-wrap .material-symbols-outlined[b-ljqomu3lkz] {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.cnt-search-input[b-ljqomu3lkz] {
    width: 100%;
    height: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 10px 0 32px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cnt-search-input:focus[b-ljqomu3lkz] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.cnt-btn-primary[b-ljqomu3lkz] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.cnt-btn-primary:hover[b-ljqomu3lkz] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

.cnt-btn-icon[b-ljqomu3lkz] {
    font-size: 16px;
}

/* ── 3. KPI / Stat Cards Grid ───────────────────────────────── */
.cnt-stats-grid[b-ljqomu3lkz] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex-shrink: 0;
}

.cnt-stat-card[b-ljqomu3lkz] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 7px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.cnt-stat-card[b-ljqomu3lkz]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.cnt-card-total[b-ljqomu3lkz]::before    { background: #3b82f6; }
.cnt-card-branches[b-ljqomu3lkz]::before { background: #10b981; }
.cnt-card-timing[b-ljqomu3lkz]::before   { background: #6366f1; }
.cnt-card-active[b-ljqomu3lkz]::before   { background: #f59e0b; }

.cnt-stat-card:hover[b-ljqomu3lkz] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.cnt-stat-top[b-ljqomu3lkz] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cnt-stat-icon-wrap[b-ljqomu3lkz] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cnt-stat-icon-wrap .material-symbols-outlined[b-ljqomu3lkz] {
    font-size: 15px;
}

.cnt-stat-tag[b-ljqomu3lkz] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.cnt-stat-tag .material-symbols-outlined[b-ljqomu3lkz] {
    font-size: 13px;
}

.cnt-card-total .cnt-stat-icon-wrap[b-ljqomu3lkz]    { background: #eff6ff; color: #3b82f6; }
.cnt-card-total .cnt-stat-tag[b-ljqomu3lkz]          { background: #eff6ff; color: #2563eb; }

.cnt-card-branches .cnt-stat-icon-wrap[b-ljqomu3lkz] { background: #ecfdf5; color: #059669; }
.cnt-card-branches .cnt-stat-tag[b-ljqomu3lkz]       { background: #ecfdf5; color: #047857; }

.cnt-card-timing .cnt-stat-icon-wrap[b-ljqomu3lkz]   { background: #eef2ff; color: #6366f1; }
.cnt-card-timing .cnt-stat-tag[b-ljqomu3lkz]         { background: #eef2ff; color: #4f46e5; }

.cnt-card-active .cnt-stat-icon-wrap[b-ljqomu3lkz]   { background: #fffbeb; color: #d97706; }
.cnt-card-active .cnt-stat-tag[b-ljqomu3lkz]         { background: #fffbeb; color: #b45309; }

.cnt-stat-mid[b-ljqomu3lkz] {
    margin-top: 1px;
}

.cnt-stat-label[b-ljqomu3lkz] {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cnt-stat-bottom[b-ljqomu3lkz] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.cnt-stat-val[b-ljqomu3lkz] {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.cnt-stat-subtext[b-ljqomu3lkz] {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── 4. Table Card Container (Single Viewport Inner Area) ─── */
.cnt-table-card[b-ljqomu3lkz] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.cnt-table-container[b-ljqomu3lkz] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

.cnt-table[b-ljqomu3lkz] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    text-align: left;
}

/* Light Slate Sticky Header */
.cnt-thead[b-ljqomu3lkz] {
    position: sticky;
    top: 0;
    z-index: 10;
}

.cnt-th[b-ljqomu3lkz] {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 9px 12px;
    border-bottom: 1px solid #e2e8f0;
    border-top: none;
    white-space: nowrap;
    user-select: none;
}

.cnt-tbody tr[b-ljqomu3lkz] {
    background-color: #ffffff;
    transition: background-color 0.12s ease;
}

.cnt-tbody tr:hover[b-ljqomu3lkz] {
    background-color: #f8fafc;
}

.cnt-td[b-ljqomu3lkz] {
    padding: 7px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
    font-size: 12px;
}

.cnt-badge-code[b-ljqomu3lkz] {
    display: inline-block;
    padding: 2px 6px;
    background: #f1f5f9;
    color: #475569;
    font-family: monospace;
    font-weight: 700;
    font-size: 11px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.cnt-shortname-pill[b-ljqomu3lkz] {
    display: inline-block;
    color: #64748b;
    font-family: monospace;
    font-weight: 600;
    font-size: 11.5px;
}

.cnt-name-cell[b-ljqomu3lkz] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #0f172a;
    font-size: 12px;
}

.cnt-color-dot[b-ljqomu3lkz] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

.cnt-branch-badge[b-ljqomu3lkz] {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #bfdbfe;
}

.cnt-date-text[b-ljqomu3lkz] {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

/* Action Buttons */
.cnt-actions-cell[b-ljqomu3lkz] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.cnt-btn-action[b-ljqomu3lkz] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.cnt-btn-action .material-symbols-outlined[b-ljqomu3lkz] {
    font-size: 14px;
}

.cnt-btn-edit:hover[b-ljqomu3lkz] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.cnt-btn-delete:hover[b-ljqomu3lkz] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* ── 5. Modal Backdrop & Card Form ──────────────────────────── */
.cnt-modal-overlay[b-ljqomu3lkz] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 16px;
    animation: cntFadeIn-b-ljqomu3lkz 0.15s ease-out;
}

@keyframes cntFadeIn-b-ljqomu3lkz {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cnt-modal-card[b-ljqomu3lkz] {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 580px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: cntSlideUp-b-ljqomu3lkz 0.15s ease-out;
}

@keyframes cntSlideUp-b-ljqomu3lkz {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cnt-modal-header[b-ljqomu3lkz] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.cnt-modal-title[b-ljqomu3lkz] {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.cnt-modal-close-btn[b-ljqomu3lkz] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.cnt-modal-close-btn:hover[b-ljqomu3lkz] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.cnt-modal-body[b-ljqomu3lkz] {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 75vh;
    overflow-y: auto;
}

.cnt-form-group[b-ljqomu3lkz] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cnt-form-label[b-ljqomu3lkz] {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cnt-form-input[b-ljqomu3lkz],
.cnt-form-select[b-ljqomu3lkz],
.cnt-form-textarea[b-ljqomu3lkz] {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cnt-form-input:focus[b-ljqomu3lkz],
.cnt-form-select:focus[b-ljqomu3lkz],
.cnt-form-textarea:focus[b-ljqomu3lkz] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.cnt-grid-3col[b-ljqomu3lkz] {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.cnt-grid-2col[b-ljqomu3lkz] {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 10px;
}

.cnt-color-picker-wrap[b-ljqomu3lkz] {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 2px 8px;
    box-sizing: border-box;
}

.cnt-color-input[b-ljqomu3lkz] {
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    cursor: pointer;
    background: transparent;
    padding: 0;
}

.cnt-color-hex[b-ljqomu3lkz] {
    font-size: 11px;
    font-family: monospace;
    font-weight: 700;
    color: #475569;
}

.cnt-modal-footer[b-ljqomu3lkz] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.cnt-btn-delete[b-ljqomu3lkz] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #fca5a5;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cnt-btn-delete:hover:not(:disabled)[b-ljqomu3lkz] {
    background: #fee2e2;
}

.cnt-btn-delete:disabled[b-ljqomu3lkz] {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #e2e8f0;
    color: #94a3b8;
}

.cnt-btn-save[b-ljqomu3lkz] {
    height: 32px;
    padding: 0 16px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cnt-btn-save:hover[b-ljqomu3lkz] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}
/* /Components/Pages/CountryMaster.razor.rz.scp.css */
/* ==========================================================================
   COUNTRY MASTER — MODERN OBSIDIAN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Layout Wrapper ─────────────────────────── */
.crm-page-root[b-h6ayp7y2o4] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.crm-top-bar[b-h6ayp7y2o4] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.crm-title-block[b-h6ayp7y2o4] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.crm-title-icon-wrap[b-h6ayp7y2o4] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.crm-title-icon-wrap .material-symbols-outlined[b-h6ayp7y2o4] {
    font-size: 20px;
}

.crm-breadcrumbs[b-h6ayp7y2o4] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.crm-breadcrumb-link[b-h6ayp7y2o4] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.crm-breadcrumb-link:hover[b-h6ayp7y2o4] {
    color: #2563eb;
}

.crm-breadcrumb-sep[b-h6ayp7y2o4] {
    font-size: 11px;
}

.crm-page-title[b-h6ayp7y2o4] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.crm-badge-directory[b-h6ayp7y2o4] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.crm-live-dot[b-h6ayp7y2o4] {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.crm-top-actions[b-h6ayp7y2o4] {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Filter Pills */
.crm-filter-pills[b-h6ayp7y2o4] {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f8fafc;
    padding: 2px 4px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.crm-filter-pill[b-h6ayp7y2o4] {
    padding: 3px 10px;
    border-radius: 4px;
    border: none;
    background: transparent;
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
}

.crm-filter-pill:hover[b-h6ayp7y2o4] {
    color: #0f172a;
}

.crm-filter-pill.active[b-h6ayp7y2o4] {
    background: #0f172a;
    color: #ffffff;
}

/* Search input */
.crm-search-wrap[b-h6ayp7y2o4] {
    position: relative;
    width: 220px;
}

.crm-search-wrap .material-symbols-outlined[b-h6ayp7y2o4] {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.crm-search-input[b-h6ayp7y2o4] {
    width: 100%;
    height: 32px;
    padding: 0 10px 0 30px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.crm-search-input:focus[b-h6ayp7y2o4] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.crm-btn-primary[b-h6ayp7y2o4] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.crm-btn-primary:hover[b-h6ayp7y2o4] {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(15, 23, 42, 0.12);
}

/* ── 3. KPI / Stat Cards Grid ───────────────────────────────── */
.crm-stats-grid[b-h6ayp7y2o4] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex-shrink: 0;
}

.crm-stat-card[b-h6ayp7y2o4] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 7px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.crm-stat-card[b-h6ayp7y2o4]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.crm-card-total[b-h6ayp7y2o4]::before     { background: #3b82f6; }
.crm-card-short[b-h6ayp7y2o4]::before     { background: #10b981; }
.crm-card-order[b-h6ayp7y2o4]::before     { background: #6366f1; }
.crm-card-notes[b-h6ayp7y2o4]::before     { background: #f59e0b; }

.crm-stat-card:hover[b-h6ayp7y2o4] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.crm-stat-top[b-h6ayp7y2o4] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.crm-stat-icon-wrap[b-h6ayp7y2o4] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crm-stat-icon-wrap .material-symbols-outlined[b-h6ayp7y2o4] {
    font-size: 15px;
}

.crm-stat-tag[b-h6ayp7y2o4] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.crm-stat-tag .material-symbols-outlined[b-h6ayp7y2o4] {
    font-size: 13px;
}

.crm-card-total .crm-stat-icon-wrap[b-h6ayp7y2o4]   { background: #eff6ff; color: #3b82f6; }
.crm-card-total .crm-stat-tag[b-h6ayp7y2o4]         { background: #eff6ff; color: #2563eb; }

.crm-card-short .crm-stat-icon-wrap[b-h6ayp7y2o4]   { background: #ecfdf5; color: #10b981; }
.crm-card-short .crm-stat-tag[b-h6ayp7y2o4]         { background: #ecfdf5; color: #059669; }

.crm-card-order .crm-stat-icon-wrap[b-h6ayp7y2o4]   { background: #eef2ff; color: #6366f1; }
.crm-card-order .crm-stat-tag[b-h6ayp7y2o4]         { background: #eef2ff; color: #4f46e5; }

.crm-card-notes .crm-stat-icon-wrap[b-h6ayp7y2o4]   { background: #fffbeb; color: #f59e0b; }
.crm-card-notes .crm-stat-tag[b-h6ayp7y2o4]         { background: #fffbeb; color: #d97706; }

.crm-stat-mid[b-h6ayp7y2o4] {
    margin-top: 1px;
}

.crm-stat-label[b-h6ayp7y2o4] {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.crm-stat-bottom[b-h6ayp7y2o4] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.crm-stat-val[b-h6ayp7y2o4] {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.crm-stat-subtext[b-h6ayp7y2o4] {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── 4. Table Card Container (Single Viewport) ─────────────── */
.crm-table-card[b-h6ayp7y2o4] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.crm-table-container[b-h6ayp7y2o4] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

.crm-table[b-h6ayp7y2o4] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    text-align: left;
}

/* Light Slate Sticky Header */
.crm-thead[b-h6ayp7y2o4] {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8fafc !important;
}

.crm-th[b-h6ayp7y2o4] {
    background-color: #f8fafc !important;
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 8px 12px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: none !important;
    white-space: nowrap;
    user-select: none;
}

.crm-tbody tr[b-h6ayp7y2o4] {
    background-color: #ffffff;
    transition: background-color 0.12s ease;
}

.crm-tbody tr:hover[b-h6ayp7y2o4] {
    background-color: #f8fafc;
}

.crm-td[b-h6ayp7y2o4] {
    padding: 6px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
    font-size: 12px;
}

/* Action buttons in row */
.crm-row-actions[b-h6ayp7y2o4] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.crm-btn-icon-action[b-h6ayp7y2o4] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: #f8fafc;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.crm-btn-icon-action:hover[b-h6ayp7y2o4] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.crm-btn-icon-delete:hover[b-h6ayp7y2o4] {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
}

.crm-btn-icon-action .material-symbols-outlined[b-h6ayp7y2o4] {
    font-size: 15px;
}

/* ── 5. Pagination Footer ───────────────────────────────────── */
.crm-pagination-bar[b-h6ayp7y2o4] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 14px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
    font-size: 11.5px;
    color: #64748b;
}

.crm-page-controls[b-h6ayp7y2o4] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.crm-btn-page[b-h6ayp7y2o4] {
    height: 26px;
    min-width: 26px;
    padding: 0 6px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.crm-btn-page:hover:not(:disabled)[b-h6ayp7y2o4] {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.crm-btn-page:disabled[b-h6ayp7y2o4] {
    opacity: 0.4;
    cursor: not-allowed;
}

.crm-btn-page .material-symbols-outlined[b-h6ayp7y2o4] {
    font-size: 14px;
}

/* ── 6. Modal Form Overlay & Card ───────────────────────────── */
.crm-modal-overlay[b-h6ayp7y2o4] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 16px;
}

.crm-modal-card[b-h6ayp7y2o4] {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.crm-modal-header[b-h6ayp7y2o4] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.crm-modal-title[b-h6ayp7y2o4] {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.crm-modal-close-btn[b-h6ayp7y2o4] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.crm-modal-close-btn:hover[b-h6ayp7y2o4] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.crm-modal-body[b-h6ayp7y2o4] {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.crm-form-group[b-h6ayp7y2o4] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.crm-field-label[b-h6ayp7y2o4] {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.crm-input[b-h6ayp7y2o4] {
    width: 100%;
    height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 12.5px;
    color: #1e293b;
    background: #ffffff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.crm-input:focus[b-h6ayp7y2o4] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.crm-modal-footer[b-h6ayp7y2o4] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}
/* /Components/Pages/CultureOrganismMaster.razor.rz.scp.css */
/* ==========================================================================
   CULTURE ORGANISM MASTER — MODERN OBSIDIAN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Main Layout Wrapper ────────────────────── */
.co-page-root[b-dp1jmhttku] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.co-top-bar[b-dp1jmhttku] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.co-title-block[b-dp1jmhttku] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.co-title-icon-wrap[b-dp1jmhttku] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.co-title-icon-wrap .material-symbols-outlined[b-dp1jmhttku] {
    font-size: 20px;
}

.co-breadcrumbs[b-dp1jmhttku] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.co-breadcrumb-link[b-dp1jmhttku] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.co-breadcrumb-link:hover[b-dp1jmhttku] {
    color: #2563eb;
}

.co-breadcrumb-sep[b-dp1jmhttku] {
    font-size: 11px;
}

.co-page-title[b-dp1jmhttku] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.co-badge-directory[b-dp1jmhttku] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.co-live-dot[b-dp1jmhttku] {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.co-top-actions[b-dp1jmhttku] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.co-search-wrap[b-dp1jmhttku] {
    position: relative;
    width: 240px;
}

.co-search-wrap .material-symbols-outlined[b-dp1jmhttku] {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.co-search-input[b-dp1jmhttku] {
    width: 100%;
    height: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 10px 0 32px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.co-search-input:focus[b-dp1jmhttku] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.co-btn-primary[b-dp1jmhttku] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.co-btn-primary:hover[b-dp1jmhttku] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

.co-btn-icon[b-dp1jmhttku] {
    font-size: 16px;
}

/* ── 3. KPI / Stat Cards Grid ───────────────────────────────── */
.co-stats-grid[b-dp1jmhttku] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex-shrink: 0;
}

.co-stat-card[b-dp1jmhttku] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 7px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.co-stat-card[b-dp1jmhttku]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.co-card-total[b-dp1jmhttku]::before  { background: #3b82f6; }
.co-card-group[b-dp1jmhttku]::before  { background: #10b981; }
.co-card-short[b-dp1jmhttku]::before  { background: #f59e0b; }
.co-card-active[b-dp1jmhttku]::before { background: #8b5cf6; }

.co-stat-card:hover[b-dp1jmhttku] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.co-stat-top[b-dp1jmhttku] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.co-stat-icon-wrap[b-dp1jmhttku] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.co-stat-icon-wrap .material-symbols-outlined[b-dp1jmhttku] {
    font-size: 15px;
}

.co-stat-tag[b-dp1jmhttku] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.co-stat-tag .material-symbols-outlined[b-dp1jmhttku] {
    font-size: 13px;
}

.co-card-total .co-stat-icon-wrap[b-dp1jmhttku]    { background: #eff6ff; color: #3b82f6; }
.co-card-total .co-stat-tag[b-dp1jmhttku]          { background: #eff6ff; color: #2563eb; }

.co-card-group .co-stat-icon-wrap[b-dp1jmhttku]    { background: #ecfdf5; color: #059669; }
.co-card-group .co-stat-tag[b-dp1jmhttku]          { background: #ecfdf5; color: #047857; }

.co-card-short .co-stat-icon-wrap[b-dp1jmhttku]    { background: #fffbeb; color: #d97706; }
.co-card-short .co-stat-tag[b-dp1jmhttku]          { background: #fffbeb; color: #b45309; }

.co-card-active .co-stat-icon-wrap[b-dp1jmhttku]   { background: #f5f3ff; color: #8b5cf6; }
.co-card-active .co-stat-tag[b-dp1jmhttku]         { background: #f5f3ff; color: #7c3aed; }

.co-stat-mid[b-dp1jmhttku] {
    margin-top: 1px;
}

.co-stat-label[b-dp1jmhttku] {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.co-stat-bottom[b-dp1jmhttku] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.co-stat-val[b-dp1jmhttku] {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.co-stat-subtext[b-dp1jmhttku] {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── 4. Table Card Container (Single Viewport Inner Area) ─── */
.co-table-card[b-dp1jmhttku] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.co-table-container[b-dp1jmhttku] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

.co-table[b-dp1jmhttku] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    text-align: left;
}

/* Light Slate Sticky Header */
.co-thead[b-dp1jmhttku] {
    position: sticky;
    top: 0;
    z-index: 10;
}

.co-th[b-dp1jmhttku] {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 9px 12px;
    border-bottom: 1px solid #e2e8f0;
    border-top: none;
    white-space: nowrap;
    user-select: none;
}

.co-tbody tr[b-dp1jmhttku] {
    background-color: #ffffff;
    transition: background-color 0.12s ease;
}

.co-tbody tr:hover[b-dp1jmhttku] {
    background-color: #f8fafc;
}

.co-td[b-dp1jmhttku] {
    padding: 7px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
    font-size: 12px;
}

.co-badge-code[b-dp1jmhttku] {
    display: inline-block;
    padding: 2px 6px;
    background: #f1f5f9;
    color: #475569;
    font-family: monospace;
    font-weight: 700;
    font-size: 11px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.co-shortname-pill[b-dp1jmhttku] {
    display: inline-block;
    color: #64748b;
    font-family: monospace;
    font-weight: 600;
    font-size: 11.5px;
}

.co-name-cell[b-dp1jmhttku] {
    font-weight: 700;
    color: #0f172a;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.co-no-growth-badge[b-dp1jmhttku] {
    display: inline-block;
    padding: 1px 6px;
    background: #fef2f2;
    color: #ef4444;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    border: 1px solid #fecaca;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.co-date-text[b-dp1jmhttku] {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

/* Action Buttons */
.co-actions-cell[b-dp1jmhttku] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.co-btn-action[b-dp1jmhttku] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.co-btn-action .material-symbols-outlined[b-dp1jmhttku] {
    font-size: 14px;
}

.co-btn-edit:hover[b-dp1jmhttku] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.co-btn-delete:hover[b-dp1jmhttku] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* ── 5. Modal Backdrop & Card Form ──────────────────────────── */
.co-modal-overlay[b-dp1jmhttku] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 16px;
    animation: coFadeIn-b-dp1jmhttku 0.15s ease-out;
}

@keyframes coFadeIn-b-dp1jmhttku {
    from { opacity: 0; }
    to { opacity: 1; }
}

.co-modal-card[b-dp1jmhttku] {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 540px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: coSlideUp-b-dp1jmhttku 0.15s ease-out;
}

@keyframes coSlideUp-b-dp1jmhttku {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.co-modal-header[b-dp1jmhttku] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.co-modal-title[b-dp1jmhttku] {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.co-modal-close-btn[b-dp1jmhttku] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.co-modal-close-btn:hover[b-dp1jmhttku] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.co-modal-body[b-dp1jmhttku] {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 75vh;
    overflow-y: auto;
}

.co-form-group[b-dp1jmhttku] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.co-form-label[b-dp1jmhttku] {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.co-form-input[b-dp1jmhttku],
.co-form-select[b-dp1jmhttku] {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.co-form-input:focus[b-dp1jmhttku],
.co-form-select:focus[b-dp1jmhttku] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.co-grid-2col[b-dp1jmhttku] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.co-grid-3col[b-dp1jmhttku] {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.co-checkbox-label[b-dp1jmhttku] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    margin-top: 6px;
}

.co-checkbox-input[b-dp1jmhttku] {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
    cursor: pointer;
}

.co-modal-footer[b-dp1jmhttku] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.co-btn-delete[b-dp1jmhttku] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #fca5a5;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.co-btn-delete:hover:not(:disabled)[b-dp1jmhttku] {
    background: #fee2e2;
}

.co-btn-delete:disabled[b-dp1jmhttku] {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #e2e8f0;
    color: #94a3b8;
}

.co-btn-save[b-dp1jmhttku] {
    height: 32px;
    padding: 0 16px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.co-btn-save:hover[b-dp1jmhttku] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

/* ── 6. Pagination & Table Footer ─────────────────────────── */
.co-table-footer[b-dp1jmhttku] {
    padding: 6px 14px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 10px;
    background: #ffffff;
    font-size: 12px;
}

.co-page-size-wrap[b-dp1jmhttku] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.co-page-size-select[b-dp1jmhttku] {
    height: 26px;
    padding: 0 6px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    outline: none;
    cursor: pointer;
}

.co-page-info[b-dp1jmhttku] {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.co-page-info strong[b-dp1jmhttku] {
    color: #0f172a;
    font-weight: 700;
}

.co-pagination-wrap[b-dp1jmhttku] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.co-page-btn[b-dp1jmhttku] {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.co-page-btn:hover:not(:disabled)[b-dp1jmhttku] {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.co-page-btn.active[b-dp1jmhttku] {
    background: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
    font-weight: 700;
}

.co-page-btn:disabled[b-dp1jmhttku] {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
}
/* /Components/Pages/CultureResultEntry.razor.rz.scp.css */
/* Premium Styles for Culture Result Entry */

.culture-container[b-uy1wdjt2tr] {
	font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
	background-color: #f8fafc;
	min-height: 100vh;
	padding: 24px 24px 24px 24px;
	color: #1e293b;
	box-sizing: border-box;
}

/* Breadcrumb Navigation */
.re-breadcrumb[b-uy1wdjt2tr] {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.825rem;
	font-weight: 600;
	color: #64748b;
	margin-bottom: 16px;
}

.re-breadcrumb i[b-uy1wdjt2tr] {
	font-size: 0.75rem;
}

.re-breadcrumb .text-active[b-uy1wdjt2tr] {
	color: #4f46e5;
}

.re-breadcrumb .text-muted[b-uy1wdjt2tr] {
	cursor: pointer;
	transition: color 0.15s ease;
}

.re-breadcrumb .text-muted:hover[b-uy1wdjt2tr] {
	color: #4f46e5;
}

/* Patient Header Card */
.patient-header-card[b-uy1wdjt2tr] {
	background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
	border-radius: 16px;
	padding: 24px;
	color: #ffffff;
	box-shadow: 0 10px 25px -5px rgba(49, 46, 129, 0.15);
	margin-bottom: 24px;
	position: relative;
	overflow: hidden;
}

.patient-header-card[b-uy1wdjt2tr]::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 300px;
	height: 300px;
	background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
	border-radius: 50%;
	pointer-events: none;
}

.patient-grid[b-uy1wdjt2tr] {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 16px;
}

.patient-info-item[b-uy1wdjt2tr] {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.patient-info-label[b-uy1wdjt2tr] {
	font-size: 0.72rem;
	text-transform: uppercase;
	font-weight: 700;
	color: #c7d2fe;
	letter-spacing: 0.05em;
}

.patient-info-value[b-uy1wdjt2tr] {
	font-size: 0.95rem;
	font-weight: 600;
	color: #ffffff;
}

/* Main Two-Column Layout */
.culture-main-layout[b-uy1wdjt2tr] {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 24px;
	align-items: start;
}

@media (max-width: 1200px) {
	.culture-main-layout[b-uy1wdjt2tr] {
		grid-template-columns: 1fr;
	}
}

/* Card Styling */
.premium-card[b-uy1wdjt2tr] {
	background: #ffffff;
	border-radius: 16px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
	padding: 24px;
	margin-bottom: 24px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.premium-card-title[b-uy1wdjt2tr] {
	font-size: 1.1rem;
	font-weight: 750;
	color: var(--lc-secondary);
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
	border-bottom: 1.5px dashed #f1f5f9;
	padding-bottom: 12px;
}

.premium-card-title i[b-uy1wdjt2tr] {
	color: #4f46e5;
}

/* Growth Status Slider/Selector */
.growth-toggle-container[b-uy1wdjt2tr] {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 24px;
}

.growth-option-card[b-uy1wdjt2tr] {
	border-radius: 12px;
	border: 2px solid #e2e8f0;
	padding: 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	cursor: pointer;
	font-weight: 700;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	background: #f8fafc;
	color: #64748b;
}

.growth-option-card i[b-uy1wdjt2tr] {
	font-size: 1.8rem;
	transition: transform 0.2s ease;
}

.growth-option-card:hover[b-uy1wdjt2tr] {
	border-color: #cbd5e1;
	color: #475569;
	background: #f1f5f9;
}

.growth-option-card:hover i[b-uy1wdjt2tr] {
	transform: scale(1.1);
}

.growth-option-card.active-nogrowth[b-uy1wdjt2tr] {
	border-color: #ef4444;
	background: #fef2f2;
	color: #ef4444;
	box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
}

.growth-option-card.active-growth[b-uy1wdjt2tr] {
	border-color: #10b981;
	background: #ecfdf5;
	color: #10b981;
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

/* Form Groups & Inputs */
.lab-form-group[b-uy1wdjt2tr] {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 18px;
}

.lab-form-label[b-uy1wdjt2tr] {
	font-size: 0.8rem;
	font-weight: 700;
	color: #475569;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.lab-form-input[b-uy1wdjt2tr] {
	border: 1.5px solid #e2e8f0;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 0.9rem;
	font-weight: 600;
	color: #1e293b;
	outline: none;
	background-color: #ffffff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lab-form-input:focus[b-uy1wdjt2tr] {
	border-color: #4f46e5;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Organisms Selection */
.organism-badge-container[b-uy1wdjt2tr] {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.organism-badge[b-uy1wdjt2tr] {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #1d4ed8;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 6px;
}

.organism-badge .remove-btn[b-uy1wdjt2tr] {
	cursor: pointer;
	color: #3b82f6;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	width: 16px;
	height: 16px;
	transition: background 0.15s;
}

.organism-badge .remove-btn:hover[b-uy1wdjt2tr] {
	background: #dbeafe;
	color: #1d4ed8;
}

/* AST Matrix */
.organism-ast-block[b-uy1wdjt2tr] {
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 20px;
	background-color: #ffffff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
}

.organism-ast-header[b-uy1wdjt2tr] {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid #f1f5f9;
}

.organism-ast-title[b-uy1wdjt2tr] {
	font-size: 0.95rem;
	font-weight: 700;
	color: #4f46e5;
}

.ast-table[b-uy1wdjt2tr] {
	width: 100%;
	border-collapse: collapse;
}

.ast-table th[b-uy1wdjt2tr] {
	background-color: #f8fafc;
	color: #475569;
	font-weight: 700;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 10px 12px;
	text-align: left;
}

.ast-table td[b-uy1wdjt2tr] {
	padding: 10px 12px;
	border-bottom: 1px solid #f1f5f9;
	font-size: 0.85rem;
	font-weight: 600;
}

/* Susceptibility Button Group */
.susceptibility-group[b-uy1wdjt2tr] {
	display: flex;
	gap: 4px;
}

.sus-btn[b-uy1wdjt2tr] {
	width: 32px;
	height: 32px;
	border-radius: 6px;
	border: 1px solid #e2e8f0;
	background: #ffffff;
	font-size: 0.75rem;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
	color: #64748b;
}

.sus-btn:hover[b-uy1wdjt2tr] {
	border-color: #cbd5e1;
	background: #f8fafc;
}

.sus-btn.active-S[b-uy1wdjt2tr] {
	background: #d1fae5;
	border-color: #10b981;
	color: #065f46;
}

.sus-btn.active-I[b-uy1wdjt2tr] {
	background: #fef3c7;
	border-color: #f59e0b;
	color: #92400e;
}

.sus-btn.active-R[b-uy1wdjt2tr] {
	background: #fee2e2;
	border-color: #ef4444;
	color: #991b1b;
}

.sus-btn.active-MS[b-uy1wdjt2tr] {
	background: #dbeafe;
	border-color: #3b82f6;
	color: #1e40af;
}

.sus-btn.active-NT[b-uy1wdjt2tr] {
	background: #f1f5f9;
	border-color: #94a3b8;
	color: #475569;
}

/* AST Table inputs */
.ast-input[b-uy1wdjt2tr] {
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 4px 8px;
	font-size: 0.8rem;
	width: 70px;
	outline: none;
	font-weight: 600;
}

.ast-input:focus[b-uy1wdjt2tr] {
	border-color: #4f46e5;
}

/* Search Dropdowns */
.search-dropdown-wrapper[b-uy1wdjt2tr] {
	position: relative;
}

.search-dropdown-menu[b-uy1wdjt2tr] {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	z-index: 100;
	max-height: 220px;
	overflow-y: auto;
	margin-top: 4px;
}

.search-dropdown-item[b-uy1wdjt2tr] {
	padding: 10px 14px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #334155;
	cursor: pointer;
	transition: background 0.15s;
	text-align: left;
	width: 100%;
	border: none;
	background: none;
	display: block;
}

.search-dropdown-item:hover[b-uy1wdjt2tr] {
	background: #f1f5f9;
	color: #4f46e5;
}

/* Paper Preview Sheet */
.paper-preview-container[b-uy1wdjt2tr] {
	background: #e2e8f0;
	border-radius: 16px;
	padding: 16px;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.paper-sheet[b-uy1wdjt2tr] {
	background: #ffffff;
	border-radius: 4px;
	padding: 30px 24px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
	font-family: 'Courier New', Courier, monospace;
	font-size: 0.75rem;
	line-height: 1.5;
	color: #000000;
	min-height: 480px;
	white-space: pre-wrap;
	border-top: 4px solid #4f46e5;
}

/* Form Actions */
.form-actions-bar[b-uy1wdjt2tr] {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 24px;
	border-top: 1px solid #e2e8f0;
	padding-top: 20px;
}

.btn-secondary-premium[b-uy1wdjt2tr] {
	border: 1.5px solid #cbd5e1;
	background: #ffffff;
	border-radius: 8px;
	padding: 10px 20px;
	font-weight: 600;
	color: #475569;
	cursor: pointer;
	font-size: 0.9rem;
	transition: background 0.15s;
}

.btn-secondary-premium:hover[b-uy1wdjt2tr] {
	background: #f8fafc;
	color: #1e293b;
}

.btn-primary-premium[b-uy1wdjt2tr] {
	background: #10b981;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	padding: 10px 24px;
	font-weight: 700;
	cursor: pointer;
	font-size: 0.9rem;
	box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
	transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s;
}

.btn-primary-premium:hover[b-uy1wdjt2tr] {
	background: #059669;
	box-shadow: 0 6px 14px rgba(16, 185, 129, 0.3);
}

.btn-primary-premium:active[b-uy1wdjt2tr] {
	transform: scale(0.98);
}

/* Floating top-right corner rectangular toast popup notification */
.toast-container[b-uy1wdjt2tr] {
	position: fixed;
	top: 24px;
	right: 24px;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	gap: 12px;
	pointer-events: none;
}

.premium-toast[b-uy1wdjt2tr] {
	background: #ffffff;
	pointer-events: auto;
	border-radius: 4px;
	/* classic sleek rectangle */
	padding: 16px 20px;
	min-width: 320px;
	max-width: 440px;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 0.875rem;
	font-weight: 600;
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
	opacity: 0;
	transform: translateY(-20px);
}

.premium-toast.toast-show[b-uy1wdjt2tr] {
	opacity: 1;
	transform: translateY(0);
}

.premium-toast.toast-hide[b-uy1wdjt2tr] {
	opacity: 0;
	transform: translateY(-20px);
	pointer-events: none;
}

/* Coloured border classes */
.premium-toast.toast-error[b-uy1wdjt2tr] {
	border: 1.5px solid #fca5a5;
	border-left: 4px solid #ef4444;
	/* thick left side accent colored border */
	background-color: #fef2f2;
}

.premium-toast.toast-success[b-uy1wdjt2tr] {
	border: 1.5px solid #a7f3d0;
	border-left: 4px solid #10b981;
	/* thick left side accent colored border */
	background-color: #ecfdf5;
}

.toast-icon[b-uy1wdjt2tr] {
	font-size: 1.2rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.toast-error .toast-icon[b-uy1wdjt2tr] {
	color: #dc2626;
}

.toast-success .toast-icon[b-uy1wdjt2tr] {
	color: #059669;
}

.toast-content[b-uy1wdjt2tr] {
	flex: 1;
	color: #1e293b;
	font-weight: 600;
	line-height: 1.4;
}

.toast-close[b-uy1wdjt2tr] {
	cursor: pointer;
	color: #94a3b8;
	transition: color 0.15s, transform 0.15s;
	font-size: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2px;
}

.toast-close:hover[b-uy1wdjt2tr] {
	color: #475569;
	transform: scale(1.1);
}

/* Moved Styles from inline block */
.culture-container[b-uy1wdjt2tr] {
	padding: 24px 24px 24px;
	background: #f1f5f9;
	min-height: 100vh;
	font-family: 'Inter', sans-serif;
	box-sizing: border-box;
}

.culture-footer-scroll-spacer[b-uy1wdjt2tr] {
	flex: 0 0 96px;
	height: 96px;
	min-height: 96px;
	width: 100%;
	pointer-events: none;
}

.culture-card[b-uy1wdjt2tr] {
	background: white;
	border-radius: 12px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
	padding: 20px;
	margin-bottom: 20px;
	border: 1px solid #e2e8f0;
}

.culture-header-flex[b-uy1wdjt2tr] {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.patient-info[b-uy1wdjt2tr] {
	display: flex;
	gap: 24px;
	align-items: center;
	font-size: 14px;
}

.patient-name[b-uy1wdjt2tr] {
	color: #ef4444;
	/* red text as in image */
	font-weight: 700;
	font-size: 15px;
}

.patient-detail[b-uy1wdjt2tr] {
	color: #475569;
	font-weight: 600;
}

.patient-value[b-uy1wdjt2tr] {
	color: var(--lc-secondary);
	font-weight: 700;
}

.btn-authorize[b-uy1wdjt2tr] {
	background: white;
	color: #6366f1;
	border: 1px solid #e0e7ff;
	padding: 8px 16px;
	border-radius: 8px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	transition: all 0.2s;
}

.btn-authorize:hover:not(:disabled)[b-uy1wdjt2tr] {
	background: #e0e7ff;
}

.btn-authorize:disabled[b-uy1wdjt2tr] {
	opacity: 0.5;
	cursor: not-allowed;
}

.culture-tabs[b-uy1wdjt2tr] {
	display: flex;
	gap: 16px;
	margin-bottom: 24px;
}

.culture-tab[b-uy1wdjt2tr] {
	background: white;
	border: 1px solid #e2e8f0;
	padding: 12px 20px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	transition: all 0.2s;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.culture-tab.active[b-uy1wdjt2tr] {
	border: 2px solid #3b82f6;
	background: #eff6ff;
}

.tab-number[b-uy1wdjt2tr] {
	background: #3b82f6;
	color: white;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	font-weight: 700;
	font-size: 12px;
}

.culture-tab.active .tab-number[b-uy1wdjt2tr] {
	background: #2563eb;
}

.tab-text[b-uy1wdjt2tr] {
	text-align: left;
}

.tab-title[b-uy1wdjt2tr] {
	color: #64748b;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 2px;
}

.tab-name[b-uy1wdjt2tr] {
	color: var(--lc-secondary);
	font-weight: 700;
	font-size: 13px;
}

/* Form Grid */
.form-grid-3[b-uy1wdjt2tr] {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 24px;
}

.form-row[b-uy1wdjt2tr] {
	display: flex;
	align-items: center;
	margin-bottom: 16px;
}

.form-label[b-uy1wdjt2tr] {
	width: 140px;
	font-size: 12px;
	font-weight: 700;
	color: #475569;
	text-transform: uppercase;
	flex-shrink: 0;
}

.form-label-required[b-uy1wdjt2tr]::after {
	content: " *";
	color: #ef4444;
}

.form-input[b-uy1wdjt2tr] {
	flex: 1;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 13px;
	color: var(--lc-secondary);
	transition: all 0.2s;
	width: 100%;
	background: white;
}

.form-input:focus[b-uy1wdjt2tr] {
	border-color: #3b82f6;
	outline: none;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea.form-input[b-uy1wdjt2tr] {
	resize: vertical;
	min-height: 40px;
}

/* Radio Group */
.radio-group[b-uy1wdjt2tr] {
	display: flex;
	gap: 16px;
	flex: 1;
}

.radio-label[b-uy1wdjt2tr] {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #334155;
	font-weight: 600;
	cursor: pointer;
}

.radio-label input[type="radio"][b-uy1wdjt2tr] {
	accent-color: #6366f1;
	width: 16px;
	height: 16px;
}

/* Info Box */
.info-box[b-uy1wdjt2tr] {
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 8px;
	padding: 12px;
	margin-bottom: 16px;
}

.info-row[b-uy1wdjt2tr] {
	display: flex;
	font-size: 12px;
	margin-bottom: 6px;
}

.info-row:last-child[b-uy1wdjt2tr] {
	margin-bottom: 0;
}

.info-label[b-uy1wdjt2tr] {
	width: 100px;
	color: #64748b;
	font-weight: 600;
}

.info-val[b-uy1wdjt2tr] {
	color: #ef4444;
	font-weight: 600;
}

/* Footer */
.culture-footer[b-uy1wdjt2tr] {
	background: white;
	padding: 16px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-radius: 12px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
	border: 1px solid #e2e8f0;
}

.footer-left[b-uy1wdjt2tr] {
	display: flex;
	align-items: center;
	gap: 24px;
}

.footer-right[b-uy1wdjt2tr] {
	display: flex;
	gap: 12px;
}

.btn-footer[b-uy1wdjt2tr] {
	padding: 8px 24px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid transparent;
	transition: all 0.2s;
}

.btn-save[b-uy1wdjt2tr] {
	background: #6366f1;
	color: white;
}

.btn-save:hover:not(:disabled)[b-uy1wdjt2tr] {
	background: #4f46e5;
}

.btn-print[b-uy1wdjt2tr] {
	background: white;
	border-color: #cbd5e1;
	color: #6366f1;
}

.btn-delete[b-uy1wdjt2tr] {
	background: white;
	border-color: #fca5a5;
	color: #ef4444;
}

/* Drag & Drop Antibiotics Panel */
.ab-drag-item[b-uy1wdjt2tr] {
	padding: 10px 12px;
	background: white;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: grab;
	font-size: 13px;
	color: #334155;
	transition: all 0.2s;
}

.ab-drag-item:hover[b-uy1wdjt2tr] {
	border-color: #6366f1;
	box-shadow: 0 2px 4px rgba(99, 102, 241, 0.1);
}

.ab-drag-item:active[b-uy1wdjt2tr] {
	cursor: grabbing;
}

.section-tab[b-uy1wdjt2tr] {
	padding: 12px 24px;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-bottom: none;
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
	cursor: pointer;
	font-weight: 700;
	font-size: 12px;
	color: #64748b;
}

.active-tab-a[b-uy1wdjt2tr] {
	background: white;
	color: #ef4444;
	border-top: 3px solid #ef4444;
}

.active-tab-b[b-uy1wdjt2tr] {
	background: white;
	color: #f59e0b;
	border-top: 3px solid #f59e0b;
}

.active-tab-c[b-uy1wdjt2tr] {
	background: white;
	color: #eab308;
	border-top: 3px solid #eab308;
}

.pill-s[b-uy1wdjt2tr] {
	background: #10b981;
	color: white;
	border-radius: 50%;
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 12px;
	cursor: pointer;
	user-select: none;
}

.pill-r[b-uy1wdjt2tr] {
	background: #ef4444;
	color: white;
	border-radius: 50%;
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 12px;
	cursor: pointer;
	user-select: none;
}

.pill-i[b-uy1wdjt2tr] {
	background: #f59e0b;
	color: white;
	border-radius: 50%;
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 12px;
	cursor: pointer;
	user-select: none;
}

.pill-empty[b-uy1wdjt2tr] {
	background: #e2e8f0;
	color: #64748b;
	border-radius: 50%;
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 12px;
	cursor: pointer;
	user-select: none;
}

.drop-zone[b-uy1wdjt2tr] {
	transition: background 0.2s;
}

/* Drag & Drop Overlays */
.drag-overlay[b-uy1wdjt2tr] {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.4);
	backdrop-filter: blur(2px);
	display: flex;
	flex-direction: column;
	border-radius: 12px;
	overflow: hidden;
	border: 2px solid #6366f1;
	animation: fadeIn-b-uy1wdjt2tr 0.2s ease-out;
}

@keyframes fadeIn-b-uy1wdjt2tr {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.drag-header[b-uy1wdjt2tr] {
	position: absolute;
	top: 15px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--lc-secondary);
	color: white;
	padding: 8px 18px;
	border-radius: 30px;
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 0.05em;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	z-index: 110;
	text-transform: uppercase;
	white-space: nowrap;
}

.drag-zones-container[b-uy1wdjt2tr] {
	display: flex;
	height: 100%;
	width: 100%;
}

.drag-zone-item[b-uy1wdjt2tr] {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease-in-out;
	cursor: copy;
	border: 3px dashed transparent;
	gap: 6px;
}

.zone-sensitive[b-uy1wdjt2tr] {
	background: rgba(236, 253, 245, 0.6);
	color: #10b981;
}

.zone-sensitive.active[b-uy1wdjt2tr] {
	background: rgba(209, 250, 229, 0.85);
	border-color: #34d399;
	transform: scale(0.98);
}

.zone-intermediate[b-uy1wdjt2tr] {
	background: rgba(255, 251, 235, 0.6);
	color: #f59e0b;
}

.zone-intermediate.active[b-uy1wdjt2tr] {
	background: rgba(254, 243, 199, 0.85);
	border-color: #fbbf24;
	transform: scale(0.98);
}

.zone-resistant[b-uy1wdjt2tr] {
	background: rgba(254, 242, 242, 0.6);
	color: #ef4444;
}

.zone-resistant.active[b-uy1wdjt2tr] {
	background: rgba(254, 226, 226, 0.85);
	border-color: #f87171;
	transform: scale(0.98);
}

.zone-char[b-uy1wdjt2tr] {
	font-size: 40px;
	font-weight: 900;
	line-height: 1;
	margin-top: 15px;
}

.zone-text[b-uy1wdjt2tr] {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.05em;
}

/* ─── Pre-selected Sensitivity Zone Selector (Sidebar) ─── */
.sens-zone-selector[b-uy1wdjt2tr] {
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 10px;
	padding: 12px;
	margin-bottom: 14px;
}

.sens-zone-label[b-uy1wdjt2tr] {
	font-size: 10px;
	font-weight: 800;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 10px;
}

.sens-zone-btns[b-uy1wdjt2tr] {
	display: flex;
	gap: 8px;
}

.sens-zone-btn[b-uy1wdjt2tr] {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	border: 2px solid #e2e8f0;
	background: #ffffff;
	padding: 8px 4px;
	cursor: pointer;
	transition: all 0.2s ease;
	gap: 2px;
}

.sens-zone-btn:hover[b-uy1wdjt2tr] {
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.zone-btn-char[b-uy1wdjt2tr] {
	font-size: 20px;
	font-weight: 900;
	line-height: 1;
}

.zone-btn-text[b-uy1wdjt2tr] {
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* S = Sensitive */
.zone-btn-s[b-uy1wdjt2tr] {
	color: #059669;
	border-color: #a7f3d0;
}
.zone-btn-s:hover[b-uy1wdjt2tr] {
	background: #ecfdf5;
	border-color: #34d399;
}
.zone-btn-active-s[b-uy1wdjt2tr] {
	background: #10b981 !important;
	border-color: #059669 !important;
	color: #ffffff !important;
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4) !important;
}

/* I = Intermediate */
.zone-btn-i[b-uy1wdjt2tr] {
	color: #d97706;
	border-color: #fde68a;
}
.zone-btn-i:hover[b-uy1wdjt2tr] {
	background: #fffbeb;
	border-color: #fbbf24;
}
.zone-btn-active-i[b-uy1wdjt2tr] {
	background: #f59e0b !important;
	border-color: #d97706 !important;
	color: #ffffff !important;
	box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4) !important;
}

/* R = Resistant */
.zone-btn-r[b-uy1wdjt2tr] {
	color: #dc2626;
	border-color: #fca5a5;
}
.zone-btn-r:hover[b-uy1wdjt2tr] {
	background: #fef2f2;
	border-color: #f87171;
}
.zone-btn-active-r[b-uy1wdjt2tr] {
	background: #ef4444 !important;
	border-color: #dc2626 !important;
	color: #ffffff !important;
	box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4) !important;
}

/* ─── Active Zone Badge (next to section tabs) ─── */
.active-zone-badge[b-uy1wdjt2tr] {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	margin-left: 8px;
	animation: badge-pulse-b-uy1wdjt2tr 2s infinite;
}

.zone-badge-s[b-uy1wdjt2tr] {
	background: #d1fae5;
	color: #065f46;
	border: 1px solid #34d399;
}

.zone-badge-i[b-uy1wdjt2tr] {
	background: #fef3c7;
	color: #92400e;
	border: 1px solid #fbbf24;
}

.zone-badge-r[b-uy1wdjt2tr] {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #f87171;
}

@keyframes badge-pulse-b-uy1wdjt2tr {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.75; }
}

/* ─── Drop Zone color state during drag ─── */
.drop-zone-s[b-uy1wdjt2tr] {
	border: 2px dashed #10b981 !important;
	background: rgba(209, 250, 229, 0.15) !important;
}

.drop-zone-i[b-uy1wdjt2tr] {
	border: 2px dashed #f59e0b !important;
	background: rgba(254, 243, 199, 0.15) !important;
}

.drop-zone-r[b-uy1wdjt2tr] {
	border: 2px dashed #ef4444 !important;
	background: rgba(254, 226, 226, 0.15) !important;
}

/* ─── Drag Drop Hint (floating bar when zone pre-selected) ─── */
.drag-drop-hint[b-uy1wdjt2tr] {
	position: absolute;
	top: 16px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: 30px;
	font-size: 13px;
	font-weight: 600;
	z-index: 50;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
	animation: hint-bounce-b-uy1wdjt2tr 1s ease-in-out infinite;
	white-space: nowrap;
}

.drag-drop-hint-s[b-uy1wdjt2tr] {
	background: #10b981;
	color: white;
}

.drag-drop-hint-i[b-uy1wdjt2tr] {
	background: #f59e0b;
	color: white;
}

.drag-drop-hint-r[b-uy1wdjt2tr] {
	background: #ef4444;
	color: white;
}

@keyframes hint-bounce-b-uy1wdjt2tr {
	0%, 100% { top: 16px; }
	50% { top: 10px; }
}

/* ─── Antibiotic already added indicator ─── */
.ab-drag-added[b-uy1wdjt2tr] {
	border-color: #a7f3d0 !important;
	background: #f0fdf4 !important;
}

.culture-sections-grid[b-uy1wdjt2tr] {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 16px;
	align-items: stretch;
}

.culture-section-card[b-uy1wdjt2tr] {
	min-width: 0;
	background: #ffffff;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	padding: 14px;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.culture-section-card:hover[b-uy1wdjt2tr] {
	border-color: #a5b4fc;
}

.culture-section-card.selected[b-uy1wdjt2tr] {
	background: #f5f3ff;
	border-color: #6366f1;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14);
}

@media (max-width: 600px) {
	.culture-sections-grid[b-uy1wdjt2tr] {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 1180px) {
	.culture-footer-scroll-spacer[b-uy1wdjt2tr] {
		flex-basis: 150px;
		height: 150px;
		min-height: 150px;
	}
}

.culture-auth-state[b-uy1wdjt2tr] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 0 12px;
	border: 1px solid;
	border-radius: 8px;
	font-size: 0.82rem;
	font-weight: 750;
	white-space: nowrap;
}

.culture-auth-state .material-symbols-outlined[b-uy1wdjt2tr] {
	font-size: 18px;
}

.culture-auth-state.complete[b-uy1wdjt2tr] {
	background: #ecfdf5;
	border-color: #a7f3d0;
	color: #047857;
}

.culture-auth-state.pending[b-uy1wdjt2tr] {
	background: #eff6ff;
	border-color: #bfdbfe;
	color: #1d4ed8;
}

@media (max-width: 1180px) {
	.result-actions .re-footer-right-group[b-uy1wdjt2tr] {
		justify-content: flex-start !important;
		flex-wrap: nowrap !important;
		overflow-x: auto;
		overflow-y: hidden;
		scrollbar-width: none;
	}

	.result-actions .re-footer-right-group[b-uy1wdjt2tr]::-webkit-scrollbar {
		display: none;
	}

	.result-actions .re-footer-right-group .re-btn-action[b-uy1wdjt2tr],
	.result-actions .re-footer-right-group .culture-auth-state[b-uy1wdjt2tr] {
		flex: 0 0 auto !important;
		min-width: max-content !important;
	}
}


/* Culture Status Badges in Patient Header */
.culture-status-badge[b-uy1wdjt2tr] {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.culture-status-badge.status-final[b-uy1wdjt2tr] {
	background: #ecfdf5;
	color: #059669;
	border: 1px solid #a7f3d0;
}

.culture-status-badge.status-auth1[b-uy1wdjt2tr] {
	background: #eff6ff;
	color: #2563eb;
	border: 1px solid #bfdbfe;
}

.culture-status-badge.status-entered[b-uy1wdjt2tr] {
	background: #fef3c7;
	color: #b45309;
	border: 1px solid #fde68a;
}

.culture-status-badge.status-pending[b-uy1wdjt2tr] {
	background: #f1f5f9;
	color: #64748b;
	border: 1px solid #e2e8f0;
}

/* Revoke Modal Styles */
.re-culture-revoke-panel[b-uy1wdjt2tr] {
	background: #ffffff;
	border-radius: 12px;
	width: 90%;
	max-width: 540px;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	animation: modalSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	display: flex;
	flex-direction: column;
}

.re-culture-revoke-header[b-uy1wdjt2tr] {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #f1f5f9;
	background: #ffffff;
}

.re-culture-revoke-icon-wrap[b-uy1wdjt2tr] {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: #fee2e2;
	color: #dc2626;
	display: flex;
	align-items: center;
	justify-content: center;
}

.re-culture-revoke-title[b-uy1wdjt2tr] {
	font-size: 1.05rem;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
}

.re-culture-revoke-sub[b-uy1wdjt2tr] {
	font-size: 0.8rem;
	color: #64748b;
	margin: 2px 0 0 0;
}

.re-culture-revoke-body[b-uy1wdjt2tr] {
	padding: 20px;
}

.re-culture-revoke-notice[b-uy1wdjt2tr] {
	display: flex;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 8px;
	align-items: flex-start;
}

.re-culture-revoke-notice.notice-danger[b-uy1wdjt2tr] {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

.re-culture-revoke-notice.notice-danger span[b-uy1wdjt2tr] {
	color: #dc2626;
	font-size: 22px;
}

.re-culture-revoke-notice.notice-warning[b-uy1wdjt2tr] {
	background: #fffbeb;
	border: 1px solid #fde68a;
	color: #92400e;
}

.re-culture-revoke-notice.notice-warning span[b-uy1wdjt2tr] {
	color: #d97706;
	font-size: 22px;
}

.re-revoke-chip[b-uy1wdjt2tr] {
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 4px 10px;
	font-size: 0.78rem;
	color: #475569;
	cursor: pointer;
	transition: all 0.15s ease;
}

.re-revoke-chip:hover[b-uy1wdjt2tr] {
	background: #fee2e2;
	border-color: #fca5a5;
	color: #b91c1c;
}

.re-culture-revoke-footer[b-uy1wdjt2tr] {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	padding: 14px 20px;
	background: #f8fafc;
	border-top: 1px solid #f1f5f9;
}
/* /Components/Pages/CustomerLogs.razor.rz.scp.css */
/* ==========================================================================
   CUSTOMER ACTIVITY LOGS & AUDIT TRAIL — MODERN OBSIDIAN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Layout Wrapper ─────────────────────────── */
.cl-page-root[b-k21lued1mp] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.cl-top-bar[b-k21lued1mp] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.cl-title-block[b-k21lued1mp] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cl-title-icon-wrap[b-k21lued1mp] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cl-title-icon-wrap .material-symbols-outlined[b-k21lued1mp] {
    font-size: 20px;
}

.cl-breadcrumbs[b-k21lued1mp] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.cl-breadcrumb-link[b-k21lued1mp] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.cl-breadcrumb-link:hover[b-k21lued1mp] {
    color: #2563eb;
}

.cl-breadcrumb-sep[b-k21lued1mp] {
    font-size: 11px;
}

.cl-page-title[b-k21lued1mp] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cl-badge-directory[b-k21lued1mp] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cl-live-dot[b-k21lued1mp] {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.cl-top-actions[b-k21lued1mp] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cl-btn-secondary[b-k21lued1mp] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    padding: 0 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cl-btn-secondary:hover[b-k21lued1mp] {
    background: #f1f5f9;
    color: #0f172a;
}

.cl-btn-primary[b-k21lued1mp] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 14px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.cl-btn-primary:hover[b-k21lued1mp] {
    background: #1e293b;
    box-shadow: 0 3px 6px rgba(15, 23, 42, 0.12);
    transform: translateY(-0.5px);
}

/* ── 3. Filters Section ─────────────────────────────────────── */
.cl-filter-card[b-k21lued1mp] {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    padding: 8px 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
}

.cl-filter-grid[b-k21lued1mp] {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.cl-filter-group[b-k21lued1mp] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cl-filter-label[b-k21lued1mp] {
    font-size: 9.5px;
    font-weight: 750;
    color: #64748b;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cl-filter-input[b-k21lued1mp], .cl-filter-select[b-k21lued1mp] {
    height: 28px;
    padding: 0 8px;
    font-size: 11.5px;
    color: #1e293b;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    outline: none;
    transition: all 0.15s ease;
    box-sizing: border-box;
    width: 100%;
}

.cl-filter-input:focus[b-k21lued1mp], .cl-filter-select:focus[b-k21lued1mp] {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

/* ── 4. KPI / Stat Cards Grid ───────────────────────────────── */
.cl-stats-grid[b-k21lued1mp] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex-shrink: 0;
}

.cl-stat-card[b-k21lued1mp] {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    padding: 8px 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cl-stat-card[b-k21lued1mp]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
}

.cl-card-visits[b-k21lued1mp]::before { background: #2563eb; }
.cl-card-billed[b-k21lued1mp]::before { background: #0284c7; }
.cl-card-paid[b-k21lued1mp]::before { background: #10b981; }
.cl-card-outstanding[b-k21lued1mp]::before { background: #f59e0b; }

.cl-stat-top[b-k21lued1mp] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

.cl-stat-icon-wrap[b-k21lued1mp] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cl-card-visits .cl-stat-icon-wrap[b-k21lued1mp] { background: #eff6ff; color: #2563eb; }
.cl-card-billed .cl-stat-icon-wrap[b-k21lued1mp] { background: #f0f9ff; color: #0284c7; }
.cl-card-paid .cl-stat-icon-wrap[b-k21lued1mp] { background: #ecfdf5; color: #10b981; }
.cl-card-outstanding .cl-stat-icon-wrap[b-k21lued1mp] { background: #fffbeb; color: #d97706; }

.cl-stat-icon-wrap .material-symbols-outlined[b-k21lued1mp] {
    font-size: 16px;
}

.cl-stat-tag[b-k21lued1mp] {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
}

.cl-card-visits .cl-stat-tag[b-k21lued1mp] { background: #f1f5f9; color: #475569; }
.cl-card-billed .cl-stat-tag[b-k21lued1mp] { background: #e0f2fe; color: #0369a1; }
.cl-card-paid .cl-stat-tag[b-k21lued1mp] { background: #dcfce7; color: #15803d; }
.cl-card-outstanding .cl-stat-tag[b-k21lued1mp] { background: #fef3c7; color: #b45309; }

.cl-stat-label[b-k21lued1mp] {
    font-size: 9.5px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cl-stat-bottom[b-k21lued1mp] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.cl-stat-val[b-k21lued1mp] {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.cl-stat-subtext[b-k21lued1mp] {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── 5. Main Table Container (Single-Viewport) ──────────────── */
.cl-table-card[b-k21lued1mp] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.cl-table-container[b-k21lued1mp] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
}

.cl-table-container[b-k21lued1mp]::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.cl-table-container[b-k21lued1mp]::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.bl-table[b-k21lued1mp],
.cl-table[b-k21lued1mp] {
    width: 100%;
    border-collapse: collapse;
    font-size: 11.5px;
    text-align: left;
}

.cl-table thead[b-k21lued1mp],
.cl-table thead tr[b-k21lued1mp],
.cl-thead[b-k21lued1mp] {
    position: sticky !important;
    top: 0 !important;
    background: #f8fafc !important;
    background-image: none !important;
    z-index: 10;
    box-shadow: inset 0 -1px 0 #e2e8f0;
}

.cl-table th[b-k21lued1mp],
.cl-th[b-k21lued1mp] {
    background: #f8fafc !important;
    background-color: #f8fafc !important;
    background-image: none !important;
    padding: 8px 12px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    border-bottom: 1px solid #e2e8f0 !important;
    user-select: none;
}

.cl-table th span[b-k21lued1mp],
.cl-th span[b-k21lued1mp],
.cl-table th .th-icon-wrap[b-k21lued1mp],
.cl-th .th-icon-wrap[b-k21lued1mp] {
    background: transparent !important;
    color: #475569 !important;
}

.cl-tbody tr[b-k21lued1mp] {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.12s ease;
}

.cl-tbody tr:hover[b-k21lued1mp] {
    background: #f8fafc;
}

.cl-td[b-k21lued1mp] {
    padding: 7px 12px;
    color: #1e293b;
    vertical-align: middle;
}

/* Badges & Actions */
.cl-billno-pill[b-k21lued1mp] {
    font-weight: 700;
    color: #2563eb;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 11.5px;
}

.cl-type-badge[b-k21lued1mp] {
    display: inline-flex;
    align-items: center;
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 5px;
    background: #f5f3ff;
    color: #7c3aed;
    border: 1px solid #ddd6fe;
}

.cl-status-paid[b-k21lued1mp] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 12px;
    font-size: 10.5px;
    font-weight: 700;
    background: #ecfdf5;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.cl-status-due[b-k21lued1mp] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 12px;
    font-size: 10.5px;
    font-weight: 700;
    background: #fff1f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.cl-btn-action[b-k21lued1mp] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cl-btn-action:hover[b-k21lued1mp] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.cl-btn-action .material-symbols-outlined[b-k21lued1mp] {
    font-size: 15px;
}

/* ── 6. Pagination Footer ───────────────────────────────────── */
.cl-pagination-bar[b-k21lued1mp] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 6px 14px;
    font-size: 11px;
    color: #64748b;
    flex-shrink: 0;
    gap: 12px;
}

.cl-pagination-left[b-k21lued1mp] {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cl-pagesize-wrap[b-k21lued1mp] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #64748b;
}

.cl-pagesize-select[b-k21lued1mp] {
    height: 24px;
    padding: 0 6px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
    cursor: pointer;
}

.cl-pagesize-select:focus[b-k21lued1mp] {
    border-color: #2563eb;
}

.cl-page-btns[b-k21lued1mp] {
    display: flex;
    align-items: center;
    gap: 3px;
}

.cl-page-btn[b-k21lued1mp] {
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cl-page-btn:hover:not(:disabled)[b-k21lued1mp] {
    background: #f1f5f9;
    color: #0f172a;
}

.cl-page-btn.active[b-k21lued1mp] {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.cl-page-btn:disabled[b-k21lued1mp] {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── 7. Details Modal ───────────────────────────────────────── */
.cl-modal-overlay[b-k21lued1mp] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    padding: 16px;
}

.cl-modal-card[b-k21lued1mp] {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideUp-b-k21lued1mp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp-b-k21lued1mp {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.cl-modal-header[b-k21lued1mp] {
    background: #0f172a;
    color: #ffffff;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.cl-modal-title-wrap[b-k21lued1mp] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cl-modal-title[b-k21lued1mp] {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.cl-modal-icon-badge[b-k21lued1mp] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cl-modal-sub-id[b-k21lued1mp] {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 2px;
}

.cl-modal-close-btn[b-k21lued1mp] {
    background: transparent;
    border: none;
    color: #94a3b8;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.cl-modal-close-btn:hover[b-k21lued1mp] {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.cl-modal-body[b-k21lued1mp] {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cl-modal-body[b-k21lued1mp]::-webkit-scrollbar {
    width: 5px;
}
.cl-modal-body[b-k21lued1mp]::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.cl-info-grid[b-k21lued1mp] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.cl-info-card[b-k21lued1mp] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: box-shadow 0.15s ease;
}

.cl-info-card:hover[b-k21lued1mp] {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.cl-info-card-title[b-k21lued1mp] {
    font-size: 11px;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-bottom: 6px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cl-info-row[b-k21lued1mp] {
    font-size: 12px;
    color: #334155;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cl-sub-table[b-k21lued1mp] {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    margin-top: 6px;
}

.cl-sub-table th[b-k21lued1mp] {
    background: #f1f5f9;
    padding: 6px 10px;
    font-weight: 700;
    color: #475569;
    border-bottom: 1px solid #cbd5e1;
    font-size: 10px;
    text-transform: uppercase;
}

.cl-sub-table td[b-k21lued1mp] {
    padding: 6px 10px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
}

.cl-modal-footer[b-k21lued1mp] {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}
/* /Components/Pages/CustomerMaster.razor.rz.scp.css */
/* ==========================================================================
   CUSTOMER MASTER — SINGLE VIEWPORT MODERN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Main Layout Wrapper ────────────────────── */
.cm-page-root[b-gjltu7ac3y] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.cm-top-bar[b-gjltu7ac3y] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.cm-title-block[b-gjltu7ac3y] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cm-title-icon-wrap[b-gjltu7ac3y] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cm-title-icon-wrap .material-symbols-outlined[b-gjltu7ac3y] {
    font-size: 20px;
}

.cm-breadcrumbs[b-gjltu7ac3y] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.cm-breadcrumb-link[b-gjltu7ac3y] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.cm-breadcrumb-link:hover[b-gjltu7ac3y] {
    color: #2563eb;
}

.cm-breadcrumb-sep[b-gjltu7ac3y] {
    font-size: 11px;
}

.cm-page-title[b-gjltu7ac3y] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cm-badge-directory[b-gjltu7ac3y] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1.5px 6px;
    border-radius: 10px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.cm-live-dot[b-gjltu7ac3y] {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.cm-top-actions[b-gjltu7ac3y] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cm-search-wrap[b-gjltu7ac3y] {
    position: relative;
    width: 260px;
}

.cm-search-wrap > .material-symbols-outlined[b-gjltu7ac3y] {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.cm-search-input[b-gjltu7ac3y] {
    width: 100%;
    height: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 28px 0 32px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cm-clear-search-btn[b-gjltu7ac3y] {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    border-radius: 4px;
    transition: color 0.15s ease;
    z-index: 2;
}

.cm-clear-search-btn:hover[b-gjltu7ac3y] {
    color: #334155;
}

.cm-clear-search-btn .material-symbols-outlined[b-gjltu7ac3y] {
    position: static;
    transform: none;
    font-size: 14px;
    pointer-events: auto;
}

.cm-search-input:focus[b-gjltu7ac3y] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.cm-btn-primary[b-gjltu7ac3y] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cm-btn-primary:hover[b-gjltu7ac3y] {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

.cm-btn-icon[b-gjltu7ac3y] {
    font-size: 16px;
}

/* ── 3. KPI / Stat Cards Grid ───────────────────────────────── */
.cm-stats-grid[b-gjltu7ac3y] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    flex-shrink: 0;
}

@media (max-width: 1100px) {
    .cm-stats-grid[b-gjltu7ac3y] {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cm-stat-card[b-gjltu7ac3y] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 7px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cm-stat-card:hover[b-gjltu7ac3y] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.cm-stat-top[b-gjltu7ac3y] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cm-stat-icon-wrap[b-gjltu7ac3y] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cm-stat-icon-wrap .material-symbols-outlined[b-gjltu7ac3y] {
    font-size: 15px;
}

.cm-stat-tag[b-gjltu7ac3y] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.cm-card-total .cm-stat-icon-wrap[b-gjltu7ac3y] { background: #eff6ff; color: #3b82f6; }
.cm-card-total .cm-stat-tag[b-gjltu7ac3y] { background: #eff6ff; color: #2563eb; }

.cm-card-male .cm-stat-icon-wrap[b-gjltu7ac3y] { background: #e0f2fe; color: #0284c7; }
.cm-card-male .cm-stat-tag[b-gjltu7ac3y] { background: #e0f2fe; color: #0369a1; }

.cm-card-female .cm-stat-icon-wrap[b-gjltu7ac3y] { background: #fce7f3; color: #db2777; }
.cm-card-female .cm-stat-tag[b-gjltu7ac3y] { background: #fce7f3; color: #be185d; }

.cm-card-contact .cm-stat-icon-wrap[b-gjltu7ac3y] { background: #f0fdf4; color: #16a34a; }
.cm-card-contact .cm-stat-tag[b-gjltu7ac3y] { background: #f0fdf4; color: #15803d; }

.cm-stat-mid[b-gjltu7ac3y] {
    margin-top: 2px;
}

.cm-stat-label[b-gjltu7ac3y] {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    margin: 0;
}

.cm-stat-bottom[b-gjltu7ac3y] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.cm-stat-val[b-gjltu7ac3y] {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1;
}

.cm-stat-subtext[b-gjltu7ac3y] {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
}

/* ── 4. Table Card & Single Viewport Table ─────────────────── */
.cm-table-card[b-gjltu7ac3y] {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    margin-bottom: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
}

.cm-table-container[b-gjltu7ac3y] {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    width: 100%;
}

.cm-table[b-gjltu7ac3y] {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    text-align: left;
}

.cm-thead[b-gjltu7ac3y] {
    background: #f8fafc !important;
}

.cm-th[b-gjltu7ac3y] {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8fafc !important;
    padding: 9px 10px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
    border-top: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-left: none !important;
    border-right: none !important;
    vertical-align: middle !important;
    box-shadow: 0 1px 0 #e2e8f0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cm-tbody tr[b-gjltu7ac3y] {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.12s ease;
}

.cm-tbody tr:hover[b-gjltu7ac3y] {
    background-color: #f8fafc;
}

.cm-td[b-gjltu7ac3y] {
    padding: 7px 10px;
    color: #334155;
    vertical-align: middle;
    border-bottom: 1px solid #f8fafc;
    font-size: 13px;
    overflow: hidden;
}

.cm-text-truncate[b-gjltu7ac3y] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
}

/* Patient / Customer Cell */
.cm-patient-cell[b-gjltu7ac3y] {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    width: 100%;
}

.cm-patient-text-wrap[b-gjltu7ac3y] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.cm-avatar[b-gjltu7ac3y] {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.cm-avatar:hover[b-gjltu7ac3y] {
    transform: scale(1.08);
}

.cm-avatar-icon[b-gjltu7ac3y] {
    font-size: 17px !important;
}

.cm-avatar-male[b-gjltu7ac3y] {
    background: #e0f2fe;
    color: #0284c7;
    border: 1px solid #bae6fd;
}

.cm-avatar-female[b-gjltu7ac3y] {
    background: #fce7f3;
    color: #db2777;
    border: 1px solid #fbcfe8;
}

.cm-avatar-child[b-gjltu7ac3y] {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
}

.cm-patient-name[b-gjltu7ac3y] {
    font-weight: 700;
    color: #0f172a;
    font-size: 13.5px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
}

.cm-patient-sub[b-gjltu7ac3y] {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cm-badge-code[b-gjltu7ac3y] {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
}

/* Action Buttons */
.cm-actions-cell[b-gjltu7ac3y] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.cm-btn-edit[b-gjltu7ac3y] {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.cm-btn-edit:hover[b-gjltu7ac3y] {
    background: #2563eb;
    color: #ffffff;
}

.cm-btn-edit .material-symbols-outlined[b-gjltu7ac3y] {
    font-size: 15px;
}

.cm-btn-delete[b-gjltu7ac3y] {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.cm-btn-delete:hover[b-gjltu7ac3y] {
    background: #e11d48;
    color: #ffffff;
}

.cm-btn-delete .material-symbols-outlined[b-gjltu7ac3y] {
    font-size: 15px;
}

/* ── 5. Pagination & Table Footer ─────────────────────────── */
.cm-table-footer[b-gjltu7ac3y] {
    padding: 6px 14px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 10px;
    background: #ffffff;
    font-size: 12px;
}

.cm-page-size-wrap[b-gjltu7ac3y] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.cm-page-size-select[b-gjltu7ac3y] {
    height: 26px;
    padding: 0 6px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    outline: none;
}

.cm-page-info[b-gjltu7ac3y] {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.cm-page-info strong[b-gjltu7ac3y] {
    color: #0f172a;
    font-weight: 700;
}

.cm-pagination-wrap[b-gjltu7ac3y] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cm-page-btn[b-gjltu7ac3y] {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cm-page-btn:hover:not(:disabled)[b-gjltu7ac3y] {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.cm-page-btn.active[b-gjltu7ac3y] {
    background: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
    font-weight: 700;
}

.cm-page-btn:disabled[b-gjltu7ac3y] {
    opacity: 0.4;
    cursor: not-allowed;
}

.cm-page-btn .material-symbols-outlined[b-gjltu7ac3y] {
    font-size: 15px;
}

/* ── 6. Add/Edit Modal Dialog ─────────────────────────────── */
.cm-modal-overlay[b-gjltu7ac3y] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.cm-modal-card[b-gjltu7ac3y] {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
    animation: cmModalIn-b-gjltu7ac3y 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cmModalIn-b-gjltu7ac3y {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.cm-modal-header[b-gjltu7ac3y] {
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafafa;
}

.cm-modal-header h3[b-gjltu7ac3y] {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.cm-modal-close-btn[b-gjltu7ac3y] {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.15s;
}

.cm-modal-close-btn:hover[b-gjltu7ac3y] {
    background: #f1f5f9;
    color: #0f172a;
}

.cm-modal-body[b-gjltu7ac3y] {
    padding: 16px 18px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cm-form-grid[b-gjltu7ac3y] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.cm-form-col-1[b-gjltu7ac3y] { grid-column: span 1; }
.cm-form-col-2[b-gjltu7ac3y] { grid-column: span 2; }
.cm-form-col-3[b-gjltu7ac3y] { grid-column: span 3; }

.cm-form-group[b-gjltu7ac3y] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cm-form-label[b-gjltu7ac3y] {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.cm-form-input[b-gjltu7ac3y],
.cm-form-select[b-gjltu7ac3y],
.cm-form-textarea[b-gjltu7ac3y] {
    height: 32px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.cm-form-textarea[b-gjltu7ac3y] {
    height: 56px;
    padding: 6px 10px;
    resize: vertical;
}

.cm-form-input:focus[b-gjltu7ac3y],
.cm-form-select:focus[b-gjltu7ac3y],
.cm-form-textarea:focus[b-gjltu7ac3y] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.cm-modal-footer[b-gjltu7ac3y] {
    padding: 10px 18px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    background: #fafafa;
}

.cm-btn-cancel[b-gjltu7ac3y] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.cm-btn-cancel:hover[b-gjltu7ac3y] {
    background: #f1f5f9;
    color: #0f172a;
}

.cm-btn-save[b-gjltu7ac3y] {
    height: 32px;
    padding: 0 18px;
    border-radius: 6px;
    background: #0f172a;
    border: none;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}

.cm-btn-save:hover:not(:disabled)[b-gjltu7ac3y] {
    background: #1e293b;
}

.cm-btn-save:disabled[b-gjltu7ac3y] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── 7. Empty & Loading States ────────────────────────────── */
.cm-empty-state-cell[b-gjltu7ac3y] {
    padding: 60px 20px !important;
    text-align: center !important;
    vertical-align: middle !important;
}

.cm-empty-state[b-gjltu7ac3y] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #64748b;
    font-size: 13.5px;
    font-weight: 500;
    width: 100%;
    margin: 0 auto;
}

.cm-spinner-icon[b-gjltu7ac3y] {
    font-size: 38px !important;
    color: #4f46e5 !important;
    animation: spin 1s linear infinite !important;
}

.cm-spinner-text[b-gjltu7ac3y] {
    color: #475569;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.cm-empty-icon[b-gjltu7ac3y] {
    font-size: 42px !important;
    color: #cbd5e1 !important;
}

/* ── 8. Branch Filter Pill & Toggle ─────────────────────────── */
.cm-branch-pill[b-gjltu7ac3y] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    color: #16a34a;
    cursor: default;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
}

.cm-branch-pill:has(input:checked)[b-gjltu7ac3y] {
    background: #dcfce7;
    border-color: #86efac;
}

/* iOS-style toggle */
.cm-toggle[b-gjltu7ac3y] {
    position: relative;
    display: inline-flex;
    width: 32px;
    height: 17px;
    cursor: pointer;
    flex-shrink: 0;
}

.cm-toggle input[b-gjltu7ac3y] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.cm-toggle-slider[b-gjltu7ac3y] {
    position: absolute;
    inset: 0;
    border-radius: 17px;
    background: #cbd5e1;
    transition: background 0.2s ease;
    cursor: pointer;
}

.cm-toggle-slider[b-gjltu7ac3y]::before {
    content: '';
    position: absolute;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #ffffff;
    top: 2px;
    left: 2px;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}

.cm-toggle input:checked + .cm-toggle-slider[b-gjltu7ac3y] {
    background: #16a34a;
}

.cm-toggle input:checked + .cm-toggle-slider[b-gjltu7ac3y]::before {
    transform: translateX(15px);
}
/* /Components/Pages/DepartmentMaster.razor.rz.scp.css */
/* ==========================================================================
   DEPARTMENT MASTER — SINGLE VIEWPORT MODERN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Main Layout Wrapper ────────────────────── */
.dept-page-root[b-3hsduirh1u] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.dept-top-bar[b-3hsduirh1u] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.dept-title-block[b-3hsduirh1u] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dept-title-icon-wrap[b-3hsduirh1u] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dept-title-icon-wrap .material-symbols-outlined[b-3hsduirh1u] {
    font-size: 20px;
}

.dept-breadcrumbs[b-3hsduirh1u] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.dept-breadcrumb-link[b-3hsduirh1u] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.dept-breadcrumb-link:hover[b-3hsduirh1u] {
    color: #2563eb;
}

.dept-breadcrumb-sep[b-3hsduirh1u] {
    font-size: 11px;
}

.dept-page-title[b-3hsduirh1u] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dept-badge-directory[b-3hsduirh1u] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dept-live-dot[b-3hsduirh1u] {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.dept-top-actions[b-3hsduirh1u] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dept-search-wrap[b-3hsduirh1u] {
    position: relative;
    width: 240px;
}

.dept-search-wrap .material-symbols-outlined[b-3hsduirh1u] {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.dept-search-input[b-3hsduirh1u] {
    width: 100%;
    height: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 10px 0 32px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dept-search-input:focus[b-3hsduirh1u] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.dept-btn-primary[b-3hsduirh1u] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.dept-btn-primary:hover[b-3hsduirh1u] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

.dept-btn-icon[b-3hsduirh1u] {
    font-size: 16px;
}

/* ── 3. KPI / Stat Cards Grid ───────────────────────────────── */
.dept-stats-grid[b-3hsduirh1u] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex-shrink: 0;
}

.dept-stat-card[b-3hsduirh1u] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 7px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.dept-stat-card[b-3hsduirh1u]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.dept-card-total[b-3hsduirh1u]::before  { background: #3b82f6; }
.dept-card-mapped[b-3hsduirh1u]::before { background: #10b981; }
.dept-card-groups[b-3hsduirh1u]::before { background: #6366f1; }
.dept-card-active[b-3hsduirh1u]::before { background: #0ea5e9; }

.dept-stat-card:hover[b-3hsduirh1u] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.dept-stat-top[b-3hsduirh1u] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dept-stat-icon-wrap[b-3hsduirh1u] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dept-stat-icon-wrap .material-symbols-outlined[b-3hsduirh1u] {
    font-size: 15px;
}

.dept-stat-tag[b-3hsduirh1u] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.dept-stat-tag .material-symbols-outlined[b-3hsduirh1u] {
    font-size: 13px;
}

.dept-card-total .dept-stat-icon-wrap[b-3hsduirh1u]  { background: #eff6ff; color: #3b82f6; }
.dept-card-total .dept-stat-tag[b-3hsduirh1u]        { background: #eff6ff; color: #2563eb; }

.dept-card-mapped .dept-stat-icon-wrap[b-3hsduirh1u] { background: #ecfdf5; color: #059669; }
.dept-card-mapped .dept-stat-tag[b-3hsduirh1u]       { background: #ecfdf5; color: #047857; }

.dept-card-groups .dept-stat-icon-wrap[b-3hsduirh1u] { background: #eef2ff; color: #6366f1; }
.dept-card-groups .dept-stat-tag[b-3hsduirh1u]       { background: #eef2ff; color: #4f46e5; }

.dept-card-active .dept-stat-icon-wrap[b-3hsduirh1u] { background: #f0f9ff; color: #0284c7; }
.dept-card-active .dept-stat-tag[b-3hsduirh1u]       { background: #f0f9ff; color: #0369a1; }

.dept-stat-mid[b-3hsduirh1u] {
    margin-top: 1px;
}

.dept-stat-label[b-3hsduirh1u] {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dept-stat-bottom[b-3hsduirh1u] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.dept-stat-val[b-3hsduirh1u] {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.dept-stat-subtext[b-3hsduirh1u] {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── 4. Table Card Container (Single Viewport Inner Area) ─── */
.dept-table-card[b-3hsduirh1u] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.dept-table-container[b-3hsduirh1u] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

.dept-table[b-3hsduirh1u] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    text-align: left;
}

/* Light Slate Header */
.dept-thead[b-3hsduirh1u] {
    position: sticky;
    top: 0;
    z-index: 10;
}

.dept-th[b-3hsduirh1u] {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 9px 12px;
    border-bottom: 1px solid #e2e8f0;
    border-top: none;
    white-space: nowrap;
    user-select: none;
}

.dept-tbody tr[b-3hsduirh1u] {
    background-color: #ffffff;
    transition: background-color 0.12s ease;
}

.dept-tbody tr:hover[b-3hsduirh1u] {
    background-color: #f8fafc;
}

.dept-td[b-3hsduirh1u] {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
    font-size: 12px;
}

.dept-badge-code[b-3hsduirh1u] {
    display: inline-block;
    padding: 2px 7px;
    background: #f1f5f9;
    color: #2563eb;
    font-family: monospace;
    font-weight: 800;
    font-size: 11.5px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
}

.dept-name-cell[b-3hsduirh1u] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dept-avatar[b-3hsduirh1u] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 11px;
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6, #0284c7);
    flex-shrink: 0;
}

.dept-name-text[b-3hsduirh1u] {
    font-weight: 700;
    color: #0f172a;
}

.dept-groups-wrap[b-3hsduirh1u] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 400px;
}

.dept-group-chip[b-3hsduirh1u] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

/* Action Buttons */
.dept-actions-cell[b-3hsduirh1u] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.dept-btn-action[b-3hsduirh1u] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.12s ease;
    padding: 0;
}

.dept-btn-action .material-symbols-outlined[b-3hsduirh1u] {
    font-size: 15px;
}

.dept-btn-action:hover[b-3hsduirh1u] {
    background: #f1f5f9;
    color: #0f172a;
}

.dept-btn-action-edit:hover[b-3hsduirh1u] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.dept-btn-action-delete:hover[b-3hsduirh1u] {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

/* ── 5. Modal Dialog ────────────────────────────────────────── */
.dept-modal-overlay[b-3hsduirh1u] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.dept-modal-card[b-3hsduirh1u] {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: dept-scale-in-b-3hsduirh1u 0.15s ease-out;
}

@keyframes dept-scale-in-b-3hsduirh1u {
    from { transform: scale(0.96); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.dept-modal-header[b-3hsduirh1u] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.dept-modal-title-wrap[b-3hsduirh1u] {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0f172a;
}

.dept-modal-title[b-3hsduirh1u] {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.dept-modal-close-btn[b-3hsduirh1u] {
    width: 28px;
    height: 28px;
    border: none;
    background: #f1f5f9;
    border-radius: 6px;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.12s;
}

.dept-modal-close-btn:hover[b-3hsduirh1u] {
    background: #e2e8f0;
    color: #0f172a;
}

.dept-modal-body[b-3hsduirh1u] {
    padding: 18px;
    overflow-y: auto;
    max-height: calc(85vh - 120px);
    background: #ffffff;
}

.dept-form-fields[b-3hsduirh1u] {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dept-form-grid[b-3hsduirh1u] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.dept-form-group[b-3hsduirh1u] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dept-form-label[b-3hsduirh1u] {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.dept-form-input[b-3hsduirh1u], .dept-form-textarea[b-3hsduirh1u] {
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #ffffff;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: all 0.15s;
    font-family: inherit;
}

.dept-form-textarea[b-3hsduirh1u] {
    height: 72px;
    padding: 6px 10px;
    resize: vertical;
}

.dept-form-input:focus[b-3hsduirh1u], .dept-form-textarea:focus[b-3hsduirh1u] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dept-modal-footer[b-3hsduirh1u] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 18px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    gap: 8px;
}

.dept-btn-cancel[b-3hsduirh1u] {
    height: 32px;
    padding: 0 14px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.dept-btn-cancel:hover[b-3hsduirh1u] {
    background: #f1f5f9;
    color: #1e293b;
}

.dept-btn-delete[b-3hsduirh1u] {
    height: 32px;
    padding: 0 14px;
    background: #ffffff;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    margin-right: auto;
}

.dept-btn-delete:hover:not(:disabled)[b-3hsduirh1u] {
    background: #fef2f2;
}

.dept-btn-delete:disabled[b-3hsduirh1u] {
    opacity: 0.5;
    cursor: not-allowed;
}

.dept-btn-save[b-3hsduirh1u] {
    height: 32px;
    padding: 0 16px;
    background: #0f172a !important;
    border: none !important;
    border-radius: 6px;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.dept-btn-save:hover[b-3hsduirh1u] {
    background: #1e293b !important;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}
/* /Components/Pages/DoctorSpecialtyMaster.razor.rz.scp.css */
/* ==========================================================================
   DOCTOR SPECIALTY MASTER — MODERN OBSIDIAN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Main Layout Wrapper ────────────────────── */
.ds-page-root[b-s5rpbacda4] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.ds-top-bar[b-s5rpbacda4] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.ds-title-block[b-s5rpbacda4] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ds-title-icon-wrap[b-s5rpbacda4] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ds-title-icon-wrap .material-symbols-outlined[b-s5rpbacda4] {
    font-size: 20px;
}

.ds-breadcrumbs[b-s5rpbacda4] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.ds-breadcrumb-link[b-s5rpbacda4] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.ds-breadcrumb-link:hover[b-s5rpbacda4] {
    color: #2563eb;
}

.ds-breadcrumb-sep[b-s5rpbacda4] {
    font-size: 11px;
}

.ds-page-title[b-s5rpbacda4] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ds-badge-directory[b-s5rpbacda4] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ds-live-dot[b-s5rpbacda4] {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.ds-top-actions[b-s5rpbacda4] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ds-search-wrap[b-s5rpbacda4] {
    position: relative;
    width: 240px;
}

.ds-search-wrap .material-symbols-outlined[b-s5rpbacda4] {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.ds-search-input[b-s5rpbacda4] {
    width: 100%;
    height: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 10px 0 32px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ds-search-input:focus[b-s5rpbacda4] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.ds-btn-primary[b-s5rpbacda4] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.ds-btn-primary:hover[b-s5rpbacda4] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

.ds-btn-icon[b-s5rpbacda4] {
    font-size: 16px;
}

/* ── 3. KPI / Stat Cards Grid ───────────────────────────────── */
.ds-stats-grid[b-s5rpbacda4] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex-shrink: 0;
}

.ds-stat-card[b-s5rpbacda4] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 7px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.ds-stat-card[b-s5rpbacda4]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.ds-card-total[b-s5rpbacda4]::before    { background: #3b82f6; }
.ds-card-named[b-s5rpbacda4]::before    { background: #6366f1; }
.ds-card-short[b-s5rpbacda4]::before    { background: #10b981; }
.ds-card-filtered[b-s5rpbacda4]::before { background: #f59e0b; }

.ds-stat-card:hover[b-s5rpbacda4] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.ds-stat-top[b-s5rpbacda4] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ds-stat-icon-wrap[b-s5rpbacda4] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ds-stat-icon-wrap .material-symbols-outlined[b-s5rpbacda4] {
    font-size: 15px;
}

.ds-stat-tag[b-s5rpbacda4] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.ds-stat-tag .material-symbols-outlined[b-s5rpbacda4] {
    font-size: 13px;
}

.ds-card-total .ds-stat-icon-wrap[b-s5rpbacda4]    { background: #eff6ff; color: #3b82f6; }
.ds-card-total .ds-stat-tag[b-s5rpbacda4]          { background: #eff6ff; color: #2563eb; }

.ds-card-named .ds-stat-icon-wrap[b-s5rpbacda4]    { background: #eef2ff; color: #6366f1; }
.ds-card-named .ds-stat-tag[b-s5rpbacda4]          { background: #eef2ff; color: #4f46e5; }

.ds-card-short .ds-stat-icon-wrap[b-s5rpbacda4]    { background: #ecfdf5; color: #10b981; }
.ds-card-short .ds-stat-tag[b-s5rpbacda4]          { background: #ecfdf5; color: #059669; }

.ds-card-filtered .ds-stat-icon-wrap[b-s5rpbacda4] { background: #fffbeb; color: #d97706; }
.ds-card-filtered .ds-stat-tag[b-s5rpbacda4]       { background: #fffbeb; color: #b45309; }

.ds-stat-mid[b-s5rpbacda4] {
    margin-top: 1px;
}

.ds-stat-label[b-s5rpbacda4] {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ds-stat-bottom[b-s5rpbacda4] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.ds-stat-val[b-s5rpbacda4] {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.ds-stat-subtext[b-s5rpbacda4] {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── 4. Table Card Container (Single Viewport Inner Area) ─── */
.ds-table-card[b-s5rpbacda4] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.ds-table-container[b-s5rpbacda4] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

.ds-table[b-s5rpbacda4] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    text-align: left;
}

/* Light Slate Sticky Header */
.ds-thead[b-s5rpbacda4] {
    position: sticky;
    top: 0;
    z-index: 10;
}

.ds-th[b-s5rpbacda4] {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 9px 12px;
    border-bottom: 1px solid #e2e8f0;
    border-top: none;
    white-space: nowrap;
    user-select: none;
}

.ds-tbody tr[b-s5rpbacda4] {
    background-color: #ffffff;
    transition: background-color 0.12s ease;
}

.ds-tbody tr:hover[b-s5rpbacda4] {
    background-color: #f8fafc;
}

.ds-td[b-s5rpbacda4] {
    padding: 7px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
    font-size: 12px;
}

.ds-badge-code[b-s5rpbacda4] {
    display: inline-block;
    padding: 2px 6px;
    background: #f1f5f9;
    color: #475569;
    font-family: monospace;
    font-weight: 700;
    font-size: 11px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.ds-shortname-pill[b-s5rpbacda4] {
    display: inline-block;
    color: #64748b;
    font-family: monospace;
    font-weight: 600;
    font-size: 11.5px;
    background: #f8fafc;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.ds-name-cell[b-s5rpbacda4] {
    font-weight: 700;
    color: #0f172a;
    font-size: 12px;
}

.ds-desc-cell[b-s5rpbacda4] {
    color: #64748b;
    font-size: 11.5px;
}

.ds-date-cell[b-s5rpbacda4] {
    color: #64748b;
    font-size: 11.5px;
    white-space: nowrap;
}

/* Action Buttons */
.ds-actions-cell[b-s5rpbacda4] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.ds-btn-action[b-s5rpbacda4] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.ds-btn-action .material-symbols-outlined[b-s5rpbacda4] {
    font-size: 14px;
}

.ds-btn-edit:hover[b-s5rpbacda4] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.ds-btn-delete:hover[b-s5rpbacda4] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* ── 5. Modal Backdrop & Card Form ──────────────────────────── */
.ds-modal-overlay[b-s5rpbacda4] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 16px;
    animation: dsFadeIn-b-s5rpbacda4 0.15s ease-out;
}

@keyframes dsFadeIn-b-s5rpbacda4 {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ds-modal-card[b-s5rpbacda4] {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 520px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: dsSlideUp-b-s5rpbacda4 0.15s ease-out;
}

@keyframes dsSlideUp-b-s5rpbacda4 {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ds-modal-header[b-s5rpbacda4] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.ds-modal-title[b-s5rpbacda4] {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.ds-modal-close-btn[b-s5rpbacda4] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.ds-modal-close-btn:hover[b-s5rpbacda4] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.ds-modal-body[b-s5rpbacda4] {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 75vh;
    overflow-y: auto;
}

.ds-form-group[b-s5rpbacda4] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ds-form-label[b-s5rpbacda4] {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ds-form-input[b-s5rpbacda4],
.ds-form-select[b-s5rpbacda4] {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ds-form-input:focus[b-s5rpbacda4],
.ds-form-select:focus[b-s5rpbacda4] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.ds-grid-2col[b-s5rpbacda4] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ds-modal-footer[b-s5rpbacda4] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.ds-btn-delete[b-s5rpbacda4] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #fca5a5;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ds-btn-delete:hover:not(:disabled)[b-s5rpbacda4] {
    background: #fee2e2;
}

.ds-btn-delete:disabled[b-s5rpbacda4] {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #e2e8f0;
    color: #94a3b8;
}

.ds-btn-save[b-s5rpbacda4] {
    height: 32px;
    padding: 0 16px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ds-btn-save:hover[b-s5rpbacda4] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

/* ── 6. Pagination & Table Footer ─────────────────────────── */
.ds-table-footer[b-s5rpbacda4] {
    padding: 6px 14px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 10px;
    background: #ffffff;
    font-size: 12px;
}

.ds-page-size-wrap[b-s5rpbacda4] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.ds-page-size-select[b-s5rpbacda4] {
    height: 26px;
    padding: 0 6px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    outline: none;
    cursor: pointer;
}

.ds-page-info[b-s5rpbacda4] {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.ds-page-info strong[b-s5rpbacda4] {
    color: #0f172a;
    font-weight: 700;
}

.ds-pagination-wrap[b-s5rpbacda4] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ds-page-btn[b-s5rpbacda4] {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ds-page-btn:hover:not(:disabled)[b-s5rpbacda4] {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.ds-page-btn.active[b-s5rpbacda4] {
    background: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
    font-weight: 700;
}

.ds-page-btn:disabled[b-s5rpbacda4] {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
}
/* /Components/Pages/DoctorTypeMaster.razor.rz.scp.css */
/* ==========================================================================
   DOCTOR TYPE MASTER — MODERN OBSIDIAN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Main Layout Wrapper ────────────────────── */
.dt-page-root[b-f4yls8hf7q] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.dt-top-bar[b-f4yls8hf7q] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.dt-title-block[b-f4yls8hf7q] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dt-title-icon-wrap[b-f4yls8hf7q] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dt-title-icon-wrap .material-symbols-outlined[b-f4yls8hf7q] {
    font-size: 20px;
}

.dt-breadcrumbs[b-f4yls8hf7q] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.dt-breadcrumb-link[b-f4yls8hf7q] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.dt-breadcrumb-link:hover[b-f4yls8hf7q] {
    color: #2563eb;
}

.dt-breadcrumb-sep[b-f4yls8hf7q] {
    font-size: 11px;
}

.dt-page-title[b-f4yls8hf7q] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dt-badge-directory[b-f4yls8hf7q] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dt-live-dot[b-f4yls8hf7q] {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.dt-top-actions[b-f4yls8hf7q] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dt-search-wrap[b-f4yls8hf7q] {
    position: relative;
    width: 240px;
}

.dt-search-wrap .material-symbols-outlined[b-f4yls8hf7q] {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.dt-search-input[b-f4yls8hf7q] {
    width: 100%;
    height: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 10px 0 32px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dt-search-input:focus[b-f4yls8hf7q] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.dt-btn-primary[b-f4yls8hf7q] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.dt-btn-primary:hover[b-f4yls8hf7q] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

.dt-btn-icon[b-f4yls8hf7q] {
    font-size: 16px;
}

/* ── 3. KPI / Stat Cards Grid ───────────────────────────────── */
.dt-stats-grid[b-f4yls8hf7q] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex-shrink: 0;
}

.dt-stat-card[b-f4yls8hf7q] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 7px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.dt-stat-card[b-f4yls8hf7q]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.dt-card-total[b-f4yls8hf7q]::before    { background: #3b82f6; }
.dt-card-named[b-f4yls8hf7q]::before    { background: #6366f1; }
.dt-card-short[b-f4yls8hf7q]::before    { background: #10b981; }
.dt-card-filtered[b-f4yls8hf7q]::before { background: #f59e0b; }

.dt-stat-card:hover[b-f4yls8hf7q] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.dt-stat-top[b-f4yls8hf7q] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dt-stat-icon-wrap[b-f4yls8hf7q] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dt-stat-icon-wrap .material-symbols-outlined[b-f4yls8hf7q] {
    font-size: 15px;
}

.dt-stat-tag[b-f4yls8hf7q] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.dt-stat-tag .material-symbols-outlined[b-f4yls8hf7q] {
    font-size: 13px;
}

.dt-card-total .dt-stat-icon-wrap[b-f4yls8hf7q]    { background: #eff6ff; color: #3b82f6; }
.dt-card-total .dt-stat-tag[b-f4yls8hf7q]          { background: #eff6ff; color: #2563eb; }

.dt-card-named .dt-stat-icon-wrap[b-f4yls8hf7q]    { background: #eef2ff; color: #6366f1; }
.dt-card-named .dt-stat-tag[b-f4yls8hf7q]          { background: #eef2ff; color: #4f46e5; }

.dt-card-short .dt-stat-icon-wrap[b-f4yls8hf7q]    { background: #ecfdf5; color: #10b981; }
.dt-card-short .dt-stat-tag[b-f4yls8hf7q]          { background: #ecfdf5; color: #059669; }

.dt-card-filtered .dt-stat-icon-wrap[b-f4yls8hf7q] { background: #fffbeb; color: #d97706; }
.dt-card-filtered .dt-stat-tag[b-f4yls8hf7q]       { background: #fffbeb; color: #b45309; }

.dt-stat-mid[b-f4yls8hf7q] {
    margin-top: 1px;
}

.dt-stat-label[b-f4yls8hf7q] {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dt-stat-bottom[b-f4yls8hf7q] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.dt-stat-val[b-f4yls8hf7q] {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.dt-stat-subtext[b-f4yls8hf7q] {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── 4. Table Card Container (Single Viewport Inner Area) ─── */
.dt-table-card[b-f4yls8hf7q] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.dt-table-container[b-f4yls8hf7q] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

.dt-table[b-f4yls8hf7q] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    text-align: left;
}

/* Light Slate Sticky Header */
.dt-thead[b-f4yls8hf7q] {
    position: sticky;
    top: 0;
    z-index: 10;
}

.dt-th[b-f4yls8hf7q] {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 9px 12px;
    border-bottom: 1px solid #e2e8f0;
    border-top: none;
    white-space: nowrap;
    user-select: none;
}

.dt-tbody tr[b-f4yls8hf7q] {
    background-color: #ffffff;
    transition: background-color 0.12s ease;
}

.dt-tbody tr:hover[b-f4yls8hf7q] {
    background-color: #f8fafc;
}

.dt-td[b-f4yls8hf7q] {
    padding: 7px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
    font-size: 12px;
}

.dt-badge-code[b-f4yls8hf7q] {
    display: inline-block;
    padding: 2px 6px;
    background: #f1f5f9;
    color: #475569;
    font-family: monospace;
    font-weight: 700;
    font-size: 11px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.dt-shortname-pill[b-f4yls8hf7q] {
    display: inline-block;
    color: #64748b;
    font-family: monospace;
    font-weight: 600;
    font-size: 11.5px;
    background: #f8fafc;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.dt-name-cell[b-f4yls8hf7q] {
    font-weight: 700;
    color: #0f172a;
    font-size: 12px;
}

.dt-desc-cell[b-f4yls8hf7q] {
    color: #64748b;
    font-size: 11.5px;
}

.dt-date-cell[b-f4yls8hf7q] {
    color: #64748b;
    font-size: 11.5px;
    white-space: nowrap;
}

/* Action Buttons */
.dt-actions-cell[b-f4yls8hf7q] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.dt-btn-action[b-f4yls8hf7q] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.dt-btn-action .material-symbols-outlined[b-f4yls8hf7q] {
    font-size: 14px;
}

.dt-btn-edit:hover[b-f4yls8hf7q] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.dt-btn-delete:hover[b-f4yls8hf7q] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* ── 5. Modal Backdrop & Card Form ──────────────────────────── */
.dt-modal-overlay[b-f4yls8hf7q] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 16px;
    animation: dtFadeIn-b-f4yls8hf7q 0.15s ease-out;
}

@keyframes dtFadeIn-b-f4yls8hf7q {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dt-modal-card[b-f4yls8hf7q] {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 520px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: dtSlideUp-b-f4yls8hf7q 0.15s ease-out;
}

@keyframes dtSlideUp-b-f4yls8hf7q {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dt-modal-header[b-f4yls8hf7q] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.dt-modal-title[b-f4yls8hf7q] {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.dt-modal-close-btn[b-f4yls8hf7q] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.dt-modal-close-btn:hover[b-f4yls8hf7q] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.dt-modal-body[b-f4yls8hf7q] {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 75vh;
    overflow-y: auto;
}

.dt-form-group[b-f4yls8hf7q] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dt-form-label[b-f4yls8hf7q] {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dt-form-input[b-f4yls8hf7q],
.dt-form-select[b-f4yls8hf7q] {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dt-form-input:focus[b-f4yls8hf7q],
.dt-form-select:focus[b-f4yls8hf7q] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.dt-grid-2col[b-f4yls8hf7q] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.dt-modal-footer[b-f4yls8hf7q] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.dt-btn-delete[b-f4yls8hf7q] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #fca5a5;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dt-btn-delete:hover:not(:disabled)[b-f4yls8hf7q] {
    background: #fee2e2;
}

.dt-btn-delete:disabled[b-f4yls8hf7q] {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #e2e8f0;
    color: #94a3b8;
}

.dt-btn-save[b-f4yls8hf7q] {
    height: 32px;
    padding: 0 16px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dt-btn-save:hover[b-f4yls8hf7q] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

/* ── 6. Pagination & Table Footer ─────────────────────────── */
.dt-table-footer[b-f4yls8hf7q] {
    padding: 6px 14px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 10px;
    background: #ffffff;
    font-size: 12px;
}

.dt-page-size-wrap[b-f4yls8hf7q] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.dt-page-size-select[b-f4yls8hf7q] {
    height: 26px;
    padding: 0 6px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    outline: none;
    cursor: pointer;
}

.dt-page-info[b-f4yls8hf7q] {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.dt-page-info strong[b-f4yls8hf7q] {
    color: #0f172a;
    font-weight: 700;
}

.dt-pagination-wrap[b-f4yls8hf7q] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dt-page-btn[b-f4yls8hf7q] {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dt-page-btn:hover:not(:disabled)[b-f4yls8hf7q] {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.dt-page-btn.active[b-f4yls8hf7q] {
    background: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
    font-weight: 700;
}

.dt-page-btn:disabled[b-f4yls8hf7q] {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
}
/* /Components/Pages/DueCollection.razor.rz.scp.css */
/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   DUE COLLECTION â€” PREMIUM MODERN THEME (MATCHING VIEW BILLS)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

:root[b-1slie08hi4] {
    --dc-bg: #f6f8fb;
    --dc-card-bg: #ffffff;
    --dc-border: #f1f5f9;
    --dc-border-dark: #e2e8f0;
    --dc-text-main: #0f172a;
    --dc-text-muted: #64748b;
    --dc-text-subtle: #94a3b8;
    --dc-dark-pill: #1e293b;
    --dc-primary: #4f46e5;
}

/* â”€â”€ Pure Single Viewport Full-Height Container â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.dc-page-container[b-1slie08hi4] {
    width: 100%;
    height: 100%;
    max-height: 100%;
    background-color: #f6f8fb;
    padding: 12px 22px 12px 22px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #0f172a;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* â”€â”€ Top Header Bar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.dc-header[b-1slie08hi4] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-shrink: 0;
    gap: 14px;
}

.dc-header-left[b-1slie08hi4] {
    display: flex;
    flex-direction: column;
}

.dc-page-title[b-1slie08hi4] {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.dc-breadcrumbs[b-1slie08hi4] {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dc-breadcrumb-link[b-1slie08hi4] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
    cursor: pointer;
}

.dc-breadcrumb-link:hover[b-1slie08hi4] {
    color: #4f46e5;
    text-decoration: underline;
}

.dc-breadcrumbs span[b-1slie08hi4] {
    color: #94a3b8;
}

.dc-header-actions[b-1slie08hi4] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dc-btn-primary[b-1slie08hi4] {
    height: 34px;
    padding: 0 14px;
    border-radius: 8px;
    background: #1e293b;
    color: #ffffff;
    border: none;
    font-size: 12.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.dc-btn-primary:hover[b-1slie08hi4] {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.15);
}

.dc-btn-secondary[b-1slie08hi4] {
    height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    border: 1px solid #e2e8f0;
    font-size: 12.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dc-btn-secondary:hover[b-1slie08hi4] {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.dc-btn-filter-toggle[b-1slie08hi4] {
    height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    border: 1px solid #e2e8f0;
    font-size: 12.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dc-btn-filter-toggle.active[b-1slie08hi4],
.dc-btn-filter-toggle:hover[b-1slie08hi4] {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

/* â”€â”€ 5 KPI / Stat Cards Grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.dc-stats-grid[b-1slie08hi4] {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 10px;
    flex-shrink: 0;
}

@media (max-width: 1200px) {
    .dc-stats-grid[b-1slie08hi4] {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .dc-stats-grid[b-1slie08hi4] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .dc-stats-grid[b-1slie08hi4] {
        grid-template-columns: 1fr;
    }
}

.dc-stat-card[b-1slie08hi4] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: auto;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dc-stat-card:hover[b-1slie08hi4] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.dc-stat-top[b-1slie08hi4] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dc-stat-icon-wrap[b-1slie08hi4] {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dc-stat-icon-wrap .material-symbols-outlined[b-1slie08hi4] {
    font-size: 16px;
}

.dc-stat-tag[b-1slie08hi4] {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.dc-stat-tag .material-symbols-outlined[b-1slie08hi4] {
    font-size: 13px;
}

/* Card 1 â€” Total Outstanding Due */
.dc-card-due .dc-stat-icon-wrap[b-1slie08hi4] {
    background: #fef2f2;
    color: #ef4444;
}

.dc-card-due .dc-stat-tag[b-1slie08hi4] {
    background: #fef2f2;
    color: #dc2626;
}

/* Card 2 â€” Selected to Collect */
.dc-card-selected .dc-stat-icon-wrap[b-1slie08hi4] {
    background: #f0fdf4;
    color: #16a34a;
}

.dc-card-selected .dc-stat-tag[b-1slie08hi4] {
    background: #f0fdf4;
    color: #15803d;
}

/* Card 3 â€” Bills Count */
.dc-card-bills .dc-stat-icon-wrap[b-1slie08hi4] {
    background: #eff6ff;
    color: #3b82f6;
}

.dc-card-bills .dc-stat-tag[b-1slie08hi4] {
    background: #f8fafc;
    color: #2563eb;
}

/* Card 4 â€” Concession */
.dc-card-concession .dc-stat-icon-wrap[b-1slie08hi4] {
    background: #fff1f2;
    color: #f43f5e;
}

.dc-card-concession .dc-stat-tag[b-1slie08hi4] {
    background: #fff1f2;
    color: #f43f5e;
}

/* Card 5 â€” Collected So Far */
.dc-card-collected .dc-stat-icon-wrap[b-1slie08hi4] {
    background: #ecfdf5;
    color: #10b981;
}

.dc-card-collected .dc-stat-tag[b-1slie08hi4] {
    background: #ecfdf5;
    color: #10b981;
}

.dc-stat-mid[b-1slie08hi4] {
    margin-top: 4px;
}

.dc-stat-label[b-1slie08hi4] {
    font-size: 0.74rem;
    font-weight: 600;
    color: #64748b;
    margin: 0;
}

.dc-stat-bottom[b-1slie08hi4] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 2px;
}

.dc-stat-val[b-1slie08hi4] {
    font-size: 1.12rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1;
}

.dc-stat-subtext[b-1slie08hi4] {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
}

/* â”€â”€ Collapsible Filter Panel â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.dc-filter-anim-wrap[b-1slie08hi4] {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, margin-bottom 0.2s ease;
    margin-bottom: 0;
    flex-shrink: 0;
}

.dc-filter-anim-wrap.open[b-1slie08hi4] {
    max-height: 380px;
    opacity: 1;
    margin-bottom: 10px;
    overflow: visible;
}

.dc-filter-card[b-1slie08hi4] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 12px 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.dc-filter-type-bar[b-1slie08hi4] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.dc-type-badge-label[b-1slie08hi4] {
    font-size: 10.5px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.dc-type-pill-container[b-1slie08hi4] {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 3px;
    display: flex;
    gap: 4px;
    width: 100%;
    box-sizing: border-box;
}

.dc-type-pill-btn[b-1slie08hi4] {
    flex: 1;
    border: none;
    background: transparent;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.dc-type-pill-btn:hover[b-1slie08hi4] {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.5);
}

.dc-type-pill-btn.active[b-1slie08hi4] {
    background: #1e293b;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dc-filter-section-divider[b-1slie08hi4] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 2px 0;
}

.dc-filter-section-divider[b-1slie08hi4]::before,
.dc-filter-section-divider[b-1slie08hi4]::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.dc-filter-section-divider span[b-1slie08hi4] {
    font-size: 10px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dc-filter-row[b-1slie08hi4] {
    display: grid;
    gap: 12px;
}

.dc-filter-row.cols-1[b-1slie08hi4] {
    grid-template-columns: 1fr;
}

.dc-filter-row.cols-2[b-1slie08hi4] {
    grid-template-columns: 1fr 1fr;
}

.dc-form-field[b-1slie08hi4] {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
}

.dc-form-label[b-1slie08hi4] {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.dc-form-input[b-1slie08hi4],
.dc-form-select[b-1slie08hi4] {
    height: 36px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    padding: 0 10px;
    font-size: 12.5px;
    color: #1e293b;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
    width: 100%;
}

.dc-form-input[type="date"][b-1slie08hi4],
.dc-form-input[type="time"][b-1slie08hi4] {
    font-family: inherit;
    font-size: 12px;
    padding: 0 8px;
    cursor: pointer;
}

.dc-form-input:focus[b-1slie08hi4],
.dc-form-select:focus[b-1slie08hi4] {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.dc-btn-filter-search[b-1slie08hi4] {
    height: 36px;
    padding: 0 16px;
    border-radius: 7px;
    background: #1e293b;
    color: #ffffff;
    border: none;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dc-btn-filter-search:hover[b-1slie08hi4] {
    background: #0f172a;
}

/* Autocomplete Dropdown */
.dc-autocomplete-dropdown[b-1slie08hi4] {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    max-height: 220px;
    overflow-y: auto;
    margin-top: 4px;
}

.dc-autocomplete-item[b-1slie08hi4] {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-bottom: 1px solid #f8fafc;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: background 0.12s ease;
}

.dc-autocomplete-item:hover[b-1slie08hi4] {
    background: #f1f5f9;
}

/* â”€â”€ Actions & Payment Bar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.dc-actions-bar[b-1slie08hi4] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 12px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 12px;
    flex-wrap: wrap;
}

.dc-actions-left[b-1slie08hi4] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dc-actions-right[b-1slie08hi4] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dc-bar-field[b-1slie08hi4] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dc-bar-label[b-1slie08hi4] {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.dc-bar-select[b-1slie08hi4],
.dc-bar-input[b-1slie08hi4] {
    height: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 8px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
}

.dc-bar-select:focus[b-1slie08hi4],
.dc-bar-input:focus[b-1slie08hi4] {
    border-color: #6366f1;
}

.dc-btn-auto-select[b-1slie08hi4] {
    height: 32px;
    padding: 0 12px;
    border-radius: 6px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
    align-self: flex-end;
}

.dc-btn-auto-select:hover:not(:disabled)[b-1slie08hi4] {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.dc-btn-auto-select:disabled[b-1slie08hi4] {
    opacity: 0.5;
    cursor: not-allowed;
}

.dc-table-search-wrap[b-1slie08hi4] {
    position: relative;
    width: 220px;
}

.dc-table-search-wrap .material-symbols-outlined[b-1slie08hi4] {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.dc-table-search-input[b-1slie08hi4] {
    width: 100%;
    height: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 10px 0 30px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
}

.dc-table-search-input:focus[b-1slie08hi4] {
    border-color: #6366f1;
}

.dc-btn-save[b-1slie08hi4] {
    height: 32px;
    padding: 0 16px;
    border-radius: 6px;
    background: #16a34a;
    color: #ffffff;
    border: none;
    font-size: 12.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(22, 163, 74, 0.2);
}

.dc-btn-save:hover:not(:disabled)[b-1slie08hi4] {
    background: #15803d;
    box-shadow: 0 2px 5px rgba(22, 163, 74, 0.35);
}

.dc-btn-save:disabled[b-1slie08hi4] {
    opacity: 0.65;
    cursor: not-allowed;
}

/* â”€â”€ Table Card & Single Viewport Table â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.dc-table-card[b-1slie08hi4] {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    margin-bottom: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
}

.dc-table-container[b-1slie08hi4] {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    min-height: 0;
    width: 100%;
}

.dc-table[b-1slie08hi4] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12.5px;
    text-align: left;
    white-space: nowrap;
}

.dc-table-card .dc-table thead[b-1slie08hi4],
.dc-table-card .dc-thead[b-1slie08hi4],
.dc-thead[b-1slie08hi4] {
    background: #f8fafc !important;
}

.dc-table-card .dc-table th[b-1slie08hi4],
.dc-table-card .dc-th[b-1slie08hi4],
.dc-th[b-1slie08hi4] {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8fafc !important;
    padding: 10px 14px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
    border-top: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-left: none !important;
    border-right: none !important;
    vertical-align: middle !important;
    box-shadow: 0 1px 0 #e2e8f0 !important;
}

.dc-th-checkbox[b-1slie08hi4] {
    width: 36px !important;
    padding-left: 14px !important;
}

.dc-tbody tr[b-1slie08hi4] {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.12s ease;
}

.dc-tbody tr:hover[b-1slie08hi4] {
    background-color: #f8fafc;
}

.dc-tbody tr.selected-row[b-1slie08hi4] {
    background-color: #f0fdf4;
}

.dc-td[b-1slie08hi4] {
    padding: 8px 14px;
    color: #334155;
    vertical-align: middle;
    border-bottom: 1px solid #f8fafc;
    font-size: 12.5px;
}

.dc-td-checkbox[b-1slie08hi4] {
    width: 36px;
    padding-left: 14px;
}

.dc-checkbox[b-1slie08hi4] {
    width: 15px;
    height: 15px;
    border-radius: 4px;
    border: 1.5px solid #cbd5e1;
    cursor: pointer;
    accent-color: #1e293b;
    vertical-align: middle;
}

.dc-sample-badge[b-1slie08hi4] {
    font-weight: 700;
    color: #4f46e5;
    font-size: 12.5px;
}

.dc-date-text[b-1slie08hi4] {
    color: #475569;
    font-weight: 500;
    font-size: 12px;
}

/* Patient Name with Circular Avatar */
.dc-patient-cell[b-1slie08hi4] {
    display: flex;
    align-items: center;
    gap: 9px;
}

.dc-avatar[b-1slie08hi4] {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.dc-avatar:hover[b-1slie08hi4] {
    transform: scale(1.08);
}

.dc-avatar-icon[b-1slie08hi4] {
    font-size: 17px !important;
}

.dc-gender-letter[b-1slie08hi4] {
    font-size: 12.5px;
    font-weight: 800;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1;
    text-transform: uppercase;
    user-select: none;
}

.dc-avatar-male[b-1slie08hi4] {
    background: #e0f2fe;
    color: #1d4ed8;
    border: 1.5px solid #93c5fd;
}

.dc-avatar-female[b-1slie08hi4] {
    background: #fce7f3;
    color: #be185d;
    border: 1.5px solid #f9a8d4;
}

.dc-avatar-child[b-1slie08hi4] {
    background: #fef3c7;
    color: #b45309;
    border: 1.5px solid #fcd34d;
}

.dc-patient-info[b-1slie08hi4] {
    display: flex;
    flex-direction: column;
}

.dc-patient-name[b-1slie08hi4] {
    font-weight: 700;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.2;
}

.dc-patient-meta[b-1slie08hi4] {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.dc-doctor-text[b-1slie08hi4] {
    color: #475569;
    font-weight: 500;
    font-size: 12.5px;
}

.dc-amount-text[b-1slie08hi4] {
    font-weight: 700;
    color: #0f172a;
    font-size: 13px;
}

.dc-curr-balance[b-1slie08hi4] {
    font-weight: 800;
    color: #dc2626;
    font-size: 13px;
}

.dc-inline-input[b-1slie08hi4] {
    width: 100px;
    height: 28px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    text-align: right;
    outline: none;
    transition: all 0.15s ease;
    background: #ffffff;
}

.dc-inline-input:focus[b-1slie08hi4] {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.dc-inline-input:disabled[b-1slie08hi4] {
    background: #f8fafc;
    color: #94a3b8;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

/* â”€â”€ Pagination & Table Footer â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.dc-table-footer[b-1slie08hi4] {
    padding: 6px 14px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 10px;
    background: #ffffff;
    font-size: 12px;
}

.dc-page-size-wrap[b-1slie08hi4] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.dc-page-size-select[b-1slie08hi4] {
    height: 26px;
    padding: 0 6px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    outline: none;
    cursor: pointer;
}

.dc-pagination-info[b-1slie08hi4] {
    color: #64748b;
    font-weight: 500;
    font-size: 12px;
}

.dc-pagination-info-highlight[b-1slie08hi4] {
    color: #0f172a;
    font-weight: 700;
}

.dc-pagination-nav[b-1slie08hi4] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dc-page-btn[b-1slie08hi4] {
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.12s ease;
}

.dc-page-btn:hover:not(:disabled)[b-1slie08hi4] {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.dc-page-btn.active[b-1slie08hi4] {
    background: #1e293b;
    color: #ffffff;
    border-color: #1e293b;
}

.dc-page-btn:disabled[b-1slie08hi4] {
    opacity: 0.4;
    cursor: not-allowed;
}

/* â”€â”€ Custom Scrollbar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.dc-table-container[b-1slie08hi4]::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.dc-table-container[b-1slie08hi4]::-webkit-scrollbar-track {
    background: #f8fafc;
}

.dc-table-container[b-1slie08hi4]::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.dc-table-container[b-1slie08hi4]::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* â”€â”€ Alerts â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.dc-alert[b-1slie08hi4] {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.dc-alert-success[b-1slie08hi4] {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.dc-alert-danger[b-1slie08hi4] {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   UTILITY CLASSES
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.dc-td-right[b-1slie08hi4] { text-align: right; }
.dc-th-right[b-1slie08hi4] { text-align: right; }
.dc-th-collecting[b-1slie08hi4],
.dc-th-concession[b-1slie08hi4] {
    text-align: right;
    width: 120px;
}

/* Named bar-field widths (replaces inline style=width) */
.dc-bar-field-paymode[b-1slie08hi4] { width: 160px; }
.dc-bar-field-bank[b-1slie08hi4]    { width: 140px; }
.dc-bar-field-cheque-no[b-1slie08hi4]   { width: 110px; }
.dc-bar-field-cheque-date[b-1slie08hi4] { width: 130px; }
.dc-bar-field-amount[b-1slie08hi4]  { width: 130px; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   FILTER DRAWER (right-side slide panel)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.dc-drawer-backdrop[b-1slie08hi4] {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 117.65vw !important;
    height: 117.65vh !important;
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
    z-index: 2147483646 !important;
}

.dc-filter-drawer[b-1slie08hi4] {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: min(480px, 94vw) !important;
    height: 117.65vh !important;
    min-height: 117.65vh !important;
    max-height: 117.65vh !important;
    background: #ffffff !important;
    z-index: 2147483647 !important;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.18) !important;
    display: flex !important;
    flex-direction: column !important;
    transform: translateX(100%) !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow: hidden !important;
}

.dc-filter-drawer.dc-drawer-open[b-1slie08hi4] {
    transform: translateX(0) !important;
}

.dc-drawer-header[b-1slie08hi4] {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: #ffffff;
}

.dc-drawer-body[b-1slie08hi4] {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #ffffff;
}

.dc-drawer-footer[b-1slie08hi4] {
    padding: 14px 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #f8fafc;
    flex-shrink: 0;
}

.dc-drawer-footer-actions[b-1slie08hi4] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dc-drawer-cancel-btn[b-1slie08hi4] {
    height: 38px;
    padding: 0 16px;
    border-radius: 7px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dc-drawer-cancel-btn:hover[b-1slie08hi4] {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.dc-btn-filter-apply[b-1slie08hi4] {
    height: 38px;
    padding: 0 20px;
    border-radius: 7px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    border: none;
    font-size: 12.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
    transition: all 0.15s ease;
}

.dc-btn-filter-apply:hover[b-1slie08hi4] {
    background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.3);
    transform: translateY(-1px);
}

.dc-drawer-close-btn[b-1slie08hi4] {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dc-drawer-close-btn:hover[b-1slie08hi4] {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #ef4444;
}

.dc-drawer-clear-btn[b-1slie08hi4] {
    height: 38px;
    padding: 0 14px;
    border-radius: 7px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #ef4444;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.dc-drawer-clear-btn:hover[b-1slie08hi4] {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CONTAINER QUERIES â€” sidebar-aware responsive layout
   Breakpoints: >=1160px full | 700-1159px two-col | <700px single-col
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ FULL LAYOUT (>= 1160px container) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@container dc-page (min-width: 1160px) {
    .dc-page-container[b-1slie08hi4] {
        overflow-y: auto;
        padding: 12px 22px;
    }
    .dc-stats-grid[b-1slie08hi4] {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    .dc-actions-bar[b-1slie08hi4] {
        flex-wrap: nowrap;
    }
    .dc-table-card[b-1slie08hi4] {
        flex: 1;
        min-height: 0;
    }
    .dc-table-container[b-1slie08hi4] {
        overflow-x: auto;
    }
}

/* ── TWO-COL / TABLET LAYOUT (700px – 1159px container) — Matches Desktop Look ── */
@container dc-page (min-width: 700px) and (max-width: 1159px) {
    .dc-page-container[b-1slie08hi4] {
        height: 100%;
        max-height: 100%;
        overflow: hidden;
        padding: 10px 16px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .dc-header[b-1slie08hi4] {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 12px;
        margin-bottom: 4px;
        flex-shrink: 0;
    }
    .dc-header-left[b-1slie08hi4] {
        flex-shrink: 0;
    }
    .dc-page-title[b-1slie08hi4] {
        font-size: 1.15rem;
    }
    .dc-header-actions[b-1slie08hi4] {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
        margin-left: auto;
    }
    .dc-stats-grid[b-1slie08hi4] {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 6px;
        flex-shrink: 0;
    }
    .dc-stat-card[b-1slie08hi4] {
        padding: 6px 10px;
        border-radius: 8px;
    }
    .dc-stat-icon-wrap[b-1slie08hi4] {
        width: 24px;
        height: 24px;
    }
    .dc-stat-icon-wrap .material-symbols-outlined[b-1slie08hi4] {
        font-size: 14px;
    }
    .dc-stat-label[b-1slie08hi4] { font-size: 0.7rem; }
    .dc-stat-val[b-1slie08hi4]   { font-size: 1rem; }
    .dc-stat-subtext[b-1slie08hi4] { font-size: 0.65rem; }
    .dc-actions-bar[b-1slie08hi4] {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 8px;
        padding: 6px 10px;
        flex-shrink: 0;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .dc-actions-bar[b-1slie08hi4]::-webkit-scrollbar {
        display: none;
    }
    .dc-actions-left[b-1slie08hi4] {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 6px;
        flex: 1 1 auto;
        min-width: 0;
    }
    .dc-actions-right[b-1slie08hi4] {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 6px;
        flex-shrink: 0;
        margin-left: auto;
    }
    .dc-table-search-wrap[b-1slie08hi4] {
        width: 150px;
        min-width: 120px;
        flex-shrink: 0;
    }
    .dc-table-search-input[b-1slie08hi4] { height: 30px; font-size: 11.5px; }
    .dc-bar-select[b-1slie08hi4],
    .dc-bar-input[b-1slie08hi4]          { height: 30px; font-size: 11.5px; }
    .dc-btn-auto-select[b-1slie08hi4],
    .dc-btn-save[b-1slie08hi4]           { height: 30px; font-size: 11.5px; white-space: nowrap; }
    .dc-table-card[b-1slie08hi4] {
        flex: 1 1 auto;
        min-height: 0;
        height: auto;
        max-height: none;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border-radius: 8px;
    }
    .dc-table-container[b-1slie08hi4] {
        flex: 1 1 auto;
        min-height: 0;
        height: 100%;
        max-height: none;
        overflow-y: auto;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .dc-table[b-1slie08hi4]    { font-size: 12px; white-space: nowrap; }
    .dc-th[b-1slie08hi4]       { padding: 8px; font-size: 11px; }
    .dc-td[b-1slie08hi4]       { padding: 6px 8px; font-size: 12px; }
    .dc-avatar[b-1slie08hi4]   { width: 24px; height: 24px; }
    .dc-gender-letter[b-1slie08hi4] { font-size: 11px; }
    .dc-inline-input[b-1slie08hi4]  { height: 26px; font-size: 11.5px; padding: 0 6px; width: 75px; }
    .dc-table-footer[b-1slie08hi4]  { padding: 6px 12px; flex-wrap: nowrap; gap: 8px; flex-shrink: 0; }
}

/* â”€â”€ SINGLE-COL LAYOUT (< 700px container) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@container dc-page (max-width: 699px) {
    .dc-page-container[b-1slie08hi4] {
        overflow-y: auto;
        padding: 8px;
        gap: 6px;
    }
    .dc-header[b-1slie08hi4] {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .dc-header-actions[b-1slie08hi4] {
        justify-content: space-between;
        width: 100%;
    }
    .dc-stats-grid[b-1slie08hi4] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }
    .dc-actions-bar[b-1slie08hi4] {
        flex-direction: column;
        align-items: stretch;
        padding: 8px;
        gap: 8px;
    }
    .dc-actions-left[b-1slie08hi4],
    .dc-actions-right[b-1slie08hi4] {
        flex-wrap: wrap;
        width: 100%;
        gap: 6px;
    }
    .dc-bar-field-paymode[b-1slie08hi4],
    .dc-bar-field-bank[b-1slie08hi4],
    .dc-bar-field-cheque-no[b-1slie08hi4],
    .dc-bar-field-cheque-date[b-1slie08hi4],
    .dc-bar-field-amount[b-1slie08hi4] {
        width: 100%;
        flex: 1 1 auto;
    }
    .dc-btn-save[b-1slie08hi4] {
        width: 100%;
        justify-content: center;
    }
    .dc-table-search-wrap[b-1slie08hi4] {
        flex: 1 1 100%;
    }

    /* Pagination: show only currentÂ±1 */
    .dc-pagination-nav .dc-page-btn:not(:first-child):not(:last-child):not(.active)[b-1slie08hi4] {
        display: none;
    }
    .dc-page-size-wrap[b-1slie08hi4] { font-size: 11px; }
    .dc-table-footer[b-1slie08hi4] { flex-wrap: wrap; gap: 6px; justify-content: space-between; }

    /* Table: Preserve standard tabular view with clean horizontal & vertical scrolling */
    .dc-table-card[b-1slie08hi4] {
        flex: 1 1 auto;
        min-height: 320px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border-radius: 8px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
    }
    .dc-table-container[b-1slie08hi4] {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: auto !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100%;
    }
    .dc-table[b-1slie08hi4] {
        min-width: 950px !important;
        width: 100% !important;
        display: table !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }
    .dc-thead[b-1slie08hi4] {
        display: table-header-group !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 10 !important;
        background: #f8fafc !important;
    }
    .dc-tbody[b-1slie08hi4] {
        display: table-row-group !important;
    }
    .dc-tbody tr[b-1slie08hi4] {
        display: table-row !important;
        background: #ffffff !important;
        border: none !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
    }
    .dc-th[b-1slie08hi4] {
        display: table-cell !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 10 !important;
        background: #f8fafc !important;
        padding: 8px 10px !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        color: #475569 !important;
        border-bottom: 1px solid #e2e8f0 !important;
        white-space: nowrap !important;
        vertical-align: middle !important;
    }
    .dc-td[b-1slie08hi4] {
        display: table-cell !important;
        padding: 6px 10px !important;
        font-size: 12px !important;
        border-bottom: 1px solid #f1f5f9 !important;
        vertical-align: middle !important;
        white-space: nowrap !important;
    }
    .dc-td[data-label][b-1slie08hi4]::before {
        content: none !important;
        display: none !important;
    }
    .dc-td-right[b-1slie08hi4] { text-align: right !important; }
    .dc-inline-input[b-1slie08hi4] { width: 75px !important; height: 26px !important; }
}

/* /Components/Pages/DueCollectionHistory.razor.rz.scp.css */
/* ════════════════════════════════════════════════════════════════
   DUE COLLECTION HISTORY — PREMIUM MODERN SINGLE VIEWPORT THEME
   ════════════════════════════════════════════════════════════════ */

:root[b-oniha3qt1q] {
    --dch-bg: #f6f8fb;
    --dch-card-bg: #ffffff;
    --dch-border: #f1f5f9;
    --dch-border-dark: #e2e8f0;
    --dch-text-main: #0f172a;
    --dch-text-muted: #64748b;
    --dch-text-subtle: #94a3b8;
    --dch-primary: #4f46e5;
}

/* ── Pure Single Viewport Full-Height Container ────────────── */
.dch-page-container[b-oniha3qt1q] {
    width: 100%;
    height: 100%;
    max-height: 100%;
    background-color: #f6f8fb;
    padding: 12px 22px 12px 22px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #0f172a;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ── Top Header Bar ────────────────────────────────────────── */
.dch-header[b-oniha3qt1q] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-shrink: 0;
    gap: 14px;
}

.dch-header-left[b-oniha3qt1q] {
    display: flex;
    flex-direction: column;
}

.dch-page-title[b-oniha3qt1q] {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.dch-breadcrumbs[b-oniha3qt1q] {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dch-breadcrumb-link[b-oniha3qt1q] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
    cursor: pointer;
}

.dch-breadcrumb-link:hover[b-oniha3qt1q] {
    color: #4f46e5;
    text-decoration: underline;
}

.dch-breadcrumbs span[b-oniha3qt1q] {
    color: #94a3b8;
}

.dch-header-actions[b-oniha3qt1q] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dch-btn-primary[b-oniha3qt1q] {
    height: 34px;
    padding: 0 14px;
    border-radius: 8px;
    background: #1e293b;
    color: #ffffff;
    border: none;
    font-size: 12.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.dch-btn-primary:hover[b-oniha3qt1q] {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.15);
}

.dch-btn-secondary[b-oniha3qt1q] {
    height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    border: 1px solid #e2e8f0;
    font-size: 12.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dch-btn-secondary:hover[b-oniha3qt1q] {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.dch-btn-filter-toggle[b-oniha3qt1q] {
    height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    border: 1px solid #e2e8f0;
    font-size: 12.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dch-btn-filter-toggle.active[b-oniha3qt1q],
.dch-btn-filter-toggle:hover[b-oniha3qt1q] {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

/* ── 4 KPI / Stat Cards Grid ───────────────────────────────── */
.dch-stats-grid[b-oniha3qt1q] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 10px;
    flex-shrink: 0;
}

@media (max-width: 1200px) {
    .dch-stats-grid[b-oniha3qt1q] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .dch-stats-grid[b-oniha3qt1q] {
        grid-template-columns: 1fr;
    }
}

.dch-stat-card[b-oniha3qt1q] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: auto;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dch-stat-card:hover[b-oniha3qt1q] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.dch-stat-top[b-oniha3qt1q] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dch-stat-icon-wrap[b-oniha3qt1q] {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dch-stat-icon-wrap .material-symbols-outlined[b-oniha3qt1q] {
    font-size: 16px;
}

.dch-stat-tag[b-oniha3qt1q] {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.dch-stat-tag .material-symbols-outlined[b-oniha3qt1q] {
    font-size: 13px;
}

/* Card 1 — Total Receipts */
.dch-card-receipts .dch-stat-icon-wrap[b-oniha3qt1q] { background: #eff6ff; color: #3b82f6; }
.dch-card-receipts .dch-stat-tag[b-oniha3qt1q] { background: #eff6ff; color: #2563eb; }

/* Card 2 — Total Amount Collected */
.dch-card-collected .dch-stat-icon-wrap[b-oniha3qt1q] { background: #f0fdf4; color: #16a34a; }
.dch-card-collected .dch-stat-tag[b-oniha3qt1q] { background: #f0fdf4; color: #15803d; }

/* Card 3 — Current Visible Rows */
.dch-card-visible .dch-stat-icon-wrap[b-oniha3qt1q] { background: #eef2ff; color: #4f46e5; }
.dch-card-visible .dch-stat-tag[b-oniha3qt1q] { background: #eef2ff; color: #4338ca; }

/* Card 4 — Active Time Preset */
.dch-card-period .dch-stat-icon-wrap[b-oniha3qt1q] { background: #fef3c7; color: #d97706; }
.dch-card-period .dch-stat-tag[b-oniha3qt1q] { background: #fef3c7; color: #b45309; }

.dch-stat-mid[b-oniha3qt1q] {
    margin-top: 4px;
}

.dch-stat-label[b-oniha3qt1q] {
    font-size: 0.74rem;
    font-weight: 600;
    color: #64748b;
    margin: 0;
}

.dch-stat-bottom[b-oniha3qt1q] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 2px;
}

.dch-stat-val[b-oniha3qt1q] {
    font-size: 1.12rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1;
}

.dch-stat-subtext[b-oniha3qt1q] {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
}

/* ── Collapsible Filter Panel ──────────────────────────────── */
.dch-filter-anim-wrap[b-oniha3qt1q] {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, margin-bottom 0.2s ease;
    margin-bottom: 0;
    flex-shrink: 0;
}

.dch-filter-anim-wrap.open[b-oniha3qt1q] {
    max-height: 420px;
    opacity: 1;
    margin-bottom: 10px;
    overflow: visible;
}

.dch-filter-card[b-oniha3qt1q] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 12px 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.dch-filter-grid[b-oniha3qt1q] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 1100px) {
    .dch-filter-grid[b-oniha3qt1q] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .dch-filter-grid[b-oniha3qt1q] {
        grid-template-columns: 1fr;
    }
}

.dch-form-field[b-oniha3qt1q] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}

.dch-form-label[b-oniha3qt1q] {
    font-size: 10.5px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.dch-form-input[b-oniha3qt1q],
.dch-form-select[b-oniha3qt1q] {
    height: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    transition: border-color 0.15s ease;
    box-sizing: border-box;
    width: 100%;
}

.dch-form-input:focus[b-oniha3qt1q],
.dch-form-select:focus[b-oniha3qt1q] {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.dch-filter-actions-row[b-oniha3qt1q] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.dch-btn-filter-search[b-oniha3qt1q] {
    height: 32px;
    padding: 0 16px;
    border-radius: 6px;
    background: #1e293b;
    color: #ffffff;
    border: none;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dch-btn-filter-search:hover[b-oniha3qt1q] {
    background: #0f172a;
}

/* Autocomplete Dropdown */
.dch-autocomplete-dropdown[b-oniha3qt1q] {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    max-height: 220px;
    overflow-y: auto;
    margin-top: 4px;
}

.dch-autocomplete-item[b-oniha3qt1q] {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-bottom: 1px solid #f8fafc;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: background 0.12s ease;
}

.dch-autocomplete-item:hover[b-oniha3qt1q] {
    background: #f1f5f9;
}

/* ── Actions & Toolbar Bar ─────────────────────────────────── */
.dch-actions-bar[b-oniha3qt1q] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 12px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 12px;
}

.dch-actions-left[b-oniha3qt1q] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dch-actions-right[b-oniha3qt1q] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dch-table-search-wrap[b-oniha3qt1q] {
    position: relative;
    width: 240px;
}

.dch-table-search-wrap .material-symbols-outlined[b-oniha3qt1q] {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.dch-table-search-input[b-oniha3qt1q] {
    width: 100%;
    height: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 10px 0 30px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
}

.dch-table-search-input:focus[b-oniha3qt1q] {
    border-color: #6366f1;
}

/* ── Table Card & Single Viewport Table ─────────────────────── */
.dch-table-card[b-oniha3qt1q] {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    margin-bottom: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
}

.dch-table-container[b-oniha3qt1q] {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    width: 100%;
}

.dch-table[b-oniha3qt1q] {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    text-align: left;
}

.dch-table-card .dch-table thead[b-oniha3qt1q],
.dch-table-card .dch-thead[b-oniha3qt1q],
.dch-thead[b-oniha3qt1q] {
    background: #f8fafc !important;
}

.dch-table-card .dch-table th[b-oniha3qt1q],
.dch-table-card .dch-th[b-oniha3qt1q],
.dch-th[b-oniha3qt1q] {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8fafc !important;
    padding: 8px 6px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
    border-top: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-left: none !important;
    border-right: none !important;
    vertical-align: middle !important;
    box-shadow: 0 1px 0 #e2e8f0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dch-tbody tr[b-oniha3qt1q] {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.12s ease;
}

.dch-tbody tr:hover[b-oniha3qt1q] {
    background-color: #f8fafc;
}

.dch-td[b-oniha3qt1q] {
    padding: 5px 6px;
    color: #334155;
    vertical-align: middle;
    border-bottom: 1px solid #f8fafc;
    font-size: 12px;
    overflow: hidden;
}

.dch-text-truncate[b-oniha3qt1q] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
}

.dch-badge-receipt[b-oniha3qt1q] {
    display: inline-flex;
    align-items: center;
    padding: 1.5px 5px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    white-space: nowrap;
}

.dch-badge-custcode[b-oniha3qt1q] {
    display: inline-flex;
    padding: 1px 5px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 3px;
    font-weight: 600;
    font-size: 10px;
    white-space: nowrap;
}

/* Patient Name with Circular Avatar */
.dch-patient-cell[b-oniha3qt1q] {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    width: 100%;
}

.dch-patient-text-wrap[b-oniha3qt1q] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.dch-avatar[b-oniha3qt1q] {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.dch-avatar:hover[b-oniha3qt1q] {
    transform: scale(1.08);
}

.dch-avatar-icon[b-oniha3qt1q] {
    font-size: 15px !important;
}

.dch-gender-letter[b-oniha3qt1q] {
    font-size: 12px;
    font-weight: 800;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1;
    text-transform: uppercase;
    user-select: none;
}

.dch-avatar-male[b-oniha3qt1q] {
    background: #e0f2fe;
    color: #1d4ed8;
    border: 1.5px solid #93c5fd;
}

.dch-avatar-female[b-oniha3qt1q] {
    background: #fce7f3;
    color: #be185d;
    border: 1.5px solid #f9a8d4;
}

.dch-avatar-child[b-oniha3qt1q] {
    background: #fef3c7;
    color: #b45309;
    border: 1.5px solid #fcd34d;
}

.dch-patient-name[b-oniha3qt1q] {
    font-weight: 700;
    color: #0f172a;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
}

.dch-amt-received[b-oniha3qt1q] {
    font-weight: 800;
    color: #15803d;
    font-size: 12px;
    white-space: nowrap;
}

/* Paymode Badges */
.dch-paymode-pill[b-oniha3qt1q] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.dch-paymode-cash[b-oniha3qt1q] {
    background: #dcfce7;
    color: #15803d;
}

.dch-paymode-card[b-oniha3qt1q] {
    background: #eff6ff;
    color: #1d4ed8;
}

.dch-paymode-upi[b-oniha3qt1q] {
    background: #e0e7ff;
    color: #4338ca;
}

.dch-paymode-cheque[b-oniha3qt1q] {
    background: #fef3c7;
    color: #b45309;
}

/* Action Buttons */
.dch-action-btn-pill[b-oniha3qt1q] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s;
    white-space: nowrap;
}

.dch-action-btn-patient[b-oniha3qt1q] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.dch-action-btn-patient:hover[b-oniha3qt1q] {
    background: #2563eb;
    color: #ffffff;
}

.dch-action-btn-referral[b-oniha3qt1q] {
    background: #ecfdf5;
    color: #059669;
    border-color: #a7f3d0;
}

.dch-action-btn-referral:hover[b-oniha3qt1q] {
    background: #059669;
    color: #ffffff;
}

.dch-action-btn-delete[b-oniha3qt1q] {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.dch-action-btn-delete .material-symbols-outlined[b-oniha3qt1q] {
    font-size: 14px;
}

.dch-action-btn-delete:hover[b-oniha3qt1q] {
    background: #e11d48;
    color: #ffffff;
}

/* ── Pagination & Table Footer ─────────────────────────────── */
.dch-table-footer[b-oniha3qt1q] {
    padding: 6px 14px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 10px;
    background: #ffffff;
    font-size: 12px;
}

.dch-page-size-wrap[b-oniha3qt1q] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.dch-page-size-select[b-oniha3qt1q] {
    height: 26px;
    padding: 0 6px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    outline: none;
    cursor: pointer;
}

.dch-pagination-info[b-oniha3qt1q] {
    color: #64748b;
    font-weight: 500;
    font-size: 12px;
}

.dch-pagination-info-highlight[b-oniha3qt1q] {
    color: #0f172a;
    font-weight: 700;
}

.dch-pagination-nav[b-oniha3qt1q] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dch-page-btn[b-oniha3qt1q] {
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.12s ease;
}

.dch-page-btn:hover:not(:disabled)[b-oniha3qt1q] {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.dch-page-btn.active[b-oniha3qt1q] {
    background: #1e293b;
    color: #ffffff;
    border-color: #1e293b;
}

.dch-page-btn:disabled[b-oniha3qt1q] {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── Custom Scrollbar ──────────────────────────────────────── */
.dch-table-container[b-oniha3qt1q]::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.dch-table-container[b-oniha3qt1q]::-webkit-scrollbar-track {
    background: #f8fafc;
}

.dch-table-container[b-oniha3qt1q]::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.dch-table-container[b-oniha3qt1q]::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ════════════════════════════════════════════════════════════
   REVERT CONFIRMATION MODAL CARD
   ════════════════════════════════════════════════════════════ */
.dch-modal-overlay[b-oniha3qt1q] {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: dchFadeIn-b-oniha3qt1q 0.2s ease-out;
}

.dch-confirm-card[b-oniha3qt1q] {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: dchScaleIn-b-oniha3qt1q 0.2s ease-out;
}

.dch-confirm-icon-wrap[b-oniha3qt1q] {
    padding: 24px 24px 0 24px;
    display: flex;
    justify-content: center;
}

.dch-confirm-icon-circle[b-oniha3qt1q] {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fee2e2;
    border: 4px solid #fef2f2;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dch-confirm-icon-circle .material-symbols-outlined[b-oniha3qt1q] {
    font-size: 28px;
}

.dch-confirm-body[b-oniha3qt1q] {
    padding: 16px 24px 18px 24px;
    text-align: center;
}

.dch-confirm-title[b-oniha3qt1q] {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
    letter-spacing: -0.01em;
}

.dch-confirm-subtitle[b-oniha3qt1q] {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 14px 0;
    line-height: 1.4;
}

.dch-confirm-receipt-details[b-oniha3qt1q] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    margin-bottom: 12px;
}

.dch-detail-row[b-oniha3qt1q] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.dch-detail-label[b-oniha3qt1q] {
    color: #64748b;
    font-weight: 500;
}

.dch-detail-value[b-oniha3qt1q] {
    color: #1e293b;
    font-weight: 700;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dch-detail-amount[b-oniha3qt1q] {
    color: #059669;
    font-size: 13px;
    font-weight: 800;
}

.dch-confirm-warning-box[b-oniha3qt1q] {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 8px;
    padding: 10px 12px;
    color: #92400e;
    font-size: 11.5px;
    line-height: 1.4;
    text-align: left;
}

.dch-confirm-warning-box .material-symbols-outlined[b-oniha3qt1q] {
    font-size: 16px;
    color: #d97706;
    flex-shrink: 0;
    margin-top: 1px;
}

.dch-confirm-actions[b-oniha3qt1q] {
    padding: 14px 24px 20px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.dch-btn-cancel[b-oniha3qt1q] {
    padding: 8px 18px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dch-btn-cancel:hover:not(:disabled)[b-oniha3qt1q] {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.dch-btn-danger[b-oniha3qt1q] {
    padding: 8px 18px;
    border-radius: 8px;
    border: none;
    background: #ef4444;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
    transition: all 0.15s ease;
}

.dch-btn-danger:hover:not(:disabled)[b-oniha3qt1q] {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.dch-btn-danger:disabled[b-oniha3qt1q],
.dch-btn-cancel:disabled[b-oniha3qt1q] {
    opacity: 0.6;
    cursor: not-allowed;
}

@keyframes dchFadeIn-b-oniha3qt1q {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes dchScaleIn-b-oniha3qt1q {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Dark Mode Confirmation Card */
html.dark-mode .dch-confirm-card[b-oniha3qt1q] {
    background: #1e293b !important;
    border-color: #334155 !important;
}

html.dark-mode .dch-confirm-title[b-oniha3qt1q] {
    color: #f8fafc !important;
}

html.dark-mode .dch-confirm-subtitle[b-oniha3qt1q] {
    color: #94a3b8 !important;
}

html.dark-mode .dch-confirm-receipt-details[b-oniha3qt1q] {
    background: #0f172a !important;
    border-color: #334155 !important;
}

html.dark-mode .dch-detail-label[b-oniha3qt1q] {
    color: #94a3b8 !important;
}

html.dark-mode .dch-detail-value[b-oniha3qt1q] {
    color: #f8fafc !important;
}

html.dark-mode .dch-confirm-warning-box[b-oniha3qt1q] {
    background: rgba(245, 158, 11, 0.1) !important;
    border-color: rgba(245, 158, 11, 0.25) !important;
    color: #fde68a !important;
}

html.dark-mode .dch-confirm-actions[b-oniha3qt1q] {
    background: #0f172a !important;
    border-top-color: #334155 !important;
}

html.dark-mode .dch-btn-cancel[b-oniha3qt1q] {
    background: #1e293b !important;
    border-color: #475569 !important;
    color: #cbd5e1 !important;
}

html.dark-mode .dch-btn-cancel:hover:not(:disabled)[b-oniha3qt1q] {
    background: #334155 !important;
    color: #f8fafc !important;
}

/* ════════════════════════════════════════════════════════════════
   GROUPED RECEIPT & PATIENT SUBROW STYLES
   ════════════════════════════════════════════════════════════════ */

/* View Mode Switcher in Toolbar */
.dch-view-mode-toggle[b-oniha3qt1q] {
    display: inline-flex;
    align-items: center;
    background: #e2e8f0;
    padding: 2px;
    border-radius: 8px;
    gap: 2px;
}

.dch-view-btn[b-oniha3qt1q] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.dch-view-btn:hover[b-oniha3qt1q] {
    color: #1e293b;
}

.dch-view-btn.active[b-oniha3qt1q] {
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.dch-view-btn .material-symbols-outlined[b-oniha3qt1q] {
    font-size: 15px;
}

/* Group Master Row */
.dch-tbody tr.dch-group-row[b-oniha3qt1q] {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.dch-tbody tr.dch-group-row:hover[b-oniha3qt1q] {
    background: #f1f5f9;
}

.dch-receipt-group-cell[b-oniha3qt1q] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.dch-toggle-btn[b-oniha3qt1q] {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.dch-toggle-btn:hover[b-oniha3qt1q] {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.dch-toggle-btn .material-symbols-outlined[b-oniha3qt1q] {
    font-size: 16px;
    line-height: 1;
}

.dch-badge-group-count[b-oniha3qt1q] {
    display: inline-flex;
    align-items: center;
    padding: 1.5px 6px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.dch-badge-multi-bills[b-oniha3qt1q] {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 600;
    white-space: nowrap;
}

/* Patient Summary in Master Group Row */
.dch-group-patient-summary[b-oniha3qt1q] {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    width: 100%;
}

.dch-group-avatar-stack[b-oniha3qt1q] {
    display: flex;
    align-items: center;
    margin-right: 2px;
    flex-shrink: 0;
}

.dch-avatar-mini[b-oniha3qt1q] {
    width: 20px !important;
    height: 20px !important;
    margin-left: -6px;
    border: 1.5px solid #ffffff !important;
}

.dch-avatar-mini:first-child[b-oniha3qt1q] {
    margin-left: 0;
}

.dch-avatar-mini .dch-gender-letter[b-oniha3qt1q] {
    font-size: 10px;
}

.dch-group-patient-names[b-oniha3qt1q] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.dch-group-count-label[b-oniha3qt1q] {
    font-size: 9.5px;
    font-weight: 700;
    color: #4338ca;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.dch-group-names-text[b-oniha3qt1q] {
    font-size: 11.5px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dch-group-total-amt[b-oniha3qt1q] {
    font-weight: 900 !important;
    font-size: 13px !important;
    color: #15803d !important;
    letter-spacing: -0.01em;
}

/* Sub-row for Patient Bills */
.dch-tbody tr.dch-subrow-patient[b-oniha3qt1q] {
    background: #ffffff;
    transition: background 0.12s ease;
}

.dch-tbody tr.dch-subrow-patient:hover[b-oniha3qt1q] {
    background: #f8fafc;
}

.dch-tree-connector-cell[b-oniha3qt1q] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    height: 100%;
}

.dch-tree-elbow[b-oniha3qt1q] {
    width: 14px;
    height: 16px;
    border-left: 2px solid #cbd5e1;
    border-bottom: 2px solid #cbd5e1;
    border-bottom-left-radius: 5px;
    display: block;
}

.dch-subrow-bill-badge[b-oniha3qt1q] {
    display: inline-flex;
    padding: 1.5px 5px;
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

/* Amount of Paid Due Highlight Badge */
.dch-item-paid-due-badge[b-oniha3qt1q] {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    padding: 2px 7px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    border-radius: 5px;
    font-weight: 800;
    font-size: 11.5px;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(16, 185, 129, 0.08);
}

.dch-action-btn-delete-sub[b-oniha3qt1q] {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dch-action-btn-delete-sub:hover[b-oniha3qt1q] {
    background: #ffe4e6;
    border-color: #fca5a5;
    transform: scale(1.05);
}

/* Dark Mode Extensions for Grouped Rows */
html.dark-mode .dch-view-mode-toggle[b-oniha3qt1q] {
    background: #1e293b !important;
}

html.dark-mode .dch-view-btn[b-oniha3qt1q] {
    color: #94a3b8 !important;
}

html.dark-mode .dch-view-btn.active[b-oniha3qt1q] {
    background: #334155 !important;
    color: #f8fafc !important;
}

html.dark-mode .dch-tbody tr.dch-group-row[b-oniha3qt1q] {
    background: #1e293b !important;
    border-color: #334155 !important;
}

html.dark-mode .dch-tbody tr.dch-group-row:hover[b-oniha3qt1q] {
    background: #283548 !important;
}

html.dark-mode .dch-toggle-btn[b-oniha3qt1q] {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

html.dark-mode .dch-toggle-btn:hover[b-oniha3qt1q] {
    background: #1e293b !important;
    color: #ffffff !important;
}

html.dark-mode .dch-badge-group-count[b-oniha3qt1q] {
    background: rgba(37, 99, 235, 0.2) !important;
    color: #93c5fd !important;
    border-color: #3b82f6 !important;
}

html.dark-mode .dch-group-names-text[b-oniha3qt1q] {
    color: #f8fafc !important;
}

html.dark-mode .dch-tbody tr.dch-subrow-patient[b-oniha3qt1q] {
    background: #0f172a !important;
}

html.dark-mode .dch-tbody tr.dch-subrow-patient:hover[b-oniha3qt1q] {
    background: #1e293b !important;
}

html.dark-mode .dch-tree-elbow[b-oniha3qt1q] {
    border-color: #475569 !important;
}

html.dark-mode .dch-item-paid-due-badge[b-oniha3qt1q] {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}
/* /Components/Pages/DueLogs.razor.rz.scp.css */
/* ==========================================================================
   DUE COLLECTION ACTIVITY LOGS & AUDIT TRAIL — MODERN OBSIDIAN & AMBER THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Layout Wrapper ─────────────────────────── */
.dl-page-root[b-ddadki2ob4] {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 52px);
    min-height: calc(100vh - 52px);
    max-height: calc(100vh - 52px);
    flex: 1 1 auto;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.dl-top-bar[b-ddadki2ob4] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.dl-title-block[b-ddadki2ob4] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dl-title-icon-wrap[b-ddadki2ob4] {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #fef3c7;
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dl-title-icon-wrap .material-symbols-outlined[b-ddadki2ob4] {
    font-size: 22px;
}

.dl-breadcrumbs[b-ddadki2ob4] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.dl-breadcrumb-link[b-ddadki2ob4] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.dl-breadcrumb-link:hover[b-ddadki2ob4] {
    color: #d97706;
}

.dl-breadcrumb-sep[b-ddadki2ob4] {
    font-size: 11px;
    color: #cbd5e1;
}

.dl-page-title[b-ddadki2ob4] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dl-badge-directory[b-ddadki2ob4] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #d97706;
    background: #fef3c7;
    border: 1px solid #fde68a;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dl-live-dot[b-ddadki2ob4] {
    width: 6px;
    height: 6px;
    background: #f59e0b;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

.dl-top-actions[b-ddadki2ob4] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dl-btn-secondary[b-ddadki2ob4] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    padding: 0 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dl-btn-secondary:hover[b-ddadki2ob4] {
    background: #f8fafc;
    color: #0f172a;
    border-color: #94a3b8;
}

.dl-btn-primary[b-ddadki2ob4] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 14px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.dl-btn-primary:hover:not(:disabled)[b-ddadki2ob4] {
    background: #1e293b;
    box-shadow: 0 3px 6px rgba(15, 23, 42, 0.12);
    transform: translateY(-0.5px);
}

.dl-btn-primary:disabled[b-ddadki2ob4] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── 3. KPI / Stat Cards Grid ───────────────────────────────── */
.dl-stats-grid[b-ddadki2ob4] {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
    margin-bottom: 0 !important;
}

.dl-stat-card[b-ddadki2ob4] {
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    height: 68px !important;
    box-sizing: border-box !important;
}

.dl-stat-card[b-ddadki2ob4]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2.5px;
}

.dl-card-total[b-ddadki2ob4]::before { background: #0284c7; }
.dl-card-payment[b-ddadki2ob4]::before { background: #059669; }
.dl-card-settled[b-ddadki2ob4]::before { background: #d97706; }
.dl-card-update[b-ddadki2ob4]::before { background: #6366f1; }

.dl-stat-top[b-ddadki2ob4] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dl-stat-icon-wrap[b-ddadki2ob4] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dl-card-total .dl-stat-icon-wrap[b-ddadki2ob4] { background: #f0f9ff; color: #0284c7; }
.dl-card-payment .dl-stat-icon-wrap[b-ddadki2ob4] { background: #ecfdf5; color: #059669; }
.dl-card-settled .dl-stat-icon-wrap[b-ddadki2ob4] { background: #fef3c7; color: #d97706; }
.dl-card-update .dl-stat-icon-wrap[b-ddadki2ob4] { background: #eef2ff; color: #6366f1; }

.dl-stat-icon-wrap .material-symbols-outlined[b-ddadki2ob4] {
    font-size: 15px;
}

.dl-stat-tag[b-ddadki2ob4] {
    font-size: 9.5px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
}

.dl-card-total .dl-stat-tag[b-ddadki2ob4] { background: #e0f2fe; color: #0369a1; }
.dl-card-payment .dl-stat-tag[b-ddadki2ob4] { background: #d1fae5; color: #047857; }
.dl-card-settled .dl-stat-tag[b-ddadki2ob4] { background: #fef3c7; color: #b45309; }
.dl-card-update .dl-stat-tag[b-ddadki2ob4] { background: #e0e7ff; color: #4338ca; }

.dl-stat-mid[b-ddadki2ob4] {
    margin-top: 1px;
}

.dl-stat-label[b-ddadki2ob4] {
    font-size: 9.5px;
    font-weight: 750;
    color: #64748b;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.dl-stat-bottom[b-ddadki2ob4] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.dl-stat-val[b-ddadki2ob4] {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.dl-stat-subtext[b-ddadki2ob4] {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── 4. Filter Bar ──────────────────────────────────────────── */
.dl-filter-bar[b-ddadki2ob4] {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    padding: 8px 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.dl-filter-left[b-ddadki2ob4] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dl-presets-group[b-ddadki2ob4] {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    padding: 2px;
    border-radius: 6px;
    gap: 2px;
}

.dl-preset-btn[b-ddadki2ob4] {
    border: none;
    background: transparent;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dl-preset-btn:hover[b-ddadki2ob4] {
    color: #0f172a;
}

.dl-preset-btn.active[b-ddadki2ob4] {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    font-weight: 700;
}

.dl-date-picker-wrap[b-ddadki2ob4] {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dl-input-group[b-ddadki2ob4] {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 8px;
    height: 30px;
}

.dl-input-label[b-ddadki2ob4] {
    font-size: 9.5px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dl-date-input[b-ddadki2ob4] {
    border: none;
    background: transparent;
    font-size: 11.5px;
    color: #0f172a;
    font-weight: 600;
    outline: none;
    padding: 0;
    height: 100%;
}

.dl-date-sep[b-ddadki2ob4] {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
}

.dl-select-group[b-ddadki2ob4] {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 8px;
    height: 30px;
}

.dl-select[b-ddadki2ob4] {
    border: none;
    background: transparent;
    font-size: 11.5px;
    color: #0f172a;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.dl-filter-right[b-ddadki2ob4] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dl-search-box[b-ddadki2ob4] {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 10px;
    height: 30px;
    width: 280px;
    gap: 6px;
    position: relative;
    transition: all 0.15s ease;
}

.dl-search-box:focus-within[b-ddadki2ob4] {
    border-color: #d97706;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.12);
}

.dl-search-icon[b-ddadki2ob4] {
    font-size: 16px;
    color: #94a3b8;
}

.dl-search-input[b-ddadki2ob4] {
    border: none;
    background: transparent;
    font-size: 11.5px;
    color: #0f172a;
    outline: none;
    width: 100%;
}

.dl-search-clear[b-ddadki2ob4] {
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
}

.dl-search-clear:hover[b-ddadki2ob4] {
    color: #0f172a;
}

/* ── 5. Main Table Container (Single-Viewport) ──────────────── */
.dl-table-card[b-ddadki2ob4] {
    background: #ffffff !important;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
}

.dl-table-container[b-ddadki2ob4] {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow-y: auto !important;
    overflow-x: auto !important;
}

.dl-table-container[b-ddadki2ob4]::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.dl-table-container[b-ddadki2ob4]::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.dl-table[b-ddadki2ob4] {
    width: 100%;
    border-collapse: collapse;
    font-size: 11.5px;
    text-align: left;
}

.dl-thead[b-ddadki2ob4] {
    position: sticky !important;
    top: 0 !important;
    background: #f8fafc !important;
    z-index: 10;
    box-shadow: inset 0 -1px 0 #e2e8f0;
}

.dl-th[b-ddadki2ob4] {
    background: #f8fafc !important;
    padding: 8px 12px !important;
    font-size: 10px !important;
    font-weight: 750 !important;
    color: #475569 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    border-bottom: 1px solid #e2e8f0 !important;
    user-select: none;
}

.dl-tbody tr[b-ddadki2ob4] {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.12s ease;
    cursor: pointer;
}

.dl-tbody tr:hover[b-ddadki2ob4] {
    background: #fafaf9;
}

.dl-tr-active[b-ddadki2ob4] {
    background: #fef3c7 !important;
}

.dl-td[b-ddadki2ob4] {
    padding: 7px 12px;
    color: #1e293b;
    vertical-align: middle;
}

/* Date Cell */
.dl-date-cell[b-ddadki2ob4] {
    display: flex;
    flex-direction: column;
}

.dl-date-primary[b-ddadki2ob4] {
    font-size: 11.5px;
    font-weight: 700;
    color: #0f172a;
}

.dl-date-secondary[b-ddadki2ob4] {
    font-size: 10px;
    color: #64748b;
    font-family: monospace;
}

/* Bill / Receipt Cell */
.dl-bill-cell[b-ddadki2ob4] {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dl-bill-badge[b-ddadki2ob4] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    color: #0f172a;
    font-size: 11.5px;
}

.dl-receipt-badge[b-ddadki2ob4] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    color: #047857;
    background: #ecfdf5;
    padding: 1px 5px;
    border-radius: 4px;
    width: fit-content;
}

/* Patient Cell */
.dl-patient-cell[b-ddadki2ob4] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dl-patient-name[b-ddadki2ob4] {
    font-weight: 700;
    color: #0f172a;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.dl-patient-sub[b-ddadki2ob4] {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dl-custcode-tag[b-ddadki2ob4] {
    font-size: 9.5px;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
    padding: 1px 5px;
    border-radius: 4px;
}

.dl-mobile-tag[b-ddadki2ob4] {
    font-size: 10px;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

/* Event Badges */
.dl-event-badge[b-ddadki2ob4] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 5px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.dl-badge-payment[b-ddadki2ob4] { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.dl-badge-collect[b-ddadki2ob4] { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.dl-badge-settle[b-ddadki2ob4] { background: #f0fdf4; color: #166534; border: 1px solid #86efac; }
.dl-badge-create[b-ddadki2ob4] { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.dl-badge-update[b-ddadki2ob4] { background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; }
.dl-badge-cancel[b-ddadki2ob4] { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.dl-badge-delete[b-ddadki2ob4] { background: #fef2f2; color: #b91c1c; border: 1px solid #fca5a5; }
.dl-badge-default[b-ddadki2ob4] { background: #f8fafc; color: #475569; border: 1px solid #cbd5e1; }

/* Summary & Financials Cell */
.dl-summary-cell[b-ddadki2ob4] {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dl-summary-text[b-ddadki2ob4] {
    font-size: 11px;
    color: #334155;
    line-height: 1.35;
    white-space: normal;
}

.dl-financial-chips[b-ddadki2ob4] {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.dl-chip-paid[b-ddadki2ob4] {
    font-size: 10px;
    font-weight: 700;
    color: #047857;
    background: #ecfdf5;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid #a7f3d0;
}

.dl-chip-bal[b-ddadki2ob4] {
    font-size: 10px;
    font-weight: 700;
    color: #dc2626;
    background: #fef2f2;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid #fecaca;
}

.dl-chip-total[b-ddadki2ob4] {
    font-size: 10px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 4px;
}

/* Performed By User Cell */
.dl-user-cell[b-ddadki2ob4] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dl-user-avatar[b-ddadki2ob4] {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
}

.dl-avatar-1[b-ddadki2ob4] { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.dl-avatar-2[b-ddadki2ob4] { background: linear-gradient(135deg, #10b981, #047857); }
.dl-avatar-3[b-ddadki2ob4] { background: linear-gradient(135deg, #f59e0b, #b45309); }
.dl-avatar-4[b-ddadki2ob4] { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.dl-avatar-5[b-ddadki2ob4] { background: linear-gradient(135deg, #ec4899, #be185d); }

.dl-user-info[b-ddadki2ob4] {
    display: flex;
    flex-direction: column;
}

.dl-user-name[b-ddadki2ob4] {
    font-weight: 700;
    font-size: 11.5px;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
}

.dl-user-ip[b-ddadki2ob4] {
    font-size: 9.5px;
    color: #94a3b8;
    font-family: monospace;
}

/* Action Button */
.dl-btn-view[b-ddadki2ob4] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dl-btn-view:hover[b-ddadki2ob4] {
    background: #fef3c7;
    color: #d97706;
    border-color: #fde68a;
}

/* Empty & Loading States */
.dl-empty-state-cell[b-ddadki2ob4] {
    padding: 50px 20px !important;
    text-align: center;
}

.dl-empty-state[b-ddadki2ob4] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.dl-spinner-icon[b-ddadki2ob4] {
    font-size: 32px;
    color: #d97706;
    animation: spin-b-ddadki2ob4 1s linear infinite;
}

.dl-spinner-text[b-ddadki2ob4] {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

@keyframes spin-b-ddadki2ob4 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ── 6. Pagination Footer ───────────────────────────────────── */
.dl-footer[b-ddadki2ob4] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 6px 14px;
    font-size: 11px;
    color: #64748b;
    flex-shrink: 0;
    gap: 12px;
}

.dl-footer-info[b-ddadki2ob4] {
    font-size: 11px;
    color: #64748b;
}

.dl-pagination[b-ddadki2ob4] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dl-page-btn[b-ddadki2ob4] {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dl-page-btn:hover:not(:disabled)[b-ddadki2ob4] {
    background: #f1f5f9;
    color: #0f172a;
}

.dl-page-btn:disabled[b-ddadki2ob4] {
    opacity: 0.35;
    cursor: not-allowed;
}

.dl-page-indicator[b-ddadki2ob4] {
    font-size: 11px;
    font-weight: 700;
    color: #0f172a;
    padding: 0 6px;
}

/* ── 7. Details Modal ───────────────────────────────────────── */
.dl-modal-overlay[b-ddadki2ob4] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    padding: 16px;
}

.dl-modal-card[b-ddadki2ob4] {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideUp-b-ddadki2ob4 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp-b-ddadki2ob4 {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.dl-modal-header[b-ddadki2ob4] {
    background: #0f172a;
    color: #ffffff;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.dl-modal-title-wrap[b-ddadki2ob4] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dl-modal-badge[b-ddadki2ob4] {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.dl-modal-title[b-ddadki2ob4] {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.dl-modal-subtitle[b-ddadki2ob4] {
    font-size: 10.5px;
    color: #94a3b8;
}

.dl-modal-close[b-ddadki2ob4] {
    background: transparent;
    border: none;
    color: #94a3b8;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.dl-modal-close:hover[b-ddadki2ob4] {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.dl-modal-body[b-ddadki2ob4] {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dl-modal-body[b-ddadki2ob4]::-webkit-scrollbar {
    width: 5px;
}
.dl-modal-body[b-ddadki2ob4]::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.dl-modal-summary-card[b-ddadki2ob4] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
}

.dl-summary-item[b-ddadki2ob4] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dl-summary-label[b-ddadki2ob4] {
    font-size: 9.5px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dl-summary-val[b-ddadki2ob4] {
    font-size: 12px;
    color: #0f172a;
    font-weight: 600;
}

.dl-financial-grid[b-ddadki2ob4] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.dl-financial-box[b-ddadki2ob4] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.dl-fin-label[b-ddadki2ob4] {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.dl-fin-val[b-ddadki2ob4] {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
}

/* Modal Tabs */
.dl-modal-tabs[b-ddadki2ob4] {
    display: flex;
    align-items: center;
    gap: 4px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 6px;
}

.dl-modal-tab[b-ddadki2ob4] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: none;
    background: transparent;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dl-modal-tab:hover[b-ddadki2ob4] {
    background: #f1f5f9;
    color: #0f172a;
}

.dl-modal-tab.active[b-ddadki2ob4] {
    background: #0f172a;
    color: #ffffff;
    font-weight: 700;
}

/* Modal Diff / Content */
.dl-diff-view[b-ddadki2ob4] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dl-diff-header[b-ddadki2ob4] {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dl-diff-desc-box[b-ddadki2ob4] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #d97706;
    border-radius: 6px;
    padding: 12px;
    font-size: 12px;
    color: #1e293b;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.dl-json-viewer[b-ddadki2ob4] {
    background: #0f172a;
    border-radius: 8px;
    padding: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.dl-json-viewer[b-ddadki2ob4]::-webkit-scrollbar {
    width: 5px;
}
.dl-json-viewer[b-ddadki2ob4]::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}

.dl-code-block[b-ddadki2ob4] {
    margin: 0;
    font-family: 'Fira Code', Consolas, Monaco, monospace;
    font-size: 11px;
    color: #38bdf8;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Modal Footer */
.dl-modal-footer[b-ddadki2ob4] {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
}
/* /Components/Pages/EmailSetupPage.razor.rz.scp.css */
/* ==========================================================================
   EMAIL & WHATSAPP CONFIGURATION — MODERN OBSIDIAN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Layout Wrapper ─────────────────────────── */
.em-page-root[b-mjq7ippkzk] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.em-top-bar[b-mjq7ippkzk] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.em-title-block[b-mjq7ippkzk] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.em-title-icon-wrap[b-mjq7ippkzk] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.em-title-icon-wrap .material-symbols-outlined[b-mjq7ippkzk] {
    font-size: 20px;
}

.em-breadcrumbs[b-mjq7ippkzk] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.em-breadcrumb-link[b-mjq7ippkzk] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.em-breadcrumb-link:hover[b-mjq7ippkzk] {
    color: #2563eb;
}

.em-breadcrumb-sep[b-mjq7ippkzk] {
    font-size: 11px;
}

.em-page-title[b-mjq7ippkzk] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.em-badge-directory[b-mjq7ippkzk] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.em-live-dot[b-mjq7ippkzk] {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.em-top-actions[b-mjq7ippkzk] {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* View Mode Switcher Pills */
.em-view-pills[b-mjq7ippkzk] {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 7px;
    border: 1px solid #e2e8f0;
}

.em-view-pill[b-mjq7ippkzk] {
    padding: 4px 12px;
    border-radius: 5px;
    border: none;
    background: transparent;
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.em-view-pill:hover[b-mjq7ippkzk] {
    color: #0f172a;
}

.em-view-pill.active[b-mjq7ippkzk] {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.em-view-pill .material-symbols-outlined[b-mjq7ippkzk] {
    font-size: 15px;
}

/* Search input */
.em-search-wrap[b-mjq7ippkzk] {
    position: relative;
    width: 200px;
}

.em-search-wrap .material-symbols-outlined[b-mjq7ippkzk] {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.em-search-input[b-mjq7ippkzk] {
    width: 100%;
    height: 32px;
    padding: 0 10px 0 30px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.em-search-input:focus[b-mjq7ippkzk] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.em-btn-primary[b-mjq7ippkzk] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.em-btn-primary:hover[b-mjq7ippkzk] {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(15, 23, 42, 0.12);
}

/* ── 3. KPI / Stat Cards Grid ───────────────────────────────── */
.em-stats-grid[b-mjq7ippkzk] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex-shrink: 0;
}

.em-stat-card[b-mjq7ippkzk] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 7px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.em-stat-card[b-mjq7ippkzk]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.em-card-primary[b-mjq7ippkzk]::before   { background: #3b82f6; }
.em-card-success[b-mjq7ippkzk]::before   { background: #10b981; }
.em-card-indigo[b-mjq7ippkzk]::before    { background: #6366f1; }
.em-card-amber[b-mjq7ippkzk]::before     { background: #f59e0b; }

.em-stat-card:hover[b-mjq7ippkzk] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.em-stat-top[b-mjq7ippkzk] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.em-stat-icon-wrap[b-mjq7ippkzk] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.em-stat-icon-wrap .material-symbols-outlined[b-mjq7ippkzk] {
    font-size: 15px;
}

.em-stat-tag[b-mjq7ippkzk] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.em-stat-tag .material-symbols-outlined[b-mjq7ippkzk] {
    font-size: 13px;
}

.em-card-primary .em-stat-icon-wrap[b-mjq7ippkzk] { background: #eff6ff; color: #3b82f6; }
.em-card-primary .em-stat-tag[b-mjq7ippkzk]       { background: #eff6ff; color: #2563eb; }

.em-card-success .em-stat-icon-wrap[b-mjq7ippkzk] { background: #ecfdf5; color: #10b981; }
.em-card-success .em-stat-tag[b-mjq7ippkzk]       { background: #ecfdf5; color: #059669; }

.em-card-indigo .em-stat-icon-wrap[b-mjq7ippkzk]  { background: #eef2ff; color: #6366f1; }
.em-card-indigo .em-stat-tag[b-mjq7ippkzk]        { background: #eef2ff; color: #4f46e5; }

.em-card-amber .em-stat-icon-wrap[b-mjq7ippkzk]   { background: #fffbeb; color: #f59e0b; }
.em-card-amber .em-stat-tag[b-mjq7ippkzk]         { background: #fffbeb; color: #d97706; }

.em-stat-mid[b-mjq7ippkzk] {
    margin-top: 1px;
}

.em-stat-label[b-mjq7ippkzk] {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.em-stat-bottom[b-mjq7ippkzk] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.em-stat-val[b-mjq7ippkzk] {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.em-stat-subtext[b-mjq7ippkzk] {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── 4. Table Card Container (Single Viewport) ─────────────── */
.em-table-card[b-mjq7ippkzk] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.em-table-container[b-mjq7ippkzk] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

.em-table[b-mjq7ippkzk] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    text-align: left;
}

/* Light Slate Sticky Header */
.em-thead[b-mjq7ippkzk] {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8fafc !important;
}

.em-th[b-mjq7ippkzk] {
    background-color: #f8fafc !important;
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 8px 12px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: none !important;
    white-space: nowrap;
    user-select: none;
}

.em-tbody tr[b-mjq7ippkzk] {
    background-color: #ffffff;
    transition: background-color 0.12s ease;
}

.em-tbody tr:hover[b-mjq7ippkzk] {
    background-color: #f8fafc;
}

.em-td[b-mjq7ippkzk] {
    padding: 6px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
    font-size: 12px;
}

/* Badges */
.em-badge-pill[b-mjq7ippkzk] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.em-badge-ssl-on[b-mjq7ippkzk] {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.em-badge-ssl-off[b-mjq7ippkzk] {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.em-badge-wa[b-mjq7ippkzk] {
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
    font-family: monospace;
}

.em-badge-branch[b-mjq7ippkzk] {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    font-weight: 700;
}

/* Row Action Buttons */
.em-row-actions[b-mjq7ippkzk] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.em-btn-icon-action[b-mjq7ippkzk] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: #f8fafc;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.em-btn-icon-action:hover[b-mjq7ippkzk] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.em-btn-icon-delete:hover[b-mjq7ippkzk] {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
}

.em-btn-icon-action .material-symbols-outlined[b-mjq7ippkzk] {
    font-size: 15px;
}

/* ── 5. Pagination Footer ───────────────────────────────────── */
.em-pagination-bar[b-mjq7ippkzk] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 14px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
    font-size: 11.5px;
    color: #64748b;
}

.em-page-controls[b-mjq7ippkzk] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.em-btn-page[b-mjq7ippkzk] {
    height: 26px;
    min-width: 26px;
    padding: 0 6px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.em-btn-page:hover:not(:disabled)[b-mjq7ippkzk] {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.em-btn-page:disabled[b-mjq7ippkzk] {
    opacity: 0.4;
    cursor: not-allowed;
}

.em-btn-page .material-symbols-outlined[b-mjq7ippkzk] {
    font-size: 14px;
}

/* ── 6. Modal Form Overlay & Card ───────────────────────────── */
.em-modal-overlay[b-mjq7ippkzk] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 16px;
}

.em-modal-card[b-mjq7ippkzk] {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 640px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 90vh;
}

.em-modal-header[b-mjq7ippkzk] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.em-modal-title[b-mjq7ippkzk] {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.em-modal-close-btn[b-mjq7ippkzk] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.em-modal-close-btn:hover[b-mjq7ippkzk] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* Modal Inner Segmented Subtabs */
.em-modal-tabs[b-mjq7ippkzk] {
    display: flex;
    gap: 8px;
    padding: 10px 18px 0;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.em-modal-tab-btn[b-mjq7ippkzk] {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.em-modal-tab-btn:hover[b-mjq7ippkzk] {
    color: #0f172a;
}

.em-modal-tab-btn.active[b-mjq7ippkzk] {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background: #ffffff;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.em-modal-body[b-mjq7ippkzk] {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}

.em-form-group[b-mjq7ippkzk] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.em-field-label[b-mjq7ippkzk] {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.em-input[b-mjq7ippkzk] {
    width: 100%;
    height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 12.5px;
    color: #1e293b;
    background: #ffffff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.em-input:focus[b-mjq7ippkzk] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.em-textarea[b-mjq7ippkzk] {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 12.5px;
    color: #1e293b;
    background: #ffffff;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    resize: vertical;
}

.em-textarea:focus[b-mjq7ippkzk] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.em-modal-footer[b-mjq7ippkzk] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}
/* /Components/Pages/FeetypeMaster.razor.rz.scp.css */
/* ==========================================================================
   FEETYPE MASTER — MODERN OBSIDIAN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Layout Wrapper ─────────────────────────── */
.ft-page-root[b-cofjpqme8n] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.ft-top-bar[b-cofjpqme8n] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.ft-title-block[b-cofjpqme8n] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ft-title-icon-wrap[b-cofjpqme8n] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ft-title-icon-wrap .material-symbols-outlined[b-cofjpqme8n] {
    font-size: 20px;
}

.ft-breadcrumbs[b-cofjpqme8n] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.ft-breadcrumb-link[b-cofjpqme8n] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.ft-breadcrumb-link:hover[b-cofjpqme8n] {
    color: #2563eb;
}

.ft-breadcrumb-sep[b-cofjpqme8n] {
    font-size: 11px;
}

.ft-page-title[b-cofjpqme8n] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ft-badge-directory[b-cofjpqme8n] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ft-live-dot[b-cofjpqme8n] {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.ft-top-actions[b-cofjpqme8n] {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Rate Mode Filter Pills / Select */
.ft-filter-pills[b-cofjpqme8n] {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f8fafc;
    padding: 2px 4px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.ft-filter-pill[b-cofjpqme8n] {
    padding: 3px 10px;
    border-radius: 4px;
    border: none;
    background: transparent;
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ft-filter-pill:hover[b-cofjpqme8n] {
    color: #0f172a;
}

.ft-filter-pill.active[b-cofjpqme8n] {
    background: #0f172a;
    color: #ffffff;
}

/* Search input */
.ft-search-wrap[b-cofjpqme8n] {
    position: relative;
    width: 220px;
}

.ft-search-wrap .material-symbols-outlined[b-cofjpqme8n] {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.ft-search-input[b-cofjpqme8n] {
    width: 100%;
    height: 32px;
    padding: 0 10px 0 30px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ft-search-input:focus[b-cofjpqme8n] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.ft-btn-primary[b-cofjpqme8n] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.ft-btn-primary:hover[b-cofjpqme8n] {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(15, 23, 42, 0.12);
}

/* ── 3. KPI / Stat Cards Grid ───────────────────────────────── */
.ft-stats-grid[b-cofjpqme8n] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex-shrink: 0;
}

.ft-stat-card[b-cofjpqme8n] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 7px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.ft-stat-card[b-cofjpqme8n]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.ft-card-total[b-cofjpqme8n]::before    { background: #3b82f6; }
.ft-card-special[b-cofjpqme8n]::before  { background: #10b981; }
.ft-card-scheme[b-cofjpqme8n]::before   { background: #f59e0b; }
.ft-card-ic[b-cofjpqme8n]::before       { background: #6366f1; }

.ft-stat-card:hover[b-cofjpqme8n] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.ft-stat-top[b-cofjpqme8n] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ft-stat-icon-wrap[b-cofjpqme8n] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ft-stat-icon-wrap .material-symbols-outlined[b-cofjpqme8n] {
    font-size: 15px;
}

.ft-stat-tag[b-cofjpqme8n] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.ft-stat-tag .material-symbols-outlined[b-cofjpqme8n] {
    font-size: 13px;
}

.ft-card-total .ft-stat-icon-wrap[b-cofjpqme8n]    { background: #eff6ff; color: #3b82f6; }
.ft-card-total .ft-stat-tag[b-cofjpqme8n]          { background: #eff6ff; color: #2563eb; }

.ft-card-special .ft-stat-icon-wrap[b-cofjpqme8n]  { background: #ecfdf5; color: #10b981; }
.ft-card-special .ft-stat-tag[b-cofjpqme8n]        { background: #ecfdf5; color: #059669; }

.ft-card-scheme .ft-stat-icon-wrap[b-cofjpqme8n]   { background: #fffbeb; color: #d97706; }
.ft-card-scheme .ft-stat-tag[b-cofjpqme8n]         { background: #fffbeb; color: #b45309; }

.ft-card-ic .ft-stat-icon-wrap[b-cofjpqme8n]       { background: #eef2ff; color: #6366f1; }
.ft-card-ic .ft-stat-tag[b-cofjpqme8n]             { background: #eef2ff; color: #4f46e5; }

.ft-stat-mid[b-cofjpqme8n] {
    margin-top: 1px;
}

.ft-stat-label[b-cofjpqme8n] {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ft-stat-bottom[b-cofjpqme8n] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.ft-stat-val[b-cofjpqme8n] {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.ft-stat-subtext[b-cofjpqme8n] {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── 4. Table Card Container (Single Viewport) ─────────────── */
.ft-table-card[b-cofjpqme8n] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.ft-table-container[b-cofjpqme8n] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

.ft-table[b-cofjpqme8n] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    text-align: left;
}

/* Light Slate Sticky Header */
.ft-thead[b-cofjpqme8n] {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8fafc !important;
}

.ft-th[b-cofjpqme8n] {
    background-color: #f8fafc !important;
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 8px 12px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: none !important;
    white-space: nowrap;
    user-select: none;
}

.ft-tbody tr[b-cofjpqme8n] {
    background-color: #ffffff;
    transition: background-color 0.12s ease;
}

.ft-tbody tr:hover[b-cofjpqme8n] {
    background-color: #f8fafc;
}

.ft-td[b-cofjpqme8n] {
    padding: 6px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
    font-size: 12px;
}

.ft-badge-pill[b-cofjpqme8n] {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.ft-badge-special[b-cofjpqme8n] {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.ft-badge-scheme[b-cofjpqme8n] {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.ft-badge-ic[b-cofjpqme8n] {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.ft-badge-default[b-cofjpqme8n] {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

/* Action buttons in row */
.ft-row-actions[b-cofjpqme8n] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ft-btn-icon-action[b-cofjpqme8n] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: #f8fafc;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.ft-btn-icon-action:hover[b-cofjpqme8n] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.ft-btn-icon-delete:hover[b-cofjpqme8n] {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
}

.ft-btn-icon-action .material-symbols-outlined[b-cofjpqme8n] {
    font-size: 15px;
}

/* ── 5. Pagination Footer ───────────────────────────────────── */
.ft-pagination-bar[b-cofjpqme8n] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 14px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
    font-size: 11.5px;
    color: #64748b;
}

.ft-page-controls[b-cofjpqme8n] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ft-btn-page[b-cofjpqme8n] {
    height: 26px;
    min-width: 26px;
    padding: 0 6px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.ft-btn-page:hover:not(:disabled)[b-cofjpqme8n] {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.ft-btn-page:disabled[b-cofjpqme8n] {
    opacity: 0.4;
    cursor: not-allowed;
}

.ft-btn-page .material-symbols-outlined[b-cofjpqme8n] {
    font-size: 14px;
}

/* ── 6. Modal Form Overlay & Card ───────────────────────────── */
.ft-modal-overlay[b-cofjpqme8n] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 16px;
}

.ft-modal-card[b-cofjpqme8n] {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 520px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ft-modal-header[b-cofjpqme8n] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.ft-modal-title[b-cofjpqme8n] {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.ft-modal-close-btn[b-cofjpqme8n] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.ft-modal-close-btn:hover[b-cofjpqme8n] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.ft-modal-body[b-cofjpqme8n] {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ft-form-group[b-cofjpqme8n] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ft-field-label[b-cofjpqme8n] {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ft-input[b-cofjpqme8n] {
    width: 100%;
    height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 12.5px;
    color: #1e293b;
    background: #ffffff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ft-input:focus[b-cofjpqme8n] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.ft-modal-footer[b-cofjpqme8n] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.ft-radio-pill[b-cofjpqme8n] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.ft-radio-pill input[b-cofjpqme8n] {
    display: none;
}

.ft-radio-pill.active[b-cofjpqme8n] {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}
/* /Components/Pages/GroupMaster.razor.rz.scp.css */
/* ==========================================================================
   GROUP MASTER — SINGLE VIEWPORT MODERN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Main Layout Wrapper ────────────────────── */
.gm-page-root[b-229vqdntf5] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.gm-top-bar[b-229vqdntf5] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.gm-title-block[b-229vqdntf5] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gm-title-icon-wrap[b-229vqdntf5] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gm-title-icon-wrap .material-symbols-outlined[b-229vqdntf5] {
    font-size: 20px;
}

.gm-breadcrumbs[b-229vqdntf5] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.gm-breadcrumb-link[b-229vqdntf5] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.gm-breadcrumb-link:hover[b-229vqdntf5] {
    color: #2563eb;
}

.gm-breadcrumb-sep[b-229vqdntf5] {
    font-size: 11px;
}

.gm-page-title[b-229vqdntf5] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gm-badge-directory[b-229vqdntf5] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gm-live-dot[b-229vqdntf5] {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.gm-top-actions[b-229vqdntf5] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gm-checkbox-label[b-229vqdntf5] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

.gm-checkbox-label input[type="checkbox"][b-229vqdntf5] {
    accent-color: #0f172a;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.gm-search-wrap[b-229vqdntf5] {
    position: relative;
    width: 240px;
}

.gm-search-wrap .material-symbols-outlined[b-229vqdntf5] {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.gm-search-input[b-229vqdntf5] {
    width: 100%;
    height: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 10px 0 32px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gm-search-input:focus[b-229vqdntf5] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.gm-btn-primary[b-229vqdntf5] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.gm-btn-primary:hover[b-229vqdntf5] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

.gm-btn-icon[b-229vqdntf5] {
    font-size: 16px;
}

/* ── 3. KPI / Stat Cards Grid ───────────────────────────────── */
.gm-stats-grid[b-229vqdntf5] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex-shrink: 0;
}

.gm-stat-card[b-229vqdntf5] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 7px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.gm-stat-card[b-229vqdntf5]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.gm-card-total[b-229vqdntf5]::before { background: #3b82f6; }
.gm-card-lab[b-229vqdntf5]::before   { background: #10b981; }
.gm-card-scan[b-229vqdntf5]::before  { background: #6366f1; }
.gm-card-pkg[b-229vqdntf5]::before   { background: #f59e0b; }

.gm-stat-card:hover[b-229vqdntf5] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.gm-stat-top[b-229vqdntf5] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gm-stat-icon-wrap[b-229vqdntf5] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gm-stat-icon-wrap .material-symbols-outlined[b-229vqdntf5] {
    font-size: 15px;
}

.gm-stat-tag[b-229vqdntf5] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.gm-stat-tag .material-symbols-outlined[b-229vqdntf5] {
    font-size: 13px;
}

.gm-card-total .gm-stat-icon-wrap[b-229vqdntf5] { background: #eff6ff; color: #3b82f6; }
.gm-card-total .gm-stat-tag[b-229vqdntf5]       { background: #eff6ff; color: #2563eb; }

.gm-card-lab .gm-stat-icon-wrap[b-229vqdntf5]   { background: #ecfdf5; color: #059669; }
.gm-card-lab .gm-stat-tag[b-229vqdntf5]         { background: #ecfdf5; color: #047857; }

.gm-card-scan .gm-stat-icon-wrap[b-229vqdntf5]  { background: #eef2ff; color: #6366f1; }
.gm-card-scan .gm-stat-tag[b-229vqdntf5]        { background: #eef2ff; color: #4f46e5; }

.gm-card-pkg .gm-stat-icon-wrap[b-229vqdntf5]   { background: #fffbeb; color: #d97706; }
.gm-card-pkg .gm-stat-tag[b-229vqdntf5]         { background: #fffbeb; color: #b45309; }

.gm-stat-mid[b-229vqdntf5] {
    margin-top: 1px;
}

.gm-stat-label[b-229vqdntf5] {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gm-stat-bottom[b-229vqdntf5] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.gm-stat-val[b-229vqdntf5] {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.gm-stat-subtext[b-229vqdntf5] {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── 4. Table Card Container (Single Viewport Inner Area) ─── */
.gm-table-card[b-229vqdntf5] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.gm-table-container[b-229vqdntf5] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

.gm-table[b-229vqdntf5] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    text-align: left;
}

/* Light Slate Header */
.gm-thead[b-229vqdntf5] {
    position: sticky;
    top: 0;
    z-index: 10;
}

.gm-th[b-229vqdntf5] {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 9px 12px;
    border-bottom: 1px solid #e2e8f0;
    border-top: none;
    white-space: nowrap;
    user-select: none;
}

.gm-tbody tr[b-229vqdntf5] {
    background-color: #ffffff;
    transition: background-color 0.12s ease;
}

.gm-tbody tr:hover[b-229vqdntf5] {
    background-color: #f8fafc;
}

.gm-td[b-229vqdntf5] {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
    font-size: 12px;
}

.gm-badge-code[b-229vqdntf5] {
    display: inline-block;
    padding: 2px 7px;
    background: #f1f5f9;
    color: #2563eb;
    font-family: monospace;
    font-weight: 800;
    font-size: 11.5px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
}

.gm-name-cell[b-229vqdntf5] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gm-avatar[b-229vqdntf5] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 11px;
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    flex-shrink: 0;
}

.gm-name-text[b-229vqdntf5] {
    font-weight: 700;
    color: #0f172a;
}

.gm-type-badge[b-229vqdntf5] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.gm-badge-lab[b-229vqdntf5]     { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.gm-badge-scan[b-229vqdntf5]    { background: #eef2ff; color: #4f46e5; border: 1px solid #c7d2fe; }
.gm-badge-pkg[b-229vqdntf5]     { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.gm-badge-charges[b-229vqdntf5] { background: #ffedd5; color: #c2410c; border: 1px solid #fed7aa; }

/* Action Buttons */
.gm-actions-cell[b-229vqdntf5] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.gm-btn-action[b-229vqdntf5] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.12s ease;
    padding: 0;
}

.gm-btn-action .material-symbols-outlined[b-229vqdntf5] {
    font-size: 15px;
}

.gm-btn-action:hover[b-229vqdntf5] {
    background: #f1f5f9;
    color: #0f172a;
}

.gm-btn-action-edit:hover[b-229vqdntf5] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.gm-btn-action-delete:hover[b-229vqdntf5] {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

/* ── 5. Modal Dialog ────────────────────────────────────────── */
.gm-modal-overlay[b-229vqdntf5] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.gm-modal-card[b-229vqdntf5] {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: gm-scale-in-b-229vqdntf5 0.15s ease-out;
}

@keyframes gm-scale-in-b-229vqdntf5 {
    from { transform: scale(0.96); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.gm-modal-header[b-229vqdntf5] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.gm-modal-title-wrap[b-229vqdntf5] {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0f172a;
}

.gm-modal-title[b-229vqdntf5] {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.gm-modal-close-btn[b-229vqdntf5] {
    width: 28px;
    height: 28px;
    border: none;
    background: #f1f5f9;
    border-radius: 6px;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.12s;
}

.gm-modal-close-btn:hover[b-229vqdntf5] {
    background: #e2e8f0;
    color: #0f172a;
}

.gm-modal-body[b-229vqdntf5] {
    padding: 18px;
    overflow-y: auto;
    max-height: calc(85vh - 120px);
    background: #ffffff;
}

.gm-form-group[b-229vqdntf5] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gm-form-label[b-229vqdntf5] {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.gm-form-input[b-229vqdntf5], .gm-form-textarea[b-229vqdntf5] {
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #ffffff;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: all 0.15s;
    font-family: inherit;
}

.gm-form-textarea[b-229vqdntf5] {
    height: 64px;
    padding: 6px 10px;
    resize: vertical;
}

.gm-form-input:focus[b-229vqdntf5], .gm-form-textarea:focus[b-229vqdntf5] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.gm-dept-radio-grid[b-229vqdntf5] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
}

.gm-dept-radio-item[b-229vqdntf5] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: #475569;
    background: #ffffff;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.12s;
    user-select: none;
}

.gm-dept-radio-item.active[b-229vqdntf5] {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.gm-dept-radio-item input[type="radio"][b-229vqdntf5] {
    display: none;
}

.gm-modal-footer[b-229vqdntf5] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 18px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    gap: 8px;
}

.gm-btn-cancel[b-229vqdntf5] {
    height: 32px;
    padding: 0 14px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.gm-btn-cancel:hover[b-229vqdntf5] {
    background: #f1f5f9;
    color: #1e293b;
}

.gm-btn-delete[b-229vqdntf5] {
    height: 32px;
    padding: 0 14px;
    background: #ffffff;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    margin-right: auto;
}

.gm-btn-delete:hover:not(:disabled)[b-229vqdntf5] {
    background: #fef2f2;
}

.gm-btn-delete:disabled[b-229vqdntf5] {
    opacity: 0.5;
    cursor: not-allowed;
}

.gm-btn-save[b-229vqdntf5] {
    height: 32px;
    padding: 0 16px;
    background: #0f172a !important;
    border: none !important;
    border-radius: 6px;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.gm-btn-save:hover[b-229vqdntf5] {
    background: #1e293b !important;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

/* ── 6. Inline Grid Editing Styles ────────────────────────── */
.gm-inline-input[b-229vqdntf5] {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 3px 6px;
    font-size: 12px;
    outline: none;
    transition: all 0.15s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.gm-inline-input:hover[b-229vqdntf5] {
    border-color: #cbd5e1;
    background: #ffffff;
}

.gm-inline-input:focus[b-229vqdntf5] {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.gm-spin-animate[b-229vqdntf5] {
    animation: gm-spin-b-229vqdntf5 1s linear infinite;
}

@keyframes gm-spin-b-229vqdntf5 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
/* /Components/Pages/HospitalIdMasterPage.razor.rz.scp.css */
/* ==========================================================================
   HOSPITAL ID & PATIENT ID MASTER — MODERN OBSIDIAN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Main Layout Wrapper ────────────────────── */
.hosp-page-root[b-vel8qgz38p] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.hosp-top-bar[b-vel8qgz38p] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.hosp-title-block[b-vel8qgz38p] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hosp-title-icon-wrap[b-vel8qgz38p] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hosp-title-icon-wrap .material-symbols-outlined[b-vel8qgz38p] {
    font-size: 20px;
}

.hosp-breadcrumbs[b-vel8qgz38p] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.hosp-breadcrumb-link[b-vel8qgz38p] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.hosp-breadcrumb-link:hover[b-vel8qgz38p] {
    color: #2563eb;
}

.hosp-breadcrumb-sep[b-vel8qgz38p] {
    font-size: 11px;
}

.hosp-page-title[b-vel8qgz38p] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hosp-badge-directory[b-vel8qgz38p] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hosp-live-dot[b-vel8qgz38p] {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.hosp-top-actions[b-vel8qgz38p] {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Tab Switcher Pills */
.hosp-tab-switch[b-vel8qgz38p] {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    gap: 2px;
}

.hosp-tab-btn[b-vel8qgz38p] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    font-size: 11.5px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background: transparent;
    color: #64748b;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.hosp-tab-btn .material-symbols-outlined[b-vel8qgz38p] {
    font-size: 15px;
}

.hosp-tab-btn:hover[b-vel8qgz38p] {
    color: #1e293b;
}

.hosp-tab-btn.active[b-vel8qgz38p] {
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.hosp-search-wrap[b-vel8qgz38p] {
    position: relative;
    width: 220px;
}

.hosp-search-wrap .material-symbols-outlined[b-vel8qgz38p] {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.hosp-search-input[b-vel8qgz38p] {
    width: 100%;
    height: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 10px 0 32px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hosp-search-input:focus[b-vel8qgz38p] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.hosp-btn-primary[b-vel8qgz38p] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.hosp-btn-primary:hover[b-vel8qgz38p] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

.hosp-btn-icon[b-vel8qgz38p] {
    font-size: 16px;
}

/* ── 3. KPI / Stat Cards Grid ───────────────────────────────── */
.hosp-stats-grid[b-vel8qgz38p] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex-shrink: 0;
}

.hosp-stat-card[b-vel8qgz38p] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 7px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.hosp-stat-card[b-vel8qgz38p]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.hosp-card-total[b-vel8qgz38p]::before    { background: #3b82f6; }
.hosp-card-hospital[b-vel8qgz38p]::before { background: #6366f1; }
.hosp-card-patient[b-vel8qgz38p]::before  { background: #10b981; }
.hosp-card-active[b-vel8qgz38p]::before   { background: #f59e0b; }

.hosp-stat-card:hover[b-vel8qgz38p] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.hosp-stat-top[b-vel8qgz38p] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hosp-stat-icon-wrap[b-vel8qgz38p] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hosp-stat-icon-wrap .material-symbols-outlined[b-vel8qgz38p] {
    font-size: 15px;
}

.hosp-stat-tag[b-vel8qgz38p] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.hosp-stat-tag .material-symbols-outlined[b-vel8qgz38p] {
    font-size: 13px;
}

.hosp-card-total .hosp-stat-icon-wrap[b-vel8qgz38p]    { background: #eff6ff; color: #3b82f6; }
.hosp-card-total .hosp-stat-tag[b-vel8qgz38p]          { background: #eff6ff; color: #2563eb; }

.hosp-card-hospital .hosp-stat-icon-wrap[b-vel8qgz38p] { background: #eef2ff; color: #6366f1; }
.hosp-card-hospital .hosp-stat-tag[b-vel8qgz38p]       { background: #eef2ff; color: #4f46e5; }

.hosp-card-patient .hosp-stat-icon-wrap[b-vel8qgz38p]  { background: #ecfdf5; color: #059669; }
.hosp-card-patient .hosp-stat-tag[b-vel8qgz38p]        { background: #ecfdf5; color: #047857; }

.hosp-card-active .hosp-stat-icon-wrap[b-vel8qgz38p]   { background: #fffbeb; color: #d97706; }
.hosp-card-active .hosp-stat-tag[b-vel8qgz38p]         { background: #fffbeb; color: #b45309; }

.hosp-stat-mid[b-vel8qgz38p] {
    margin-top: 1px;
}

.hosp-stat-label[b-vel8qgz38p] {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hosp-stat-bottom[b-vel8qgz38p] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.hosp-stat-val[b-vel8qgz38p] {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.hosp-stat-subtext[b-vel8qgz38p] {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── 4. Table Card Container (Single Viewport Inner Area) ─── */
.hosp-table-card[b-vel8qgz38p] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.hosp-table-container[b-vel8qgz38p] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

.hosp-table[b-vel8qgz38p] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    text-align: left;
}

/* Light Slate Sticky Header */
.hosp-thead[b-vel8qgz38p] {
    position: sticky;
    top: 0;
    z-index: 10;
}

.hosp-th[b-vel8qgz38p] {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 9px 12px;
    border-bottom: 1px solid #e2e8f0;
    border-top: none;
    white-space: nowrap;
    user-select: none;
}

.hosp-tbody tr[b-vel8qgz38p] {
    background-color: #ffffff;
    transition: background-color 0.12s ease;
}

.hosp-tbody tr:hover[b-vel8qgz38p] {
    background-color: #f8fafc;
}

.hosp-td[b-vel8qgz38p] {
    padding: 7px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
    font-size: 12px;
}

.hosp-badge-code[b-vel8qgz38p] {
    display: inline-block;
    padding: 2px 6px;
    background: #f1f5f9;
    color: #475569;
    font-family: monospace;
    font-weight: 700;
    font-size: 11px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.hosp-prefix-pill-blue[b-vel8qgz38p] {
    display: inline-block;
    padding: 2px 8px;
    background: #eff6ff;
    color: #2563eb;
    font-family: monospace;
    font-weight: 700;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid #dbeafe;
}

.hosp-prefix-pill-green[b-vel8qgz38p] {
    display: inline-block;
    padding: 2px 8px;
    background: #ecfdf5;
    color: #059669;
    font-family: monospace;
    font-weight: 700;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid #a7f3d0;
}

.hosp-date-text[b-vel8qgz38p] {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

/* Action Buttons */
.hosp-actions-cell[b-vel8qgz38p] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.hosp-btn-action[b-vel8qgz38p] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.hosp-btn-action .material-symbols-outlined[b-vel8qgz38p] {
    font-size: 14px;
}

.hosp-btn-edit:hover[b-vel8qgz38p] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.hosp-btn-delete:hover[b-vel8qgz38p] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* ── 5. Modal Backdrop & Card Form ──────────────────────────── */
.hosp-modal-overlay[b-vel8qgz38p] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 16px;
    animation: hospFadeIn-b-vel8qgz38p 0.15s ease-out;
}

@keyframes hospFadeIn-b-vel8qgz38p {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hosp-modal-card[b-vel8qgz38p] {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 520px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: hospSlideUp-b-vel8qgz38p 0.15s ease-out;
}

@keyframes hospSlideUp-b-vel8qgz38p {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hosp-modal-header[b-vel8qgz38p] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.hosp-modal-title[b-vel8qgz38p] {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.hosp-modal-close-btn[b-vel8qgz38p] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.hosp-modal-close-btn:hover[b-vel8qgz38p] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.hosp-modal-body[b-vel8qgz38p] {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 75vh;
    overflow-y: auto;
}

.hosp-form-group[b-vel8qgz38p] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hosp-form-label[b-vel8qgz38p] {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hosp-form-input[b-vel8qgz38p] {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hosp-form-input:focus[b-vel8qgz38p] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.hosp-grid-2col[b-vel8qgz38p] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.hosp-modal-footer[b-vel8qgz38p] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.hosp-btn-delete[b-vel8qgz38p] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #fca5a5;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.hosp-btn-delete:hover:not(:disabled)[b-vel8qgz38p] {
    background: #fee2e2;
}

.hosp-btn-save[b-vel8qgz38p] {
    height: 32px;
    padding: 0 16px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.hosp-btn-save:hover[b-vel8qgz38p] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}
/* /Components/Pages/IndentApproval.razor.rz.scp.css */
/* Scoped styles for Indent component */

.items-page[b-fwm19yn0ko] {
    min-height: 100vh;
    background: transparent !important;
}

.items-shell[b-fwm19yn0ko] {
    max-width: 1320px;
    margin: 0 auto;
}

.items-content[b-fwm19yn0ko] {
    width: min(1240px, 100%);
    margin: 0 auto;
    text-align: center;
}

.premium-header-card[b-fwm19yn0ko] {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-radius: 16px !important;
    padding: 1.25rem 2rem !important;
    color: #1e1b4b !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem !important;
}

.header-card-left[b-fwm19yn0ko] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-card-icon[b-fwm19yn0ko] {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

.header-card-icon svg[b-fwm19yn0ko] {
    stroke: #2563eb !important;
}

.header-card-text[b-fwm19yn0ko] {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.header-card-heading[b-fwm19yn0ko] {
    color: #0f172a !important;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
}

.header-card-subheading[b-fwm19yn0ko] {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b !important;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.status-dot[b-fwm19yn0ko] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    margin-right: 6px;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
}

.header-card-right[b-fwm19yn0ko] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.items-search-wrap[b-fwm19yn0ko] {
    position: relative;
    display: flex;
    align-items: center;
}

.items-search[b-fwm19yn0ko] {
    width: 220px;
    height: 38px !important;
    border-radius: 20px !important;
    border: 1px solid #cbd5e1 !important;
    padding-left: 2.4rem !important;
    font-size: 0.8rem !important;
    background: #ffffff !important;
    color: #1e293b !important;
    box-shadow: none !important;
    transition: all 0.25s ease !important;
}

.items-search:focus[b-fwm19yn0ko] {
    outline: none !important;
    width: 280px !important;
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

.items-search-icon[b-fwm19yn0ko] {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
}

.view-toggle[b-fwm19yn0ko] {
    display: inline-flex;
    border: 1px solid #cbd5e1 !important;
    border-radius: 20px !important;
    overflow: hidden;
    background: #f8fafc !important;
    height: 38px;
    padding: 2px;
    align-items: center;
}

.view-toggle button[b-fwm19yn0ko] {
    border: 0 !important;
    background: transparent !important;
    color: #64748b !important;
    width: 36px;
    height: 32px;
    border-radius: 16px !important;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle button.active[b-fwm19yn0ko] {
    background: #ffffff !important;
    color: #4f46e5 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.add-item-btn[b-fwm19yn0ko] {
    height: 38px !important;
    border-radius: 20px !important;
    background: #4f46e5 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0 1.5rem !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
    transition: all 0.2s ease-in-out !important;
}

.add-item-btn:hover[b-fwm19yn0ko] {
    background: #3f39c5 !important;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35) !important;
    transform: translateY(-1.5px);
}

.items-main-card[b-fwm19yn0ko] {
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    overflow: hidden;
    margin-top: 1.5rem !important;
    background: #ffffff !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
}

.items-main-card .table-responsive[b-fwm19yn0ko] {
    max-height: 550px !important;
    overflow-y: auto !important;
    overflow-x: auto !important;
}

.items-table[b-fwm19yn0ko] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

table.table.items-table thead tr th[b-fwm19yn0ko],
.items-table th[b-fwm19yn0ko] {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    background: #ffffff !important;
    color: #8a99ad !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.74rem !important;
    letter-spacing: 0.8px !important;
    padding: 18px 24px !important;
    border-bottom: 2px solid #eef2f6 !important;
    text-align: left !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.items-table td[b-fwm19yn0ko] {
    border-top: none !important;
    border-bottom: 1px solid #eef2f6 !important;
    padding: 18px 24px !important;
    font-size: 0.8rem !important;
    background: #ffffff !important;
    color: #64748b !important;
    vertical-align: middle !important;
}

.items-table td:last-child[b-fwm19yn0ko] {
    white-space: nowrap !important;
    text-align: center !important;
}

.items-table tr td:first-child[b-fwm19yn0ko] {
    color: #3b82f6 !important;
    font-weight: 700 !important;
}

.action-btn[b-fwm19yn0ko] {
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    margin: 0 2px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #94a3b8 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.action-btn:hover[b-fwm19yn0ko] {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}

.action-btn i[b-fwm19yn0ko] {
    font-size: 0.85rem !important;
}

.items-card-grid[b-fwm19yn0ko] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
}

.item-card[b-fwm19yn0ko] {
    background: #ffffff !important;
    border: 1px solid #eef2f6 !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.item-card:hover[b-fwm19yn0ko] {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(37, 99, 235, 0.25) !important;
}

.item-card-head[b-fwm19yn0ko] {
    background: #ffffff !important;
    color: #1e293b !important;
    padding: 0.6rem 1rem !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid rgba(99, 102, 241, 0.1) !important;
}

.card-item-code[b-fwm19yn0ko] {
    color: #4b5563 !important;
    font-weight: 700 !important;
    margin-right: 6px;
}

.card-item-name[b-fwm19yn0ko] {
    color: #374151 !important;
    font-weight: 700 !important;
}

.item-card-body[b-fwm19yn0ko] {
    padding: 0.75rem 1rem !important;
    color: #64748b !important;
    font-size: 0.8rem !important;
}

.detail-row[b-fwm19yn0ko] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0 !important;
    border-bottom: 1px solid #eef2f6 !important;
}

.detail-row:last-child[b-fwm19yn0ko] {
    border-bottom: none !important;
}

.detail-row span[b-fwm19yn0ko] {
    color: #8a99ad !important;
    font-weight: 700 !important;
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.detail-row strong[b-fwm19yn0ko] {
    color: #000000 !important;
    font-weight: 600 !important;
}

.btn-cancel-modal[b-fwm19yn0ko] {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: none !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    min-width: 100px !important;
    transition: all 0.2s !important;
}

.btn-cancel-modal:hover[b-fwm19yn0ko] {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.purchase-bill-wrapper[b-fwm19yn0ko] {
    display: flex;
    gap: 2.25rem;
    flex-wrap: wrap;
}

.purchase-bill-fields[b-fwm19yn0ko] {
    flex: 1.5;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.purchase-bill-fields .premium-input[b-fwm19yn0ko] {
    padding: 0 10px !important;
    font-size: 0.8rem !important;
    border-radius: 6px !important;
    height: 32px !important;
    line-height: 32px !important;
    background: #f9fafc !important;
    border: 1px solid #e5e7eb !important;
    color: #1f2937 !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    display: flex !important;
    align-items: center !important;
}

.purchase-bill-fields input[type="date"].premium-input[b-fwm19yn0ko],
.purchase-bill-fields input.premium-input[b-fwm19yn0ko] {
    padding: 0 10px !important;
    height: 32px !important;
    line-height: normal !important;
    background: #f9fafc !important;
    border: 1px solid #e5e7eb !important;
}

.purchase-bill-fields .field-group[b-fwm19yn0ko] {
    gap: 4px;
}

.purchase-bill-fields .field-label[b-fwm19yn0ko] {
    font-size: 0.68rem !important;
    margin-bottom: 4px !important;
    font-weight: 700 !important;
    color: #374151 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.purchase-bill-fields .form-grid[b-fwm19yn0ko] {
    gap: 12px;
}

.purchase-bill-summary[b-fwm19yn0ko] {
    flex: 0.85;
    min-width: 300px;
    max-width: 320px;
    display: flex;
    align-items: stretch;
}

.purchase-item-entry-card[b-fwm19yn0ko] {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0.7rem;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow-x: hidden;
    box-sizing: border-box;
}

.purchase-item-entry-header[b-fwm19yn0ko] {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(52px, 0.55fr) minmax(60px, 0.65fr) minmax(52px, 0.55fr) minmax(52px, 0.55fr) minmax(80px, 0.9fr) minmax(110px, 1fr);
    gap: 10px;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.purchase-item-entry-label[b-fwm19yn0ko] {
    font-size: 0.6rem;
    font-weight: 700;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.purchase-item-entry-label span[b-fwm19yn0ko] {
    color: #ef4444;
}

.purchase-item-entry-fields[b-fwm19yn0ko] {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(52px, 0.55fr) minmax(60px, 0.65fr) minmax(52px, 0.55fr) minmax(52px, 0.55fr) minmax(80px, 0.9fr) minmax(110px, 1fr);
    gap: 10px;
    align-items: center;
    width: 100%;
}

.purchase-item-entry-fields>div[b-fwm19yn0ko],
.purchase-item-entry-header>div[b-fwm19yn0ko] {
    min-width: 0;
}

.purchase-item-input[b-fwm19yn0ko] {
    height: 28px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: white;
    font-size: 0.65rem;
    padding: 0 6px;
    outline: none;
    transition: all 0.2s;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.purchase-item-input:focus[b-fwm19yn0ko] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    background: #f8fbff;
}

.purchase-item-select[b-fwm19yn0ko] {
    height: 28px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: white;
    font-size: 0.65rem;
    padding: 0 6px;
    outline: none;
    transition: all 0.2s;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.purchase-item-select:focus[b-fwm19yn0ko] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    background: #f8fbff;
}

.purchase-item-add-btn[b-fwm19yn0ko] {
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    height: 28px;
    font-weight: 700;
    font-size: 0.65rem;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.purchase-item-add-btn:hover[b-fwm19yn0ko] {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.purchase-item-add-btn:active[b-fwm19yn0ko] {
    transform: translateY(0);
}

.purchase-details-wrapper[b-fwm19yn0ko] {
    width: 100%;
    margin-bottom: 2rem;
}

.purchase-details-link[b-fwm19yn0ko] {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f678f;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.purchase-details-link:hover[b-fwm19yn0ko] {
    color: #0ea5e9;
    gap: 8px;
}

.purchase-items-table-wrapper[b-fwm19yn0ko] {
    border: none !important;
    border-radius: 0;
    overflow: visible;
    background: white;
    margin-bottom: 0.5rem !important;
    box-shadow: none !important;
}

.purchase-items-table-wrapper table[b-fwm19yn0ko] {
    table-layout: fixed;
    width: 100%;
}

.purchase-items-table-wrapper .purchase-item-input[b-fwm19yn0ko],
.purchase-items-table-wrapper .purchase-item-select[b-fwm19yn0ko] {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    height: 26px;
    font-size: 0.65rem;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: white;
    outline: none;
    transition: all 0.2s;
}

.purchase-items-table-wrapper .purchase-item-input:focus[b-fwm19yn0ko],
.purchase-items-table-wrapper .purchase-item-select:focus[b-fwm19yn0ko] {
    border-color: #0273b2;
    box-shadow: 0 0 0 2px rgba(2, 115, 178, 0.1);
    background: #f4f8fa;
}

.purchase-items-table-wrapper .purchase-item-select[b-fwm19yn0ko] {
    min-width: 130px;
}

.purchase-items-table-header[b-fwm19yn0ko] {
    background: #0273b2 !important;
    border-bottom: none;
}

.purchase-items-table-header th[b-fwm19yn0ko] {
    font-weight: 700;
    font-size: 0.72rem;
    color: #ffffff !important;
    padding: 12px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.purchase-add-row-wrapper[b-fwm19yn0ko] {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.purchase-add-row-btn[b-fwm19yn0ko] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 2px dashed #0273b2 !important;
    border-radius: 10px !important;
    background: #f4f8fa !important;
    color: #0273b2 !important;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.45rem 1.25rem;
    min-width: 200px;
    cursor: pointer;
    transition: all 0.22s ease-in-out;
    box-shadow: 0 2px 4px rgba(2, 115, 178, 0.05);
}

.purchase-add-row-btn:hover[b-fwm19yn0ko] {
    background: #e6f2fa !important;
    border-color: #015f94 !important;
    color: #015f94 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(2, 115, 178, 0.12);
}

.purchase-add-row-btn i[b-fwm19yn0ko] {
    font-size: 0.95rem;
    color: #0273b2 !important;
    transition: color 0.22s ease-in-out;
}

.purchase-add-row-btn:hover i[b-fwm19yn0ko] {
    color: #015f94 !important;
}

.purchase-item-readonly[b-fwm19yn0ko] {
    display: block;
    width: 100%;
    height: 26px;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 6px;
    line-height: 24px;
    font-size: 0.65rem;
    color: #475569;
    box-sizing: border-box;
    pointer-events: none;
    user-select: none;
    text-align: right;
}

.purchase-items-table-wrapper .purchase-item-input:disabled[b-fwm19yn0ko],
.purchase-items-table-wrapper .purchase-item-select:disabled[b-fwm19yn0ko] {
    pointer-events: none;
    cursor: default;
    background-color: white !important;
    color: #000000 !important;
    border-color: #d1d5db !important;
}

.btn-add-item-blue[b-fwm19yn0ko] {
    background: #0273b2;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(2, 115, 178, 0.3);
    transition: all 0.2s;
    white-space: nowrap;
    font-size: 0.82rem;
    height: 32px;
}

.btn-add-item-blue:hover[b-fwm19yn0ko] {
    background: #015c8f;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(2, 115, 178, 0.4);
}

.btn-add-item-blue:active[b-fwm19yn0ko] {
    transform: translateY(0);
}

.bill-card-premium[b-fwm19yn0ko] {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 5px solid #3b82f6;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.04);
    transition: all 0.3s ease;
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.25rem;
    padding: 0.4rem 0.65rem;
}

.bill-card-premium:hover[b-fwm19yn0ko] {
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.08);
    border-color: #93c5fd;
    border-left-color: #2563eb;
}

.bill-card-header-premium[b-fwm19yn0ko] {
    margin-bottom: 0.15rem;
    padding-bottom: 0.35rem;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #4f46e5;
    letter-spacing: 0.8px;
    border-bottom: 1px dashed #bfdbfe;
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-premium-gross[b-fwm19yn0ko] {
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 4px solid #1e3a8a !important;
    color: #1e3a8a !important;
    font-weight: 700 !important;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-premium-gross:hover[b-fwm19yn0ko] {
    transform: translateY(-1.5px);
    background-color: #f1f5f9 !important;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.08);
}

.input-premium-gross:focus[b-fwm19yn0ko] {
    border-color: #2563eb !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18) !important;
    outline: none;
}

.input-premium-discount[b-fwm19yn0ko] {
    background-color: #f0fdf4 !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 4px solid #059669 !important;
    color: #065f46 !important;
    font-weight: 700 !important;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-premium-discount:hover[b-fwm19yn0ko] {
    transform: translateY(-1.5px);
    background-color: #ecfdf5 !important;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.08);
}

.input-premium-discount:focus[b-fwm19yn0ko] {
    border-color: #10b981 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18) !important;
    outline: none;
}

.input-premium-tax[b-fwm19yn0ko] {
    background-color: #fffbeb !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 4px solid #d97706 !important;
    color: #92400e !important;
    font-weight: 700 !important;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-premium-tax:hover[b-fwm19yn0ko] {
    transform: translateY(-1.5px);
    background-color: #fef3c7 !important;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.08);
}

.input-premium-tax:focus[b-fwm19yn0ko] {
    border-color: #f59e0b !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18) !important;
    outline: none;
}

.net-payable-wrapper-premium[b-fwm19yn0ko] {
    margin-top: 0.2rem;
    padding-top: 0.5rem;
    border-top: 2px dashed rgba(99, 102, 241, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.net-payable-label-premium[b-fwm19yn0ko] {
    font-size: 0.74rem;
    font-weight: 800;
    color: #4f46e5;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.net-payable-value-premium[b-fwm19yn0ko] {
    font-size: 1.25rem;
    font-weight: 800;
    color: #4f46e5;
    text-shadow: 0 1px 2px rgba(79, 70, 229, 0.1);
}

@keyframes premium-pulse-blink-b-fwm19yn0ko {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.65;
        transform: scale(0.97);
    }
}

.blink-payable-value[b-fwm19yn0ko] {
    animation: premium-pulse-blink-b-fwm19yn0ko 1.8s infinite ease-in-out;
    display: inline-block;
}

.btn-dotted-add[b-fwm19yn0ko] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px dashed #0f678f !important;
    background: #fff !important;
    color: #0f678f !important;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 20px;
    padding: 8px 32px;
    box-shadow: none;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-dotted-add:hover[b-fwm19yn0ko] {
    background: rgba(15, 103, 143, 0.04) !important;
    border-color: #0d587a !important;
    color: #0d587a !important;
    transform: translateY(-1.5px);
}

.btn-dotted-add:active[b-fwm19yn0ko] {
    transform: translateY(0);
}

.purchase-bill-fields select.premium-input[b-fwm19yn0ko] {
    -webkit-appearance: auto !important;
    appearance: auto !important;
    background-image: none !important;
    padding-right: 24px !important;
}

/* Vendor Master Specific Styles */
.items-main-card .table-responsive[b-fwm19yn0ko] {
    padding-right: 0 !important;
    overflow-x: auto !important;
}

.items-table[b-fwm19yn0ko] {
    width: 100% !important;
}

.items-table th[b-fwm19yn0ko] {
    background: #f8fafc !important;
    color: #1e293b !important;
    white-space: nowrap !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    padding: 12px 16px !important;
}

.items-table td[b-fwm19yn0ko] {
    white-space: normal !important;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.8rem !important;
    padding: 3px 6px !important;
}

/* Premium Modal Styles for Vendor */
.modal-card[b-fwm19yn0ko] {
    border-radius: 24px !important;
    border: none !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
    background: #fff;
}

.modal-header-bar[b-fwm19yn0ko] {
    background: #fff !important;
    color: #333 !important;
    padding: 24px 32px !important;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-left[b-fwm19yn0ko] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-badge[b-fwm19yn0ko] {
    background: var(--sidebar-bg);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.modal-title[b-fwm19yn0ko] {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
}

.modal-subtitle[b-fwm19yn0ko] {
    font-size: 0.85rem;
    color: #64748b;
}

.btn-close-modal[b-fwm19yn0ko] {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}

.btn-close-modal:hover[b-fwm19yn0ko] {
    background: #e2e8f0;
    color: #1e293b;
}

.modal-inner[b-fwm19yn0ko] {
    padding: 16px 32px !important;
    background: #fff;
}

.form-section-header[b-fwm19yn0ko] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    margin-top: 4px;
}

.form-section-icon[b-fwm19yn0ko] {
    background: var(--sidebar-bg);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.form-section-title[b-fwm19yn0ko] {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #025091;
}

.form-grid[b-fwm19yn0ko] {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.col-prefix[b-fwm19yn0ko] {
    grid-column: span 3;
}

.col-main[b-fwm19yn0ko] {
    grid-column: span 9;
}

.col-2[b-fwm19yn0ko] {
    grid-column: span 2;
}

.col-3[b-fwm19yn0ko] {
    grid-column: span 3;
}

.col-4[b-fwm19yn0ko] {
    grid-column: span 4;
}

.col-5[b-fwm19yn0ko] {
    grid-column: span 5;
}

.col-6[b-fwm19yn0ko] {
    grid-column: span 6;
}

.col-7[b-fwm19yn0ko] {
    grid-column: span 7;
}

.col-8[b-fwm19yn0ko] {
    grid-column: span 8;
}

.col-9[b-fwm19yn0ko] {
    grid-column: span 9;
}

.col-10[b-fwm19yn0ko] {
    grid-column: span 10;
}

.col-11[b-fwm19yn0ko] {
    grid-column: span 11;
}

.col-12[b-fwm19yn0ko] {
    grid-column: span 12;
}

.field-group[b-fwm19yn0ko] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-label[b-fwm19yn0ko] {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 2px;
}

.field-label.required[b-fwm19yn0ko]::after {
    content: " *";
    color: #ef4444;
}

.premium-input[b-fwm19yn0ko] {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    font-size: 0.85rem !important;
    color: #4b5563 !important;
    transition: all 0.2s !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    box-sizing: border-box !important;
    line-height: normal !important;
}

select.premium-input[b-fwm19yn0ko],
input.premium-input[b-fwm19yn0ko],
input[type="date"].premium-input[b-fwm19yn0ko],
input[type="text"].premium-input[b-fwm19yn0ko] {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    box-sizing: border-box !important;
    padding: 6px 12px !important;
    font-size: 0.85rem !important;
}

.premium-input[b-fwm19yn0ko]::placeholder {
    color: #cbd5e1 !important;
    opacity: 1 !important;
}

.premium-input:focus[b-fwm19yn0ko] {
    background: #fff !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1) !important;
    outline: none !important;
}

.modal-footer-actions[b-fwm19yn0ko] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.btn-delete-text[b-fwm19yn0ko] {
    color: #ef4444;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-delete-text:hover[b-fwm19yn0ko] {
    background: #fef2f2;
}

.btn-save-premium[b-fwm19yn0ko] {
    background: #1c9f5f;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(28, 159, 95, 0.3);
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-save-premium:hover[b-fwm19yn0ko] {
    background: #168a52;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(28, 159, 95, 0.4);
}

.btn-save-premium:active[b-fwm19yn0ko] {
    transform: translateY(0);
}

.btn-save-premium:disabled[b-fwm19yn0ko] {
    opacity: 0.6;
    cursor: not-allowed;
}


/* Financial Summary Card Styles */
.financial-summary-card[b-fwm19yn0ko] {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    padding: 1.5rem;
    font-family: 'Inter', 'Outfit', sans-serif;
}

.financial-summary-header[b-fwm19yn0ko] {
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.6rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.financial-summary-row[b-fwm19yn0ko] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.financial-summary-label[b-fwm19yn0ko] {
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.financial-summary-value[b-fwm19yn0ko] {
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
}

.financial-summary-input[b-fwm19yn0ko] {
    width: 80px;
    height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: #334155;
    outline: none;
    transition: all 0.2s;
    background: #ffffff;
}

.financial-summary-input:focus[b-fwm19yn0ko] {
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.financial-summary-net[b-fwm19yn0ko] {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.financial-summary-net-label[b-fwm19yn0ko] {
    color: #0f172a;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.financial-summary-net-value[b-fwm19yn0ko] {
    color: #4f46e5;
    font-weight: 800;
    font-size: 1.4rem;
}

/* Purchase Entry Master Compact Summary Card */
.compact-summary-card[b-fwm19yn0ko] {
    border-radius: 14px;
    padding: 1.25rem 1.4rem;
    border: 1.5px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.compact-summary-card[b-fwm19yn0ko]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #6366f1, #06b6d4);
    border-radius: 14px 0 0 14px;
}

.compact-summary-card:hover[b-fwm19yn0ko] {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
}

/* Physical Bill Totals - Blue-indigo gradient */
.compact-summary-card.bill-card[b-fwm19yn0ko] {
    background: linear-gradient(135deg, #eef2ff 0%, #f0fdff 100%);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02);
}

.compact-summary-card.bill-card[b-fwm19yn0ko]::before {
    background: linear-gradient(180deg, #6366f1, #06b6d4);
}

/* Computed Items Total - Teal-green gradient */
.compact-summary-card.items-card[b-fwm19yn0ko] {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 100%);
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.08);
}

.compact-summary-card.items-card[b-fwm19yn0ko]::before {
    background: linear-gradient(180deg, #10b981, #06b6d4);
}

.compact-summary-card.items-card:hover[b-fwm19yn0ko] {
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.18);
}

.compact-summary-header[b-fwm19yn0ko] {
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed rgba(37, 99, 235, 0.25);
    padding-left: 8px;
}

.compact-summary-card.items-card .compact-summary-header[b-fwm19yn0ko] {
    color: #10b981;
    border-bottom-color: rgba(16, 185, 129, 0.25);
}

.compact-summary-row[b-fwm19yn0ko] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding-left: 8px;
}

.compact-summary-label[b-fwm19yn0ko] {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.compact-summary-value[b-fwm19yn0ko] {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
}

.compact-summary-input[b-fwm19yn0ko] {
    width: 110px;
    height: 30px;
    border-radius: 8px;
    border: 1.5px solid rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.8);
    text-align: right;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0 10px;
    color: #1e293b;
}

.compact-summary-input:focus[b-fwm19yn0ko] {
    outline: none;
    border-color: #64748b;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: #fff;
}

.compact-summary-net[b-fwm19yn0ko] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    padding-left: 8px;
    border-top: 1.5px solid rgba(99, 102, 241, 0.2);
}

.compact-summary-card.items-card .compact-summary-net[b-fwm19yn0ko] {
    border-top-color: rgba(16, 185, 129, 0.2);
}

.compact-summary-net-label[b-fwm19yn0ko] {
    font-size: 0.8rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compact-summary-net-value[b-fwm19yn0ko] {
    font-size: 1.3rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: -0.5px;
}

.compact-summary-card.items-card .compact-summary-net-value[b-fwm19yn0ko] {
    color: #10b981;
}

/* Stock Indent Status Badges (Text Only - No Box) */
.badge-indent-pending[b-fwm19yn0ko],
.detail-row strong.badge-indent-pending[b-fwm19yn0ko] {
    background: transparent !important;
    color: #d97706 !important;
    border: none !important;
    padding: 0 !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

.badge-indent-approved[b-fwm19yn0ko],
.detail-row strong.badge-indent-approved[b-fwm19yn0ko] {
    background: transparent !important;
    color: #059669 !important;
    border: none !important;
    padding: 0 !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

.badge-indent-rejected[b-fwm19yn0ko],
.detail-row strong.badge-indent-rejected[b-fwm19yn0ko] {
    background: transparent !important;
    color: #dc2626 !important;
    border: none !important;
    padding: 0 !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

/* Stock volume indicators */
.badge-stock-high[b-fwm19yn0ko] {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #059669 !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

.badge-stock-low[b-fwm19yn0ko] {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #d97706 !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

.badge-stock-empty[b-fwm19yn0ko] {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #dc2626 !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

/* OVERRIDE FOR HIGH-DENSITY PURCHASE BILL FORM (e.g. ItemMaster Modal) */
.purchase-bill-fields .premium-segmented-control-joined[b-fwm19yn0ko] {
    height: 32px !important;
    border-radius: 6px !important;
    max-width: none !important;
}

.purchase-bill-fields .segment-btn-joined[b-fwm19yn0ko] {
    font-size: 0.8rem !important;
}

.purchase-bill-fields .segment-btn-joined:first-child[b-fwm19yn0ko] {
    border-right: 1px solid #e2e8f0 !important;
}

/* Tabular Grid/Real Table styling for purchase details table */
.purchase-items-table-wrapper table[b-fwm19yn0ko] {
    border-collapse: collapse !important;
    border: 1px solid #cbd5e1 !important;
    width: 100%;
}

.purchase-items-table-wrapper th[b-fwm19yn0ko],
.purchase-items-table-wrapper td[b-fwm19yn0ko] {
    border: 1px solid #cbd5e1 !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

.purchase-items-table-header th[b-fwm19yn0ko] {
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    padding: 10px 8px !important;
    font-weight: 700;
    font-size: 0.72rem;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #0273b2 !important;
}

.purchase-items-table-wrapper .purchase-item-input[b-fwm19yn0ko],
.purchase-items-table-wrapper .purchase-item-select[b-fwm19yn0ko] {
    width: 100% !important;
    height: 34px !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 8px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background: transparent !important;
}

.purchase-items-table-wrapper .purchase-item-input:focus[b-fwm19yn0ko],
.purchase-items-table-wrapper .purchase-item-select:focus[b-fwm19yn0ko] {
    background: #f4f8fa !important;
    box-shadow: inset 0 0 0 2px rgba(2, 115, 178, 0.2) !important;
}

.purchase-items-table-wrapper .purchase-item-readonly[b-fwm19yn0ko] {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    width: 100% !important;
    height: 34px !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 8px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background-color: #f8fafc !important;
    font-weight: 600;
}

.purchase-items-table-wrapper td.purchase-items-table-footer-cell[b-fwm19yn0ko] {
    padding: 16px 24px !important;
}

.btn-approve-action[b-fwm19yn0ko] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 5px 13px !important;
    height: 30px !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.28) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
}

.btn-approve-action:hover[b-fwm19yn0ko] {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.45) !important;
    background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important;
    color: #ffffff !important;
}

.btn-approve-action:active[b-fwm19yn0ko] {
    transform: translateY(1px) !important;
    box-shadow: 0 1px 3px rgba(5, 150, 105, 0.2) !important;
}

.btn-approve-action i[b-fwm19yn0ko] {
    font-size: 0.85rem !important;
}

.modal-overlay[b-fwm19yn0ko] {
    position: fixed;
    inset: 0;
    background: rgba(8, 25, 40, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1050;
    overflow-y: auto;
    animation: modalFadeIn-b-fwm19yn0ko 0.3s ease-out forwards;
}

.modal-card[b-fwm19yn0ko] {
    width: min(1100px, 96%);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(3, 26, 46, 0.28);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 3rem);
    animation: modalScaleIn-b-fwm19yn0ko 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-header-bar[b-fwm19yn0ko] {
    background: linear-gradient(90deg, #0f678f 0%, #0b5777 100%);
    color: #fff;
    padding: 1.05rem 1.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.modal-header-left[b-fwm19yn0ko] {
    display: flex;
    align-items: center;
    gap: .9rem;
}

.modal-badge[b-fwm19yn0ko] {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .12);
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
}

.modal-title[b-fwm19yn0ko] {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
}

.modal-subtitle[b-fwm19yn0ko] {
    font-size: .92rem;
    color: rgba(255, 255, 255, .88);
    margin-top: .15rem;
}

.modal-inner[b-fwm19yn0ko] {
    padding: 0.5rem 1rem 0.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    overflow-y: auto;
    flex: 1;
}

.modal-form-wrap[b-fwm19yn0ko] {
    max-width: 100%;
    margin: 0 auto;
}

.modal-section[b-fwm19yn0ko] {
    background: #fff;
    border: 1px solid #dce9f4;
    border-radius: 12px;
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.modal-row[b-fwm19yn0ko] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.modal-row.full-width[b-fwm19yn0ko] {
    grid-column: span 2;
}

.modal-label[b-fwm19yn0ko] {
    padding-top: 0;
    font-size: .72rem;
    font-weight: 700;
    color: #0b5777;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.modal-field[b-fwm19yn0ko] {
    width: 100%;
}

.modal-input[b-fwm19yn0ko],
.modal-select[b-fwm19yn0ko],
.modal-textarea[b-fwm19yn0ko] {
    border: 1px solid #e6eef8;
    border-radius: 8px;
    background: #fbfdff;
    min-height: 32px;
    padding: .4rem .6rem;
    width: 100%;
    max-width: 250px;
    font-size: .85rem;
}

.modal-textarea[b-fwm19yn0ko] {
    max-width: 100%;
    min-height: 64px;
    resize: vertical;
}

.modal-actions[b-fwm19yn0ko] {
    display: flex;
    justify-content: center;
    gap: .75rem;
    margin-top: 1.2rem;
}

.modal-action-btn[b-fwm19yn0ko] {
    min-width: 130px;
    padding: .65rem 1.25rem;
    border-radius: 10px;
    font-weight: 700;
}

/* Popup Styles */
.action-popup-overlay[b-fwm19yn0ko] {
    position: fixed;
    inset: 0;
    background: rgba(8, 25, 40, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1200;
    animation: modalFadeIn-b-fwm19yn0ko 0.25s ease-out forwards;
}

.action-popup-card[b-fwm19yn0ko] {
    width: min(420px, 96%);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #cfe4f2;
    box-shadow: 0 16px 36px rgba(3, 26, 46, 0.28);
    animation: modalScaleIn-b-fwm19yn0ko 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalFadeIn-b-fwm19yn0ko {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalScaleIn-b-fwm19yn0ko {
    from {
        transform: scale(0.95) translateY(12px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.action-popup-header[b-fwm19yn0ko] {
    background: #ffffff;
    color: #0f172a;
    padding: .9rem 1.2rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-family: 'Inter', 'Roboto', 'Segoe UI', sans-serif;
}

.pagination-bar[b-fwm19yn0ko] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-right: 1.5rem !important;
}

.page-btn[b-fwm19yn0ko] {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #4b5563;
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.page-btn:hover:not(:disabled)[b-fwm19yn0ko] {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.page-btn.active[b-fwm19yn0ko] {
    background: #02659e !important;
    color: #ffffff !important;
    border-color: #02659e !important;
}
/* /Components/Pages/IndentRequest.razor.rz.scp.css */
/* Scoped styles for Indent component */

.items-page[b-usqnlepwk6] {
    min-height: 100vh;
    background: transparent !important;
}

.items-shell[b-usqnlepwk6] {
    max-width: 1320px;
    margin: 0 auto;
}

.items-content[b-usqnlepwk6] {
    width: min(1240px, 100%);
    margin: 0 auto;
    text-align: center;
}

.premium-header-card[b-usqnlepwk6] {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-radius: 16px !important;
    padding: 1.25rem 2rem !important;
    color: #1e1b4b !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem !important;
}

.header-card-left[b-usqnlepwk6] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-card-icon[b-usqnlepwk6] {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

.header-card-icon svg[b-usqnlepwk6] {
    stroke: #2563eb !important;
}

.header-card-text[b-usqnlepwk6] {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.header-card-heading[b-usqnlepwk6] {
    color: #0f172a !important;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
}

.header-card-subheading[b-usqnlepwk6] {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b !important;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.status-dot[b-usqnlepwk6] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    margin-right: 6px;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
}

.header-card-right[b-usqnlepwk6] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.items-search-wrap[b-usqnlepwk6] {
    position: relative;
    display: flex;
    align-items: center;
}

.items-search[b-usqnlepwk6] {
    width: 220px;
    height: 38px !important;
    border-radius: 20px !important;
    border: 1px solid #cbd5e1 !important;
    padding-left: 2.4rem !important;
    font-size: 0.8rem !important;
    background: #ffffff !important;
    color: #1e293b !important;
    box-shadow: none !important;
    transition: all 0.25s ease !important;
}

.items-search:focus[b-usqnlepwk6] {
    outline: none !important;
    width: 280px !important;
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

.items-search-icon[b-usqnlepwk6] {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
}

.view-toggle[b-usqnlepwk6] {
    display: inline-flex;
    border: 1px solid #cbd5e1 !important;
    border-radius: 20px !important;
    overflow: hidden;
    background: #f8fafc !important;
    height: 38px;
    padding: 2px;
    align-items: center;
}

.view-toggle button[b-usqnlepwk6] {
    border: 0 !important;
    background: transparent !important;
    color: #64748b !important;
    width: 36px;
    height: 32px;
    border-radius: 16px !important;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle button.active[b-usqnlepwk6] {
    background: #ffffff !important;
    color: #4f46e5 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.add-item-btn[b-usqnlepwk6] {
    height: 38px !important;
    border-radius: 20px !important;
    background: #4f46e5 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0 1.5rem !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
    transition: all 0.2s ease-in-out !important;
}

.add-item-btn:hover[b-usqnlepwk6] {
    background: #3f39c5 !important;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35) !important;
    transform: translateY(-1.5px);
}

.items-main-card[b-usqnlepwk6] {
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    overflow: hidden;
    margin-top: 1.5rem !important;
    background: #ffffff !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
}

.items-main-card .table-responsive[b-usqnlepwk6] {
    max-height: 550px !important;
    overflow-y: auto !important;
    overflow-x: auto !important;
}

.items-table[b-usqnlepwk6] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

table.table.items-table thead tr th[b-usqnlepwk6],
.items-table th[b-usqnlepwk6] {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    background: #ffffff !important;
    color: #8a99ad !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.74rem !important;
    letter-spacing: 0.8px !important;
    padding: 18px 24px !important;
    border-bottom: 2px solid #eef2f6 !important;
    text-align: left !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.items-table td[b-usqnlepwk6] {
    border-top: none !important;
    border-bottom: 1px solid #eef2f6 !important;
    padding: 18px 24px !important;
    font-size: 0.8rem !important;
    background: #ffffff !important;
    color: #64748b !important;
    vertical-align: middle !important;
}

.items-table td:last-child[b-usqnlepwk6] {
    white-space: nowrap !important;
    text-align: center !important;
}

.items-table tr td:first-child[b-usqnlepwk6] {
    color: #3b82f6 !important;
    font-weight: 700 !important;
}

.action-btn[b-usqnlepwk6] {
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    margin: 0 2px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #94a3b8 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.action-btn:hover[b-usqnlepwk6] {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}

.action-btn i[b-usqnlepwk6] {
    font-size: 0.85rem !important;
}

.items-card-grid[b-usqnlepwk6] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
}

.item-card[b-usqnlepwk6] {
    background: #ffffff !important;
    border: 1px solid #eef2f6 !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.item-card:hover[b-usqnlepwk6] {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(37, 99, 235, 0.25) !important;
}

.item-card-head[b-usqnlepwk6] {
    background: #ffffff !important;
    color: #1e293b !important;
    padding: 0.6rem 1rem !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid rgba(99, 102, 241, 0.1) !important;
}

.card-item-code[b-usqnlepwk6] {
    color: #4b5563 !important;
    font-weight: 700 !important;
    margin-right: 6px;
}

.card-item-name[b-usqnlepwk6] {
    color: #374151 !important;
    font-weight: 700 !important;
}

.item-card-body[b-usqnlepwk6] {
    padding: 0.75rem 1rem !important;
    color: #64748b !important;
    font-size: 0.8rem !important;
}

.detail-row[b-usqnlepwk6] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0 !important;
    border-bottom: 1px solid #eef2f6 !important;
}

.detail-row:last-child[b-usqnlepwk6] {
    border-bottom: none !important;
}

.detail-row span[b-usqnlepwk6] {
    color: #8a99ad !important;
    font-weight: 700 !important;
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.detail-row strong[b-usqnlepwk6] {
    color: #000000 !important;
    font-weight: 600 !important;
}

.btn-cancel-modal[b-usqnlepwk6] {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: none !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    min-width: 100px !important;
    transition: all 0.2s !important;
}

.btn-cancel-modal:hover[b-usqnlepwk6] {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.purchase-bill-wrapper[b-usqnlepwk6] {
    display: flex;
    gap: 2.25rem;
    flex-wrap: wrap;
}

.purchase-bill-fields[b-usqnlepwk6] {
    flex: 1.5;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.purchase-bill-fields .premium-input[b-usqnlepwk6] {
    padding: 0 10px !important;
    font-size: 0.8rem !important;
    border-radius: 6px !important;
    height: 32px !important;
    line-height: 32px !important;
    background: #f9fafc !important;
    border: 1px solid #e5e7eb !important;
    color: #1f2937 !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    display: flex !important;
    align-items: center !important;
}

.purchase-bill-fields input[type="date"].premium-input[b-usqnlepwk6],
.purchase-bill-fields input.premium-input[b-usqnlepwk6] {
    padding: 0 10px !important;
    height: 32px !important;
    line-height: normal !important;
    background: #f9fafc !important;
    border: 1px solid #e5e7eb !important;
}

.purchase-bill-fields .field-group[b-usqnlepwk6] {
    gap: 4px;
}

.purchase-bill-fields .field-label[b-usqnlepwk6] {
    font-size: 0.68rem !important;
    margin-bottom: 4px !important;
    font-weight: 700 !important;
    color: #374151 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.purchase-bill-fields .form-grid[b-usqnlepwk6] {
    gap: 12px;
}

.purchase-bill-summary[b-usqnlepwk6] {
    flex: 0.85;
    min-width: 300px;
    max-width: 320px;
    display: flex;
    align-items: stretch;
}

.purchase-item-entry-card[b-usqnlepwk6] {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0.7rem;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow-x: hidden;
    box-sizing: border-box;
}

.purchase-item-entry-header[b-usqnlepwk6] {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(52px, 0.55fr) minmax(60px, 0.65fr) minmax(52px, 0.55fr) minmax(52px, 0.55fr) minmax(80px, 0.9fr) minmax(110px, 1fr);
    gap: 10px;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.purchase-item-entry-label[b-usqnlepwk6] {
    font-size: 0.6rem;
    font-weight: 700;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.purchase-item-entry-label span[b-usqnlepwk6] {
    color: #ef4444;
}

.purchase-item-entry-fields[b-usqnlepwk6] {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(52px, 0.55fr) minmax(60px, 0.65fr) minmax(52px, 0.55fr) minmax(52px, 0.55fr) minmax(80px, 0.9fr) minmax(110px, 1fr);
    gap: 10px;
    align-items: center;
    width: 100%;
}

.purchase-item-entry-fields>div[b-usqnlepwk6],
.purchase-item-entry-header>div[b-usqnlepwk6] {
    min-width: 0;
}

.purchase-item-input[b-usqnlepwk6] {
    height: 28px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: white;
    font-size: 0.65rem;
    padding: 0 6px;
    outline: none;
    transition: all 0.2s;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.purchase-item-input:focus[b-usqnlepwk6] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    background: #f8fbff;
}

.purchase-item-select[b-usqnlepwk6] {
    height: 28px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: white;
    font-size: 0.65rem;
    padding: 0 6px;
    outline: none;
    transition: all 0.2s;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.purchase-item-select:focus[b-usqnlepwk6] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    background: #f8fbff;
}

.purchase-item-add-btn[b-usqnlepwk6] {
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    height: 28px;
    font-weight: 700;
    font-size: 0.65rem;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.purchase-item-add-btn:hover[b-usqnlepwk6] {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.purchase-item-add-btn:active[b-usqnlepwk6] {
    transform: translateY(0);
}

.purchase-details-wrapper[b-usqnlepwk6] {
    width: 100%;
    margin-bottom: 2rem;
}

.purchase-details-link[b-usqnlepwk6] {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f678f;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.purchase-details-link:hover[b-usqnlepwk6] {
    color: #0ea5e9;
    gap: 8px;
}

.purchase-items-table-wrapper[b-usqnlepwk6] {
    border: none !important;
    border-radius: 0;
    overflow: visible;
    background: white;
    margin-bottom: 0.5rem !important;
    box-shadow: none !important;
}

.purchase-items-table-wrapper table[b-usqnlepwk6] {
    table-layout: fixed;
    width: 100%;
}

.purchase-items-table-wrapper .purchase-item-input[b-usqnlepwk6],
.purchase-items-table-wrapper .purchase-item-select[b-usqnlepwk6] {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    height: 26px;
    font-size: 0.65rem;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: white;
    outline: none;
    transition: all 0.2s;
}

.purchase-items-table-wrapper .purchase-item-input:focus[b-usqnlepwk6],
.purchase-items-table-wrapper .purchase-item-select:focus[b-usqnlepwk6] {
    border-color: #0273b2;
    box-shadow: 0 0 0 2px rgba(2, 115, 178, 0.1);
    background: #f4f8fa;
}

.purchase-items-table-wrapper .purchase-item-select[b-usqnlepwk6] {
    min-width: 130px;
}

.purchase-items-table-header[b-usqnlepwk6] {
    background: #0273b2 !important;
    border-bottom: none;
}

.purchase-items-table-header th[b-usqnlepwk6] {
    font-weight: 700;
    font-size: 0.72rem;
    color: #ffffff !important;
    padding: 12px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.purchase-add-row-wrapper[b-usqnlepwk6] {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.purchase-add-row-btn[b-usqnlepwk6] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 2px dashed #0273b2 !important;
    border-radius: 10px !important;
    background: #f4f8fa !important;
    color: #0273b2 !important;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.45rem 1.25rem;
    min-width: 200px;
    cursor: pointer;
    transition: all 0.22s ease-in-out;
    box-shadow: 0 2px 4px rgba(2, 115, 178, 0.05);
}

.purchase-add-row-btn:hover[b-usqnlepwk6] {
    background: #e6f2fa !important;
    border-color: #015f94 !important;
    color: #015f94 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(2, 115, 178, 0.12);
}

.purchase-add-row-btn i[b-usqnlepwk6] {
    font-size: 0.95rem;
    color: #0273b2 !important;
    transition: color 0.22s ease-in-out;
}

.purchase-add-row-btn:hover i[b-usqnlepwk6] {
    color: #015f94 !important;
}

.purchase-item-readonly[b-usqnlepwk6] {
    display: block;
    width: 100%;
    height: 26px;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 6px;
    line-height: 24px;
    font-size: 0.65rem;
    color: #475569;
    box-sizing: border-box;
    pointer-events: none;
    user-select: none;
    text-align: right;
}

.purchase-items-table-wrapper .purchase-item-input:disabled[b-usqnlepwk6],
.purchase-items-table-wrapper .purchase-item-select:disabled[b-usqnlepwk6] {
    pointer-events: none;
    cursor: default;
    background-color: white !important;
    color: #000000 !important;
    border-color: #d1d5db !important;
}

.btn-add-item-blue[b-usqnlepwk6] {
    background: #0273b2;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(2, 115, 178, 0.3);
    transition: all 0.2s;
    white-space: nowrap;
    font-size: 0.82rem;
    height: 32px;
}

.btn-add-item-blue:hover[b-usqnlepwk6] {
    background: #015c8f;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(2, 115, 178, 0.4);
}

.btn-add-item-blue:active[b-usqnlepwk6] {
    transform: translateY(0);
}

.bill-card-premium[b-usqnlepwk6] {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 5px solid #3b82f6;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.04);
    transition: all 0.3s ease;
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.25rem;
    padding: 0.4rem 0.65rem;
}

.bill-card-premium:hover[b-usqnlepwk6] {
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.08);
    border-color: #93c5fd;
    border-left-color: #2563eb;
}

.bill-card-header-premium[b-usqnlepwk6] {
    margin-bottom: 0.15rem;
    padding-bottom: 0.35rem;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #4f46e5;
    letter-spacing: 0.8px;
    border-bottom: 1px dashed #bfdbfe;
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-premium-gross[b-usqnlepwk6] {
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 4px solid #1e3a8a !important;
    color: #1e3a8a !important;
    font-weight: 700 !important;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-premium-gross:hover[b-usqnlepwk6] {
    transform: translateY(-1.5px);
    background-color: #f1f5f9 !important;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.08);
}

.input-premium-gross:focus[b-usqnlepwk6] {
    border-color: #2563eb !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18) !important;
    outline: none;
}

.input-premium-discount[b-usqnlepwk6] {
    background-color: #f0fdf4 !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 4px solid #059669 !important;
    color: #065f46 !important;
    font-weight: 700 !important;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-premium-discount:hover[b-usqnlepwk6] {
    transform: translateY(-1.5px);
    background-color: #ecfdf5 !important;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.08);
}

.input-premium-discount:focus[b-usqnlepwk6] {
    border-color: #10b981 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18) !important;
    outline: none;
}

.input-premium-tax[b-usqnlepwk6] {
    background-color: #fffbeb !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 4px solid #d97706 !important;
    color: #92400e !important;
    font-weight: 700 !important;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-premium-tax:hover[b-usqnlepwk6] {
    transform: translateY(-1.5px);
    background-color: #fef3c7 !important;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.08);
}

.input-premium-tax:focus[b-usqnlepwk6] {
    border-color: #f59e0b !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18) !important;
    outline: none;
}

.net-payable-wrapper-premium[b-usqnlepwk6] {
    margin-top: 0.2rem;
    padding-top: 0.5rem;
    border-top: 2px dashed rgba(99, 102, 241, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.net-payable-label-premium[b-usqnlepwk6] {
    font-size: 0.74rem;
    font-weight: 800;
    color: #4f46e5;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.net-payable-value-premium[b-usqnlepwk6] {
    font-size: 1.25rem;
    font-weight: 800;
    color: #4f46e5;
    text-shadow: 0 1px 2px rgba(79, 70, 229, 0.1);
}

@keyframes premium-pulse-blink-b-usqnlepwk6 {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.65;
        transform: scale(0.97);
    }
}

.blink-payable-value[b-usqnlepwk6] {
    animation: premium-pulse-blink-b-usqnlepwk6 1.8s infinite ease-in-out;
    display: inline-block;
}

.btn-dotted-add[b-usqnlepwk6] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px dashed #0f678f !important;
    background: #fff !important;
    color: #0f678f !important;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 20px;
    padding: 8px 32px;
    box-shadow: none;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-dotted-add:hover[b-usqnlepwk6] {
    background: rgba(15, 103, 143, 0.04) !important;
    border-color: #0d587a !important;
    color: #0d587a !important;
    transform: translateY(-1.5px);
}

.btn-dotted-add:active[b-usqnlepwk6] {
    transform: translateY(0);
}

.purchase-bill-fields select.premium-input[b-usqnlepwk6] {
    -webkit-appearance: auto !important;
    appearance: auto !important;
    background-image: none !important;
    padding-right: 24px !important;
}

/* Vendor Master Specific Styles */
.items-main-card .table-responsive[b-usqnlepwk6] {
    padding-right: 0 !important;
    overflow-x: auto !important;
}

.items-table[b-usqnlepwk6] {
    width: 100% !important;
}

.items-table th[b-usqnlepwk6] {
    background: #f8fafc !important;
    color: #1e293b !important;
    white-space: nowrap !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    padding: 12px 16px !important;
}

.items-table td[b-usqnlepwk6] {
    white-space: normal !important;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.8rem !important;
    padding: 3px 6px !important;
}

/* Premium Modal Styles for Vendor */
.modal-card[b-usqnlepwk6] {
    border-radius: 24px !important;
    border: none !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
    background: #fff;
}

.modal-header-bar[b-usqnlepwk6] {
    background: #fff !important;
    color: #333 !important;
    padding: 24px 32px !important;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-left[b-usqnlepwk6] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-badge[b-usqnlepwk6] {
    background: var(--sidebar-bg);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.modal-title[b-usqnlepwk6] {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
}

.modal-subtitle[b-usqnlepwk6] {
    font-size: 0.85rem;
    color: #64748b;
}

.btn-close-modal[b-usqnlepwk6] {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}

.btn-close-modal:hover[b-usqnlepwk6] {
    background: #e2e8f0;
    color: #1e293b;
}

.modal-inner[b-usqnlepwk6] {
    padding: 16px 32px !important;
    background: #fff;
}

.form-section-header[b-usqnlepwk6] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    margin-top: 4px;
}

.form-section-icon[b-usqnlepwk6] {
    background: var(--sidebar-bg);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.form-section-title[b-usqnlepwk6] {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #025091;
}

.form-grid[b-usqnlepwk6] {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.col-prefix[b-usqnlepwk6] {
    grid-column: span 3;
}

.col-main[b-usqnlepwk6] {
    grid-column: span 9;
}

.col-2[b-usqnlepwk6] {
    grid-column: span 2;
}

.col-3[b-usqnlepwk6] {
    grid-column: span 3;
}

.col-4[b-usqnlepwk6] {
    grid-column: span 4;
}

.col-5[b-usqnlepwk6] {
    grid-column: span 5;
}

.col-6[b-usqnlepwk6] {
    grid-column: span 6;
}

.col-7[b-usqnlepwk6] {
    grid-column: span 7;
}

.col-8[b-usqnlepwk6] {
    grid-column: span 8;
}

.col-9[b-usqnlepwk6] {
    grid-column: span 9;
}

.col-10[b-usqnlepwk6] {
    grid-column: span 10;
}

.col-11[b-usqnlepwk6] {
    grid-column: span 11;
}

.col-12[b-usqnlepwk6] {
    grid-column: span 12;
}

.field-group[b-usqnlepwk6] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-label[b-usqnlepwk6] {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 2px;
}

.field-label.required[b-usqnlepwk6]::after {
    content: " *";
    color: #ef4444;
}

.premium-input[b-usqnlepwk6] {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    font-size: 0.85rem !important;
    color: #4b5563 !important;
    transition: all 0.2s !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    box-sizing: border-box !important;
    line-height: normal !important;
}

select.premium-input[b-usqnlepwk6],
input.premium-input[b-usqnlepwk6],
input[type="date"].premium-input[b-usqnlepwk6],
input[type="text"].premium-input[b-usqnlepwk6] {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    box-sizing: border-box !important;
    padding: 6px 12px !important;
    font-size: 0.85rem !important;
}

.premium-input[b-usqnlepwk6]::placeholder {
    color: #cbd5e1 !important;
    opacity: 1 !important;
}

.premium-input:focus[b-usqnlepwk6] {
    background: #fff !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1) !important;
    outline: none !important;
}

.modal-footer-actions[b-usqnlepwk6] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.btn-delete-text[b-usqnlepwk6] {
    color: #ef4444;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-delete-text:hover[b-usqnlepwk6] {
    background: #fef2f2;
}

.btn-save-premium[b-usqnlepwk6] {
    background: #1c9f5f;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(28, 159, 95, 0.3);
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-save-premium:hover[b-usqnlepwk6] {
    background: #168a52;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(28, 159, 95, 0.4);
}

.btn-save-premium:active[b-usqnlepwk6] {
    transform: translateY(0);
}

.btn-save-premium:disabled[b-usqnlepwk6] {
    opacity: 0.6;
    cursor: not-allowed;
}


/* Financial Summary Card Styles */
.financial-summary-card[b-usqnlepwk6] {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    padding: 1.5rem;
    font-family: 'Inter', 'Outfit', sans-serif;
}

.financial-summary-header[b-usqnlepwk6] {
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.financial-summary-row[b-usqnlepwk6] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.financial-summary-label[b-usqnlepwk6] {
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.financial-summary-value[b-usqnlepwk6] {
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
}

.financial-summary-input[b-usqnlepwk6] {
    width: 80px;
    height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: #334155;
    outline: none;
    transition: all 0.2s;
    background: #ffffff;
}

.financial-summary-input:focus[b-usqnlepwk6] {
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.financial-summary-net[b-usqnlepwk6] {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.financial-summary-net-label[b-usqnlepwk6] {
    color: #0f172a;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.financial-summary-net-value[b-usqnlepwk6] {
    color: #4f46e5;
    font-weight: 800;
    font-size: 1.4rem;
}

/* Purchase Entry Master Compact Summary Card */
.compact-summary-card[b-usqnlepwk6] {
    border-radius: 14px;
    padding: 1.25rem 1.4rem;
    border: 1.5px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.compact-summary-card[b-usqnlepwk6]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #6366f1, #06b6d4);
    border-radius: 14px 0 0 14px;
}

.compact-summary-card:hover[b-usqnlepwk6] {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
}

/* Physical Bill Totals - Blue-indigo gradient */
.compact-summary-card.bill-card[b-usqnlepwk6] {
    background: linear-gradient(135deg, #eef2ff 0%, #f0fdff 100%);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02);
}

.compact-summary-card.bill-card[b-usqnlepwk6]::before {
    background: linear-gradient(180deg, #6366f1, #06b6d4);
}

/* Computed Items Total - Teal-green gradient */
.compact-summary-card.items-card[b-usqnlepwk6] {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 100%);
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.08);
}

.compact-summary-card.items-card[b-usqnlepwk6]::before {
    background: linear-gradient(180deg, #10b981, #06b6d4);
}

.compact-summary-card.items-card:hover[b-usqnlepwk6] {
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.18);
}

.compact-summary-header[b-usqnlepwk6] {
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed rgba(37, 99, 235, 0.25);
    padding-left: 8px;
}

.compact-summary-card.items-card .compact-summary-header[b-usqnlepwk6] {
    color: #10b981;
    border-bottom-color: rgba(16, 185, 129, 0.25);
}

.compact-summary-row[b-usqnlepwk6] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding-left: 8px;
}

.compact-summary-label[b-usqnlepwk6] {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.compact-summary-value[b-usqnlepwk6] {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
}

.compact-summary-input[b-usqnlepwk6] {
    width: 110px;
    height: 30px;
    border-radius: 8px;
    border: 1.5px solid rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.8);
    text-align: right;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0 10px;
    color: #1e293b;
}

.compact-summary-input:focus[b-usqnlepwk6] {
    outline: none;
    border-color: #64748b;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: #fff;
}

.compact-summary-net[b-usqnlepwk6] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    padding-left: 8px;
    border-top: 1.5px solid rgba(99, 102, 241, 0.2);
}

.compact-summary-card.items-card .compact-summary-net[b-usqnlepwk6] {
    border-top-color: rgba(16, 185, 129, 0.2);
}

.compact-summary-net-label[b-usqnlepwk6] {
    font-size: 0.8rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compact-summary-net-value[b-usqnlepwk6] {
    font-size: 1.3rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: -0.5px;
}

.compact-summary-card.items-card .compact-summary-net-value[b-usqnlepwk6] {
    color: #10b981;
}

/* Stock Indent Status Badges (Text Only - No Box) */
.badge-indent-pending[b-usqnlepwk6],
.detail-row strong.badge-indent-pending[b-usqnlepwk6] {
    background: transparent !important;
    color: #d97706 !important;
    border: none !important;
    padding: 0 !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

.badge-indent-approved[b-usqnlepwk6],
.detail-row strong.badge-indent-approved[b-usqnlepwk6] {
    background: transparent !important;
    color: #059669 !important;
    border: none !important;
    padding: 0 !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

.badge-indent-rejected[b-usqnlepwk6],
.detail-row strong.badge-indent-rejected[b-usqnlepwk6] {
    background: transparent !important;
    color: #dc2626 !important;
    border: none !important;
    padding: 0 !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

/* Stock volume indicators */
.badge-stock-high[b-usqnlepwk6] {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #059669 !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

.badge-stock-low[b-usqnlepwk6] {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #d97706 !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

.badge-stock-empty[b-usqnlepwk6] {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #dc2626 !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

/* OVERRIDE FOR HIGH-DENSITY PURCHASE BILL FORM (e.g. ItemMaster Modal) */
.purchase-bill-fields .premium-segmented-control-joined[b-usqnlepwk6] {
    height: 32px !important;
    border-radius: 6px !important;
    max-width: none !important;
}

.purchase-bill-fields .segment-btn-joined[b-usqnlepwk6] {
    font-size: 0.8rem !important;
}

.purchase-bill-fields .segment-btn-joined:first-child[b-usqnlepwk6] {
    border-right: 1px solid #e2e8f0 !important;
}

/* Tabular Grid/Real Table styling for purchase details table */
.purchase-items-table-wrapper table[b-usqnlepwk6] {
    border-collapse: collapse !important;
    border: 1px solid #cbd5e1 !important;
    width: 100%;
}

.purchase-items-table-wrapper th[b-usqnlepwk6],
.purchase-items-table-wrapper td[b-usqnlepwk6] {
    border: 1px solid #cbd5e1 !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

.purchase-items-table-header th[b-usqnlepwk6] {
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    padding: 10px 8px !important;
    font-weight: 700;
    font-size: 0.72rem;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #0273b2 !important;
}

.purchase-items-table-wrapper .purchase-item-input[b-usqnlepwk6],
.purchase-items-table-wrapper .purchase-item-select[b-usqnlepwk6] {
    width: 100% !important;
    height: 34px !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 8px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background: transparent !important;
}

.purchase-items-table-wrapper .purchase-item-input:focus[b-usqnlepwk6],
.purchase-items-table-wrapper .purchase-item-select:focus[b-usqnlepwk6] {
    background: #f4f8fa !important;
    box-shadow: inset 0 0 0 2px rgba(2, 115, 178, 0.2) !important;
}

.purchase-items-table-wrapper .purchase-item-readonly[b-usqnlepwk6] {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    width: 100% !important;
    height: 34px !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 8px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background-color: #f8fafc !important;
    font-weight: 600;
}

.purchase-items-table-wrapper td.purchase-items-table-footer-cell[b-usqnlepwk6] {
    padding: 16px 24px !important;
}

.btn-approve-action[b-usqnlepwk6] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 5px 13px !important;
    height: 30px !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.28) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
}

.btn-approve-action:hover[b-usqnlepwk6] {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.45) !important;
    background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important;
    color: #ffffff !important;
}

.btn-approve-action:active[b-usqnlepwk6] {
    transform: translateY(1px) !important;
    box-shadow: 0 1px 3px rgba(5, 150, 105, 0.2) !important;
}

.btn-approve-action i[b-usqnlepwk6] {
    font-size: 0.85rem !important;
}
.modal-overlay[b-usqnlepwk6] {
    position: fixed;
    inset: 0;
    background: rgba(8, 25, 40, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1050;
    overflow-y: auto;
    animation: modalFadeIn-b-usqnlepwk6 0.3s ease-out forwards;
}

.modal-card[b-usqnlepwk6] {
    width: min(1100px, 96%);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(3, 26, 46, 0.28);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 3rem);
    animation: modalScaleIn-b-usqnlepwk6 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-header-bar[b-usqnlepwk6] {
    background: linear-gradient(90deg, #0f678f 0%, #0b5777 100%);
    color: #fff;
    padding: 1.05rem 1.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.modal-header-left[b-usqnlepwk6] {
    display: flex;
    align-items: center;
    gap: .9rem;
}

.modal-badge[b-usqnlepwk6] {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .12);
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
}

.modal-title[b-usqnlepwk6] {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
}

.modal-subtitle[b-usqnlepwk6] {
    font-size: .92rem;
    color: rgba(255, 255, 255, .88);
    margin-top: .15rem;
}

.modal-inner[b-usqnlepwk6] {
    padding: 0.5rem 1rem 0.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    overflow-y: auto;
    flex: 1;
}

.modal-form-wrap[b-usqnlepwk6] {
    max-width: 100%;
    margin: 0 auto;
}

.modal-section[b-usqnlepwk6] {
    background: #fff;
    border: 1px solid #dce9f4;
    border-radius: 12px;
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.modal-row[b-usqnlepwk6] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.modal-row.full-width[b-usqnlepwk6] {
    grid-column: span 2;
}

.modal-label[b-usqnlepwk6] {
    padding-top: 0;
    font-size: .72rem;
    font-weight: 700;
    color: #0b5777;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.modal-field[b-usqnlepwk6] {
    width: 100%;
}

.modal-input[b-usqnlepwk6],
.modal-select[b-usqnlepwk6],
.modal-textarea[b-usqnlepwk6] {
    border: 1px solid #e6eef8;
    border-radius: 8px;
    background: #fbfdff;
    min-height: 32px;
    padding: .4rem .6rem;
    width: 100%;
    max-width: 250px;
    font-size: .85rem;
}

.modal-textarea[b-usqnlepwk6] {
    max-width: 100%;
    min-height: 64px;
    resize: vertical;
}

.modal-actions[b-usqnlepwk6] {
    display: flex;
    justify-content: center;
    gap: .75rem;
    margin-top: 1.2rem;
}

.modal-action-btn[b-usqnlepwk6] {
    min-width: 130px;
    padding: .65rem 1.25rem;
    border-radius: 10px;
    font-weight: 700;
}

/* Popup Styles */
.action-popup-overlay[b-usqnlepwk6] {
    position: fixed;
    inset: 0;
    background: rgba(8, 25, 40, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1200;
    animation: modalFadeIn-b-usqnlepwk6 0.25s ease-out forwards;
}

.action-popup-card[b-usqnlepwk6] {
    width: min(420px, 96%);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #cfe4f2;
    box-shadow: 0 16px 36px rgba(3, 26, 46, 0.28);
    animation: modalScaleIn-b-usqnlepwk6 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalFadeIn-b-usqnlepwk6 {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalScaleIn-b-usqnlepwk6 {
    from {
        transform: scale(0.95) translateY(12px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.action-popup-header[b-usqnlepwk6] {
    background: #ffffff;
    color: #0f172a;
    padding: .9rem 1.2rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-family: 'Inter', 'Roboto', 'Segoe UI', sans-serif;
}

.pagination-bar[b-usqnlepwk6] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-right: 1.5rem !important;
}

.page-btn[b-usqnlepwk6] {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #4b5563;
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.page-btn:hover:not(:disabled)[b-usqnlepwk6] {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.page-btn.active[b-usqnlepwk6] {
    background: #02659e !important;
    color: #ffffff !important;
    border-color: #02659e !important;
}

/* /Components/Pages/InventoryDashboard.razor.rz.scp.css */
/* Modern Non-Scrollable Dashboard Layout */
.dashboard-wrapper[b-zzngq5wd9p] {
    padding: 0.45rem 0.95rem;
    background: #f8fafc;
    height: calc(100vh - 65px);
    max-height: calc(100vh - 65px);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
    color: #0f172a;
    box-sizing: border-box;
    overflow: hidden;
}

/* Prominent Header Bar */
.dashboard-header[b-zzngq5wd9p] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 0.6rem 1rem;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 3px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    flex-wrap: nowrap;
    gap: 0.6rem;
    flex-shrink: 0;
}

.header-title[b-zzngq5wd9p] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.icon-badge[b-zzngq5wd9p] {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.icon-badge.teal[b-zzngq5wd9p] { background: #ccfbf1; color: #0d9488; }

.header-title h1[b-zzngq5wd9p] {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
    color: #0f172a;
    line-height: 1.15;
}

.header-title p[b-zzngq5wd9p] {
    font-size: 0.76rem;
    color: #64748b;
    margin: 0;
}

.header-filters[b-zzngq5wd9p] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
}

.filter-item[b-zzngq5wd9p] {
    display: inline-flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.15rem 0.4rem;
    gap: 0.3rem;
}

.filter-icon[b-zzngq5wd9p] {
    font-size: 0.78rem;
    color: #64748b;
}

.mode-pills[b-zzngq5wd9p] {
    background: #f1f5f9;
    padding: 2px;
    border-radius: 8px;
    display: flex;
    gap: 2px;
}

.mode-pill[b-zzngq5wd9p] {
    border: none;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    color: #64748b;
    background: transparent;
    transition: all 0.2s ease;
}

.mode-pill.active[b-zzngq5wd9p] {
    background: #ffffff;
    color: #0d9488;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.filter-input[b-zzngq5wd9p] {
    height: 28px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    font-size: 0.74rem;
    font-weight: 700;
    color: #0f172a;
    padding: 0.1rem 0.4rem;
    background-color: #ffffff;
}

.filter-input:focus[b-zzngq5wd9p] {
    border-color: #0d9488;
    outline: none;
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.15);
}

/* SignalR Live Stream Connected Badge */
.signalr-live-badge[b-zzngq5wd9p] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.pulse-dot[b-zzngq5wd9p] {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulseAnimation-b-zzngq5wd9p 1.6s infinite;
}

@keyframes pulseAnimation-b-zzngq5wd9p {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* 6 KPI Metric Cards Grid */
.kpi-grid-6[b-zzngq5wd9p] {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.4rem;
    flex-shrink: 0;
}

.kpi-card[b-zzngq5wd9p] {
    background: #ffffff;
    padding: 0.35rem 0.65rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    min-height: 58px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card:hover[b-zzngq5wd9p] {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px -1px rgba(0, 0, 0, 0.04);
}

.kpi-card[b-zzngq5wd9p]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.kpi-card.cyan[b-zzngq5wd9p]::before { background: linear-gradient(90deg, #06b6d4, #0891b2); }
.kpi-card.purple[b-zzngq5wd9p]::before { background: linear-gradient(90deg, #8b5cf6, #7c3aed); }
.kpi-card.emerald[b-zzngq5wd9p]::before { background: linear-gradient(90deg, #10b981, #059669); }
.kpi-card.blue[b-zzngq5wd9p]::before { background: linear-gradient(90deg, #3b82f6, #2563eb); }
.kpi-card.amber[b-zzngq5wd9p] { border-top: 3px solid #f59e0b; }
.kpi-card.rose[b-zzngq5wd9p] { border-top: 3px solid #f43f5e; }

.kpi-top[b-zzngq5wd9p] {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kpi-label[b-zzngq5wd9p] {
    font-size: 0.66rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.kpi-icon-wrapper[b-zzngq5wd9p] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.cyan-bg[b-zzngq5wd9p] { background: #cffafe; color: #0891b2; }
.purple-bg[b-zzngq5wd9p] { background: #f3e8ff; color: #7c3aed; }
.emerald-bg[b-zzngq5wd9p] { background: #d1fae5; color: #059669; }
.blue-bg[b-zzngq5wd9p] { background: #dbeafe; color: #2563eb; }
.amber-bg[b-zzngq5wd9p] { background: #fef3c7; color: #d97706; }
.rose-bg[b-zzngq5wd9p] { background: #ffe4e6; color: #e11d48; }

.kpi-value[b-zzngq5wd9p] {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    margin: 0.05rem 0;
}

.kpi-unit[b-zzngq5wd9p] {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
}

.kpi-foot[b-zzngq5wd9p] {
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
}

.kpi-foot.positive[b-zzngq5wd9p] { color: #059669; }
.kpi-foot.info[b-zzngq5wd9p] { color: #0284c7; }

/* Charts Rows - Dynamic 100vh Flex Fill */
.charts-row[b-zzngq5wd9p] {
    display: flex;
    gap: 0.4rem;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.flex-2[b-zzngq5wd9p] { flex: 2; min-width: 0; }
.flex-1[b-zzngq5wd9p] { flex: 1; min-width: 0; }

.chart-card[b-zzngq5wd9p] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 0.35rem 0.65rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.chart-header[b-zzngq5wd9p] {
    margin-bottom: 0.2rem;
    flex-shrink: 0;
}

.chart-header h3[b-zzngq5wd9p] {
    font-size: 0.8rem;
    font-weight: 800;
    margin: 0;
    color: #0f172a;
}

.chart-sub[b-zzngq5wd9p] {
    font-size: 0.65rem;
    color: #64748b;
}

.chart-body[b-zzngq5wd9p] {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
}

.chart-body canvas[b-zzngq5wd9p] {
    max-height: 100% !important;
}

/* Bottom Data Tables Panel */
.dashboard-grid-1[b-zzngq5wd9p] {
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.panel-card[b-zzngq5wd9p] {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.panel-header-tabs[b-zzngq5wd9p] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.35rem;
    margin-bottom: 0.4rem;
    flex-shrink: 0;
    gap: 0.4rem;
}

.tab-buttons[b-zzngq5wd9p] {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
}

.tab-btn[b-zzngq5wd9p] {
    background: transparent;
    border: none;
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-btn:hover[b-zzngq5wd9p] {
    background: #f1f5f9;
    color: #0f172a;
}

.tab-btn.active[b-zzngq5wd9p] {
    background: #ccfbf1;
    color: #0f766e;
}

.search-box[b-zzngq5wd9p] {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon[b-zzngq5wd9p] {
    position: absolute;
    left: 0.6rem;
    font-size: 0.8rem;
    color: #94a3b8;
}

.search-input[b-zzngq5wd9p] {
    height: 34px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 0.78rem;
    padding: 0.2rem 0.6rem 0.2rem 1.8rem;
    width: 220px;
}

.empty-state[b-zzngq5wd9p] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    text-align: center;
    color: #64748b;
}

.empty-state p[b-zzngq5wd9p] {
    margin: 0;
    font-weight: 600;
    font-size: 0.85rem;
}

.table-responsive[b-zzngq5wd9p] {
    overflow-x: auto;
}

.custom-table[b-zzngq5wd9p] {
    width: 100%;
    border-collapse: collapse;
}

.custom-table th[b-zzngq5wd9p] {
    background: #f8fafc;
    color: #475569;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.6rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.custom-table td[b-zzngq5wd9p] {
    padding: 0.65rem 0.85rem;
    font-size: 0.82rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

.code-badge[b-zzngq5wd9p] {
    font-family: monospace;
    color: #0d9488;
    background: #f0fdfa;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    font-weight: 700;
}

.status-pill[b-zzngq5wd9p] {
    display: inline-block;
    padding: 0.18rem 0.55rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.status-pill.warning[b-zzngq5wd9p] { background: #ffedd5; color: #ea580c; }
.status-pill.success[b-zzngq5wd9p] { background: #dcfce7; color: #15803d; }
.status-pill.danger[b-zzngq5wd9p] { background: #fee2e2; color: #dc2626; }
.status-pill.info[b-zzngq5wd9p] { background: #e0f2fe; color: #0369a1; }

/* ─── Dark Mode Overrides ────────────────────────────────────── */
:host-context([data-theme="dark"]) .dashboard-wrapper[b-zzngq5wd9p],
[data-theme="dark"] .dashboard-wrapper[b-zzngq5wd9p] {
    background: #090d16 !important;
    color: #f8fafc !important;
}

:host-context([data-theme="dark"]) .dashboard-header[b-zzngq5wd9p],
:host-context([data-theme="dark"]) .kpi-card[b-zzngq5wd9p],
:host-context([data-theme="dark"]) .chart-card[b-zzngq5wd9p],
:host-context([data-theme="dark"]) .panel-card[b-zzngq5wd9p],
[data-theme="dark"] .dashboard-header[b-zzngq5wd9p],
[data-theme="dark"] .kpi-card[b-zzngq5wd9p],
[data-theme="dark"] .chart-card[b-zzngq5wd9p],
[data-theme="dark"] .panel-card[b-zzngq5wd9p] {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

:host-context([data-theme="dark"]) .header-title h1[b-zzngq5wd9p],
:host-context([data-theme="dark"]) .chart-header h3[b-zzngq5wd9p],
:host-context([data-theme="dark"]) .kpi-value[b-zzngq5wd9p],
[data-theme="dark"] .header-title h1[b-zzngq5wd9p],
[data-theme="dark"] .chart-header h3[b-zzngq5wd9p],
[data-theme="dark"] .kpi-value[b-zzngq5wd9p] {
    color: #f8fafc !important;
}

:host-context([data-theme="dark"]) .filter-input[b-zzngq5wd9p],
:host-context([data-theme="dark"]) .search-input[b-zzngq5wd9p],
[data-theme="dark"] .filter-input[b-zzngq5wd9p],
[data-theme="dark"] .search-input[b-zzngq5wd9p] {
    background: #0f172a !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}

:host-context([data-theme="dark"]) .custom-table th[b-zzngq5wd9p],
[data-theme="dark"] .custom-table th[b-zzngq5wd9p] {
    background: #0f172a !important;
    color: #38bdf8 !important;
    border-bottom-color: #334155 !important;
}

:host-context([data-theme="dark"]) .custom-table td[b-zzngq5wd9p],
[data-theme="dark"] .custom-table td[b-zzngq5wd9p] {
    color: #cbd5e1 !important;
    border-bottom-color: #1e293b !important;
}

:host-context([data-theme="dark"]) .custom-table tbody tr:hover td[b-zzngq5wd9p],
[data-theme="dark"] .custom-table tbody tr:hover td[b-zzngq5wd9p] {
    background: #0f172a !important;
}
/* /Components/Pages/InventoryManufacturerMaster.razor.rz.scp.css */
/* Isolated styles for ManufacturerMaster component */

.items-page[b-rfm2vmq3m8] {
    min-height: 100vh;
    background: transparent !important;
}

.items-shell[b-rfm2vmq3m8] {
    max-width: 1320px;
    margin: 0 auto;
}

.items-content[b-rfm2vmq3m8] {
    width: min(1240px, 100%);
    margin: 0 auto;
    text-align: center;
}

.premium-header-card[b-rfm2vmq3m8] {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-radius: 16px !important;
    padding: 1.25rem 2rem !important;
    color: #1e1b4b !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem !important;
}

.header-card-left[b-rfm2vmq3m8] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-card-icon[b-rfm2vmq3m8] {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

.header-card-icon svg[b-rfm2vmq3m8] {
    stroke: #2563eb !important;
}

.header-card-text[b-rfm2vmq3m8] {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.header-card-heading[b-rfm2vmq3m8] {
    color: #0f172a !important;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
}

.header-card-subheading[b-rfm2vmq3m8] {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b !important;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.status-dot[b-rfm2vmq3m8] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    margin-right: 6px;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
}

.header-card-right[b-rfm2vmq3m8] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.items-search-wrap[b-rfm2vmq3m8] {
    position: relative;
    display: flex;
    align-items: center;
}

.items-search[b-rfm2vmq3m8] {
    width: 220px;
    height: 38px !important;
    border-radius: 20px !important;
    border: 1px solid #cbd5e1 !important;
    padding-left: 2.4rem !important;
    font-size: 0.8rem !important;
    background: #ffffff !important;
    color: #1e293b !important;
    box-shadow: none !important;
    transition: all 0.25s ease !important;
}

.items-search:focus[b-rfm2vmq3m8] {
    outline: none !important;
    width: 280px !important;
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

.items-search-icon[b-rfm2vmq3m8] {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
}

.view-toggle[b-rfm2vmq3m8] {
    display: inline-flex;
    border: 1px solid #cbd5e1 !important;
    border-radius: 20px !important;
    overflow: hidden;
    background: #f8fafc !important;
    height: 38px;
    padding: 2px;
    align-items: center;
}

.view-toggle button[b-rfm2vmq3m8] {
    border: 0 !important;
    background: transparent !important;
    color: #64748b !important;
    width: 36px;
    height: 32px;
    border-radius: 16px !important;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle button.active[b-rfm2vmq3m8] {
    background: #ffffff !important;
    color: #4f46e5 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.add-item-btn[b-rfm2vmq3m8] {
    height: 38px !important;
    border-radius: 20px !important;
    background: #4f46e5 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0 1.5rem !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
    transition: all 0.2s ease-in-out !important;
}

.add-item-btn:hover[b-rfm2vmq3m8] {
    background: #3f39c5 !important;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35) !important;
    transform: translateY(-1.5px);
}

.items-main-card[b-rfm2vmq3m8] {
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    overflow: hidden;
    margin-top: 1.5rem !important;
    background: #ffffff !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
}

.items-table[b-rfm2vmq3m8] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

table.table.items-table thead tr th[b-rfm2vmq3m8],
.items-table th[b-rfm2vmq3m8] {
    background: #ffffff !important;
    color: #8a99ad !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.74rem !important;
    letter-spacing: 0.8px !important;
    padding: 10px 16px !important;
    border-bottom: 2px solid #eef2f6 !important;
    text-align: center !important;
}

.items-table td[b-rfm2vmq3m8] {
    border-top: none !important;
    border-bottom: 1px solid #eef2f6 !important;
    padding: 10px 16px !important;
    font-size: 0.8rem !important;
    background: #ffffff !important;
    color: #64748b !important;
    vertical-align: middle !important;
    text-align: center !important;
}

.items-table td:last-child[b-rfm2vmq3m8] {
    white-space: nowrap !important;
    text-align: center !important;
}

.items-table tr td:first-child[b-rfm2vmq3m8] {
    color: #3b82f6 !important;
    font-weight: 700 !important;
}

.items-table tr td:nth-child(2)[b-rfm2vmq3m8],
.items-table tr td:nth-child(3)[b-rfm2vmq3m8] {
    color: #1e293b !important;
    font-weight: 700 !important;
}

.action-btn[b-rfm2vmq3m8] {
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    margin: 0 2px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #94a3b8 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.action-btn:hover[b-rfm2vmq3m8] {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}

.action-btn i[b-rfm2vmq3m8] {
    font-size: 0.85rem !important;
}

.items-card-grid[b-rfm2vmq3m8] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
}

.item-card[b-rfm2vmq3m8] {
    background: #ffffff !important;
    border: 1px solid #eef2f6 !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.item-card:hover[b-rfm2vmq3m8] {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(37, 99, 235, 0.25) !important;
}

.item-card-head[b-rfm2vmq3m8] {
    background: #ffffff !important;
    color: #1e293b !important;
    padding: 0.6rem 1rem !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid rgba(99, 102, 241, 0.1) !important;
}

.card-item-code[b-rfm2vmq3m8] {
    color: #4b5563 !important;
    font-weight: 700 !important;
    margin-right: 6px;
}

.card-item-name[b-rfm2vmq3m8] {
    color: #374151 !important;
    font-weight: 700 !important;
}

.item-card-body[b-rfm2vmq3m8] {
    padding: 0.75rem 1rem !important;
    color: #64748b !important;
    font-size: 0.8rem !important;
}

.detail-row[b-rfm2vmq3m8] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0 !important;
    border-bottom: 1px solid #eef2f6 !important;
}

.detail-row:last-child[b-rfm2vmq3m8] {
    border-bottom: none !important;
}

.detail-row span[b-rfm2vmq3m8] {
    color: #8a99ad !important;
    font-weight: 700 !important;
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.detail-row strong[b-rfm2vmq3m8] {
    color: #000000 !important;
    font-weight: 600 !important;
}

/* Modal styles */
.modal-overlay[b-rfm2vmq3m8] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.modal-card[b-rfm2vmq3m8] {
    border-radius: 20px !important;
    border: none !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-header-bar[b-rfm2vmq3m8] {
    background: #fff !important;
    color: #333 !important;
    padding: 16px 32px !important;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-left[b-rfm2vmq3m8] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-title[b-rfm2vmq3m8] {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    color: #000000 !important;
    letter-spacing: -0.2px;
}

.btn-close-modal[b-rfm2vmq3m8] {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}

.btn-close-modal:hover[b-rfm2vmq3m8] {
    background: #e2e8f0;
    color: #1e293b;
}

.modal-inner[b-rfm2vmq3m8] {
    padding: 16px 32px !important;
    background: #fff;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.modal-inner[b-rfm2vmq3m8]  form {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.modal-inner[b-rfm2vmq3m8]  .modal-scroll-area {
    overflow-y: auto !important;
    flex: 1;
    padding-right: 8px;
    min-height: 0;
}

.form-section-header[b-rfm2vmq3m8] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    margin-top: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid #f1f5f9;
}

.form-section-title[b-rfm2vmq3m8] {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #4f46e5;
}

.form-grid[b-rfm2vmq3m8] {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    margin-bottom: 12px;
    row-gap: 12px;
}

.col-1[b-rfm2vmq3m8] { grid-column: span 1; }
.col-2[b-rfm2vmq3m8] { grid-column: span 2; }
.col-3[b-rfm2vmq3m8] { grid-column: span 3; }
.col-4[b-rfm2vmq3m8] { grid-column: span 4; }
.col-5[b-rfm2vmq3m8] { grid-column: span 5; }
.col-6[b-rfm2vmq3m8] { grid-column: span 6; }
.col-7[b-rfm2vmq3m8] { grid-column: span 7; }
.col-8[b-rfm2vmq3m8] { grid-column: span 8; }
.col-9[b-rfm2vmq3m8] { grid-column: span 9; }
.col-10[b-rfm2vmq3m8] { grid-column: span 10; }
.col-11[b-rfm2vmq3m8] { grid-column: span 11; }
.col-12[b-rfm2vmq3m8] { grid-column: span 12; }

.field-group[b-rfm2vmq3m8] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label[b-rfm2vmq3m8] {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 2px;
}

.field-label.required[b-rfm2vmq3m8]::after {
    content: " *";
    color: #ef4444;
}

.premium-input[b-rfm2vmq3m8] {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 0.88rem !important;
    color: #4b5563 !important;
    transition: all 0.2s !important;
    height: auto !important;
}

.premium-input[b-rfm2vmq3m8]::placeholder {
    color: #cbd5e1 !important;
    opacity: 1 !important;
}

.premium-input:focus[b-rfm2vmq3m8] {
    background: #fff !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1) !important;
    outline: none !important;
}

.btn-save-premium[b-rfm2vmq3m8] {
    background: #1c9f5f !important;
    color: white !important;
    border: none !important;
    padding: 10px 28px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(28, 159, 95, 0.3) !important;
    transition: all 0.2s !important;
    white-space: nowrap;
}

.btn-save-premium:hover[b-rfm2vmq3m8] {
    background: #168a52 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(28, 159, 95, 0.4) !important;
}

/* Pagination bar */
.page-btn[b-rfm2vmq3m8] {
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #64748b !important;
    border-radius: 8px !important;
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
    font-weight: 600;
    margin: 0 2px;
    transition: all 0.2s;
}

.page-btn.active[b-rfm2vmq3m8] {
    background: #4f46e5 !important;
    color: #ffffff !important;
    border-color: #4f46e5 !important;
}

.page-btn:hover:not(.active):not(:disabled)[b-rfm2vmq3m8] {
    background: #f8fafc !important;
    color: #1e293b !important;
}
/* /Components/Pages/InventoryUnitMaster.razor.rz.scp.css */
/* Isolated styles for UOMMaster component */

.items-page[b-ukm2yob2c1] {
    min-height: 100vh;
    background: transparent !important;
}

.items-shell[b-ukm2yob2c1] {
    max-width: 1320px;
    margin: 0 auto;
}

.items-content[b-ukm2yob2c1] {
    width: min(1240px, 100%);
    margin: 0 auto;
    text-align: center;
}

.premium-header-card[b-ukm2yob2c1] {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    padding: 1.25rem 2rem;
    color: #1e1b4b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem;
}

.header-card-left[b-ukm2yob2c1] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-card-icon[b-ukm2yob2c1] {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.header-card-icon svg[b-ukm2yob2c1] {
    stroke: #2563eb;
}

.header-card-text[b-ukm2yob2c1] {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.header-card-heading[b-ukm2yob2c1] {
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
}

.header-card-subheading[b-ukm2yob2c1] {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b !important;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.status-dot[b-ukm2yob2c1] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    margin-right: 6px;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
}

.header-card-right[b-ukm2yob2c1] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.items-search-wrap[b-ukm2yob2c1] {
    position: relative;
    display: flex;
    align-items: center;
}

.items-search[b-ukm2yob2c1] {
    width: 220px;
    height: 38px;
    border-radius: 20px;
    border: 1px solid #cbd5e1;
    padding-left: 2.4rem;
    font-size: 0.8rem;
    background: #ffffff;
    color: #1e293b;
    box-shadow: none;
    transition: all 0.25s ease;
}

.items-search:focus[b-ukm2yob2c1] {
    outline: none;
    width: 280px;
    background: #ffffff;
    color: #1e293b;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.items-search-icon[b-ukm2yob2c1] {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
}

.view-toggle[b-ukm2yob2c1] {
    display: inline-flex;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    overflow: hidden;
    background: #f8fafc;
    height: 38px;
    padding: 2px;
    align-items: center;
}

.view-toggle button[b-ukm2yob2c1] {
    border: 0;
    background: transparent;
    color: #64748b;
    width: 36px;
    height: 32px;
    border-radius: 16px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle button.active[b-ukm2yob2c1] {
    background: #ffffff;
    color: #4f46e5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.add-item-btn[b-ukm2yob2c1] {
    height: 38px;
    border-radius: 20px;
    background: #4f46e5;
    color: #ffffff;
    border: none;
    padding: 0 1.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    transition: all 0.2s ease-in-out;
}

.add-item-btn:hover[b-ukm2yob2c1] {
    background: #3f39c5;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
    transform: translateY(-1.5px);
}

.items-main-card[b-ukm2yob2c1] {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 1.5rem;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02);
}

.items-table[b-ukm2yob2c1] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

table.table.items-table thead tr th[b-ukm2yob2c1],
.items-table th[b-ukm2yob2c1] {
    background: #ffffff;
    color: #8a99ad;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.74rem;
    letter-spacing: 0.8px;
    padding: 10px 16px;
    border-bottom: 2px solid #eef2f6;
    text-align: center;
}

.items-table td[b-ukm2yob2c1] {
    border-top: none;
    border-bottom: 1px solid #eef2f6;
    padding: 10px 16px;
    font-size: 0.8rem;
    background: #ffffff;
    color: #64748b;
    vertical-align: middle;
    text-align: center;
}

.items-table td:last-child[b-ukm2yob2c1] {
    white-space: nowrap;
    text-align: center;
}

.items-table tr td.td-order-no[b-ukm2yob2c1] {
    color: #3b82f6;
    font-weight: 700;
}

.items-table tr td.td-shortname[b-ukm2yob2c1],
.items-table tr td.td-unitname[b-ukm2yob2c1] {
    color: #1e293b;
    font-weight: 700;
}

.action-btn[b-ukm2yob2c1] {
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    margin: 0 2px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #94a3b8 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.action-btn:hover[b-ukm2yob2c1] {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}

.action-btn i[b-ukm2yob2c1] {
    font-size: 0.85rem !important;
}

.items-card-grid[b-ukm2yob2c1] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
}

.item-card[b-ukm2yob2c1] {
    background: #ffffff !important;
    border: 1px solid #eef2f6 !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.item-card:hover[b-ukm2yob2c1] {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(37, 99, 235, 0.25) !important;
}

.item-card-head[b-ukm2yob2c1] {
    background: #ffffff !important;
    color: #1e293b !important;
    padding: 0.6rem 1rem !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid rgba(99, 102, 241, 0.1) !important;
}

.card-item-code[b-ukm2yob2c1] {
    color: #4b5563 !important;
    font-weight: 700 !important;
    margin-right: 6px;
}

.card-item-name[b-ukm2yob2c1] {
    color: #374151 !important;
    font-weight: 700 !important;
}

.item-card-body[b-ukm2yob2c1] {
    padding: 0.75rem 1rem !important;
    color: #64748b !important;
    font-size: 0.8rem !important;
}

.detail-row[b-ukm2yob2c1] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0 !important;
    border-bottom: 1px solid #eef2f6 !important;
}

.detail-row:last-child[b-ukm2yob2c1] {
    border-bottom: none !important;
}

.detail-row span[b-ukm2yob2c1] {
    color: #8a99ad !important;
    font-weight: 700 !important;
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.detail-row strong[b-ukm2yob2c1] {
    color: #000000 !important;
    font-weight: 600 !important;
}

/* Modal styles */
.modal-overlay[b-ukm2yob2c1] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.modal-card[b-ukm2yob2c1] {
    border-radius: 20px !important;
    border: none !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
    background: #fff;
}

.modal-header-bar[b-ukm2yob2c1] {
    background: #fff !important;
    color: #333 !important;
    padding: 16px 32px !important;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-left[b-ukm2yob2c1] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-title[b-ukm2yob2c1] {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    color: #000000 !important;
    letter-spacing: -0.2px;
}

.btn-close-modal[b-ukm2yob2c1] {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}

.btn-close-modal:hover[b-ukm2yob2c1] {
    background: #e2e8f0;
    color: #1e293b;
}

.modal-inner[b-ukm2yob2c1] {
    padding: 16px 32px !important;
    background: #fff;
}

.form-section-header[b-ukm2yob2c1] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    margin-top: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid #f1f5f9;
}

.form-section-title[b-ukm2yob2c1] {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #4f46e5;
}

.form-grid[b-ukm2yob2c1] {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    margin-bottom: 12px;
    row-gap: 12px;
}

.col-1[b-ukm2yob2c1] {
    grid-column: span 1;
}

.col-2[b-ukm2yob2c1] {
    grid-column: span 2;
}

.col-3[b-ukm2yob2c1] {
    grid-column: span 3;
}

.col-4[b-ukm2yob2c1] {
    grid-column: span 4;
}

.col-5[b-ukm2yob2c1] {
    grid-column: span 5;
}

.col-6[b-ukm2yob2c1] {
    grid-column: span 6;
}

.col-7[b-ukm2yob2c1] {
    grid-column: span 7;
}

.col-8[b-ukm2yob2c1] {
    grid-column: span 8;
}

.col-9[b-ukm2yob2c1] {
    grid-column: span 9;
}

.col-10[b-ukm2yob2c1] {
    grid-column: span 10;
}

.col-11[b-ukm2yob2c1] {
    grid-column: span 11;
}

.col-12[b-ukm2yob2c1] {
    grid-column: span 12;
}

.field-group[b-ukm2yob2c1] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label[b-ukm2yob2c1] {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 2px;
}

.field-label.required[b-ukm2yob2c1]::after {
    content: " *";
    color: #ef4444;
}

.premium-input[b-ukm2yob2c1] {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 0.88rem !important;
    color: #4b5563 !important;
    transition: all 0.2s !important;
    height: auto !important;
}

.premium-input[b-ukm2yob2c1]::placeholder {
    color: #cbd5e1 !important;
    opacity: 1 !important;
}

.premium-input:focus[b-ukm2yob2c1] {
    background: #fff !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1) !important;
    outline: none !important;
}

.modal-footer-actions[b-ukm2yob2c1] {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 16px !important;
    padding: 24px 32px !important;
    border-top: 1px solid #f0f0f0 !important;
    background: #ffffff !important;
}

.btn-cancel-modal[b-ukm2yob2c1] {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: none !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    min-width: 100px !important;
    transition: all 0.2s !important;
}

.btn-cancel-modal:hover[b-ukm2yob2c1] {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.btn-save-premium[b-ukm2yob2c1] {
    background: #1c9f5f !important;
    color: white !important;
    border: none !important;
    padding: 10px 28px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(28, 159, 95, 0.3) !important;
    transition: all 0.2s !important;
    white-space: nowrap;
}

.btn-save-premium:hover[b-ukm2yob2c1] {
    background: #168a52 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(28, 159, 95, 0.4) !important;
}

/* Pagination bar */
.page-btn[b-ukm2yob2c1] {
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #64748b !important;
    border-radius: 8px !important;
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
    font-weight: 600;
    margin: 0 2px;
    transition: all 0.2s;
}

.page-btn.active[b-ukm2yob2c1] {
    background: #4f46e5 !important;
    color: #ffffff !important;
    border-color: #4f46e5 !important;
}

.page-btn:hover:not(.active):not(:disabled)[b-ukm2yob2c1] {
    background: #f8fafc !important;
    color: #1e293b !important;
}

/* Special Symbols styling */
.symbols-grid[b-ukm2yob2c1] {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 6px 0 !important;
}

.symbol-btn[b-ukm2yob2c1] {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    min-width: 38px !important;
    height: 38px !important;
    padding: 0 8px !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
}

.display-controls[b-ukm2yob2c1] {
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    border-top: 1px solid #e2e8f0;
}

.symbol-btn:hover[b-ukm2yob2c1] {
    background: #4f46e5 !important;
    color: #ffffff !important;
    border-color: #4f46e5 !important;
    transform: translateY(-2px) scale(1.08) !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
}

.symbol-btn:active[b-ukm2yob2c1] {
    transform: translateY(0) scale(0.98) !important;
}

/* ═══════════════════════════════════════════════════════════════
   DARK MODE OVERRIDES FOR UOM MASTER (UNIT MASTER)
   ═══════════════════════════════════════════════════════════════ */
:host-context([data-theme="dark"]) .items-page[b-ukm2yob2c1],
[data-theme="dark"] .items-page[b-ukm2yob2c1] {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}

:host-context([data-theme="dark"]) .premium-header-card[b-ukm2yob2c1],
[data-theme="dark"] .premium-header-card[b-ukm2yob2c1] {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

:host-context([data-theme="dark"]) .header-card-icon[b-ukm2yob2c1],
[data-theme="dark"] .header-card-icon[b-ukm2yob2c1] {
    background: #0f172a !important;
    border-color: #334155 !important;
}

:host-context([data-theme="dark"]) .header-card-heading[b-ukm2yob2c1],
[data-theme="dark"] .header-card-heading[b-ukm2yob2c1] {
    color: #f8fafc !important;
}

:host-context([data-theme="dark"]) .header-card-subheading[b-ukm2yob2c1],
[data-theme="dark"] .header-card-subheading[b-ukm2yob2c1] {
    color: #38bdf8 !important;
}

:host-context([data-theme="dark"]) .items-search[b-ukm2yob2c1],
[data-theme="dark"] .items-search[b-ukm2yob2c1] {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

:host-context([data-theme="dark"]) .view-toggle[b-ukm2yob2c1],
[data-theme="dark"] .view-toggle[b-ukm2yob2c1] {
    background: #0f172a !important;
    border-color: #334155 !important;
}

:host-context([data-theme="dark"]) .view-toggle button[b-ukm2yob2c1],
[data-theme="dark"] .view-toggle button[b-ukm2yob2c1] {
    color: #94a3b8 !important;
}

:host-context([data-theme="dark"]) .view-toggle button.active[b-ukm2yob2c1],
[data-theme="dark"] .view-toggle button.active[b-ukm2yob2c1] {
    background: #1e293b !important;
    color: #38bdf8 !important;
}

:host-context([data-theme="dark"]) .items-main-card[b-ukm2yob2c1],
[data-theme="dark"] .items-main-card[b-ukm2yob2c1] {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

:host-context([data-theme="dark"]) table.table.items-table thead tr th[b-ukm2yob2c1],
:host-context([data-theme="dark"]) .items-table th[b-ukm2yob2c1],
[data-theme="dark"] table.table.items-table thead tr th[b-ukm2yob2c1],
[data-theme="dark"] .items-table th[b-ukm2yob2c1] {
    background: #0f172a !important;
    color: #38bdf8 !important;
    border-bottom-color: #334155 !important;
}

:host-context([data-theme="dark"]) .items-table td[b-ukm2yob2c1],
[data-theme="dark"] .items-table td[b-ukm2yob2c1] {
    background: #1e293b !important;
    border-bottom-color: #334155 !important;
    color: #cbd5e1 !important;
}

:host-context([data-theme="dark"]) .items-table tr td.td-order-no[b-ukm2yob2c1],
[data-theme="dark"] .items-table tr td.td-order-no[b-ukm2yob2c1] {
    color: #38bdf8 !important;
}

:host-context([data-theme="dark"]) .items-table tr td.td-shortname[b-ukm2yob2c1],
:host-context([data-theme="dark"]) .items-table tr td.td-unitname[b-ukm2yob2c1],
[data-theme="dark"] .items-table tr td.td-shortname[b-ukm2yob2c1],
[data-theme="dark"] .items-table tr td.td-unitname[b-ukm2yob2c1] {
    color: #f8fafc !important;
}

:host-context([data-theme="dark"]) .items-table tr td.td-narration[b-ukm2yob2c1],
:host-context([data-theme="dark"]) .items-table tr td.td-date[b-ukm2yob2c1],
[data-theme="dark"] .items-table tr td.td-narration[b-ukm2yob2c1],
[data-theme="dark"] .items-table tr td.td-date[b-ukm2yob2c1] {
    color: #cbd5e1 !important;
}

:host-context([data-theme="dark"]) .action-btn[b-ukm2yob2c1],
[data-theme="dark"] .action-btn[b-ukm2yob2c1] {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #38bdf8 !important;
}

:host-context([data-theme="dark"]) .action-btn:hover[b-ukm2yob2c1],
[data-theme="dark"] .action-btn:hover[b-ukm2yob2c1] {
    background: #1e293b !important;
    border-color: #475569 !important;
    color: #7dd3fc !important;
}

:host-context([data-theme="dark"]) .display-controls[b-ukm2yob2c1],
[data-theme="dark"] .display-controls[b-ukm2yob2c1] {
    background: #0f172a !important;
    border-top-color: #334155 !important;
}

:host-context([data-theme="dark"]) .total-count-text[b-ukm2yob2c1],
[data-theme="dark"] .total-count-text[b-ukm2yob2c1] {
    color: #94a3b8 !important;
}

:host-context([data-theme="dark"]) .page-btn[b-ukm2yob2c1],
[data-theme="dark"] .page-btn[b-ukm2yob2c1] {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

:host-context([data-theme="dark"]) .page-btn.active[b-ukm2yob2c1],
[data-theme="dark"] .page-btn.active[b-ukm2yob2c1] {
    background: #4f46e5 !important;
    border-color: #4f46e5 !important;
    color: #ffffff !important;
}

:host-context([data-theme="dark"]) .item-card[b-ukm2yob2c1],
[data-theme="dark"] .item-card[b-ukm2yob2c1] {
    background: #1e293b !important;
    border-color: #334155 !important;
}

:host-context([data-theme="dark"]) .item-card-head[b-ukm2yob2c1],
[data-theme="dark"] .item-card-head[b-ukm2yob2c1] {
    background: #0f172a !important;
    color: #f8fafc !important;
    border-bottom-color: #334155 !important;
}

:host-context([data-theme="dark"]) .item-card-body[b-ukm2yob2c1],
[data-theme="dark"] .item-card-body[b-ukm2yob2c1] {
    color: #cbd5e1 !important;
}

:host-context([data-theme="dark"]) .detail-row[b-ukm2yob2c1],
[data-theme="dark"] .detail-row[b-ukm2yob2c1] {
    border-bottom-color: #334155 !important;
}

:host-context([data-theme="dark"]) .detail-row span[b-ukm2yob2c1],
[data-theme="dark"] .detail-row span[b-ukm2yob2c1] {
    color: #94a3b8 !important;
}

:host-context([data-theme="dark"]) .detail-row strong[b-ukm2yob2c1],
[data-theme="dark"] .detail-row strong[b-ukm2yob2c1] {
    color: #f8fafc !important;
}

:host-context([data-theme="dark"]) .modal-card[b-ukm2yob2c1],
[data-theme="dark"] .modal-card[b-ukm2yob2c1] {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
}

:host-context([data-theme="dark"]) .modal-header-bar[b-ukm2yob2c1],
:host-context([data-theme="dark"]) .modal-inner[b-ukm2yob2c1],
:host-context([data-theme="dark"]) .modal-footer-actions[b-ukm2yob2c1],
[data-theme="dark"] .modal-header-bar[b-ukm2yob2c1],
[data-theme="dark"] .modal-inner[b-ukm2yob2c1],
[data-theme="dark"] .modal-footer-actions[b-ukm2yob2c1] {
    background: #1e293b !important;
    border-color: #334155 !important;
}

:host-context([data-theme="dark"]) .modal-title[b-ukm2yob2c1],
[data-theme="dark"] .modal-title[b-ukm2yob2c1] {
    color: #38bdf8 !important;
}

:host-context([data-theme="dark"]) .premium-input[b-ukm2yob2c1],
[data-theme="dark"] .premium-input[b-ukm2yob2c1] {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

:host-context([data-theme="dark"]) .field-label[b-ukm2yob2c1],
[data-theme="dark"] .field-label[b-ukm2yob2c1] {
    color: #cbd5e1 !important;
}

:host-context([data-theme="dark"]) .uom-symbols-section[b-ukm2yob2c1],
[data-theme="dark"] .uom-symbols-section[b-ukm2yob2c1] {
    background: #0f172a !important;
    border-color: #334155 !important;
}

:host-context([data-theme="dark"]) .symbol-btn[b-ukm2yob2c1],
[data-theme="dark"] .symbol-btn[b-ukm2yob2c1] {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}
/* /Components/Pages/IScanNewBilling.razor.rz.scp.css */
/* iScan New Billing Styles — Matching LabCare Theme */

.iscan-page-container[b-2h0enbgovl] {
    padding: 1rem 1.25rem;
    background-color: #f8fafc;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
}

.iscan-main-layout[b-2h0enbgovl] {
    flex: 1 0 auto;
    margin-bottom: 1rem;
}

/* Header bar */
.iscan-top-bar[b-2h0enbgovl] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    gap: 1rem;
}

.iscan-header-left[b-2h0enbgovl] {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.iscan-page-title-badge[b-2h0enbgovl] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    box-shadow: 0 2px 4px rgba(2, 132, 199, 0.25);
}

.iscan-header-group[b-2h0enbgovl] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.iscan-header-label[b-2h0enbgovl] {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.iscan-header-select[b-2h0enbgovl] {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
    background-color: #ffffff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.iscan-header-select:focus[b-2h0enbgovl] {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.iscan-billno-badge[b-2h0enbgovl] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.88rem;
}

.iscan-time-input[b-2h0enbgovl] {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #334155;
    background: #ffffff;
}

/* 2-Panel Main Grid */
.iscan-main-grid[b-2h0enbgovl] {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 1.25rem;
    align-items: start;
}

@media (max-width: 1200px) {
    .iscan-main-grid[b-2h0enbgovl] {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.iscan-card[b-2h0enbgovl] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.iscan-card-header[b-2h0enbgovl] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.iscan-card-title[b-2h0enbgovl] {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.iscan-card-title .material-symbols-outlined[b-2h0enbgovl] {
    font-size: 20px;
    color: #0284c7;
}

/* Form Layout Rows */
.iscan-form-row[b-2h0enbgovl] {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.iscan-col-1[b-2h0enbgovl] {
    grid-template-columns: 1fr;
}

.iscan-col-2[b-2h0enbgovl] {
    grid-template-columns: 1fr 1fr;
}

.iscan-col-3[b-2h0enbgovl] {
    grid-template-columns: 1fr 1fr 1fr;
}

.iscan-col-prefix-name[b-2h0enbgovl] {
    grid-template-columns: minmax(0, 1fr) minmax(88px, 0.65fr) minmax(0, 1.35fr);
}

.iscan-col-dob-age-gender[b-2h0enbgovl] {
    grid-template-columns: 1.2fr 1.6fr 1.1fr;
}

.iscan-col-split[b-2h0enbgovl] {
    grid-template-columns: 130px 1fr;
}

.iscan-form-group[b-2h0enbgovl] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}

.iscan-label[b-2h0enbgovl] {
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    letter-spacing: -0.01em;
}

.iscan-label .required[b-2h0enbgovl] {
    color: #ef4444;
    font-weight: 700;
}

.iscan-input[b-2h0enbgovl],
.iscan-select[b-2h0enbgovl],
.iscan-textarea[b-2h0enbgovl] {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.85rem;
    color: #1e293b;
    background-color: #ffffff;
    transition: all 0.15s ease-in-out;
    outline: none;
    width: 100%;
}

.iscan-input:focus[b-2h0enbgovl],
.iscan-select:focus[b-2h0enbgovl],
.iscan-textarea:focus[b-2h0enbgovl] {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.iscan-input[b-2h0enbgovl]::placeholder,
.iscan-textarea[b-2h0enbgovl]::placeholder {
    color: #94a3b8;
    font-size: 0.82rem;
}

.iscan-textarea[b-2h0enbgovl] {
    resize: none;
    height: 52px;
}

/* More Info Toggle & Panel */
.iscan-more-info-toggle[b-2h0enbgovl] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    color: #475569;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    margin-bottom: 0.5rem;
}

.iscan-more-info-toggle:hover[b-2h0enbgovl] {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
}

.iscan-more-info-panel[b-2h0enbgovl] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 0.85rem;
    animation: iscanFadeIn-b-2h0enbgovl 0.15s ease-out;
}

/* Highlighted Section: Ref By Till End */
.iscan-ref-highlight-section[b-2h0enbgovl] {
    background: linear-gradient(135deg, #f0fdfa 0%, #e6fffa 100%);
    border: 1.5px solid #5eead4;
    border-radius: 9px;
    padding: 0.95rem;
    margin-top: 0.85rem;
    box-shadow: 0 1px 3px rgba(13, 148, 136, 0.08);
}

.iscan-ref-section-header[b-2h0enbgovl] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f766e;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #ccfbf1;
}

.iscan-ref-section-header .material-symbols-outlined[b-2h0enbgovl] {
    font-size: 18px;
    color: #0d9488;
}

.iscan-ref-highlight-section .iscan-label[b-2h0enbgovl] {
    color: #115e59;
    font-weight: 700;
}

.iscan-ref-highlight-section .iscan-input[b-2h0enbgovl],
.iscan-ref-highlight-section .iscan-select[b-2h0enbgovl] {
    border-color: #99f6e4;
    background: #ffffff;
}

.iscan-ref-highlight-section .iscan-input:focus[b-2h0enbgovl],
.iscan-ref-highlight-section .iscan-select:focus[b-2h0enbgovl] {
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Age 3-box group */
.iscan-age-inputs[b-2h0enbgovl] {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
}

.iscan-age-subgroup[b-2h0enbgovl] {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
}

.iscan-age-subgroup:focus-within[b-2h0enbgovl] {
    border-color: #0284c7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.iscan-age-subgroup input[b-2h0enbgovl] {
    border: none;
    outline: none;
    padding: 6px 4px;
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
}

.iscan-age-subgroup span[b-2h0enbgovl] {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    padding-right: 6px;
    background: #f8fafc;
}

/* Autocomplete Dropdown List */
.iscan-autocomplete-menu[b-2h0enbgovl] {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    max-height: 240px;
    overflow-y: auto;
    z-index: 1050;
    list-style: none;
    padding: 4px 0;
    margin: 0;
}

.iscan-autocomplete-item[b-2h0enbgovl] {
    padding: 8px 12px;
    font-size: 0.84rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.1s;
}

.iscan-autocomplete-item:hover[b-2h0enbgovl],
.iscan-autocomplete-item.active[b-2h0enbgovl] {
    background-color: #f0f9ff;
    color: #0369a1;
}

.iscan-item-badge[b-2h0enbgovl] {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    background: #e2e8f0;
    color: #475569;
}

/* Test Search Box */
.iscan-test-search-wrapper[b-2h0enbgovl] {
    position: relative;
    margin-bottom: 0.85rem;
}

.iscan-test-search-input[b-2h0enbgovl] {
    width: 100%;
    padding: 9px 12px 9px 36px;
    border: 1.5px solid #0284c7;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.15s;
}

.iscan-test-search-input:focus[b-2h0enbgovl] {
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

.iscan-search-icon[b-2h0enbgovl] {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #0284c7;
    font-size: 20px;
    pointer-events: none;
}

/* Test Table */
.iscan-table-container[b-2h0enbgovl] {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    min-height: 180px;
    background: #ffffff;
}

.iscan-table[b-2h0enbgovl] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.83rem;
}

.iscan-table thead tr[b-2h0enbgovl] {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
}

.iscan-table th[b-2h0enbgovl] {
    padding: 8px 10px;
    font-weight: 600;
    text-align: left;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.iscan-table th.text-right[b-2h0enbgovl] {
    text-align: right;
}

.iscan-table th.text-center[b-2h0enbgovl] {
    text-align: center;
}

.iscan-table tbody tr[b-2h0enbgovl] {
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.1s;
}

.iscan-table tbody tr:hover[b-2h0enbgovl] {
    background-color: #f8fafc;
}

.iscan-table td[b-2h0enbgovl] {
    padding: 6px 10px;
    vertical-align: middle;
    color: #334155;
}

.iscan-table td.text-right[b-2h0enbgovl] {
    text-align: right;
}

.iscan-table td.text-center[b-2h0enbgovl] {
    text-align: center;
}

.iscan-tbl-input[b-2h0enbgovl] {
    width: 70px;
    padding: 3px 6px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.82rem;
    text-align: right;
    outline: none;
}

.iscan-tbl-input:focus[b-2h0enbgovl] {
    border-color: #0284c7;
}

.iscan-remove-btn[b-2h0enbgovl] {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.iscan-remove-btn:hover[b-2h0enbgovl] {
    background-color: #fee2e2;
}

.iscan-table-empty[b-2h0enbgovl] {
    padding: 40px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.88rem;
}

/* Home Collection row */
.iscan-collection-bar[b-2h0enbgovl] {
    display: grid;
    grid-template-columns: auto 1fr 1fr 100px;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 0.85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.iscan-checkbox-label[b-2h0enbgovl] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    user-select: none;
}

/* Financials Section */
.iscan-financials-grid[b-2h0enbgovl] {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    align-items: start;
}

.iscan-discount-block[b-2h0enbgovl] {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.iscan-discount-row[b-2h0enbgovl] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.iscan-discount-pair[b-2h0enbgovl] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.iscan-discount-pair .iscan-input[b-2h0enbgovl] {
    text-align: right;
}

/* Stat Cards / Summary Badges */
.iscan-summary-block[b-2h0enbgovl] {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.iscan-stat-row[b-2h0enbgovl] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.iscan-stat-title[b-2h0enbgovl] {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.iscan-stat-val[b-2h0enbgovl] {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.iscan-stat-bill[b-2h0enbgovl] {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.iscan-stat-net[b-2h0enbgovl] {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.iscan-stat-paid[b-2h0enbgovl] {
    background: #fefce8;
    border-color: #fef08a;
    color: #854d0e;
}

.iscan-stat-due[b-2h0enbgovl] {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.iscan-paid-input[b-2h0enbgovl] {
    width: 120px;
    text-align: right;
    font-size: 1rem;
    font-weight: 700;
    padding: 4px 8px;
    border: 1.5px solid #facc15;
    border-radius: 6px;
    background: #ffffff;
    color: #854d0e;
    outline: none;
}

.iscan-paid-input:focus[b-2h0enbgovl] {
    box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.25);
}

/* Fixed Bottom Action Bar */
.iscan-bottom-bar[b-2h0enbgovl] {
    position: sticky !important;
    bottom: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.12);
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 100;
    margin-top: auto;
    box-sizing: border-box;
    backdrop-filter: blur(8px);
}

.iscan-bbar-left[b-2h0enbgovl] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.iscan-bbar-right[b-2h0enbgovl] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

html.dark-mode .iscan-bottom-bar[b-2h0enbgovl] {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
}

.iscan-btn[b-2h0enbgovl] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease-in-out;
}

.iscan-btn-save[b-2h0enbgovl] {
    background-color: #10b981;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.25);
}

.iscan-btn-save:hover[b-2h0enbgovl] {
    background-color: #059669;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.35);
}

.iscan-btn-clear[b-2h0enbgovl] {
    background-color: #64748b;
    color: #ffffff;
}

.iscan-btn-clear:hover[b-2h0enbgovl] {
    background-color: #475569;
}

/* Post-Save Modal Backdrop & Container */
.iscan-modal-overlay[b-2h0enbgovl] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.iscan-modal-card[b-2h0enbgovl] {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    animation: iscanFadeIn-b-2h0enbgovl 0.15s ease-out;
}

@keyframes iscanFadeIn-b-2h0enbgovl {
    from {
        opacity: 0;
        transform: scale(0.97);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.iscan-modal-header[b-2h0enbgovl] {
    background: #f0fdf4;
    border-bottom: 1px solid #bbf7d0;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #166534;
}

.iscan-modal-header h4[b-2h0enbgovl] {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.iscan-modal-body[b-2h0enbgovl] {
    padding: 1.25rem;
    color: #334155;
    font-size: 0.92rem;
}

.iscan-modal-actions[b-2h0enbgovl] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    justify-content: flex-end;
}
/* /Components/Pages/IssueStock.razor.rz.scp.css */
/* Scoped styles for IssueStock component following Purchase Master design */

.items-page[b-9u67jeqv9j] {
    min-height: 100vh;
    background: transparent !important;
}

.items-shell[b-9u67jeqv9j] {
    max-width: 1320px;
    margin: 0 auto;
}

.items-content[b-9u67jeqv9j] {
    width: min(1240px, 100%);
    margin: 0 auto;
    text-align: center;
}

.premium-header-card[b-9u67jeqv9j] {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-radius: 16px !important;
    padding: 1.25rem 2rem !important;
    color: #1e1b4b !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem !important;
}

.header-card-left[b-9u67jeqv9j] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-card-icon[b-9u67jeqv9j] {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

.header-card-icon svg[b-9u67jeqv9j] {
    stroke: #2563eb !important;
}

.header-card-text[b-9u67jeqv9j] {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.header-card-heading[b-9u67jeqv9j] {
    color: #0f172a !important;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
}

.header-card-subheading[b-9u67jeqv9j] {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b !important;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.status-dot[b-9u67jeqv9j] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    margin-right: 6px;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
}

.header-card-right[b-9u67jeqv9j] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

/* Form Styles */
.purchase-bill-fields[b-9u67jeqv9j] {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.purchase-bill-fields .premium-input[b-9u67jeqv9j] {
    padding: 0 10px !important;
    font-size: 0.85rem !important;
    border-radius: 6px !important;
    height: 38px !important;
    line-height: 38px !important;
    background: #f9fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #1f2937 !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.purchase-bill-fields .premium-input:focus[b-9u67jeqv9j] {
    border-color: #0f678f !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(15, 103, 143, 0.15) !important;
    outline: none;
}

.purchase-bill-fields input[type="date"].premium-input[b-9u67jeqv9j],
.purchase-bill-fields input.premium-input[b-9u67jeqv9j] {
    padding: 0 10px !important;
    height: 38px !important;
    line-height: normal !important;
    background: #f9fafc !important;
    border: 1px solid #cbd5e1 !important;
}

.purchase-bill-fields select.premium-input[b-9u67jeqv9j] {
    -webkit-appearance: auto !important;
    appearance: auto !important;
}

.purchase-bill-fields .field-group[b-9u67jeqv9j] {
    gap: 4px;
}

.purchase-bill-fields .field-label[b-9u67jeqv9j] {
    font-size: 0.68rem !important;
    margin-bottom: 4px !important;
    font-weight: 700 !important;
    color: #374151 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.purchase-bill-fields .field-label.required[b-9u67jeqv9j]::after {
    content: " *";
    color: #ef4444;
}

/* Purchase Grid Table */
.items-table[b-9u67jeqv9j] {
    width: 100% !important;
}

.purchase-grid-table th[b-9u67jeqv9j] {
    background: #f1f5f9 !important;
    color: #475569 !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    padding: 6px 8px !important;
    border: 1px solid #cbd5e1 !important;
}

.purchase-grid-table td[b-9u67jeqv9j] {
    padding: 0 !important;
    vertical-align: middle !important;
    border: 1px solid #cbd5e1 !important;
}

.purchase-item-input[b-9u67jeqv9j] {
    height: 34px !important;
    border-radius: 0 !important;
    border: none !important;
    background: transparent !important;
    font-size: 0.85rem !important;
    padding: 0 8px !important;
    outline: none !important;
    transition: all 0.2s !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.purchase-item-input:focus[b-9u67jeqv9j] {
    background: #f0f7fa !important;
    box-shadow: inset 0 0 0 2px #0f678f !important;
}

.purchase-item-select[b-9u67jeqv9j] {
    height: 34px !important;
    border-radius: 0 !important;
    border: none !important;
    background: transparent !important;
    font-size: 0.85rem !important;
    padding: 0 8px !important;
    outline: none !important;
    transition: all 0.2s !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.purchase-item-select:focus[b-9u67jeqv9j] {
    background: #f0f7fa !important;
    box-shadow: inset 0 0 0 2px #0f678f !important;
}

.purchase-item-readonly[b-9u67jeqv9j] {
    font-size: 0.85rem !important;
    line-height: 34px !important;
    padding: 0 8px !important;
    color: #475569 !important;
}

/* Dotted Add Button */
.btn-dotted-add[b-9u67jeqv9j] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border: 2px dashed #0f678f !important;
    background: #fff !important;
    color: #0f678f !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    border-radius: 20px !important;
    padding: 6px 28px !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-dotted-add:hover[b-9u67jeqv9j] {
    background: rgba(15, 103, 143, 0.06) !important;
    border-color: #0d587a !important;
    color: #0d587a !important;
    transform: translateY(-1.5px) !important;
}

.btn-dotted-add:active[b-9u67jeqv9j] {
    transform: translateY(0) !important;
}

/* Premium Save / Dispatch Button */
.btn-save-premium[b-9u67jeqv9j] {
    min-width: 140px;
    height: 42px;
    background: #0f678f !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    padding: 0 1.5rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 12px rgba(15, 103, 143, 0.25) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.btn-save-premium:hover[b-9u67jeqv9j] {
    background: #0d587a !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(15, 103, 143, 0.35) !important;
}

.btn-cancel-modal[b-9u67jeqv9j] {
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    padding: 0.55rem 1.5rem !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    min-width: 120px !important;
    color: #475569 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.btn-cancel-modal:hover[b-9u67jeqv9j] {
    background: #f8fafc !important;
    color: #1e293b !important;
    border-color: #94a3b8 !important;
}
/* /Components/Pages/ItemMaster.razor.rz.scp.css */
/* Isolated styles for ItemMaster component */

.items-page[b-nko8st2mgj] {
    min-height: 100vh;
    background: transparent !important;
}

.items-shell[b-nko8st2mgj] {
    max-width: 1320px;
    margin: 0 auto;
}

.items-content[b-nko8st2mgj] {
    width: min(1240px, 100%);
    margin: 0 auto;
    text-align: center;
}

.premium-header-card[b-nko8st2mgj] {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-radius: 16px !important;
    padding: 1.25rem 2rem !important;
    color: #1e1b4b !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem !important;
    /* Slightly below the top of the page */
}

.header-card-left[b-nko8st2mgj] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-card-icon[b-nko8st2mgj] {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

.header-card-icon svg[b-nko8st2mgj] {
    stroke: #2563eb !important;
}

.header-card-text[b-nko8st2mgj] {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.header-card-heading[b-nko8st2mgj] {
    color: #0f172a !important;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
}

.header-card-subheading[b-nko8st2mgj] {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b !important;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.status-dot[b-nko8st2mgj] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    margin-right: 6px;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
}

.header-card-right[b-nko8st2mgj] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.items-search-wrap[b-nko8st2mgj] {
    position: relative;
    display: flex;
    align-items: center;
}

.items-search[b-nko8st2mgj] {
    width: 220px;
    height: 38px !important;
    border-radius: 20px !important;
    /* Oval capsule search bar */
    border: 1px solid #cbd5e1 !important;
    padding-left: 2.4rem !important;
    font-size: 0.8rem !important;
    background: #ffffff !important;
    color: #1e293b !important;
    box-shadow: none !important;
    transition: all 0.25s ease !important;
}

.items-search:focus[b-nko8st2mgj] {
    outline: none !important;
    width: 280px !important;
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

.items-search-icon[b-nko8st2mgj] {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
}

.view-toggle[b-nko8st2mgj] {
    display: inline-flex;
    border: 1px solid #cbd5e1 !important;
    border-radius: 20px !important;
    /* Oval capsule toggle */
    overflow: hidden;
    background: #f8fafc !important;
    height: 38px;
    padding: 2px;
    align-items: center;
}

.view-toggle button[b-nko8st2mgj] {
    border: 0 !important;
    background: transparent !important;
    color: #64748b !important;
    width: 36px;
    height: 32px;
    border-radius: 16px !important;
    /* Rounded active state */
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle button.active[b-nko8st2mgj] {
    background: #ffffff !important;
    color: #4f46e5 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.add-item-btn[b-nko8st2mgj] {
    height: 38px !important;
    border-radius: 20px !important;
    /* Oval capsule Add Item button */
    background: #4f46e5 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0 1.5rem !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
    transition: all 0.2s ease-in-out !important;
}

.add-item-btn:hover[b-nko8st2mgj] {
    background: #3f39c5 !important;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35) !important;
    transform: translateY(-1.5px);
}

.items-main-card[b-nko8st2mgj] {
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    overflow: hidden;
    margin-top: 1.5rem !important;
    background: #ffffff !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
}

.items-table[b-nko8st2mgj] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

table.table.items-table thead tr th[b-nko8st2mgj],
.items-table th[b-nko8st2mgj] {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    background: #ffffff !important;
    color: #8a99ad !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.74rem !important;
    letter-spacing: 0.8px !important;
    padding: 10px 16px !important;
    border-bottom: 2px solid #eef2f6 !important;
    text-align: center !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.items-table td[b-nko8st2mgj] {
    border-top: none !important;
    border-bottom: 1px solid #eef2f6 !important;
    padding: 10px 16px !important;
    font-size: 0.8rem !important;
    background: #ffffff !important;
    color: #64748b !important;
    vertical-align: middle !important;
}

.items-table td:last-child[b-nko8st2mgj] {
    white-space: nowrap !important;
    text-align: center !important;
}

.items-table tr td:first-child[b-nko8st2mgj] {
    color: #3b82f6 !important;
    /* Order No blue */
    font-weight: 700 !important;
}

.items-table tr td:nth-child(3)[b-nko8st2mgj] {
    color: #1e293b !important;
    /* Bold, dark name column */
    font-weight: 700 !important;
}

.action-btn[b-nko8st2mgj] {
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    margin: 0 2px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #94a3b8 !important;
    /* Slate grey icons */
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.action-btn:hover[b-nko8st2mgj] {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}

.action-btn i[b-nko8st2mgj] {
    font-size: 0.85rem !important;
}

.items-card-grid[b-nko8st2mgj] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
}

.item-card[b-nko8st2mgj] {
    background: #ffffff !important;
    border: 1px solid #eef2f6 !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.item-card:hover[b-nko8st2mgj] {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(37, 99, 235, 0.25) !important;
}

.item-card-head[b-nko8st2mgj] {
    background: #ffffff !important;
    color: #1e293b !important;
    padding: 0.6rem 1rem !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid rgba(99, 102, 241, 0.1) !important;
}

.card-item-code[b-nko8st2mgj] {
    color: #4b5563 !important;
    font-weight: 700 !important;
    margin-right: 6px;
}

.card-item-name[b-nko8st2mgj] {
    color: #374151 !important;
    font-weight: 700 !important;
}

.item-card-body[b-nko8st2mgj] {
    padding: 0.75rem 1rem !important;
    color: #64748b !important;
    font-size: 0.8rem !important;
}

.detail-row[b-nko8st2mgj] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0 !important;
    border-bottom: 1px solid #eef2f6 !important;
}

.detail-row:last-child[b-nko8st2mgj] {
    border-bottom: none !important;
}

.detail-row span[b-nko8st2mgj] {
    color: #8a99ad !important;
    font-weight: 700 !important;
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.detail-row strong[b-nko8st2mgj] {
    color: #000000 !important;
    font-weight: 600 !important;
}

/* Vendor Master Specific Styles */
.items-main-card .table-responsive[b-nko8st2mgj] {
    padding-right: 0 !important;
    overflow-x: auto !important;
    max-height: 550px !important;
    overflow-y: auto !important;
}

.items-table[b-nko8st2mgj] {
    width: 100% !important;
}

.items-table th[b-nko8st2mgj] {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    background: #ffffff !important;
    color: #8a99ad !important;
    white-space: nowrap !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    padding: 10px 16px !important;
    border-bottom: 2px solid rgba(0, 0, 0, 0.04) !important;
}

.items-table td[b-nko8st2mgj] {
    white-space: normal !important;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.8rem !important;
    padding: 10px 16px !important;
}

/* Premium Modal Styles for Vendor */
.modal-overlay[b-nko8st2mgj] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.modal-card[b-nko8st2mgj] {
    border-radius: 24px !important;
    border: none !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-header-bar[b-nko8st2mgj] {
    background: #fff !important;
    color: #333 !important;
    padding: 24px 32px !important;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-left[b-nko8st2mgj] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-badge[b-nko8st2mgj] {
    background: var(--sidebar-bg);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.modal-title[b-nko8st2mgj] {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
}

.modal-subtitle[b-nko8st2mgj] {
    font-size: 0.85rem;
    color: #64748b;
}

.btn-close-modal[b-nko8st2mgj] {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}

.btn-close-modal:hover[b-nko8st2mgj] {
    background: #e2e8f0;
    color: #1e293b;
}

.modal-inner[b-nko8st2mgj] {
    padding: 16px 32px !important;
    background: #fff;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.modal-inner[b-nko8st2mgj]  form {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.modal-inner[b-nko8st2mgj]  .modal-scroll-area {
    overflow-y: auto !important;
    flex: 1;
    padding-right: 8px;
    min-height: 0;
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e1 #f8fafc !important;
}

.modal-scroll-area[b-nko8st2mgj]::-webkit-scrollbar,
.modal-inner[b-nko8st2mgj]  .modal-scroll-area::-webkit-scrollbar {
    width: 5px !important;
}

.modal-scroll-area[b-nko8st2mgj]::-webkit-scrollbar-track,
.modal-inner[b-nko8st2mgj]  .modal-scroll-area::-webkit-scrollbar-track {
    background: #f8fafc !important;
    border-radius: 4px !important;
}

.modal-scroll-area[b-nko8st2mgj]::-webkit-scrollbar-thumb,
.modal-inner[b-nko8st2mgj]  .modal-scroll-area::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 4px !important;
}

.modal-scroll-area[b-nko8st2mgj]::-webkit-scrollbar-thumb:hover,
.modal-inner[b-nko8st2mgj]  .modal-scroll-area::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

.form-section-header[b-nko8st2mgj] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    margin-top: 4px;
}

.form-section-icon[b-nko8st2mgj] {
    background: var(--sidebar-bg);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.form-section-title[b-nko8st2mgj] {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #4f46e5;
}

.form-grid[b-nko8st2mgj] {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.col-prefix[b-nko8st2mgj] {
    grid-column: span 3;
}

.form-grid > *[b-nko8st2mgj],
.form-grid > [class*="col-"][b-nko8st2mgj],
.form-grid .field-group[b-nko8st2mgj],
.col-prefix[b-nko8st2mgj],
.col-main[b-nko8st2mgj],
.col-1[b-nko8st2mgj], .col-2[b-nko8st2mgj], .col-3[b-nko8st2mgj], .col-4[b-nko8st2mgj], .col-5[b-nko8st2mgj], .col-6[b-nko8st2mgj],
.col-7[b-nko8st2mgj], .col-8[b-nko8st2mgj], .col-9[b-nko8st2mgj], .col-10[b-nko8st2mgj], .col-11[b-nko8st2mgj], .col-12[b-nko8st2mgj] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    box-sizing: border-box !important;
}

.col-prefix[b-nko8st2mgj] {
    grid-column: span 3 !important;
}

.col-main[b-nko8st2mgj] {
    grid-column: span 9 !important;
}

.col-1[b-nko8st2mgj] {
    grid-column: span 1 !important;
}

.col-2[b-nko8st2mgj] {
    grid-column: span 2 !important;
}

.col-3[b-nko8st2mgj] {
    grid-column: span 3 !important;
}

.col-4[b-nko8st2mgj] {
    grid-column: span 4 !important;
}

.col-5[b-nko8st2mgj] {
    grid-column: span 5 !important;
}

.col-6[b-nko8st2mgj] {
    grid-column: span 6 !important;
}

.col-7[b-nko8st2mgj] {
    grid-column: span 7 !important;
}

.col-8[b-nko8st2mgj] {
    grid-column: span 8 !important;
}

.col-9[b-nko8st2mgj] {
    grid-column: span 9 !important;
}

.col-10[b-nko8st2mgj] {
    grid-column: span 10 !important;
}

.col-11[b-nko8st2mgj] {
    grid-column: span 11 !important;
}

.col-12[b-nko8st2mgj] {
    grid-column: span 12 !important;
}

.field-group[b-nko8st2mgj] {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.field-label[b-nko8st2mgj] {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 2px;
}

.field-label.required[b-nko8st2mgj]::after {
    content: " *";
    color: #ef4444;
}

.premium-input[b-nko8st2mgj] {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 0.88rem !important;
    color: #4b5563 !important;
    transition: all 0.2s !important;
    height: 38px !important;
    box-sizing: border-box !important;
}

.premium-input[b-nko8st2mgj]::placeholder {
    color: #cbd5e1 !important;
    opacity: 1 !important;
}

.premium-input:focus[b-nko8st2mgj] {
    background: #fff !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1) !important;
    outline: none !important;
}

.modal-footer-actions[b-nko8st2mgj] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.btn-delete-text[b-nko8st2mgj] {
    color: #ef4444;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-delete-text:hover[b-nko8st2mgj] {
    background: #fef2f2;
}

.btn-save-premium[b-nko8st2mgj] {
    background: #1c9f5f;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(28, 159, 95, 0.3);
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-save-premium:hover[b-nko8st2mgj] {
    background: #168a52;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(28, 159, 95, 0.4);
}

.btn-save-premium:active[b-nko8st2mgj] {
    transform: translateY(0);
}

.btn-save-premium:disabled[b-nko8st2mgj] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Custom Overrides for Segmented Controls inside Item Master Modal */
.premium-segmented-control-joined[b-nko8st2mgj] {
    height: 38px !important;
    border-radius: 8px !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
}

.premium-segmented-control-joined .segment-btn-joined[b-nko8st2mgj] {
    height: 100% !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Quick Add Button & Quick Modals */
.field-label-row[b-nko8st2mgj] {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 2px !important;
    height: 20px !important;
}

.btn-quick-add-mini[b-nko8st2mgj] {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    background: #4f46e5 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-size: 0.72rem !important;
    line-height: 1 !important;
    padding: 0 !important;
    box-shadow: 0 1px 3px rgba(79, 70, 229, 0.25) !important;
}

.btn-quick-add-mini:hover[b-nko8st2mgj] {
    background: #3730a3 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.35) !important;
}

.btn-quick-add-mini:active[b-nko8st2mgj] {
    transform: scale(0.95) !important;
}

.btn-quick-add-mini i[b-nko8st2mgj] {
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-quick-add[b-nko8st2mgj] {
    width: 36px !important;
    height: 38px !important;
    min-width: 36px !important;
    background: #4f46e5 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-size: 0.85rem !important;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25) !important;
    flex-shrink: 0 !important;
}

.btn-quick-add:hover[b-nko8st2mgj] {
    background: #4338ca !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.35) !important;
}

.btn-quick-add:active[b-nko8st2mgj] {
    transform: translateY(0) !important;
}

.quick-modal-overlay[b-nko8st2mgj] {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(15, 23, 42, 0.7) !important;
    backdrop-filter: blur(5px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2050 !important;
}

/* Special Symbols styling */
.symbols-grid[b-nko8st2mgj] {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 6px 0 !important;
}

.symbol-btn[b-nko8st2mgj] {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    min-width: 38px !important;
    height: 38px !important;
    padding: 0 8px !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
}

.symbol-btn:hover[b-nko8st2mgj] {
    background: #4f46e5 !important;
    color: #ffffff !important;
    border-color: #4f46e5 !important;
    transform: translateY(-2px) scale(1.08) !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
}

.symbol-btn:active[b-nko8st2mgj] {
    transform: translateY(0) scale(0.98) !important;
}

/* ─── Excel Import Panel & Upload Elements (Matching Opening Stock) ─── */
.btn-import-excel[b-nko8st2mgj] {
    height: 38px;
    background: #ffffff !important;
    border: 1.5px solid #86efac !important;
    color: #15803d !important;
    border-radius: 10px !important;
    padding: 0 1rem !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    cursor: pointer !important;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.08) !important;
    transition: all 0.2s ease-in-out !important;
}

.btn-import-excel:hover[b-nko8st2mgj] {
    background: #f0fdf4 !important;
    border-color: #22c55e !important;
    color: #166534 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.18) !important;
}

.btn-header-template[b-nko8st2mgj] {
    background: #ffffff !important;
    color: #4f46e5 !important;
    border: 1px solid rgba(37, 99, 235, 0.25) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
    height: 36px;
    border-radius: 10px;
    padding: 0 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.btn-header-template:hover:not(:disabled)[b-nko8st2mgj] {
    background: #f5f3ff !important;
    border-color: #4f46e5 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

.glass-panel-card[b-nko8st2mgj] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    transition: all 0.25s ease;
    text-align: left;
}

.panel-header-strip[b-nko8st2mgj] {
    padding: 0.9rem 1.5rem;
    background: linear-gradient(to right, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-header-title[b-nko8st2mgj] {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    letter-spacing: -0.2px;
}

.panel-header-title i[b-nko8st2mgj] {
    color: #4f46e5;
    font-size: 1.1rem;
}

.panel-header-badge[b-nko8st2mgj] {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
}

.panel-body-area[b-nko8st2mgj] {
    padding: 1.5rem;
}

.upload-form-wrapper[b-nko8st2mgj] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    align-items: stretch;
}

@media (max-width: 992px) {
    .upload-form-wrapper[b-nko8st2mgj] {
        grid-template-columns: 1fr;
    }
}

.upload-params-col[b-nko8st2mgj] {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group-custom[b-nko8st2mgj] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.form-label-custom[b-nko8st2mgj] {
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.form-label-custom .req-star[b-nko8st2mgj] {
    color: #ef4444;
    font-weight: 900;
}

.form-label-custom .hint-badge[b-nko8st2mgj] {
    font-size: 0.68rem;
    font-weight: 500;
    color: #64748b;
    margin-left: auto;
}

.custom-switch-card[b-nko8st2mgj] {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    cursor: pointer;
}

.custom-switch-card:hover[b-nko8st2mgj] {
    border-color: #cbd5e1;
}

.custom-switch-card.active[b-nko8st2mgj] {
    background: #f0fdf4;
    border-color: #86efac;
}

.switch-text-wrap[b-nko8st2mgj] {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
}

.switch-title[b-nko8st2mgj] {
    font-size: 0.84rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
}

.switch-desc[b-nko8st2mgj] {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.35;
}

.info-guidance-card[b-nko8st2mgj] {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    text-align: left;
}

.info-guidance-head[b-nko8st2mgj] {
    font-size: 0.78rem;
    font-weight: 700;
    color: #4f46e5;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.info-guidance-list[b-nko8st2mgj] {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.73rem;
    color: #64748b;
    line-height: 1.45;
}

.info-guidance-list li[b-nko8st2mgj] {
    margin-bottom: 3px;
}

.info-guidance-list li:last-child[b-nko8st2mgj] {
    margin-bottom: 0;
}

.dropzone-container[b-nko8st2mgj] {
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    padding: 1.75rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 190px;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
}

.dropzone-container:hover[b-nko8st2mgj], .dropzone-container.has-file[b-nko8st2mgj] {
    border-color: #4f46e5;
    background: #f5f3ff;
}

.dropzone-icon[b-nko8st2mgj] {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    font-size: 1.5rem;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.dropzone-text-main[b-nko8st2mgj] {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 3px;
}

.dropzone-text-sub[b-nko8st2mgj] {
    font-size: 0.74rem;
    color: #64748b;
    margin-bottom: 12px;
}

.btn-browse-file[b-nko8st2mgj] {
    background: #4f46e5;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.2);
    display: inline-flex;
    align-items: center;
}

.btn-browse-file:hover[b-nko8st2mgj] {
    background: #4338ca;
}

.file-selected-badge-box[b-nko8st2mgj] {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #86efac;
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
}

.file-info-left[b-nko8st2mgj] {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    overflow: hidden;
}

.file-info-icon[b-nko8st2mgj] {
    font-size: 1.7rem;
    color: #10b981;
    flex-shrink: 0;
}

.file-info-meta[b-nko8st2mgj] {
    overflow: hidden;
}

.file-info-title[b-nko8st2mgj] {
    font-size: 0.86rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.file-info-size[b-nko8st2mgj] {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 2px;
    display: flex;
    align-items: center;
}

.btn-remove-file[b-nko8st2mgj] {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-remove-file:hover[b-nko8st2mgj] {
    background: #ef4444;
    color: #ffffff;
}

.btn-upload-submit[b-nko8st2mgj] {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
    transition: all 0.25s ease !important;
    margin-top: 1.25rem;
}

.btn-upload-submit:hover:not(:disabled)[b-nko8st2mgj] {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
    transform: translateY(-1.5px);
}

.btn-upload-submit:disabled[b-nko8st2mgj] {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
}

.stat-summary-grid[b-nko8st2mgj] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 992px) {
    .stat-summary-grid[b-nko8st2mgj] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .stat-summary-grid[b-nko8st2mgj] {
        grid-template-columns: 1fr;
    }
}

.stat-metric-card[b-nko8st2mgj] {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.stat-metric-card:hover[b-nko8st2mgj] {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.stat-icon-wrap[b-nko8st2mgj] {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-info-wrap[b-nko8st2mgj] {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.stat-val[b-nko8st2mgj] {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
    color: #1e293b;
}

.stat-lbl[b-nko8st2mgj] {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
    margin-top: 3px;
}

.stat-card-total .stat-icon-wrap[b-nko8st2mgj] {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}
.stat-card-total .stat-val[b-nko8st2mgj] {
    color: #1e40af;
}

.stat-card-inserted .stat-icon-wrap[b-nko8st2mgj] {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}
.stat-card-inserted .stat-val[b-nko8st2mgj] {
    color: #15803d;
}

.stat-card-updated .stat-icon-wrap[b-nko8st2mgj] {
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
}
.stat-card-updated .stat-val[b-nko8st2mgj] {
    color: #3730a3;
}

.stat-card-skipped .stat-icon-wrap[b-nko8st2mgj] {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}
.stat-card-skipped .stat-val[b-nko8st2mgj] {
    color: #b45309;
}

.banner-alert-box[b-nko8st2mgj] {
    border-radius: 14px;
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 1.25rem;
    text-align: left;
}

.banner-alert-success[b-nko8st2mgj] {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #14532d;
}

.banner-alert-warning[b-nko8st2mgj] {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #78350f;
}

.banner-alert-error[b-nko8st2mgj] {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #7f1d1d;
}

.banner-icon[b-nko8st2mgj] {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.banner-content[b-nko8st2mgj] {
    flex: 1;
}

.banner-title[b-nko8st2mgj] {
    font-size: 0.92rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.banner-text[b-nko8st2mgj] {
    font-size: 0.82rem;
    line-height: 1.4;
    margin: 0;
}

.ignored-columns-wrap[b-nko8st2mgj] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.ignored-col-pill[b-nko8st2mgj] {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}

.error-table-card[b-nko8st2mgj] {
    background: #ffffff;
    border: 1px solid #fca5a5;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.error-table-header[b-nko8st2mgj] {
    background: #fee2e2;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #fecaca;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.error-table-title[b-nko8st2mgj] {
    font-size: 0.88rem;
    font-weight: 800;
    color: #991b1b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-download-skipped[b-nko8st2mgj] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #ffffff;
    color: #15803d;
    border: 1.5px solid #86efac;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.btn-download-skipped:hover:not(:disabled)[b-nko8st2mgj] {
    background: #f0fdf4;
    border-color: #22c55e;
    color: #166534;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(34, 197, 94, 0.2);
}

.btn-download-skipped:disabled[b-nko8st2mgj] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
/* /Components/Pages/LabSettingPage.razor.rz.scp.css */
/* ==========================================================================
   GENERAL SETTINGS — MODERN OBSIDIAN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scrollable Tabs)
   ========================================================================== */

/* ── 1. Page Root & Layout Wrapper ─────────────────────────── */
.gs-page-root[b-ddnutr8fdo] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.gs-top-bar[b-ddnutr8fdo] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.gs-title-block[b-ddnutr8fdo] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gs-title-icon-wrap[b-ddnutr8fdo] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gs-title-icon-wrap .material-symbols-outlined[b-ddnutr8fdo] {
    font-size: 20px;
}

.gs-breadcrumbs[b-ddnutr8fdo] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.gs-breadcrumb-link[b-ddnutr8fdo] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.gs-breadcrumb-link:hover[b-ddnutr8fdo] {
    color: #2563eb;
}

.gs-breadcrumb-sep[b-ddnutr8fdo] {
    font-size: 11px;
}

.gs-page-title[b-ddnutr8fdo] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gs-badge-status[b-ddnutr8fdo] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gs-live-dot[b-ddnutr8fdo] {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.gs-top-actions[b-ddnutr8fdo] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gs-branch-picker[b-ddnutr8fdo] {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 10px;
    height: 32px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.gs-branch-picker-select[b-ddnutr8fdo] {
    border: none;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    color: #1e40af;
    outline: none;
    cursor: pointer;
    max-width: 280px;
}

.gs-btn-reset[b-ddnutr8fdo] {
    height: 32px;
    padding: 0 12px;
    border-radius: 6px;
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.gs-btn-reset:hover:not(:disabled)[b-ddnutr8fdo] {
    background: #fecaca;
    border-color: #f87171;
}

.gs-btn-reset:disabled[b-ddnutr8fdo] {
    opacity: 0.5;
    cursor: not-allowed;
}

.gs-btn-primary[b-ddnutr8fdo] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.gs-btn-primary:hover[b-ddnutr8fdo] {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(15, 23, 42, 0.12);
}

/* ── 3. Segmented Navigation Tabs ───────────────────────────── */
.gs-tabs-bar[b-ddnutr8fdo] {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 3px 4px;
    flex-shrink: 0;
    overflow-x: auto;
}

.gs-tab-btn[b-ddnutr8fdo] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 6px;
    border: none;
    background: transparent;
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    user-select: none;
}

.gs-tab-btn .material-symbols-outlined[b-ddnutr8fdo] {
    font-size: 16px;
}

.gs-tab-btn:hover[b-ddnutr8fdo] {
    color: #0f172a;
    background: #f8fafc;
}

.gs-tab-btn.active[b-ddnutr8fdo] {
    background: #0f172a;
    color: #ffffff;
    font-weight: 700;
}

/* ── 4. Tab Content Container (Single Viewport Inner Scroll) ─── */
.gs-tab-content[b-ddnutr8fdo] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
}

.gs-grid-3col[b-ddnutr8fdo] {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 10px;
    align-items: start;
}

.gs-grid-2col[b-ddnutr8fdo] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: start;
}

.gs-grid-full[b-ddnutr8fdo] {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

/* ── 5. Panel Cards ─────────────────────────────────────────── */
.gs-panel-card[b-ddnutr8fdo] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 12px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.gs-panel-title[b-ddnutr8fdo] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f1f5f9;
}

.gs-panel-title .material-symbols-outlined[b-ddnutr8fdo] {
    font-size: 18px;
    color: #2563eb;
}

.gs-panel-title h3[b-ddnutr8fdo] {
    margin: 0;
    font-size: 12.5px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.gs-form-group[b-ddnutr8fdo] {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.gs-field-label[b-ddnutr8fdo] {
    font-size: 10.5px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.gs-input[b-ddnutr8fdo] {
    width: 100%;
    height: 32px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 9px;
    font-size: 12px;
    color: #1e293b;
    background: #ffffff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gs-input:focus[b-ddnutr8fdo] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.gs-textarea[b-ddnutr8fdo] {
    width: 100%;
    height: 48px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 5px 9px;
    font-size: 12px;
    color: #1e293b;
    background: #ffffff;
    outline: none;
    resize: none;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gs-textarea:focus[b-ddnutr8fdo] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

/* ── 6. Checkboxes & Toggle Items ───────────────────────────── */
.gs-checkbox-stack[b-ddnutr8fdo] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gs-checkbox-item[b-ddnutr8fdo] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 11.5px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.gs-checkbox-item:hover[b-ddnutr8fdo] {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.gs-checkbox-item input[type="checkbox"][b-ddnutr8fdo] {
    accent-color: #2563eb;
    width: 15px;
    height: 15px;
    cursor: pointer;
    margin: 0;
}

.gs-checkbox-grid[b-ddnutr8fdo] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 6px;
}

/* ── 7. Signees Subcard ─────────────────────────────────────── */
.gs-signee-card[b-ddnutr8fdo] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gs-signee-header[b-ddnutr8fdo] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 4px;
    border-bottom: 1px dashed #cbd5e1;
}

.gs-divider[b-ddnutr8fdo] {
    height: 1px;
    background: #f1f5f9;
    margin: 2px 0;
    border: none;
}
/* /Components/Pages/LC_FixedTypeMaster.razor.rz.scp.css */
/* ==========================================================================
   FIXED TYPE MASTER — MODERN OBSIDIAN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Main Layout Wrapper ────────────────────── */
.ftm-page-root[b-elk7o80duo] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.ftm-top-bar[b-elk7o80duo] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.ftm-title-block[b-elk7o80duo] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ftm-title-icon-wrap[b-elk7o80duo] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ftm-title-icon-wrap .material-symbols-outlined[b-elk7o80duo] {
    font-size: 20px;
}

.ftm-breadcrumbs[b-elk7o80duo] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.ftm-breadcrumb-link[b-elk7o80duo] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.ftm-breadcrumb-link:hover[b-elk7o80duo] {
    color: #2563eb;
}

.ftm-breadcrumb-sep[b-elk7o80duo] {
    font-size: 11px;
}

.ftm-page-title[b-elk7o80duo] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ftm-badge-directory[b-elk7o80duo] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ftm-live-dot[b-elk7o80duo] {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.ftm-top-actions[b-elk7o80duo] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ftm-search-wrap[b-elk7o80duo] {
    position: relative;
    width: 220px;
}

.ftm-search-wrap .material-symbols-outlined[b-elk7o80duo] {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.ftm-search-input[b-elk7o80duo] {
    width: 100%;
    height: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 10px 0 32px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ftm-search-input:focus[b-elk7o80duo] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.ftm-btn-primary[b-elk7o80duo] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.ftm-btn-primary:hover[b-elk7o80duo] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

.ftm-btn-icon[b-elk7o80duo] {
    font-size: 16px;
}

/* ── 3. KPI / Stat Cards Grid ───────────────────────────────── */
.ftm-stats-grid[b-elk7o80duo] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex-shrink: 0;
}

.ftm-stat-card[b-elk7o80duo] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 7px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.ftm-stat-card[b-elk7o80duo]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.ftm-card-total[b-elk7o80duo]::before    { background: #3b82f6; }
.ftm-card-values[b-elk7o80duo]::before   { background: #6366f1; }
.ftm-card-current[b-elk7o80duo]::before  { background: #10b981; }
.ftm-card-active[b-elk7o80duo]::before   { background: #f59e0b; }

.ftm-stat-card:hover[b-elk7o80duo] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.ftm-stat-top[b-elk7o80duo] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ftm-stat-icon-wrap[b-elk7o80duo] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ftm-stat-icon-wrap .material-symbols-outlined[b-elk7o80duo] {
    font-size: 15px;
}

.ftm-stat-tag[b-elk7o80duo] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.ftm-stat-tag .material-symbols-outlined[b-elk7o80duo] {
    font-size: 13px;
}

.ftm-card-total .ftm-stat-icon-wrap[b-elk7o80duo]    { background: #eff6ff; color: #3b82f6; }
.ftm-card-total .ftm-stat-tag[b-elk7o80duo]          { background: #eff6ff; color: #2563eb; }

.ftm-card-values .ftm-stat-icon-wrap[b-elk7o80duo]   { background: #eef2ff; color: #6366f1; }
.ftm-card-values .ftm-stat-tag[b-elk7o80duo]         { background: #eef2ff; color: #4f46e5; }

.ftm-card-current .ftm-stat-icon-wrap[b-elk7o80duo]  { background: #ecfdf5; color: #059669; }
.ftm-card-current .ftm-stat-tag[b-elk7o80duo]        { background: #ecfdf5; color: #047857; }

.ftm-card-active .ftm-stat-icon-wrap[b-elk7o80duo]   { background: #fffbeb; color: #d97706; }
.ftm-card-active .ftm-stat-tag[b-elk7o80duo]         { background: #fffbeb; color: #b45309; }

.ftm-stat-mid[b-elk7o80duo] {
    margin-top: 1px;
}

.ftm-stat-label[b-elk7o80duo] {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ftm-stat-bottom[b-elk7o80duo] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.ftm-stat-val[b-elk7o80duo] {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.ftm-stat-subtext[b-elk7o80duo] {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── 4. Split Master-Detail Workspace ───────────────────────── */
.ftm-workspace-grid[b-elk7o80duo] {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 10px;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

/* Left Panel: Types Directory */
.ftm-panel-types[b-elk7o80duo] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.ftm-panel-header[b-elk7o80duo] {
    padding: 10px 14px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ftm-panel-title[b-elk7o80duo] {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.ftm-panel-badge[b-elk7o80duo] {
    font-size: 10px;
    font-weight: 700;
    background: #f1f5f9;
    color: #475569;
    padding: 2px 7px;
    border-radius: 10px;
}

.ftm-types-list[b-elk7o80duo] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ftm-type-item[b-elk7o80duo] {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.15s ease;
}

.ftm-type-item:hover[b-elk7o80duo] {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.ftm-type-item.active[b-elk7o80duo] {
    background: #eff6ff;
    border-color: #bfdbfe;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
}

.ftm-type-item-info[b-elk7o80duo] {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.ftm-type-item-avatar[b-elk7o80duo] {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.ftm-type-item.active .ftm-type-item-avatar[b-elk7o80duo] {
    background: #2563eb;
    color: #ffffff;
}

.ftm-type-item-name[b-elk7o80duo] {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ftm-type-item.active .ftm-type-item-name[b-elk7o80duo] {
    color: #1d4ed8;
    font-weight: 700;
}

.ftm-type-item-badge[b-elk7o80duo] {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #64748b;
    flex-shrink: 0;
}

.ftm-type-item.active .ftm-type-item-badge[b-elk7o80duo] {
    background: #dbeafe;
    color: #1e40af;
}

/* Right Panel: Values Editor */
.ftm-panel-editor[b-elk7o80duo] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.ftm-editor-header[b-elk7o80duo] {
    padding: 8px 14px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 8px;
}

.ftm-editor-title-wrap[b-elk7o80duo] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ftm-editor-title[b-elk7o80duo] {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.ftm-editor-actions[b-elk7o80duo] {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ftm-btn-secondary[b-elk7o80duo] {
    height: 28px;
    padding: 0 10px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ftm-btn-secondary:hover[b-elk7o80duo] {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

/* Table Area */
.ftm-table-container[b-elk7o80duo] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

.ftm-table[b-elk7o80duo] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    text-align: left;
}

.ftm-thead[b-elk7o80duo] {
    position: sticky;
    top: 0;
    z-index: 10;
}

.ftm-th[b-elk7o80duo] {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 12px;
    border-bottom: 1px solid #e2e8f0;
    border-top: none;
    white-space: nowrap;
    user-select: none;
}

.ftm-tbody tr[b-elk7o80duo] {
    background-color: #ffffff;
    transition: background-color 0.12s ease;
}

.ftm-tbody tr:hover[b-elk7o80duo] {
    background-color: #f8fafc;
}

.ftm-tbody tr.selected-row[b-elk7o80duo] {
    background-color: #eff6ff;
}

.ftm-td[b-elk7o80duo] {
    padding: 5px 10px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
    font-size: 12px;
}

.ftm-input-inline[b-elk7o80duo] {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    color: #1e293b;
    background: transparent;
    outline: none;
    box-sizing: border-box;
    transition: all 0.15s ease;
}

.ftm-input-inline:focus[b-elk7o80duo] {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.ftm-input-inline.center[b-elk7o80duo] {
    text-align: center;
    font-family: monospace;
    font-weight: 700;
}

.ftm-input-add-row[b-elk7o80duo] {
    width: 100%;
    border: 1px dashed #cbd5e1;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    color: #1e293b;
    background: #f8fafc;
    outline: none;
    box-sizing: border-box;
    transition: all 0.15s ease;
}

.ftm-input-add-row:focus[b-elk7o80duo] {
    background: #ffffff;
    border-color: #2563eb;
    border-style: solid;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.ftm-btn-row-del[b-elk7o80duo] {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #fecaca;
    background: #fff5f5;
    color: #dc2626;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.ftm-btn-row-del:hover[b-elk7o80duo] {
    background: #fee2e2;
    border-color: #f87171;
}

.ftm-btn-row-del .material-symbols-outlined[b-elk7o80duo] {
    font-size: 14px;
}

/* Footer of Editor */
.ftm-editor-footer[b-elk7o80duo] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.ftm-btn-delete-cat[b-elk7o80duo] {
    height: 30px;
    padding: 0 12px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #fca5a5;
    color: #dc2626;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ftm-btn-delete-cat:hover:not(:disabled)[b-elk7o80duo] {
    background: #fee2e2;
}

.ftm-btn-delete-cat:disabled[b-elk7o80duo] {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #e2e8f0;
    color: #94a3b8;
}

.ftm-btn-save-values[b-elk7o80duo] {
    height: 30px;
    padding: 0 16px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ftm-btn-save-values:hover:not(:disabled)[b-elk7o80duo] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

.ftm-btn-save-values:disabled[b-elk7o80duo] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Empty State */
.ftm-empty-editor[b-elk7o80duo] {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #94a3b8;
    padding: 24px;
}

.ftm-empty-icon[b-elk7o80duo] {
    font-size: 40px;
    color: #cbd5e1;
}

.ftm-empty-text[b-elk7o80duo] {
    font-size: 13px;
    font-weight: 500;
}

/* ── 5. Modal Backdrop & Form Card ──────────────────────────── */
.ftm-modal-overlay[b-elk7o80duo] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 16px;
    animation: ftmFadeIn-b-elk7o80duo 0.15s ease-out;
}

@keyframes ftmFadeIn-b-elk7o80duo {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ftm-modal-card[b-elk7o80duo] {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 440px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: ftmSlideUp-b-elk7o80duo 0.15s ease-out;
}

@keyframes ftmSlideUp-b-elk7o80duo {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ftm-modal-header[b-elk7o80duo] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.ftm-modal-title[b-elk7o80duo] {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.ftm-modal-close-btn[b-elk7o80duo] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

.ftm-modal-close-btn:hover[b-elk7o80duo] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.ftm-modal-body[b-elk7o80duo] {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ftm-form-group[b-elk7o80duo] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ftm-form-label[b-elk7o80duo] {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
}

.ftm-form-input[b-elk7o80duo] {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ftm-form-input:focus[b-elk7o80duo] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.ftm-modal-footer[b-elk7o80duo] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 16px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.ftm-btn-cancel[b-elk7o80duo] {
    height: 30px;
    padding: 0 12px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
}

.ftm-btn-submit[b-elk7o80duo] {
    height: 30px;
    padding: 0 16px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ftm-btn-submit:hover[b-elk7o80duo] {
    background: #1e293b !important;
}
/* /Components/Pages/LC_TestMaster.razor.rz.scp.css */
/* ==========================================================================
   TEST MASTER — SINGLE VIEWPORT MODERN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   Theme Palette: Dark Navy (#0f172a, #1e293b), Slate (#f8fafc, #f1f5f9, #64748b), Accent Blue (#2563eb, #eff6ff)
   ========================================================================== */

/* ── 1. Page Root & Main Layout Wrapper ────────────────────── */
.tm-elite-container[b-ozdacafi5x] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    width: 100%;
}

.tm-elite-container form[b-ozdacafi5x] {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
}

.tm-list-view[b-ozdacafi5x] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    padding: 10px 14px;
    gap: 8px;
    box-sizing: border-box;
}

/* ── 2. Top Header & Navigation Bar (List View) ────────────── */
.tm-top-bar[b-ozdacafi5x] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.tm-title-block[b-ozdacafi5x] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tm-title-icon-wrap[b-ozdacafi5x] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #dbeafe;
}

.tm-title-icon-wrap .material-symbols-outlined[b-ozdacafi5x] {
    font-size: 20px;
}

.tm-breadcrumbs[b-ozdacafi5x] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.tm-breadcrumb-link[b-ozdacafi5x] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.tm-breadcrumb-sep[b-ozdacafi5x] {
    font-size: 11px;
}

.tm-page-title[b-ozdacafi5x] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tm-badge-directory[b-ozdacafi5x] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tm-live-dot[b-ozdacafi5x] {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.tm-top-actions[b-ozdacafi5x] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tm-filter-select[b-ozdacafi5x] {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    outline: none;
    height: 32px;
    cursor: pointer;
    min-width: 170px;
    transition: all 0.15s ease;
}

.tm-filter-select:focus[b-ozdacafi5x] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.tm-search-wrap[b-ozdacafi5x] {
    position: relative;
    width: 240px;
}

.tm-search-wrap .material-symbols-outlined[b-ozdacafi5x] {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.tm-search-input[b-ozdacafi5x] {
    width: 100%;
    height: 32px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 10px 0 32px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tm-search-input:focus[b-ozdacafi5x] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.tm-btn-primary[b-ozdacafi5x] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.tm-btn-primary:hover[b-ozdacafi5x] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

.tm-btn-icon[b-ozdacafi5x] {
    font-size: 16px;
}

/* ── 3. KPI / Stat Cards Grid ───────────────────────────────── */
.tm-stats-grid[b-ozdacafi5x] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex-shrink: 0;
}

.tm-stat-card[b-ozdacafi5x] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 7px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.tm-stat-card[b-ozdacafi5x]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.tm-card-total[b-ozdacafi5x]::before    { background: #2563eb; }
.tm-card-active[b-ozdacafi5x]::before   { background: #10b981; }
.tm-card-dept[b-ozdacafi5x]::before     { background: #6366f1; }
.tm-card-filtered[b-ozdacafi5x]::before { background: #f59e0b; }

.tm-stat-card:hover[b-ozdacafi5x] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.tm-stat-top[b-ozdacafi5x] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tm-stat-icon-wrap[b-ozdacafi5x] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tm-stat-icon-wrap .material-symbols-outlined[b-ozdacafi5x] {
    font-size: 15px;
}

.tm-stat-tag[b-ozdacafi5x] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.tm-stat-tag .material-symbols-outlined[b-ozdacafi5x] {
    font-size: 13px;
}

.tm-card-total .tm-stat-icon-wrap[b-ozdacafi5x]    { background: #eff6ff; color: #2563eb; }
.tm-card-total .tm-stat-tag[b-ozdacafi5x]          { background: #eff6ff; color: #2563eb; }

.tm-card-active .tm-stat-icon-wrap[b-ozdacafi5x]   { background: #ecfdf5; color: #059669; }
.tm-card-active .tm-stat-tag[b-ozdacafi5x]         { background: #ecfdf5; color: #047857; }

.tm-card-dept .tm-stat-icon-wrap[b-ozdacafi5x]     { background: #eef2ff; color: #6366f1; }
.tm-card-dept .tm-stat-tag[b-ozdacafi5x]           { background: #eef2ff; color: #4f46e5; }

.tm-card-filtered .tm-stat-icon-wrap[b-ozdacafi5x] { background: #fffbeb; color: #d97706; }
.tm-card-filtered .tm-stat-tag[b-ozdacafi5x]       { background: #fffbeb; color: #b45309; }

.tm-stat-mid[b-ozdacafi5x] {
    margin-top: 1px;
}

.tm-stat-label[b-ozdacafi5x] {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tm-stat-bottom[b-ozdacafi5x] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.tm-stat-val[b-ozdacafi5x] {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.tm-stat-subtext[b-ozdacafi5x] {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── 4. Table Card Container (List View Table) ─────────────── */
.tm-table-card[b-ozdacafi5x] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.tm-table-container[b-ozdacafi5x] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

.tm-table[b-ozdacafi5x] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    text-align: left;
}

/* Light Slate Header */
.tm-thead[b-ozdacafi5x] {
    position: sticky;
    top: 0;
    z-index: 10;
}

.tm-th[b-ozdacafi5x] {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 9px 12px;
    border-bottom: 1px solid #e2e8f0;
    border-top: none;
    white-space: nowrap;
    user-select: none;
}

.tm-tbody tr[b-ozdacafi5x] {
    background-color: #ffffff;
    transition: background-color 0.12s ease;
}

.tm-tbody tr:hover[b-ozdacafi5x] {
    background-color: #f8fafc;
}

.tm-td[b-ozdacafi5x] {
    padding: 6px 10px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
    font-size: 12px;
}

.td-order-no[b-ozdacafi5x] {
    font-weight: 700;
    color: #64748b;
    font-size: 11px;
}

.tm-badge-code[b-ozdacafi5x] {
    display: inline-block;
    padding: 2px 7px;
    background: #eff6ff;
    color: #2563eb;
    font-family: monospace;
    font-weight: 800;
    font-size: 11.5px;
    border-radius: 5px;
    border: 1px solid #bfdbfe;
}

.tm-group-badge[b-ozdacafi5x] {
    display: inline-block;
    padding: 2px 8px;
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    font-size: 11px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tm-inline-input[b-ozdacafi5x] {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 3px 6px;
    font-family: inherit;
    font-size: 12px;
    color: inherit;
    box-sizing: border-box;
    transition: all 0.15s ease-in-out;
}

.tm-inline-input:hover[b-ozdacafi5x] {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.tm-inline-input:focus[b-ozdacafi5x] {
    background: #ffffff;
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

/* Action Buttons */
.tm-actions-cell[b-ozdacafi5x] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.tm-action-btn[b-ozdacafi5x] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.12s ease;
    padding: 0;
}

.tm-action-btn .material-symbols-outlined[b-ozdacafi5x] {
    font-size: 15px;
}

.tm-btn-edit:hover[b-ozdacafi5x] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.tm-btn-download:hover[b-ozdacafi5x] {
    background: #f5f3ff;
    color: #6366f1;
    border-color: #c7d2fe;
}

.tm-btn-delete:hover[b-ozdacafi5x] {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

/* ── 5. Table Footer & Pagination ─────────────────────────── */
.tm-table-footer[b-ozdacafi5x] {
    padding: 6px 14px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 10px;
    background: #ffffff;
    font-size: 12px;
}

.tm-page-info[b-ozdacafi5x] {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.tm-page-info strong[b-ozdacafi5x] {
    color: #0f172a;
    font-weight: 700;
}

.tm-pagination-wrap[b-ozdacafi5x] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tm-page-btn[b-ozdacafi5x] {
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tm-page-btn:hover:not(:disabled)[b-ozdacafi5x] {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.tm-page-btn:disabled[b-ozdacafi5x] {
    opacity: 0.4;
    cursor: not-allowed;
}

.tm-page-indicator[b-ozdacafi5x] {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    padding: 0 8px;
}

/* ── 6. Test Construction / Editor Header ─────────────────── */
.tm-elite-header[b-ozdacafi5x] {
    background: #ffffff;
    padding: 8px 16px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    flex-shrink: 0;
}

.tm-header-title-box[b-ozdacafi5x] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tm-btn-back[b-ozdacafi5x] {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.tm-btn-back:hover[b-ozdacafi5x] {
    background: #2563eb;
    color: #ffffff;
}

.tm-header-title[b-ozdacafi5x] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

.tm-header-subtitle[b-ozdacafi5x] {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.tm-header-actions[b-ozdacafi5x] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tm-btn-collapse[b-ozdacafi5x] {
    height: 32px;
    padding: 0 12px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.15s;
}

.tm-btn-collapse:hover[b-ozdacafi5x] {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.tm-btn-delete[b-ozdacafi5x] {
    height: 32px;
    padding: 0 12px;
    border-radius: 6px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #e11d48;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.15s;
}

.tm-btn-delete:hover[b-ozdacafi5x] {
    background: #ffe4e6;
}

.tm-btn-outline[b-ozdacafi5x] {
    height: 32px;
    padding: 0 12px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.15s;
}

.tm-btn-outline:hover[b-ozdacafi5x] {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.tm-btn-save[b-ozdacafi5x] {
    height: 32px;
    padding: 0 16px;
    border-radius: 6px;
    background: #0f172a !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15);
}

.tm-btn-save:hover[b-ozdacafi5x] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(15, 23, 42, 0.2);
}

/* ── 7. Editor Workspace & Details Cards ──────────────────── */
.tm-elite-content[b-ozdacafi5x] {
    flex: 1 1 0;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    overflow-y: auto !important;
    overflow-x: hidden;
}

/* Hero Summary Bar (Collapsed) */
.tm-hero-summary-bar[b-ozdacafi5x] {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    flex-shrink: 0;
}

.tm-hero-left[b-ozdacafi5x], .tm-hero-right[b-ozdacafi5x] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tm-hero-title-group[b-ozdacafi5x] {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tm-hero-title[b-ozdacafi5x] {
    font-weight: 800;
    font-size: 13px;
    color: #0f172a;
}

.tm-hero-code-pill[b-ozdacafi5x] {
    padding: 1px 6px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 700;
    font-family: monospace;
    border: 1px solid #bfdbfe;
}

.tm-hero-chip[b-ozdacafi5x] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.tm-hero-chip.price[b-ozdacafi5x] {
    background: #ecfdf5;
    color: #059669;
    font-weight: 700;
    border-color: #a7f3d0;
}

.tm-hero-chip.status-active[b-ozdacafi5x] {
    background: #ecfdf5;
    color: #059669;
    font-weight: 600;
    border-color: #a7f3d0;
}

.tm-hero-btn-edit[b-ozdacafi5x] {
    height: 26px;
    padding: 0 10px;
    border-radius: 5px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s;
}

.tm-hero-btn-edit:hover[b-ozdacafi5x] {
    background: #2563eb;
    color: #ffffff;
}

/* Expanded Top Details Cards */
.tm-elite-grid-top[b-ozdacafi5x] {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 8px;
    flex-shrink: 0;
}

.tm-white-card[b-ozdacafi5x] {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.tm-form-row[b-ozdacafi5x] {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

.tm-form-row:last-child[b-ozdacafi5x] {
    margin-bottom: 0;
}

.tm-field-label[b-ozdacafi5x] {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tm-input-icon-box[b-ozdacafi5x] {
    position: relative;
    width: 100%;
}

.tm-input-icon-box .material-symbols-outlined[b-ozdacafi5x] {
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #64748b;
    pointer-events: none;
}

.tm-input-icon-box .tm-icon-purple[b-ozdacafi5x] { color: #2563eb; }
.tm-input-icon-box .tm-icon-blue[b-ozdacafi5x]   { color: #2563eb; }
.tm-input-icon-box .tm-icon-gray[b-ozdacafi5x]   { color: #64748b; }

.tm-input-field[b-ozdacafi5x] {
    width: 100%;
    height: 30px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 8px;
    font-size: 11.5px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: all 0.15s;
    font-family: inherit;
}

.tm-input-field.has-icon[b-ozdacafi5x] {
    padding-left: 28px;
}

.tm-input-field:focus[b-ozdacafi5x] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

/* Reporting Time */
.tm-reporting-row[b-ozdacafi5x] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tm-time-box[b-ozdacafi5x] {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    height: 30px;
    padding: 0 4px;
}

.tm-time-box input[b-ozdacafi5x] {
    width: 22px;
    border: none;
    outline: none;
    font-size: 11px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    background: transparent;
    padding: 0;
}

.tm-time-box span[b-ozdacafi5x] {
    font-size: 9px;
    font-weight: 700;
    color: #94a3b8;
    margin-left: 1px;
}

.tm-time-pill[b-ozdacafi5x] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
    height: 30px;
    box-sizing: border-box;
    white-space: nowrap;
}

/* Options Checkboxes */
.tm-options-checkbox-row[b-ozdacafi5x] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.tm-chk[b-ozdacafi5x] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    user-select: none;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 3px 8px;
    height: 28px;
    box-sizing: border-box;
    transition: all 0.12s;
}

.tm-chk:hover[b-ozdacafi5x] {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.tm-chk.active[b-ozdacafi5x] {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
    font-weight: 700;
}

.tm-chk .box[b-ozdacafi5x] {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1.5px solid #94a3b8;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 10px;
}

.tm-chk.active .box[b-ozdacafi5x] {
    background: #2563eb;
    border-color: #2563eb;
}

/* ── 8. Split Workspace (Sub Tests & Normal Values) ────────── */
.tm-workspace-split[b-ozdacafi5x] {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 8px;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

/* Left Column: Sub Tests Card */
.tm-left-subtests-container[b-ozdacafi5x] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.tm-subtests-card[b-ozdacafi5x] {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 8px;
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.tm-subtests-header[b-ozdacafi5x] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid #f1f5f9;
}

.tm-subtests-title[b-ozdacafi5x] {
    font-size: 11px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tm-subtests-pill[b-ozdacafi5x] {
    font-size: 10px;
    font-weight: 700;
    color: #2563eb;
    background: #eff6ff;
    padding: 1px 6px;
    border-radius: 10px;
    border: 1px solid #dbeafe;
}

.tm-subtests-search-row[b-ozdacafi5x] {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}

.tm-search-input-wrap[b-ozdacafi5x] {
    position: relative;
    flex: 1;
}

.tm-search-input-wrap .tm-search-icon[b-ozdacafi5x] {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #94a3b8;
    pointer-events: none;
}

.tm-subtest-search-input[b-ozdacafi5x] {
    width: 100%;
    height: 28px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 6px 0 24px;
    font-size: 11px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
}

.tm-subtest-search-input:focus[b-ozdacafi5x] {
    background: #ffffff;
    border-color: #2563eb;
}

.tm-subtest-add-btn[b-ozdacafi5x] {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #0f172a;
    border: none;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.tm-subtest-add-btn:hover[b-ozdacafi5x] {
    background: #1e293b;
}

.tm-subtests-list[b-ozdacafi5x] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 2px;
}

.tm-subtest-card[b-ozdacafi5x] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 5px 8px;
    cursor: pointer;
    transition: all 0.12s;
    user-select: none;
}

.tm-subtest-card:hover[b-ozdacafi5x] {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.tm-subtest-card.active[b-ozdacafi5x] {
    background: #eff6ff;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px #2563eb;
}

.tm-subtest-card-top[b-ozdacafi5x] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tm-drag-dots[b-ozdacafi5x] {
    font-size: 13px;
    color: #94a3b8;
    cursor: grab;
}

.tm-subtest-index[b-ozdacafi5x] {
    font-size: 10.5px;
    font-weight: 800;
    color: #2563eb;
    font-family: monospace;
}

.tm-subtest-name[b-ozdacafi5x] {
    font-size: 11.5px;
    font-weight: 700;
    color: #0f172a;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tm-subtest-del[b-ozdacafi5x] {
    font-size: 14px;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.12s;
}

.tm-subtest-del:hover[b-ozdacafi5x] {
    color: #dc2626;
}

.tm-subtest-card-badges[b-ozdacafi5x] {
    display: flex;
    gap: 4px;
    margin-top: 3px;
    padding-left: 18px;
}

.tm-badge-type[b-ozdacafi5x] {
    font-size: 9px;
    font-weight: 700;
    background: #e2e8f0;
    color: #475569;
    padding: 1px 5px;
    border-radius: 3px;
}

.tm-badge-unit[b-ozdacafi5x] {
    font-size: 9px;
    font-weight: 600;
    background: #eff6ff;
    color: #2563eb;
    padding: 1px 5px;
    border-radius: 3px;
    border: 1px solid #dbeafe;
}

.tm-subtest-more-dots[b-ozdacafi5x] {
    text-align: center;
    color: #cbd5e1;
    font-size: 12px;
    line-height: 8px;
    padding: 2px 0;
}

.tm-btn-add-parameter[b-ozdacafi5x] {
    width: 100%;
    height: 28px;
    border-radius: 6px;
    background: #ffffff;
    border: 1.5px dashed #93c5fd;
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.12s;
    margin-top: 4px;
}

.tm-btn-add-parameter:hover[b-ozdacafi5x] {
    background: #eff6ff;
    border-color: #2563eb;
}

/* Test Footer Message Drawer */
.tm-footer-message-box[b-ozdacafi5x] {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 6px 8px;
    position: relative;
    flex-shrink: 0;
}

.tm-footer-msg-title[b-ozdacafi5x] {
    font-size: 9.5px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 3px;
}

.tm-footer-msg-ta[b-ozdacafi5x] {
    width: 100%;
    height: 38px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    padding: 4px 6px;
    font-size: 11px;
    color: #1e293b;
    outline: none;
    resize: none;
    box-sizing: border-box;
    font-family: inherit;
}

.tm-footer-msg-ta:focus[b-ozdacafi5x] {
    border-color: #2563eb;
}

.tm-char-count[b-ozdacafi5x] {
    font-size: 9px;
    color: #94a3b8;
    position: absolute;
    right: 12px;
    bottom: 8px;
}

/* ── 9. Right Column: Normal Values & Settings Card ───────── */
.tm-elite-red-card[b-ozdacafi5x] {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

/* Slate / Navy Header Bar */
.tm-elite-red-header[b-ozdacafi5x] {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #ffffff;
    padding: 6px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
    border-radius: 8px 8px 0 0;
}

.tm-card-header-title[b-ozdacafi5x] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 12.5px;
}

/* Header Machine & Specimen Pills */
.tm-header-pill[b-ozdacafi5x] {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.14);
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    height: 30px;
    box-sizing: border-box;
}

.tm-header-pill-label[b-ozdacafi5x] {
    font-size: 10.5px;
    white-space: nowrap;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.04em;
}

.tm-header-select[b-ozdacafi5x] {
    background: #ffffff;
    border: none;
    border-radius: 4px;
    color: #0f172a;
    font-size: 11.5px;
    font-weight: 600;
    padding: 2px 6px;
    outline: none;
    cursor: pointer;
    height: 24px;
}

.tm-header-icon-btn[b-ozdacafi5x] {
    padding: 0 6px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 11px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.15s;
}

.tm-header-icon-btn:hover[b-ozdacafi5x] {
    background: rgba(255, 255, 255, 0.4);
}

.tm-header-btn-update[b-ozdacafi5x] {
    background: #10b981;
    color: #ffffff;
    border: none;
    padding: 0 14px;
    height: 30px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.18);
    box-sizing: border-box;
    transition: all 0.15s ease;
}

.tm-header-btn-update:hover[b-ozdacafi5x] {
    background: #059669;
    transform: translateY(-1px);
}

.normal-values-body[b-ozdacafi5x] {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

/* Tabs */
.tm-elite-tab-row[b-ozdacafi5x] {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
    padding: 0 4px;
    gap: 4px;
}

.tm-elite-tab[b-ozdacafi5x] {
    padding: 8px 16px;
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
    user-select: none;
}

.tm-elite-tab:hover[b-ozdacafi5x] {
    color: #0f172a;
    background: #f1f5f9;
}

.tm-elite-tab.active[b-ozdacafi5x] {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background: #ffffff;
    font-weight: 800;
}

.tm-tab-white-body[b-ozdacafi5x] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    padding: 10px 14px;
    background: #ffffff;
}

/* Inner 2-column Settings */
.tm-settings-2col[b-ozdacafi5x] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.tm-inner-card[b-ozdacafi5x] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
}

.tm-inner-card-title[b-ozdacafi5x] {
    font-size: 10.5px;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e2e8f0;
}

.tm-inner-field[b-ozdacafi5x] {
    margin-bottom: 6px;
}

.tm-inner-field:last-child[b-ozdacafi5x] {
    margin-bottom: 0;
}

/* Addon Buttons for Methods / Units */
.tm-btn-addon[b-ozdacafi5x] {
    height: 30px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
    transition: all 0.15s ease;
}

.tm-btn-addon:hover[b-ozdacafi5x] {
    background: #2563eb;
    color: #ffffff;
}

/* Normal Range & Critical Values Card */
.tm-crit-lbl-orange[b-ozdacafi5x] {
    font-size: 10.5px;
    font-weight: 800;
    color: #ea580c;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.tm-crit-select-orange[b-ozdacafi5x], .tm-crit-input-orange[b-ozdacafi5x] {
    height: 30px;
    border: 1px solid #fed7aa;
    border-radius: 6px;
    padding: 0 8px;
    font-size: 11.5px;
    font-weight: 700;
    background: #fff7ed;
    color: #c2410c;
    outline: none;
    box-sizing: border-box;
}

.tm-crit-select-orange:focus[b-ozdacafi5x], .tm-crit-input-orange:focus[b-ozdacafi5x] {
    border-color: #f97316;
    background: #ffffff;
}

.tm-crit-lbl-red[b-ozdacafi5x] {
    font-size: 10.5px;
    font-weight: 800;
    color: #dc2626;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.tm-crit-select[b-ozdacafi5x], .tm-crit-input[b-ozdacafi5x], .tm-crit-select-red[b-ozdacafi5x], .tm-crit-input-red[b-ozdacafi5x] {
    height: 30px;
    border: 1px solid #fecdd3;
    border-radius: 6px;
    padding: 0 8px;
    font-size: 11.5px;
    font-weight: 700;
    background: #fff1f2;
    color: #991b1b;
    outline: none;
    box-sizing: border-box;
}

.tm-crit-select:focus[b-ozdacafi5x], .tm-crit-input:focus[b-ozdacafi5x], .tm-crit-select-red:focus[b-ozdacafi5x], .tm-crit-input-red:focus[b-ozdacafi5x] {
    border-color: #f43f5e;
    background: #ffffff;
}

/* Age Matrix Table */
.tm-age-table[b-ozdacafi5x] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 11.5px;
}

.tm-age-table thead[b-ozdacafi5x] {
    position: sticky;
    top: 0;
    z-index: 10;
}

.tm-age-table th[b-ozdacafi5x] {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 10px;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: none !important;
    box-shadow: 0 1px 0 #e2e8f0;
    white-space: nowrap;
}

.tm-age-table td[b-ozdacafi5x] {
    padding: 4px 6px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.tm-age-cell-input[b-ozdacafi5x] {
    width: 100%;
    height: 28px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    padding: 0 6px;
    font-size: 11px;
    background: #ffffff;
    box-sizing: border-box;
    outline: none;
}

.tm-age-cell-input:focus[b-ozdacafi5x] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

/* Matrix Table */
.tm-matrix-section-title[b-ozdacafi5x] {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.tm-matrix-alert-box[b-ozdacafi5x] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0369a1;
    font-size: 11.5px;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.tm-matrix-action-bar[b-ozdacafi5x] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.tm-btn-add-mapping[b-ozdacafi5x] {
    height: 30px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 11.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
}

.tm-btn-add-mapping:hover[b-ozdacafi5x] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(15, 23, 42, 0.18);
}

.tm-matrix-table-container[b-ozdacafi5x] {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    max-height: 330px;
    overflow-y: auto !important;
    overflow-x: auto !important;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.tm-specimen-matrix-table[b-ozdacafi5x] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    font-size: 12px;
}

.tm-specimen-matrix-table thead[b-ozdacafi5x] {
    position: sticky;
    top: 0;
    z-index: 10;
}

.tm-specimen-matrix-table th[b-ozdacafi5x] {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 10.5px;
    font-weight: 700;
    padding: 8px 10px;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: none !important;
    box-shadow: 0 1px 0 #e2e8f0;
    white-space: nowrap;
}

.tm-specimen-matrix-table td[b-ozdacafi5x] {
    padding: 6px 10px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.tm-toggle-switch[b-ozdacafi5x] {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 18px;
}

.tm-toggle-switch input[b-ozdacafi5x] {
    opacity: 0;
    width: 0;
    height: 0;
}

.tm-toggle-slider[b-ozdacafi5x] {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .2s;
    border-radius: 18px;
}

.tm-toggle-slider[b-ozdacafi5x]:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .2s;
    border-radius: 50%;
}

.tm-toggle-switch input:checked + .tm-toggle-slider[b-ozdacafi5x] {
    background-color: #10b981;
}

.tm-toggle-switch input:checked + .tm-toggle-slider[b-ozdacafi5x]:before {
    transform: translateX(14px);
}

.tm-btn-delete-row[b-ozdacafi5x] {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    border: 1px solid #fecdd3;
    background: #fff1f2;
    color: #e11d48;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.tm-btn-delete-row:hover[b-ozdacafi5x] {
    background: #ffe4e6;
}

/* ── 10. Modals & Search Dropdowns ────────────────────────── */
.tm-modal-overlay[b-ozdacafi5x] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 16px;
}

.tm-modal-content[b-ozdacafi5x] {
    background: #ffffff;
    border-radius: 10px;
    padding: 18px;
    max-width: 1100px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
}

.tm-modal-header[b-ozdacafi5x] {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tm-modal-close[b-ozdacafi5x] {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #94a3b8;
}

.tm-modal-close:hover[b-ozdacafi5x] {
    color: #0f172a;
}

.master-search-dropdown[b-ozdacafi5x] {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    top: 100% !important;
    bottom: auto !important;
    margin-top: 4px !important;
    margin-bottom: 0 !important;
}

.master-search-item[b-ozdacafi5x] {
    padding: 6px 10px;
    font-size: 11.5px;
    cursor: pointer;
    transition: background 0.12s;
}

.master-search-item:hover[b-ozdacafi5x], .master-search-item.active[b-ozdacafi5x] {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

/* ── 11. Utilities & Animation ────────────────────────────── */
.tm-empty-state-cell[b-ozdacafi5x] {
    padding: 40px 20px !important;
    text-align: center !important;
    vertical-align: middle !important;
}

.tm-empty-state[b-ozdacafi5x] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
}

.tm-empty-icon[b-ozdacafi5x] {
    font-size: 32px !important;
    color: #cbd5e1;
}

.tm-spinner-icon[b-ozdacafi5x] {
    font-size: 28px !important;
    color: #2563eb;
    animation: tmSpin-b-ozdacafi5x 1s linear infinite;
}

@keyframes tmSpin-b-ozdacafi5x {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.tm-spin-animate[b-ozdacafi5x] {
    animation: tmSpin-b-ozdacafi5x 1s linear infinite;
}

.cursor-pointer[b-ozdacafi5x] { cursor: pointer; }
.font-12[b-ozdacafi5x] { font-size: 12px; }
.font-13[b-ozdacafi5x] { font-size: 13px; }
.font-14[b-ozdacafi5x] { font-size: 14px; }
.font-15[b-ozdacafi5x] { font-size: 15px; }
.font-16[b-ozdacafi5x] { font-size: 16px; }
.font-18[b-ozdacafi5x] { font-size: 18px; }
.font-20[b-ozdacafi5x] { font-size: 20px; }
.text-indigo-600[b-ozdacafi5x] { color: #4f46e5; }
.text-red-500[b-ozdacafi5x] { color: #ef4444; }
.display-flex[b-ozdacafi5x] { display: flex; }
.align-center[b-ozdacafi5x] { align-items: center; }
.justify-between[b-ozdacafi5x] { justify-content: space-between; }
.gap-4[b-ozdacafi5x] { gap: 4px; }
.gap-6[b-ozdacafi5x] { gap: 6px; }
.gap-8[b-ozdacafi5x] { gap: 8px; }
.gap-12[b-ozdacafi5x] { gap: 12px; }
.gap-16[b-ozdacafi5x] { gap: 16px; }
.gap-20[b-ozdacafi5x] { gap: 20px; }
.flex-1[b-ozdacafi5x] { flex: 1; }
.mt-2px[b-ozdacafi5x] { margin-top: 2px; }
.mt-4[b-ozdacafi5x] { margin-top: 4px; }
.mt-6[b-ozdacafi5x] { margin-top: 6px; }
.mt-8[b-ozdacafi5x] { margin-top: 8px; }
.mt-12[b-ozdacafi5x] { margin-top: 12px; }
.mt-16[b-ozdacafi5x] { margin-top: 16px; }
.mb-6[b-ozdacafi5x] { margin-bottom: 6px; }
.mb-8[b-ozdacafi5x] { margin-bottom: 8px; }
.mb-12[b-ozdacafi5x] { margin-bottom: 12px; }
.mb-16[b-ozdacafi5x] { margin-bottom: 16px; }
.ml-auto[b-ozdacafi5x] { margin-left: auto; }
.ml-12[b-ozdacafi5x] { margin-left: 12px; }
.text-right[b-ozdacafi5x] { text-align: right; }
.text-center[b-ozdacafi5x] { text-align: center; }

/* ── 11. Custom Sleek Scrollbars ──────────────────────────── */
.tm-matrix-table-container[b-ozdacafi5x]::-webkit-scrollbar,
.tm-subtests-list[b-ozdacafi5x]::-webkit-scrollbar,
.tm-tab-white-body[b-ozdacafi5x]::-webkit-scrollbar,
.lc-overflow-auto[b-ozdacafi5x]::-webkit-scrollbar,
.tm-table-container[b-ozdacafi5x]::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.tm-matrix-table-container[b-ozdacafi5x]::-webkit-scrollbar-track,
.tm-subtests-list[b-ozdacafi5x]::-webkit-scrollbar-track,
.tm-tab-white-body[b-ozdacafi5x]::-webkit-scrollbar-track,
.lc-overflow-auto[b-ozdacafi5x]::-webkit-scrollbar-track,
.tm-table-container[b-ozdacafi5x]::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.tm-matrix-table-container[b-ozdacafi5x]::-webkit-scrollbar-thumb,
.tm-subtests-list[b-ozdacafi5x]::-webkit-scrollbar-thumb,
.tm-tab-white-body[b-ozdacafi5x]::-webkit-scrollbar-thumb,
.lc-overflow-auto[b-ozdacafi5x]::-webkit-scrollbar-thumb,
.tm-table-container[b-ozdacafi5x]::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.tm-matrix-table-container[b-ozdacafi5x]::-webkit-scrollbar-thumb:hover,
.tm-subtests-list[b-ozdacafi5x]::-webkit-scrollbar-thumb:hover,
.tm-tab-white-body[b-ozdacafi5x]::-webkit-scrollbar-thumb:hover,
.lc-overflow-auto[b-ozdacafi5x]::-webkit-scrollbar-thumb:hover,
.tm-table-container[b-ozdacafi5x]::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ── 12. Formula Builder & Calculator Dialpad ─────────────── */
.tm-dialpad-grid[b-ozdacafi5x] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}

.tm-dialpad-grid-6col[b-ozdacafi5x] {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
}

.tm-dialpad-fn[b-ozdacafi5x] {
    background: #f5f3ff;
    border-color: #ddd6fe;
    color: #6d28d9;
    font-size: 11px;
    font-weight: 700;
}

.tm-dialpad-fn:hover[b-ozdacafi5x] {
    background: #ede9fe;
    border-color: #c4b5fd;
    color: #5b21b6;
}

.tm-dialpad-btn[b-ozdacafi5x] {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: all 0.12s ease;
    border: 1.5px solid transparent;
    outline: none;
}

.tm-dialpad-btn:active[b-ozdacafi5x] {
    transform: scale(0.95);
}

.tm-dialpad-num[b-ozdacafi5x] {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #1e293b;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tm-dialpad-num:hover[b-ozdacafi5x] {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.tm-dialpad-operator[b-ozdacafi5x] {
    background: #e0e7ff;
    border-color: #c7d2fe;
    color: #3730a3;
    font-size: 18px;
    font-weight: 800;
}

.tm-dialpad-operator:hover[b-ozdacafi5x] {
    background: #c7d2fe;
    border-color: #a5b4fc;
    color: #1e1b4b;
}

.tm-dialpad-danger[b-ozdacafi5x] {
    background: #fee2e2;
    border-color: #fecaca;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tm-dialpad-danger:hover[b-ozdacafi5x] {
    background: #fecaca;
    border-color: #f87171;
    color: #991b1b;
}

.tm-dialpad-action[b-ozdacafi5x] {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

.tm-dialpad-action:hover[b-ozdacafi5x] {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #1e293b;
}
/* /Components/Pages/LedgerGroup.razor.rz.scp.css */
/* Isolated styles for LedgerGroup component */

.items-page[b-uwxwgfh39a] {
    min-height: 100vh;
    background: transparent !important;
}

.items-shell[b-uwxwgfh39a] {
    max-width: 1320px;
    margin: 0 auto;
}

.items-content[b-uwxwgfh39a] {
    width: min(1240px, 100%);
    margin: 0 auto;
    text-align: center;
}

.premium-header-card[b-uwxwgfh39a] {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-radius: 16px !important;
    padding: 1.25rem 2rem !important;
    color: #1e1b4b !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem !important;
}

.header-card-left[b-uwxwgfh39a] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-card-icon[b-uwxwgfh39a] {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

.header-card-icon svg[b-uwxwgfh39a] {
    stroke: #2563eb !important;
}

.header-card-text[b-uwxwgfh39a] {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.header-card-heading[b-uwxwgfh39a] {
    color: #0f172a !important;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
}

.header-card-subheading[b-uwxwgfh39a] {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b !important;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.status-dot[b-uwxwgfh39a] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    margin-right: 6px;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
}

.header-card-right[b-uwxwgfh39a] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.items-search-wrap[b-uwxwgfh39a] {
    position: relative;
    display: flex;
    align-items: center;
}

.items-search[b-uwxwgfh39a] {
    width: 220px;
    height: 38px !important;
    border-radius: 20px !important;
    border: 1px solid #cbd5e1 !important;
    padding-left: 2.4rem !important;
    font-size: 0.8rem !important;
    background: #ffffff !important;
    color: #1e293b !important;
    box-shadow: none !important;
    transition: all 0.25s ease !important;
}

.items-search:focus[b-uwxwgfh39a] {
    outline: none !important;
    width: 280px !important;
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

.items-search-icon[b-uwxwgfh39a] {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
}

.view-toggle[b-uwxwgfh39a] {
    display: inline-flex;
    border: 1px solid #cbd5e1 !important;
    border-radius: 20px !important;
    overflow: hidden;
    background: #f8fafc !important;
    height: 38px;
    padding: 2px;
    align-items: center;
}

.view-toggle button[b-uwxwgfh39a] {
    border: 0 !important;
    background: transparent !important;
    color: #64748b !important;
    width: 36px;
    height: 32px;
    border-radius: 16px !important;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle button.active[b-uwxwgfh39a] {
    background: #ffffff !important;
    color: #4f46e5 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.add-item-btn[b-uwxwgfh39a] {
    height: 38px !important;
    border-radius: 20px !important;
    background: #4f46e5 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0 1.5rem !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
    transition: all 0.2s ease-in-out !important;
}

.add-item-btn:hover[b-uwxwgfh39a] {
    background: #3f39c5 !important;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35) !important;
    transform: translateY(-1.5px);
}

.items-main-card[b-uwxwgfh39a] {
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    overflow: hidden;
    margin-top: 1.5rem !important;
    background: #ffffff !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
}

.items-table[b-uwxwgfh39a] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

table.table.items-table thead tr th[b-uwxwgfh39a],
.items-table th[b-uwxwgfh39a] {
    background: #ffffff !important;
    color: #8a99ad !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.74rem !important;
    letter-spacing: 0.8px !important;
    padding: 10px 16px !important;
    border-bottom: 2px solid #eef2f6 !important;
    text-align: center !important;
}

.items-table td[b-uwxwgfh39a] {
    border-top: none !important;
    border-bottom: 1px solid #eef2f6 !important;
    padding: 10px 16px !important;
    font-size: 0.8rem !important;
    background: #ffffff !important;
    color: #64748b !important;
    vertical-align: middle !important;
    text-align: center !important;
}

.items-table td:last-child[b-uwxwgfh39a] {
    white-space: nowrap !important;
    text-align: center !important;
}

.items-table tr td:first-child[b-uwxwgfh39a] {
    color: #3b82f6 !important;
    font-weight: 700 !important;
}

.items-table tr td:nth-child(2)[b-uwxwgfh39a],
.items-table tr td:nth-child(3)[b-uwxwgfh39a] {
    color: #1e293b !important;
    font-weight: 700 !important;
}

.action-btn[b-uwxwgfh39a] {
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    margin: 0 2px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #94a3b8 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.action-btn:hover[b-uwxwgfh39a] {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}

.action-btn i[b-uwxwgfh39a] {
    font-size: 0.85rem !important;
}

.items-card-grid[b-uwxwgfh39a] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
}

.item-card[b-uwxwgfh39a] {
    background: #ffffff !important;
    border: 1px solid #eef2f6 !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.item-card:hover[b-uwxwgfh39a] {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(37, 99, 235, 0.25) !important;
}

.item-card-head[b-uwxwgfh39a] {
    background: #ffffff !important;
    color: #1e293b !important;
    padding: 0.6rem 1rem !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid rgba(99, 102, 241, 0.1) !important;
}

.card-item-code[b-uwxwgfh39a] {
    color: #4b5563 !important;
    font-weight: 700 !important;
    margin-right: 6px;
}

.card-item-name[b-uwxwgfh39a] {
    color: #374151 !important;
    font-weight: 700 !important;
}

.item-card-body[b-uwxwgfh39a] {
    padding: 0.75rem 1rem !important;
    color: #64748b !important;
    font-size: 0.8rem !important;
}

.detail-row[b-uwxwgfh39a] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0 !important;
    border-bottom: 1px solid #eef2f6 !important;
}

.detail-row:last-child[b-uwxwgfh39a] {
    border-bottom: none !important;
}

.detail-row span[b-uwxwgfh39a] {
    color: #8a99ad !important;
    font-weight: 700 !important;
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.detail-row strong[b-uwxwgfh39a] {
    color: #000000 !important;
    font-weight: 600 !important;
}

/* Modal styles */
.modal-overlay[b-uwxwgfh39a] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.modal-card[b-uwxwgfh39a] {
    border-radius: 20px !important;
    border: none !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-header-bar[b-uwxwgfh39a] {
    background: #fff !important;
    color: #333 !important;
    padding: 16px 32px !important;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-left[b-uwxwgfh39a] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-title[b-uwxwgfh39a] {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    color: #000000 !important;
    letter-spacing: -0.2px;
}

.btn-close-modal[b-uwxwgfh39a] {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}

.btn-close-modal:hover[b-uwxwgfh39a] {
    background: #e2e8f0;
    color: #1e293b;
}

.modal-inner[b-uwxwgfh39a] {
    padding: 16px 32px !important;
    background: #fff;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.modal-inner[b-uwxwgfh39a]  form {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.modal-inner[b-uwxwgfh39a]  .modal-scroll-area {
    overflow-y: auto !important;
    flex: 1;
    padding-right: 8px;
    min-height: 0;
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e1 #f8fafc !important;
}

.modal-scroll-area[b-uwxwgfh39a]::-webkit-scrollbar,
.modal-inner[b-uwxwgfh39a]  .modal-scroll-area::-webkit-scrollbar {
    width: 5px !important;
}

.modal-scroll-area[b-uwxwgfh39a]::-webkit-scrollbar-track,
.modal-inner[b-uwxwgfh39a]  .modal-scroll-area::-webkit-scrollbar-track {
    background: #f8fafc !important;
    border-radius: 4px !important;
}

.modal-scroll-area[b-uwxwgfh39a]::-webkit-scrollbar-thumb,
.modal-inner[b-uwxwgfh39a]  .modal-scroll-area::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 4px !important;
}

.modal-scroll-area[b-uwxwgfh39a]::-webkit-scrollbar-thumb:hover,
.modal-inner[b-uwxwgfh39a]  .modal-scroll-area::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

.form-section-header[b-uwxwgfh39a] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    margin-top: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid #f1f5f9;
}

.form-section-title[b-uwxwgfh39a] {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #4f46e5;
}

.form-grid[b-uwxwgfh39a] {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    margin-bottom: 12px;
    row-gap: 12px;
}

.col-1[b-uwxwgfh39a] { grid-column: span 1; }
.col-2[b-uwxwgfh39a] { grid-column: span 2; }
.col-3[b-uwxwgfh39a] { grid-column: span 3; }
.col-4[b-uwxwgfh39a] { grid-column: span 4; }
.col-5[b-uwxwgfh39a] { grid-column: span 5; }
.col-6[b-uwxwgfh39a] { grid-column: span 6; }
.col-7[b-uwxwgfh39a] { grid-column: span 7; }
.col-8[b-uwxwgfh39a] { grid-column: span 8; }
.col-9[b-uwxwgfh39a] { grid-column: span 9; }
.col-10[b-uwxwgfh39a] { grid-column: span 10; }
.col-11[b-uwxwgfh39a] { grid-column: span 11; }
.col-12[b-uwxwgfh39a] { grid-column: span 12; }

.field-group[b-uwxwgfh39a] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label[b-uwxwgfh39a] {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 2px;
}

.field-label.required[b-uwxwgfh39a]::after {
    content: " *";
    color: #ef4444;
}

.premium-input[b-uwxwgfh39a] {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 0.88rem !important;
    color: #4b5563 !important;
    transition: all 0.2s !important;
    height: 38px !important;
    box-sizing: border-box !important;
}

.premium-input[b-uwxwgfh39a]::placeholder {
    color: #cbd5e1 !important;
    opacity: 1 !important;
}

.premium-input:focus[b-uwxwgfh39a] {
    background: #fff !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1) !important;
    outline: none !important;
}

.premium-segmented-control-joined[b-uwxwgfh39a] {
    height: 38px !important;
    border-radius: 8px !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
}

.premium-segmented-control-joined .segment-btn-joined[b-uwxwgfh39a] {
    height: 100% !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-save-premium[b-uwxwgfh39a] {
    background: #1c9f5f !important;
    color: white !important;
    border: none !important;
    padding: 10px 28px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(28, 159, 95, 0.3) !important;
    transition: all 0.2s !important;
    white-space: nowrap;
}

.btn-save-premium:hover[b-uwxwgfh39a] {
    background: #168a52 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(28, 159, 95, 0.4) !important;
}

/* Pagination bar */
.page-btn[b-uwxwgfh39a] {
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #64748b !important;
    border-radius: 8px !important;
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
    font-weight: 600;
    margin: 0 2px;
    transition: all 0.2s;
}

.page-btn.active[b-uwxwgfh39a] {
    background: #4f46e5 !important;
    color: #ffffff !important;
    border-color: #4f46e5 !important;
}

.page-btn:hover:not(.active):not(:disabled)[b-uwxwgfh39a] {
    background: #f8fafc !important;
    color: #1e293b !important;
}
/* /Components/Pages/LedgerType.razor.rz.scp.css */
/* Isolated styles for LedgerType component */

.items-page[b-pii2qwgbhi] {
    min-height: 100vh;
    background: transparent !important;
}

.items-shell[b-pii2qwgbhi] {
    max-width: 1320px;
    margin: 0 auto;
}

.items-content[b-pii2qwgbhi] {
    width: min(1240px, 100%);
    margin: 0 auto;
    text-align: center;
}

.premium-header-card[b-pii2qwgbhi] {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-radius: 16px !important;
    padding: 1.25rem 2rem !important;
    color: #1e1b4b !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem !important;
}

.header-card-left[b-pii2qwgbhi] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-card-icon[b-pii2qwgbhi] {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

.header-card-icon svg[b-pii2qwgbhi] {
    stroke: #2563eb !important;
}

.header-card-text[b-pii2qwgbhi] {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.header-card-heading[b-pii2qwgbhi] {
    color: #0f172a !important;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
}

.header-card-subheading[b-pii2qwgbhi] {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b !important;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.status-dot[b-pii2qwgbhi] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    margin-right: 6px;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
}

.header-card-right[b-pii2qwgbhi] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.items-search-wrap[b-pii2qwgbhi] {
    position: relative;
    display: flex;
    align-items: center;
}

.items-search[b-pii2qwgbhi] {
    width: 220px;
    height: 38px !important;
    border-radius: 20px !important;
    border: 1px solid #cbd5e1 !important;
    padding-left: 2.4rem !important;
    font-size: 0.8rem !important;
    background: #ffffff !important;
    color: #1e293b !important;
    box-shadow: none !important;
    transition: all 0.25s ease !important;
}

.items-search:focus[b-pii2qwgbhi] {
    outline: none !important;
    width: 280px !important;
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

.items-search-icon[b-pii2qwgbhi] {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
}

.view-toggle[b-pii2qwgbhi] {
    display: inline-flex;
    border: 1px solid #cbd5e1 !important;
    border-radius: 20px !important;
    overflow: hidden;
    background: #f8fafc !important;
    height: 38px;
    padding: 2px;
    align-items: center;
}

.view-toggle button[b-pii2qwgbhi] {
    border: 0 !important;
    background: transparent !important;
    color: #64748b !important;
    width: 36px;
    height: 32px;
    border-radius: 16px !important;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle button.active[b-pii2qwgbhi] {
    background: #ffffff !important;
    color: #4f46e5 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.add-item-btn[b-pii2qwgbhi] {
    height: 38px !important;
    border-radius: 20px !important;
    background: #4f46e5 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0 1.5rem !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
    transition: all 0.2s ease-in-out !important;
}

.add-item-btn:hover[b-pii2qwgbhi] {
    background: #3f39c5 !important;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35) !important;
    transform: translateY(-1.5px);
}

.items-main-card[b-pii2qwgbhi] {
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    overflow: hidden;
    margin-top: 1.5rem !important;
    background: #ffffff !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
}

.items-table[b-pii2qwgbhi] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

table.table.items-table thead tr th[b-pii2qwgbhi],
.items-table th[b-pii2qwgbhi] {
    background: #ffffff !important;
    color: #8a99ad !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.74rem !important;
    letter-spacing: 0.8px !important;
    padding: 10px 16px !important;
    border-bottom: 2px solid #eef2f6 !important;
    text-align: center !important;
}

.items-table td[b-pii2qwgbhi] {
    border-top: none !important;
    border-bottom: 1px solid #eef2f6 !important;
    padding: 10px 16px !important;
    font-size: 0.8rem !important;
    background: #ffffff !important;
    color: #64748b !important;
    vertical-align: middle !important;
    text-align: center !important;
}

.items-table td:last-child[b-pii2qwgbhi] {
    white-space: nowrap !important;
    text-align: center !important;
}

.items-table tr td:first-child[b-pii2qwgbhi] {
    color: #3b82f6 !important;
    font-weight: 700 !important;
}

.items-table tr td:nth-child(2)[b-pii2qwgbhi],
.items-table tr td:nth-child(3)[b-pii2qwgbhi] {
    color: #1e293b !important;
    font-weight: 700 !important;
}

.action-btn[b-pii2qwgbhi] {
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    margin: 0 2px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #94a3b8 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.action-btn:hover[b-pii2qwgbhi] {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}

.action-btn i[b-pii2qwgbhi] {
    font-size: 0.85rem !important;
}

.items-card-grid[b-pii2qwgbhi] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
}

.item-card[b-pii2qwgbhi] {
    background: #ffffff !important;
    border: 1px solid #eef2f6 !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.item-card:hover[b-pii2qwgbhi] {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(37, 99, 235, 0.25) !important;
}

.item-card-head[b-pii2qwgbhi] {
    background: #ffffff !important;
    color: #1e293b !important;
    padding: 0.6rem 1rem !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid rgba(99, 102, 241, 0.1) !important;
}

.card-item-code[b-pii2qwgbhi] {
    color: #4b5563 !important;
    font-weight: 700 !important;
    margin-right: 6px;
}

.card-item-name[b-pii2qwgbhi] {
    color: #374151 !important;
    font-weight: 700 !important;
}

.item-card-body[b-pii2qwgbhi] {
    padding: 0.75rem 1rem !important;
    color: #64748b !important;
    font-size: 0.8rem !important;
}

.detail-row[b-pii2qwgbhi] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0 !important;
    border-bottom: 1px solid #eef2f6 !important;
}

.detail-row:last-child[b-pii2qwgbhi] {
    border-bottom: none !important;
}

.detail-row span[b-pii2qwgbhi] {
    color: #8a99ad !important;
    font-weight: 700 !important;
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.detail-row strong[b-pii2qwgbhi] {
    color: #000000 !important;
    font-weight: 600 !important;
}

/* Modal styles */
.modal-overlay[b-pii2qwgbhi] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.modal-card[b-pii2qwgbhi] {
    border-radius: 20px !important;
    border: none !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-header-bar[b-pii2qwgbhi] {
    background: #fff !important;
    color: #333 !important;
    padding: 16px 32px !important;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-left[b-pii2qwgbhi] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-title[b-pii2qwgbhi] {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    color: #000000 !important;
    letter-spacing: -0.2px;
}

.btn-close-modal[b-pii2qwgbhi] {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}

.btn-close-modal:hover[b-pii2qwgbhi] {
    background: #e2e8f0;
    color: #1e293b;
}

.modal-inner[b-pii2qwgbhi] {
    padding: 16px 32px !important;
    background: #fff;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.modal-inner[b-pii2qwgbhi]  form {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.modal-inner[b-pii2qwgbhi]  .modal-scroll-area {
    overflow-y: auto !important;
    flex: 1;
    padding-right: 8px;
    min-height: 0;
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e1 #f8fafc !important;
}

.modal-scroll-area[b-pii2qwgbhi]::-webkit-scrollbar,
.modal-inner[b-pii2qwgbhi]  .modal-scroll-area::-webkit-scrollbar {
    width: 5px !important;
}

.modal-scroll-area[b-pii2qwgbhi]::-webkit-scrollbar-track,
.modal-inner[b-pii2qwgbhi]  .modal-scroll-area::-webkit-scrollbar-track {
    background: #f8fafc !important;
    border-radius: 4px !important;
}

.modal-scroll-area[b-pii2qwgbhi]::-webkit-scrollbar-thumb,
.modal-inner[b-pii2qwgbhi]  .modal-scroll-area::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 4px !important;
}

.modal-scroll-area[b-pii2qwgbhi]::-webkit-scrollbar-thumb:hover,
.modal-inner[b-pii2qwgbhi]  .modal-scroll-area::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

.form-section-header[b-pii2qwgbhi] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    margin-top: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid #f1f5f9;
}

.form-section-title[b-pii2qwgbhi] {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #4f46e5;
}

.form-grid[b-pii2qwgbhi] {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    margin-bottom: 12px;
    row-gap: 12px;
}

.col-1[b-pii2qwgbhi] { grid-column: span 1; }
.col-2[b-pii2qwgbhi] { grid-column: span 2; }
.col-3[b-pii2qwgbhi] { grid-column: span 3; }
.col-4[b-pii2qwgbhi] { grid-column: span 4; }
.col-5[b-pii2qwgbhi] { grid-column: span 5; }
.col-6[b-pii2qwgbhi] { grid-column: span 6; }
.col-7[b-pii2qwgbhi] { grid-column: span 7; }
.col-8[b-pii2qwgbhi] { grid-column: span 8; }
.col-9[b-pii2qwgbhi] { grid-column: span 9; }
.col-10[b-pii2qwgbhi] { grid-column: span 10; }
.col-11[b-pii2qwgbhi] { grid-column: span 11; }
.col-12[b-pii2qwgbhi] { grid-column: span 12; }

.field-group[b-pii2qwgbhi] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label[b-pii2qwgbhi] {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 2px;
}

.field-label.required[b-pii2qwgbhi]::after {
    content: " *";
    color: #ef4444;
}

.premium-input[b-pii2qwgbhi] {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 0.88rem !important;
    color: #4b5563 !important;
    transition: all 0.2s !important;
    height: 38px !important;
    box-sizing: border-box !important;
}

.premium-input[b-pii2qwgbhi]::placeholder {
    color: #cbd5e1 !important;
    opacity: 1 !important;
}

.premium-input:focus[b-pii2qwgbhi] {
    background: #fff !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1) !important;
    outline: none !important;
}

.premium-segmented-control-joined[b-pii2qwgbhi] {
    height: 38px !important;
    border-radius: 8px !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
}

.premium-segmented-control-joined .segment-btn-joined[b-pii2qwgbhi] {
    height: 100% !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-save-premium[b-pii2qwgbhi] {
    background: #1c9f5f !important;
    color: white !important;
    border: none !important;
    padding: 10px 28px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(28, 159, 95, 0.3) !important;
    transition: all 0.2s !important;
    white-space: nowrap;
}

.btn-save-premium:hover[b-pii2qwgbhi] {
    background: #168a52 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(28, 159, 95, 0.4) !important;
}

/* Pagination bar */
.page-btn[b-pii2qwgbhi] {
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #64748b !important;
    border-radius: 8px !important;
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
    font-weight: 600;
    margin: 0 2px;
    transition: all 0.2s;
}

.page-btn.active[b-pii2qwgbhi] {
    background: #4f46e5 !important;
    color: #ffffff !important;
    border-color: #4f46e5 !important;
}

.page-btn:hover:not(.active):not(:disabled)[b-pii2qwgbhi] {
    background: #f8fafc !important;
    color: #1e293b !important;
}
/* /Components/Pages/MachineMasterPage.razor.rz.scp.css */
/* ==========================================================================
   MACHINE MASTER — MODERN OBSIDIAN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Main Layout Wrapper ────────────────────── */
.mm-page-root[b-fd7hv8ds3y] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.mm-top-bar[b-fd7hv8ds3y] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.mm-title-block[b-fd7hv8ds3y] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mm-title-icon-wrap[b-fd7hv8ds3y] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mm-title-icon-wrap .material-symbols-outlined[b-fd7hv8ds3y] {
    font-size: 20px;
}

.mm-breadcrumbs[b-fd7hv8ds3y] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.mm-breadcrumb-link[b-fd7hv8ds3y] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.mm-breadcrumb-link:hover[b-fd7hv8ds3y] {
    color: #2563eb;
}

.mm-breadcrumb-sep[b-fd7hv8ds3y] {
    font-size: 11px;
}

.mm-page-title[b-fd7hv8ds3y] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mm-badge-directory[b-fd7hv8ds3y] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mm-live-dot[b-fd7hv8ds3y] {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.mm-top-actions[b-fd7hv8ds3y] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mm-search-wrap[b-fd7hv8ds3y] {
    position: relative;
    width: 240px;
}

.mm-search-wrap .material-symbols-outlined[b-fd7hv8ds3y] {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.mm-search-input[b-fd7hv8ds3y] {
    width: 100%;
    height: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 10px 0 32px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mm-search-input:focus[b-fd7hv8ds3y] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.mm-btn-primary[b-fd7hv8ds3y] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.mm-btn-primary:hover[b-fd7hv8ds3y] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

.mm-btn-icon[b-fd7hv8ds3y] {
    font-size: 16px;
}

/* ── 3. KPI / Stat Cards Grid ───────────────────────────────── */
.mm-stats-grid[b-fd7hv8ds3y] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex-shrink: 0;
}

.mm-stat-card[b-fd7hv8ds3y] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 7px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.mm-stat-card[b-fd7hv8ds3y]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.mm-card-total[b-fd7hv8ds3y]::before  { background: #3b82f6; }
.mm-card-tcp[b-fd7hv8ds3y]::before    { background: #0284c7; }
.mm-card-serial[b-fd7hv8ds3y]::before { background: #6366f1; }
.mm-card-active[b-fd7hv8ds3y]::before { background: #f59e0b; }

.mm-stat-card:hover[b-fd7hv8ds3y] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.mm-stat-top[b-fd7hv8ds3y] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mm-stat-icon-wrap[b-fd7hv8ds3y] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mm-stat-icon-wrap .material-symbols-outlined[b-fd7hv8ds3y] {
    font-size: 15px;
}

.mm-stat-tag[b-fd7hv8ds3y] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.mm-stat-tag .material-symbols-outlined[b-fd7hv8ds3y] {
    font-size: 13px;
}

.mm-card-total .mm-stat-icon-wrap[b-fd7hv8ds3y]    { background: #eff6ff; color: #3b82f6; }
.mm-card-total .mm-stat-tag[b-fd7hv8ds3y]          { background: #eff6ff; color: #2563eb; }

.mm-card-tcp .mm-stat-icon-wrap[b-fd7hv8ds3y]      { background: #f0f9ff; color: #0284c7; }
.mm-card-tcp .mm-stat-tag[b-fd7hv8ds3y]            { background: #f0f9ff; color: #0369a1; }

.mm-card-serial .mm-stat-icon-wrap[b-fd7hv8ds3y]   { background: #eef2ff; color: #6366f1; }
.mm-card-serial .mm-stat-tag[b-fd7hv8ds3y]         { background: #eef2ff; color: #4f46e5; }

.mm-card-active .mm-stat-icon-wrap[b-fd7hv8ds3y]   { background: #fffbeb; color: #d97706; }
.mm-card-active .mm-stat-tag[b-fd7hv8ds3y]         { background: #fffbeb; color: #b45309; }

.mm-stat-mid[b-fd7hv8ds3y] {
    margin-top: 1px;
}

.mm-stat-label[b-fd7hv8ds3y] {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mm-stat-bottom[b-fd7hv8ds3y] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.mm-stat-val[b-fd7hv8ds3y] {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.mm-stat-subtext[b-fd7hv8ds3y] {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── 4. Table Card Container (Single Viewport Inner Area) ─── */
.mm-table-card[b-fd7hv8ds3y] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.mm-table-container[b-fd7hv8ds3y] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

.mm-table[b-fd7hv8ds3y] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    text-align: left;
}

/* Light Slate Sticky Header */
.mm-thead[b-fd7hv8ds3y] {
    position: sticky;
    top: 0;
    z-index: 10;
}

.mm-th[b-fd7hv8ds3y] {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 9px 12px;
    border-bottom: 1px solid #e2e8f0;
    border-top: none;
    white-space: nowrap;
    user-select: none;
}

.mm-tbody tr[b-fd7hv8ds3y] {
    background-color: #ffffff;
    transition: background-color 0.12s ease;
}

.mm-tbody tr:hover[b-fd7hv8ds3y] {
    background-color: #f8fafc;
}

.mm-td[b-fd7hv8ds3y] {
    padding: 7px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
    font-size: 12px;
}

.mm-badge-code[b-fd7hv8ds3y] {
    display: inline-block;
    padding: 2px 6px;
    background: #f1f5f9;
    color: #475569;
    font-family: monospace;
    font-weight: 700;
    font-size: 11px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.mm-shortname-pill[b-fd7hv8ds3y] {
    display: inline-block;
    color: #64748b;
    font-family: monospace;
    font-weight: 600;
    font-size: 11.5px;
}

.mm-name-cell[b-fd7hv8ds3y] {
    font-weight: 700;
    color: #0f172a;
    font-size: 12px;
}

.mm-pill-mfg[b-fd7hv8ds3y] {
    display: inline-block;
    padding: 2px 8px;
    background: #f8fafc;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.mm-pill-model[b-fd7hv8ds3y] {
    display: inline-block;
    color: #64748b;
    font-size: 11.5px;
    font-weight: 500;
}

.mm-interface-pills[b-fd7hv8ds3y] {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.mm-pill-rs232[b-fd7hv8ds3y] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.mm-pill-tcp[b-fd7hv8ds3y] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 600;
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.mm-pill-file[b-fd7hv8ds3y] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 600;
    background: #ffedd5;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

/* Action Buttons */
.mm-actions-cell[b-fd7hv8ds3y] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.mm-btn-action[b-fd7hv8ds3y] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.mm-btn-action .material-symbols-outlined[b-fd7hv8ds3y] {
    font-size: 14px;
}

.mm-btn-edit:hover[b-fd7hv8ds3y] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.mm-btn-delete:hover[b-fd7hv8ds3y] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* ── 5. Modal Backdrop & Card Form ──────────────────────────── */
.mm-modal-overlay[b-fd7hv8ds3y] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 16px;
    animation: mmFadeIn-b-fd7hv8ds3y 0.15s ease-out;
}

@keyframes mmFadeIn-b-fd7hv8ds3y {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mm-modal-card[b-fd7hv8ds3y] {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 860px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: mmSlideUp-b-fd7hv8ds3y 0.15s ease-out;
}

@keyframes mmSlideUp-b-fd7hv8ds3y {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mm-modal-header[b-fd7hv8ds3y] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.mm-modal-title[b-fd7hv8ds3y] {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.mm-modal-close-btn[b-fd7hv8ds3y] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.mm-modal-close-btn:hover[b-fd7hv8ds3y] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.mm-modal-body[b-fd7hv8ds3y] {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 75vh;
    overflow-y: auto;
}

.mm-modal-columns[b-fd7hv8ds3y] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
}

.mm-section-title[b-fd7hv8ds3y] {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #f1f5f9;
}

.mm-section-title .material-symbols-outlined[b-fd7hv8ds3y] {
    font-size: 16px;
    color: #2563eb;
}

.mm-form-group[b-fd7hv8ds3y] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.mm-form-label[b-fd7hv8ds3y] {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mm-form-input[b-fd7hv8ds3y],
.mm-form-select[b-fd7hv8ds3y] {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mm-form-input:focus[b-fd7hv8ds3y],
.mm-form-select:focus[b-fd7hv8ds3y] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.mm-grid-2col[b-fd7hv8ds3y] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mm-grid-3col[b-fd7hv8ds3y] {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

/* Mode Selection Pills */
.mm-mode-options[b-fd7hv8ds3y] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 10px;
}

.mm-mode-card[b-fd7hv8ds3y] {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    font-size: 11.5px;
    font-weight: 600;
    color: #334155;
}

.mm-mode-card:hover[b-fd7hv8ds3y] {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.mm-mode-card.selected[b-fd7hv8ds3y] {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
}

.mm-modal-footer[b-fd7hv8ds3y] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.mm-btn-delete[b-fd7hv8ds3y] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #fca5a5;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mm-btn-delete:hover:not(:disabled)[b-fd7hv8ds3y] {
    background: #fee2e2;
}

.mm-btn-delete:disabled[b-fd7hv8ds3y] {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #e2e8f0;
    color: #94a3b8;
}

.mm-btn-save[b-fd7hv8ds3y] {
    height: 32px;
    padding: 0 16px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mm-btn-save:hover[b-fd7hv8ds3y] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

/* ── 6. Pagination & Table Footer ─────────────────────────── */
.mm-table-footer[b-fd7hv8ds3y] {
    padding: 6px 14px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 10px;
    background: #ffffff;
    font-size: 12px;
}

.mm-page-size-wrap[b-fd7hv8ds3y] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.mm-page-size-select[b-fd7hv8ds3y] {
    height: 26px;
    padding: 0 6px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    outline: none;
    cursor: pointer;
}

.mm-page-info[b-fd7hv8ds3y] {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.mm-page-info strong[b-fd7hv8ds3y] {
    color: #0f172a;
    font-weight: 700;
}

.mm-pagination-wrap[b-fd7hv8ds3y] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mm-page-btn[b-fd7hv8ds3y] {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mm-page-btn:hover:not(:disabled)[b-fd7hv8ds3y] {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.mm-page-btn.active[b-fd7hv8ds3y] {
    background: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
    font-weight: 700;
}

.mm-page-btn:disabled[b-fd7hv8ds3y] {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
}
/* /Components/Pages/MachineMgmtPage.razor.rz.scp.css */
/* ==========================================================================
   MACHINE MANAGEMENT — MODERN OBSIDIAN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Main Layout Wrapper ────────────────────── */
.mmg-page-root[b-4abpis51jt] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.mmg-top-bar[b-4abpis51jt] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
    flex-wrap: wrap;
}

.mmg-title-block[b-4abpis51jt] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mmg-title-icon-wrap[b-4abpis51jt] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mmg-title-icon-wrap .material-symbols-outlined[b-4abpis51jt] {
    font-size: 20px;
}

.mmg-breadcrumbs[b-4abpis51jt] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.mmg-breadcrumb-link[b-4abpis51jt] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.mmg-breadcrumb-link:hover[b-4abpis51jt] {
    color: #2563eb;
}

.mmg-breadcrumb-sep[b-4abpis51jt] {
    font-size: 11px;
}

.mmg-page-title[b-4abpis51jt] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mmg-badge-directory[b-4abpis51jt] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mmg-live-dot[b-4abpis51jt] {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* Tab Switcher in Header */
.mmg-tab-group[b-4abpis51jt] {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.mmg-tab-btn[b-4abpis51jt] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.mmg-tab-btn .material-symbols-outlined[b-4abpis51jt] {
    font-size: 15px;
}

.mmg-tab-btn:hover[b-4abpis51jt] {
    color: #1e293b;
}

.mmg-tab-btn.active[b-4abpis51jt] {
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.mmg-top-actions[b-4abpis51jt] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mmg-search-wrap[b-4abpis51jt] {
    position: relative;
    width: 220px;
}

.mmg-search-wrap .material-symbols-outlined[b-4abpis51jt] {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.mmg-search-clear[b-4abpis51jt] {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    transition: all 0.15s ease;
}

.mmg-search-clear:hover[b-4abpis51jt] {
    color: #0f172a;
    background: #f1f5f9;
}

.mmg-search-clear .material-symbols-outlined[b-4abpis51jt] {
    font-size: 13px !important;
    position: static !important;
    transform: none !important;
    pointer-events: auto !important;
}

.mmg-search-input[b-4abpis51jt] {
    width: 100%;
    height: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 28px 0 32px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mmg-search-input:focus[b-4abpis51jt] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.mmg-btn-primary[b-4abpis51jt] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.mmg-btn-primary:hover[b-4abpis51jt] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

.mmg-btn-secondary[b-4abpis51jt] {
    height: 32px;
    padding: 0 12px;
    border-radius: 6px;
    background: #ffffff !important;
    color: #2563eb !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.mmg-btn-secondary:hover[b-4abpis51jt] {
    background: #eff6ff !important;
    border-color: #3b82f6 !important;
    color: #1d4ed8 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.12);
}

.mmg-btn-icon[b-4abpis51jt] {
    font-size: 16px;
}

/* ── 3. KPI / Stat Cards Grid ───────────────────────────────── */
.mmg-stats-grid[b-4abpis51jt] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex-shrink: 0;
}

.mmg-stat-card[b-4abpis51jt] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 7px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.mmg-stat-card[b-4abpis51jt]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.mmg-card-total[b-4abpis51jt]::before  { background: #3b82f6; }
.mmg-card-tcp[b-4abpis51jt]::before    { background: #0284c7; }
.mmg-card-serial[b-4abpis51jt]::before { background: #6366f1; }
.mmg-card-active[b-4abpis51jt]::before { background: #f59e0b; }

.mmg-stat-card:hover[b-4abpis51jt] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.mmg-stat-top[b-4abpis51jt] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mmg-stat-icon-wrap[b-4abpis51jt] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mmg-stat-icon-wrap .material-symbols-outlined[b-4abpis51jt] {
    font-size: 15px;
}

.mmg-stat-tag[b-4abpis51jt] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.mmg-stat-tag .material-symbols-outlined[b-4abpis51jt] {
    font-size: 13px;
}

.mmg-card-total .mmg-stat-icon-wrap[b-4abpis51jt]    { background: #eff6ff; color: #3b82f6; }
.mmg-card-total .mmg-stat-tag[b-4abpis51jt]          { background: #eff6ff; color: #2563eb; }

.mmg-card-tcp .mmg-stat-icon-wrap[b-4abpis51jt]      { background: #f0f9ff; color: #0284c7; }
.mmg-card-tcp .mmg-stat-tag[b-4abpis51jt]            { background: #f0f9ff; color: #0369a1; }

.mmg-card-serial .mmg-stat-icon-wrap[b-4abpis51jt]   { background: #eef2ff; color: #6366f1; }
.mmg-card-serial .mmg-stat-tag[b-4abpis51jt]         { background: #eef2ff; color: #4f46e5; }

.mmg-card-active .mmg-stat-icon-wrap[b-4abpis51jt]   { background: #fffbeb; color: #d97706; }
.mmg-card-active .mmg-stat-tag[b-4abpis51jt]         { background: #fffbeb; color: #b45309; }

.mmg-stat-mid[b-4abpis51jt] {
    margin-top: 1px;
}

.mmg-stat-label[b-4abpis51jt] {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mmg-stat-bottom[b-4abpis51jt] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.mmg-stat-val[b-4abpis51jt] {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.mmg-stat-subtext[b-4abpis51jt] {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── 4. Table Card Container (Single Viewport Inner Area) ─── */
.mmg-table-card[b-4abpis51jt] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.mmg-table-container[b-4abpis51jt] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

.mmg-table[b-4abpis51jt] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    text-align: left;
}

/* Light Slate Sticky Header */
.mmg-thead[b-4abpis51jt] {
    position: sticky;
    top: 0;
    z-index: 10;
}

.mmg-th[b-4abpis51jt] {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 9px 12px;
    border-bottom: 1px solid #e2e8f0;
    border-top: none;
    white-space: nowrap;
    user-select: none;
}

.mmg-tbody tr[b-4abpis51jt] {
    background-color: #ffffff;
    transition: background-color 0.12s ease;
}

.mmg-tbody tr:hover[b-4abpis51jt] {
    background-color: #f8fafc;
}

.mmg-td[b-4abpis51jt] {
    padding: 7px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
    font-size: 12px;
}

.mmg-badge-code[b-4abpis51jt] {
    display: inline-block;
    padding: 2px 6px;
    background: #f1f5f9;
    color: #475569;
    font-family: monospace;
    font-weight: 700;
    font-size: 11px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.mmg-shortname-pill[b-4abpis51jt] {
    display: inline-block;
    color: #64748b;
    font-family: monospace;
    font-weight: 600;
    font-size: 11.5px;
}

.mmg-name-cell[b-4abpis51jt] {
    font-weight: 700;
    color: #0f172a;
    font-size: 12px;
}

.mmg-pill-mfg[b-4abpis51jt] {
    display: inline-block;
    padding: 2px 8px;
    background: #f8fafc;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.mmg-pill-model[b-4abpis51jt] {
    display: inline-block;
    color: #64748b;
    font-size: 11.5px;
    font-weight: 500;
}

.mmg-interface-pills[b-4abpis51jt] {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.mmg-pill-rs232[b-4abpis51jt] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.mmg-pill-tcp[b-4abpis51jt] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 600;
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.mmg-pill-file[b-4abpis51jt] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 600;
    background: #ffedd5;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.mmg-pill-purple[b-4abpis51jt] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 600;
    background: #f5f3ff;
    color: #7c3aed;
    border: 1px solid #ddd6fe;
}

/* Action Buttons */
.mmg-actions-cell[b-4abpis51jt] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.mmg-btn-action[b-4abpis51jt] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.mmg-btn-action .material-symbols-outlined[b-4abpis51jt] {
    font-size: 14px;
}

.mmg-btn-edit:hover[b-4abpis51jt] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.mmg-btn-delete:hover[b-4abpis51jt] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* ── 5. Modal Backdrop & Card Form ──────────────────────────── */
.mmg-modal-overlay[b-4abpis51jt] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 16px;
    animation: mmgFadeIn-b-4abpis51jt 0.15s ease-out;
}

@keyframes mmgFadeIn-b-4abpis51jt {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mmg-modal-card[b-4abpis51jt] {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 860px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: mmgSlideUp-b-4abpis51jt 0.15s ease-out;
}

@keyframes mmgSlideUp-b-4abpis51jt {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mmg-modal-header[b-4abpis51jt] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.mmg-modal-title[b-4abpis51jt] {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.mmg-modal-close-btn[b-4abpis51jt] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.mmg-modal-close-btn:hover[b-4abpis51jt] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.mmg-modal-body[b-4abpis51jt] {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 75vh;
    overflow-y: auto;
}

.mmg-modal-columns[b-4abpis51jt] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
}

.mmg-section-title[b-4abpis51jt] {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #f1f5f9;
}

.mmg-section-title .material-symbols-outlined[b-4abpis51jt] {
    font-size: 16px;
    color: #2563eb;
}

.mmg-form-group[b-4abpis51jt] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.mmg-form-label[b-4abpis51jt] {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mmg-form-input[b-4abpis51jt],
.mmg-form-select[b-4abpis51jt] {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mmg-form-input:focus[b-4abpis51jt],
.mmg-form-select:focus[b-4abpis51jt] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.mmg-grid-2col[b-4abpis51jt] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mmg-grid-3col[b-4abpis51jt] {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

/* Mode Selection Cards */
.mmg-mode-options[b-4abpis51jt] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 10px;
}

.mmg-mode-card[b-4abpis51jt] {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    font-size: 11.5px;
    font-weight: 600;
    color: #334155;
}

.mmg-mode-card:hover[b-4abpis51jt] {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.mmg-mode-card.selected[b-4abpis51jt] {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
}

.mmg-modal-footer[b-4abpis51jt] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.mmg-btn-delete[b-4abpis51jt] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #fca5a5;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mmg-btn-delete:hover:not(:disabled)[b-4abpis51jt] {
    background: #fee2e2;
}

.mmg-btn-delete:disabled[b-4abpis51jt] {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #e2e8f0;
    color: #94a3b8;
}

.mmg-btn-save[b-4abpis51jt] {
    height: 32px;
    padding: 0 16px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mmg-btn-save:hover[b-4abpis51jt] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

/* ── 6. Pagination & Table Footer ─────────────────────────── */
.mmg-table-footer[b-4abpis51jt] {
    padding: 6px 14px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 10px;
    background: #ffffff;
    font-size: 12px;
}

.mmg-page-size-wrap[b-4abpis51jt] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.mmg-page-size-select[b-4abpis51jt] {
    height: 26px;
    padding: 0 6px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    outline: none;
    cursor: pointer;
}

.mmg-page-info[b-4abpis51jt] {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.mmg-page-info strong[b-4abpis51jt] {
    color: #0f172a;
    font-weight: 700;
}

.mmg-pagination-wrap[b-4abpis51jt] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mmg-page-btn[b-4abpis51jt] {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mmg-page-btn:hover:not(:disabled)[b-4abpis51jt] {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.mmg-page-btn.active[b-4abpis51jt] {
    background: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
    font-weight: 700;
}

.mmg-page-btn:disabled[b-4abpis51jt] {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
}

.mmg-test-dropdown-item[b-4abpis51jt] {
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 500;
    color: #0f172a;
    transition: background-color 0.1s ease, color 0.1s ease;
}

.mmg-test-dropdown-item:hover[b-4abpis51jt] {
    background-color: #eff6ff !important;
    color: #2563eb !important;
}

.mmg-test-dropdown-item:last-child[b-4abpis51jt] {
    border-bottom: none;
}

/* ══════════════════════════════════════════════════════════════
   ANALYZER TEST MAPPING — PIXEL-PERFECT CLEAN CARD LAYOUT
   ══════════════════════════════════════════════════════════════ */

.atm-container[b-4abpis51jt] {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    gap: 12px;
}

/* 1. Header & KPI Widget Row */
.atm-header-row[b-4abpis51jt] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-shrink: 0;
    flex-wrap: wrap;
    padding: 2px 2px 4px 2px;
}

.atm-header-left[b-4abpis51jt] {
    display: flex;
    flex-direction: column;
}

.atm-title[b-4abpis51jt] {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.atm-subtitle[b-4abpis51jt] {
    font-size: 12.5px;
    font-weight: 500;
    color: #64748b;
    margin: 3px 0 0 0;
}

.atm-kpi-card[b-4abpis51jt] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    padding: 6px 18px;
    gap: 22px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
    flex-shrink: 0;
}

.atm-kpi-item[b-4abpis51jt] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.atm-kpi-icon[b-4abpis51jt] {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.atm-kpi-icon .material-symbols-outlined[b-4abpis51jt] {
    font-size: 18px;
}

.atm-kpi-icon.blue[b-4abpis51jt] {
    background: #eff6ff;
    color: #2563eb;
}

.atm-kpi-icon.green[b-4abpis51jt] {
    background: #ecfdf5;
    color: #10b981;
}

.atm-kpi-icon.red[b-4abpis51jt] {
    background: #fef2f2;
    color: #ef4444;
}

.atm-kpi-text[b-4abpis51jt] {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.atm-kpi-val[b-4abpis51jt] {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.atm-kpi-label[b-4abpis51jt] {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
}

.atm-kpi-divider[b-4abpis51jt] {
    width: 1px;
    height: 28px;
    background: #f1f5f9;
}

/* 2. Toolbar Row */
.atm-toolbar[b-4abpis51jt] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.atm-toolbar-left[b-4abpis51jt] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.atm-search-wrap[b-4abpis51jt] {
    position: relative;
    width: 290px;
}

.atm-search-wrap .material-symbols-outlined[b-4abpis51jt] {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #94a3b8;
    pointer-events: none;
}

.atm-search-input[b-4abpis51jt] {
    width: 100%;
    height: 36px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 12px 0 34px;
    font-size: 12.5px;
    color: #0f172a;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.atm-search-input:focus[b-4abpis51jt] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.atm-select[b-4abpis51jt] {
    height: 36px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 12.5px;
    font-weight: 500;
    color: #334155;
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.atm-select:focus[b-4abpis51jt] {
    border-color: #2563eb;
}

.atm-btn-map[b-4abpis51jt] {
    height: 36px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 12.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.18);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.atm-btn-map:hover[b-4abpis51jt] {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.25);
}

.atm-btn-map .material-symbols-outlined[b-4abpis51jt] {
    font-size: 18px;
}

/* 3. Cards Scrollable Container */
.atm-cards-container[b-4abpis51jt] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}

.atm-cards-container[b-4abpis51jt]::-webkit-scrollbar {
    width: 6px;
}

.atm-cards-container[b-4abpis51jt]::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.atm-cards-container[b-4abpis51jt]::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 4. Group Card */
.atm-card[b-4abpis51jt] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    overflow: visible;
    position: relative;
    flex-shrink: 0;
}

.atm-card:hover[b-4abpis51jt] {
    border-color: #cbd5e1;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.04);
}

.atm-card.expanded[b-4abpis51jt] {
    border-color: #cbd5e1;
}

.atm-card-header[b-4abpis51jt] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    cursor: pointer;
    user-select: none;
    gap: 12px;
}

.atm-card-left[b-4abpis51jt] {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.atm-chevron-btn[b-4abpis51jt] {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #475569;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.atm-chevron-btn .material-symbols-outlined[b-4abpis51jt] {
    font-size: 20px;
    transition: transform 0.15s ease;
}

.atm-chip-icon[b-4abpis51jt] {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2);
}

.atm-chip-icon .material-symbols-outlined[b-4abpis51jt] {
    font-size: 18px;
}

.atm-machine-badge[b-4abpis51jt] {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
    font-size: 11px;
    font-weight: 700;
    padding: 2.5px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    flex-shrink: 0;
}

.atm-test-title[b-4abpis51jt] {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.atm-card-right[b-4abpis51jt] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.atm-status-badge[b-4abpis51jt] {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    padding: 3.5px 11px;
    font-size: 11.5px;
    font-weight: 600;
    color: #166534;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.atm-status-dot[b-4abpis51jt] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #16a34a;
    flex-shrink: 0;
}

.atm-btn-add-map[b-4abpis51jt] {
    background: #ffffff;
    border: 1.5px solid #2563eb;
    color: #2563eb;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.atm-btn-add-map:hover[b-4abpis51jt] {
    background: #eff6ff;
    border-color: #1d4ed8;
    color: #1d4ed8;
}

.atm-btn-add-map .material-symbols-outlined[b-4abpis51jt] {
    font-size: 16px;
}

.atm-menu-wrap[b-4abpis51jt] {
    position: relative;
    display: inline-flex;
}

.atm-btn-kebab[b-4abpis51jt] {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.atm-btn-kebab:hover[b-4abpis51jt] {
    background: #f1f5f9;
    color: #0f172a;
}

.atm-btn-kebab .material-symbols-outlined[b-4abpis51jt] {
    font-size: 19px;
}

.atm-kebab-dropdown[b-4abpis51jt] {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    z-index: 100;
    min-width: 175px;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.atm-kebab-item[b-4abpis51jt] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    font-size: 11.5px;
    font-weight: 600;
    color: #334155;
    border: none;
    background: transparent;
    border-radius: 5px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.12s ease;
}

.atm-kebab-item:hover[b-4abpis51jt] {
    background: #eff6ff;
    color: #2563eb;
}

.atm-kebab-item.danger[b-4abpis51jt] {
    color: #e11d48;
}

.atm-kebab-item.danger:hover[b-4abpis51jt] {
    background: #fff1f2;
    color: #be123c;
}

.atm-kebab-item .material-symbols-outlined[b-4abpis51jt] {
    font-size: 16px;
}

/* 5. Inset Expanded Parameters Area */
.atm-expanded-wrap[b-4abpis51jt] {
    margin: 0 16px 14px 16px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
}

.atm-expanded-title[b-4abpis51jt] {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: capitalize;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.atm-params-list[b-4abpis51jt] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.atm-param-pill[b-4abpis51jt] {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
    transition: border-color 0.15s ease;
}

.atm-param-pill:hover[b-4abpis51jt] {
    border-color: #94a3b8;
}

.atm-param-dot[b-4abpis51jt] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #16a34a;
    flex-shrink: 0;
}

.atm-param-text[b-4abpis51jt] {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
}

.atm-param-formula[b-4abpis51jt] {
    font-size: 10.5px;
    color: #64748b;
    font-family: monospace;
}

.atm-param-actions[b-4abpis51jt] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 2px;
    border-left: 1px solid #f1f5f9;
    padding-left: 5px;
}

.atm-param-btn[b-4abpis51jt] {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.12s ease;
}

.atm-param-btn.edit[b-4abpis51jt] {
    color: #64748b;
}

.atm-param-btn.edit:hover[b-4abpis51jt] {
    color: #2563eb;
    background: #eff6ff;
}

.atm-param-btn.delete[b-4abpis51jt] {
    color: #ef4444;
}

.atm-param-btn.delete:hover[b-4abpis51jt] {
    color: #dc2626;
    background: #fef2f2;
}

.atm-param-btn .material-symbols-outlined[b-4abpis51jt] {
    font-size: 14px;
}

/* 6. Empty State */
.atm-empty-state[b-4abpis51jt] {
    text-align: center;
    padding: 48px 24px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    color: #94a3b8;
    margin: 8px 0;
}

.atm-empty-icon[b-4abpis51jt] {
    font-size: 42px;
    color: #cbd5e1;
    display: block;
    margin-bottom: 8px;
}

.atm-empty-title[b-4abpis51jt] {
    font-size: 13.5px;
    font-weight: 700;
    color: #475569;
}

.atm-empty-sub[b-4abpis51jt] {
    font-size: 11.5px;
    margin-top: 4px;
    color: #94a3b8;
}


/* /Components/Pages/MachineTestMappingPage.razor.rz.scp.css */
/* ==========================================================================
   MACHINE TEST MAPPING — MODERN OBSIDIAN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Main Layout Wrapper ────────────────────── */
.mtm-page-root[b-5hd1gm6lk4] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.mtm-top-bar[b-5hd1gm6lk4] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.mtm-title-block[b-5hd1gm6lk4] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mtm-title-icon-wrap[b-5hd1gm6lk4] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mtm-title-icon-wrap .material-symbols-outlined[b-5hd1gm6lk4] {
    font-size: 20px;
}

.mtm-breadcrumbs[b-5hd1gm6lk4] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.mtm-breadcrumb-link[b-5hd1gm6lk4] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.mtm-breadcrumb-link:hover[b-5hd1gm6lk4] {
    color: #2563eb;
}

.mtm-breadcrumb-sep[b-5hd1gm6lk4] {
    font-size: 11px;
}

.mtm-page-title[b-5hd1gm6lk4] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mtm-badge-directory[b-5hd1gm6lk4] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mtm-live-dot[b-5hd1gm6lk4] {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.mtm-top-actions[b-5hd1gm6lk4] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mtm-search-wrap[b-5hd1gm6lk4] {
    position: relative;
    width: 250px;
}

.mtm-search-wrap .material-symbols-outlined[b-5hd1gm6lk4] {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.mtm-search-input[b-5hd1gm6lk4] {
    width: 100%;
    height: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 10px 0 32px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mtm-search-input:focus[b-5hd1gm6lk4] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.mtm-btn-primary[b-5hd1gm6lk4] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.mtm-btn-primary:hover[b-5hd1gm6lk4] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

.mtm-btn-icon[b-5hd1gm6lk4] {
    font-size: 16px;
}

/* ── 3. KPI / Stat Cards Grid ───────────────────────────────── */
.mtm-stats-grid[b-5hd1gm6lk4] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex-shrink: 0;
}

.mtm-stat-card[b-5hd1gm6lk4] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 7px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.mtm-stat-card[b-5hd1gm6lk4]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.mtm-card-total[b-5hd1gm6lk4]::before  { background: #3b82f6; }
.mtm-card-mfg[b-5hd1gm6lk4]::before    { background: #6366f1; }
.mtm-card-tests[b-5hd1gm6lk4]::before  { background: #10b981; }
.mtm-card-active[b-5hd1gm6lk4]::before { background: #f59e0b; }

.mtm-stat-card:hover[b-5hd1gm6lk4] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.mtm-stat-top[b-5hd1gm6lk4] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mtm-stat-icon-wrap[b-5hd1gm6lk4] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mtm-stat-icon-wrap .material-symbols-outlined[b-5hd1gm6lk4] {
    font-size: 15px;
}

.mtm-stat-tag[b-5hd1gm6lk4] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.mtm-stat-tag .material-symbols-outlined[b-5hd1gm6lk4] {
    font-size: 13px;
}

.mtm-card-total .mtm-stat-icon-wrap[b-5hd1gm6lk4]    { background: #eff6ff; color: #3b82f6; }
.mtm-card-total .mtm-stat-tag[b-5hd1gm6lk4]          { background: #eff6ff; color: #2563eb; }

.mtm-card-mfg .mtm-stat-icon-wrap[b-5hd1gm6lk4]      { background: #eef2ff; color: #6366f1; }
.mtm-card-mfg .mtm-stat-tag[b-5hd1gm6lk4]            { background: #eef2ff; color: #4f46e5; }

.mtm-card-tests .mtm-stat-icon-wrap[b-5hd1gm6lk4]    { background: #ecfdf5; color: #059669; }
.mtm-card-tests .mtm-stat-tag[b-5hd1gm6lk4]          { background: #ecfdf5; color: #047857; }

.mtm-card-active .mtm-stat-icon-wrap[b-5hd1gm6lk4]   { background: #fffbeb; color: #d97706; }
.mtm-card-active .mtm-stat-tag[b-5hd1gm6lk4]         { background: #fffbeb; color: #b45309; }

.mtm-stat-mid[b-5hd1gm6lk4] {
    margin-top: 1px;
}

.mtm-stat-label[b-5hd1gm6lk4] {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mtm-stat-bottom[b-5hd1gm6lk4] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.mtm-stat-val[b-5hd1gm6lk4] {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.mtm-stat-subtext[b-5hd1gm6lk4] {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── 4. Table Card Container (Single Viewport Inner Area) ─── */
.mtm-table-card[b-5hd1gm6lk4] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.mtm-table-container[b-5hd1gm6lk4] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

.mtm-table[b-5hd1gm6lk4] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    text-align: left;
}

/* Light Slate Sticky Header */
.mtm-thead[b-5hd1gm6lk4] {
    position: sticky;
    top: 0;
    z-index: 10;
}

.mtm-th[b-5hd1gm6lk4] {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 9px 12px;
    border-bottom: 1px solid #e2e8f0;
    border-top: none;
    white-space: nowrap;
    user-select: none;
}

.mtm-tbody tr[b-5hd1gm6lk4] {
    background-color: #ffffff;
    transition: background-color 0.12s ease;
}

.mtm-tbody tr:hover[b-5hd1gm6lk4] {
    background-color: #f8fafc;
}

.mtm-td[b-5hd1gm6lk4] {
    padding: 7px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
    font-size: 12px;
}

.mtm-badge-code[b-5hd1gm6lk4] {
    display: inline-block;
    padding: 2px 6px;
    background: #f1f5f9;
    color: #475569;
    font-family: monospace;
    font-weight: 700;
    font-size: 11px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.mtm-param-pill[b-5hd1gm6lk4] {
    display: inline-block;
    color: #2563eb;
    font-family: monospace;
    font-weight: 700;
    font-size: 12px;
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #dbeafe;
}

.mtm-mfg-name[b-5hd1gm6lk4] {
    font-weight: 700;
    color: #0f172a;
    font-size: 12px;
}

.mtm-model-pill[b-5hd1gm6lk4] {
    display: inline-block;
    color: #64748b;
    font-size: 11.5px;
    font-weight: 500;
}

.mtm-test-name[b-5hd1gm6lk4] {
    font-weight: 600;
    color: #0f172a;
    font-size: 12px;
}

/* Action Buttons */
.mtm-actions-cell[b-5hd1gm6lk4] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.mtm-btn-action[b-5hd1gm6lk4] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.mtm-btn-action .material-symbols-outlined[b-5hd1gm6lk4] {
    font-size: 14px;
}

.mtm-btn-edit:hover[b-5hd1gm6lk4] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.mtm-btn-delete:hover[b-5hd1gm6lk4] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* ── 5. Modal Backdrop & Card Form ──────────────────────────── */
.mtm-modal-overlay[b-5hd1gm6lk4] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 16px;
    animation: mtmFadeIn-b-5hd1gm6lk4 0.15s ease-out;
}

@keyframes mtmFadeIn-b-5hd1gm6lk4 {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mtm-modal-card[b-5hd1gm6lk4] {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: mtmSlideUp-b-5hd1gm6lk4 0.15s ease-out;
}

@keyframes mtmSlideUp-b-5hd1gm6lk4 {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mtm-modal-header[b-5hd1gm6lk4] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.mtm-modal-title[b-5hd1gm6lk4] {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.mtm-modal-close-btn[b-5hd1gm6lk4] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.mtm-modal-close-btn:hover[b-5hd1gm6lk4] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.mtm-modal-body[b-5hd1gm6lk4] {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 75vh;
    overflow-y: auto;
}

.mtm-form-group[b-5hd1gm6lk4] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mtm-form-label[b-5hd1gm6lk4] {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mtm-form-input[b-5hd1gm6lk4],
.mtm-form-select[b-5hd1gm6lk4] {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mtm-form-input:focus[b-5hd1gm6lk4],
.mtm-form-select:focus[b-5hd1gm6lk4] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.mtm-grid-2col[b-5hd1gm6lk4] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mtm-modal-footer[b-5hd1gm6lk4] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.mtm-btn-delete[b-5hd1gm6lk4] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #fca5a5;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mtm-btn-delete:hover:not(:disabled)[b-5hd1gm6lk4] {
    background: #fee2e2;
}

.mtm-btn-delete:disabled[b-5hd1gm6lk4] {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #e2e8f0;
    color: #94a3b8;
}

.mtm-btn-save[b-5hd1gm6lk4] {
    height: 32px;
    padding: 0 16px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mtm-btn-save:hover[b-5hd1gm6lk4] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

/* ── 6. Pagination & Table Footer ─────────────────────────── */
.mtm-table-footer[b-5hd1gm6lk4] {
    padding: 6px 14px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 10px;
    background: #ffffff;
    font-size: 12px;
}

.mtm-page-size-wrap[b-5hd1gm6lk4] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.mtm-page-size-select[b-5hd1gm6lk4] {
    height: 26px;
    padding: 0 6px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    outline: none;
    cursor: pointer;
}

.mtm-page-info[b-5hd1gm6lk4] {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.mtm-page-info strong[b-5hd1gm6lk4] {
    color: #0f172a;
    font-weight: 700;
}

.mtm-pagination-wrap[b-5hd1gm6lk4] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mtm-page-btn[b-5hd1gm6lk4] {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mtm-page-btn:hover:not(:disabled)[b-5hd1gm6lk4] {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.mtm-page-btn.active[b-5hd1gm6lk4] {
    background: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
    font-weight: 700;
}

.mtm-page-btn:disabled[b-5hd1gm6lk4] {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
}
/* /Components/Pages/ManufacturerMasterPage.razor.rz.scp.css */
/* ==========================================================================
   MANUFACTURER MASTER — MODERN OBSIDIAN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Main Layout Wrapper ────────────────────── */
.mf-page-root[b-ni1vzpi084] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.mf-top-bar[b-ni1vzpi084] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.mf-title-block[b-ni1vzpi084] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mf-title-icon-wrap[b-ni1vzpi084] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mf-title-icon-wrap .material-symbols-outlined[b-ni1vzpi084] {
    font-size: 20px;
}

.mf-breadcrumbs[b-ni1vzpi084] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.mf-breadcrumb-link[b-ni1vzpi084] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.mf-breadcrumb-link:hover[b-ni1vzpi084] {
    color: #2563eb;
}

.mf-breadcrumb-sep[b-ni1vzpi084] {
    font-size: 11px;
}

.mf-page-title[b-ni1vzpi084] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mf-badge-directory[b-ni1vzpi084] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mf-live-dot[b-ni1vzpi084] {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.mf-top-actions[b-ni1vzpi084] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mf-search-wrap[b-ni1vzpi084] {
    position: relative;
    width: 240px;
}

.mf-search-wrap .material-symbols-outlined[b-ni1vzpi084] {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.mf-search-input[b-ni1vzpi084] {
    width: 100%;
    height: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 10px 0 32px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mf-search-input:focus[b-ni1vzpi084] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.mf-btn-primary[b-ni1vzpi084] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.mf-btn-primary:hover[b-ni1vzpi084] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

.mf-btn-icon[b-ni1vzpi084] {
    font-size: 16px;
}

/* ── 3. KPI / Stat Cards Grid ───────────────────────────────── */
.mf-stats-grid[b-ni1vzpi084] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex-shrink: 0;
}

.mf-stat-card[b-ni1vzpi084] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 7px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.mf-stat-card[b-ni1vzpi084]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.mf-card-total[b-ni1vzpi084]::before  { background: #3b82f6; }
.mf-card-short[b-ni1vzpi084]::before  { background: #6366f1; }
.mf-card-profile[b-ni1vzpi084]::before{ background: #10b981; }
.mf-card-active[b-ni1vzpi084]::before { background: #f59e0b; }

.mf-stat-card:hover[b-ni1vzpi084] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.mf-stat-top[b-ni1vzpi084] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mf-stat-icon-wrap[b-ni1vzpi084] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mf-stat-icon-wrap .material-symbols-outlined[b-ni1vzpi084] {
    font-size: 15px;
}

.mf-stat-tag[b-ni1vzpi084] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.mf-stat-tag .material-symbols-outlined[b-ni1vzpi084] {
    font-size: 13px;
}

.mf-card-total .mf-stat-icon-wrap[b-ni1vzpi084]    { background: #eff6ff; color: #3b82f6; }
.mf-card-total .mf-stat-tag[b-ni1vzpi084]          { background: #eff6ff; color: #2563eb; }

.mf-card-short .mf-stat-icon-wrap[b-ni1vzpi084]    { background: #eef2ff; color: #6366f1; }
.mf-card-short .mf-stat-tag[b-ni1vzpi084]          { background: #eef2ff; color: #4f46e5; }

.mf-card-profile .mf-stat-icon-wrap[b-ni1vzpi084]  { background: #ecfdf5; color: #059669; }
.mf-card-profile .mf-stat-tag[b-ni1vzpi084]        { background: #ecfdf5; color: #047857; }

.mf-card-active .mf-stat-icon-wrap[b-ni1vzpi084]   { background: #fffbeb; color: #d97706; }
.mf-card-active .mf-stat-tag[b-ni1vzpi084]         { background: #fffbeb; color: #b45309; }

.mf-stat-mid[b-ni1vzpi084] {
    margin-top: 1px;
}

.mf-stat-label[b-ni1vzpi084] {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mf-stat-bottom[b-ni1vzpi084] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.mf-stat-val[b-ni1vzpi084] {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.mf-stat-subtext[b-ni1vzpi084] {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── 4. Table Card Container (Single Viewport Inner Area) ─── */
.mf-table-card[b-ni1vzpi084] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.mf-table-container[b-ni1vzpi084] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

.mf-table[b-ni1vzpi084] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    text-align: left;
}

/* Light Slate Sticky Header */
.mf-thead[b-ni1vzpi084] {
    position: sticky;
    top: 0;
    z-index: 10;
}

.mf-th[b-ni1vzpi084] {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 9px 12px;
    border-bottom: 1px solid #e2e8f0;
    border-top: none;
    white-space: nowrap;
    user-select: none;
}

.mf-tbody tr[b-ni1vzpi084] {
    background-color: #ffffff;
    transition: background-color 0.12s ease;
}

.mf-tbody tr:hover[b-ni1vzpi084] {
    background-color: #f8fafc;
}

.mf-td[b-ni1vzpi084] {
    padding: 7px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
    font-size: 12px;
}

.mf-badge-code[b-ni1vzpi084] {
    display: inline-block;
    padding: 2px 6px;
    background: #f1f5f9;
    color: #475569;
    font-family: monospace;
    font-weight: 700;
    font-size: 11px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.mf-shortname-pill[b-ni1vzpi084] {
    display: inline-block;
    color: #64748b;
    font-family: monospace;
    font-weight: 600;
    font-size: 11.5px;
}

.mf-name-cell[b-ni1vzpi084] {
    font-weight: 700;
    color: #0f172a;
    font-size: 12px;
}

.mf-desc-cell[b-ni1vzpi084] {
    color: #64748b;
    font-size: 11.5px;
}

.mf-footer-cell[b-ni1vzpi084] {
    color: #64748b;
    font-size: 11.5px;
}

/* Action Buttons */
.mf-actions-cell[b-ni1vzpi084] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.mf-btn-action[b-ni1vzpi084] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.mf-btn-action .material-symbols-outlined[b-ni1vzpi084] {
    font-size: 14px;
}

.mf-btn-edit:hover[b-ni1vzpi084] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.mf-btn-delete:hover[b-ni1vzpi084] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* ── 5. Modal Backdrop & Card Form ──────────────────────────── */
.mf-modal-overlay[b-ni1vzpi084] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 16px;
    animation: mfFadeIn-b-ni1vzpi084 0.15s ease-out;
}

@keyframes mfFadeIn-b-ni1vzpi084 {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mf-modal-card[b-ni1vzpi084] {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 540px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: mfSlideUp-b-ni1vzpi084 0.15s ease-out;
}

@keyframes mfSlideUp-b-ni1vzpi084 {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mf-modal-header[b-ni1vzpi084] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.mf-modal-title[b-ni1vzpi084] {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.mf-modal-close-btn[b-ni1vzpi084] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.mf-modal-close-btn:hover[b-ni1vzpi084] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.mf-modal-body[b-ni1vzpi084] {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 75vh;
    overflow-y: auto;
}

.mf-form-group[b-ni1vzpi084] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mf-form-label[b-ni1vzpi084] {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mf-form-input[b-ni1vzpi084],
.mf-form-select[b-ni1vzpi084] {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mf-form-input:focus[b-ni1vzpi084],
.mf-form-select:focus[b-ni1vzpi084] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.mf-grid-2col[b-ni1vzpi084] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mf-modal-footer[b-ni1vzpi084] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.mf-btn-delete[b-ni1vzpi084] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #fca5a5;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mf-btn-delete:hover:not(:disabled)[b-ni1vzpi084] {
    background: #fee2e2;
}

.mf-btn-delete:disabled[b-ni1vzpi084] {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #e2e8f0;
    color: #94a3b8;
}

.mf-btn-save[b-ni1vzpi084] {
    height: 32px;
    padding: 0 16px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mf-btn-save:hover[b-ni1vzpi084] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

/* ── 6. Pagination & Table Footer ─────────────────────────── */
.mf-table-footer[b-ni1vzpi084] {
    padding: 6px 14px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 10px;
    background: #ffffff;
    font-size: 12px;
}

.mf-page-size-wrap[b-ni1vzpi084] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.mf-page-size-select[b-ni1vzpi084] {
    height: 26px;
    padding: 0 6px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    outline: none;
    cursor: pointer;
}

.mf-page-info[b-ni1vzpi084] {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.mf-page-info strong[b-ni1vzpi084] {
    color: #0f172a;
    font-weight: 700;
}

.mf-pagination-wrap[b-ni1vzpi084] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mf-page-btn[b-ni1vzpi084] {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mf-page-btn:hover:not(:disabled)[b-ni1vzpi084] {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.mf-page-btn.active[b-ni1vzpi084] {
    background: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
    font-weight: 700;
}

.mf-page-btn:disabled[b-ni1vzpi084] {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
}
/* /Components/Pages/ManufacturerModelMasterPage.razor.rz.scp.css */
/* ==========================================================================
   MANUFACTURER MODEL MASTER — MODERN OBSIDIAN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Main Layout Wrapper ────────────────────── */
.mfm-page-root[b-2zeckdrzi1] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.mfm-top-bar[b-2zeckdrzi1] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.mfm-title-block[b-2zeckdrzi1] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mfm-title-icon-wrap[b-2zeckdrzi1] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mfm-title-icon-wrap .material-symbols-outlined[b-2zeckdrzi1] {
    font-size: 20px;
}

.mfm-breadcrumbs[b-2zeckdrzi1] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.mfm-breadcrumb-link[b-2zeckdrzi1] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.mfm-breadcrumb-link:hover[b-2zeckdrzi1] {
    color: #2563eb;
}

.mfm-breadcrumb-sep[b-2zeckdrzi1] {
    font-size: 11px;
}

.mfm-page-title[b-2zeckdrzi1] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mfm-badge-directory[b-2zeckdrzi1] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mfm-live-dot[b-2zeckdrzi1] {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.mfm-top-actions[b-2zeckdrzi1] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mfm-search-wrap[b-2zeckdrzi1] {
    position: relative;
    width: 240px;
}

.mfm-search-wrap .material-symbols-outlined[b-2zeckdrzi1] {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.mfm-search-input[b-2zeckdrzi1] {
    width: 100%;
    height: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 10px 0 32px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mfm-search-input:focus[b-2zeckdrzi1] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.mfm-btn-primary[b-2zeckdrzi1] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.mfm-btn-primary:hover[b-2zeckdrzi1] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

.mfm-btn-icon[b-2zeckdrzi1] {
    font-size: 16px;
}

/* ── 3. KPI / Stat Cards Grid ───────────────────────────────── */
.mfm-stats-grid[b-2zeckdrzi1] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex-shrink: 0;
}

.mfm-stat-card[b-2zeckdrzi1] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 7px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.mfm-stat-card[b-2zeckdrzi1]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.mfm-card-total[b-2zeckdrzi1]::before    { background: #3b82f6; }
.mfm-card-active[b-2zeckdrzi1]::before   { background: #10b981; }
.mfm-card-brand[b-2zeckdrzi1]::before    { background: #6366f1; }
.mfm-card-filtered[b-2zeckdrzi1]::before { background: #f59e0b; }

.mfm-stat-card:hover[b-2zeckdrzi1] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.mfm-stat-top[b-2zeckdrzi1] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mfm-stat-icon-wrap[b-2zeckdrzi1] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mfm-stat-icon-wrap .material-symbols-outlined[b-2zeckdrzi1] {
    font-size: 15px;
}

.mfm-stat-tag[b-2zeckdrzi1] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.mfm-stat-tag .material-symbols-outlined[b-2zeckdrzi1] {
    font-size: 13px;
}

.mfm-card-total .mfm-stat-icon-wrap[b-2zeckdrzi1]    { background: #eff6ff; color: #3b82f6; }
.mfm-card-total .mfm-stat-tag[b-2zeckdrzi1]          { background: #eff6ff; color: #2563eb; }

.mfm-card-active .mfm-stat-icon-wrap[b-2zeckdrzi1]   { background: #ecfdf5; color: #10b981; }
.mfm-card-active .mfm-stat-tag[b-2zeckdrzi1]         { background: #ecfdf5; color: #059669; }

.mfm-card-brand .mfm-stat-icon-wrap[b-2zeckdrzi1]    { background: #eef2ff; color: #6366f1; }
.mfm-card-brand .mfm-stat-tag[b-2zeckdrzi1]          { background: #eef2ff; color: #4f46e5; }

.mfm-card-filtered .mfm-stat-icon-wrap[b-2zeckdrzi1] { background: #fffbeb; color: #d97706; }
.mfm-card-filtered .mfm-stat-tag[b-2zeckdrzi1]       { background: #fffbeb; color: #b45309; }

.mfm-stat-mid[b-2zeckdrzi1] {
    margin-top: 1px;
}

.mfm-stat-label[b-2zeckdrzi1] {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mfm-stat-bottom[b-2zeckdrzi1] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.mfm-stat-val[b-2zeckdrzi1] {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.mfm-stat-subtext[b-2zeckdrzi1] {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── 4. Table Card Container (Single Viewport Inner Area) ─── */
.mfm-table-card[b-2zeckdrzi1] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.mfm-table-container[b-2zeckdrzi1] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

.mfm-table[b-2zeckdrzi1] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    text-align: left;
}

/* Light Slate Sticky Header */
.mfm-thead[b-2zeckdrzi1] {
    position: sticky;
    top: 0;
    z-index: 10;
}

.mfm-th[b-2zeckdrzi1] {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 9px 12px;
    border-bottom: 1px solid #e2e8f0;
    border-top: none;
    white-space: nowrap;
    user-select: none;
}

.mfm-tbody tr[b-2zeckdrzi1] {
    background-color: #ffffff;
    transition: background-color 0.12s ease;
}

.mfm-tbody tr:hover[b-2zeckdrzi1] {
    background-color: #f8fafc;
}

.mfm-td[b-2zeckdrzi1] {
    padding: 7px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
    font-size: 12px;
}

.mfm-badge-code[b-2zeckdrzi1] {
    display: inline-block;
    padding: 2px 6px;
    background: #f1f5f9;
    color: #475569;
    font-family: monospace;
    font-weight: 700;
    font-size: 11px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.mfm-mf-pill[b-2zeckdrzi1] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    font-size: 11.5px;
}

.mfm-name-cell[b-2zeckdrzi1] {
    font-weight: 700;
    color: #0f172a;
    font-size: 12px;
}

.mfm-shortname-pill[b-2zeckdrzi1] {
    display: inline-block;
    color: #64748b;
    font-family: monospace;
    font-weight: 600;
    font-size: 11.5px;
    background: #f8fafc;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.mfm-type-pill[b-2zeckdrzi1] {
    color: #334155;
    font-weight: 500;
    font-size: 11.5px;
}

.mfm-serial-pill[b-2zeckdrzi1] {
    color: #64748b;
    font-family: monospace;
    font-size: 11px;
}

.mfm-status-pill[b-2zeckdrzi1] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.mfm-status-active[b-2zeckdrzi1] {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.mfm-status-inactive[b-2zeckdrzi1] {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

/* Action Buttons */
.mfm-actions-cell[b-2zeckdrzi1] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.mfm-btn-action[b-2zeckdrzi1] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.mfm-btn-action .material-symbols-outlined[b-2zeckdrzi1] {
    font-size: 14px;
}

.mfm-btn-edit:hover[b-2zeckdrzi1] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.mfm-btn-delete:hover[b-2zeckdrzi1] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* ── 5. Modal Backdrop & Card Form ──────────────────────────── */
.mfm-modal-overlay[b-2zeckdrzi1] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 16px;
    animation: mfmFadeIn-b-2zeckdrzi1 0.15s ease-out;
}

@keyframes mfmFadeIn-b-2zeckdrzi1 {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mfm-modal-card[b-2zeckdrzi1] {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 580px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: mfmSlideUp-b-2zeckdrzi1 0.15s ease-out;
}

@keyframes mfmSlideUp-b-2zeckdrzi1 {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mfm-modal-header[b-2zeckdrzi1] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.mfm-modal-title[b-2zeckdrzi1] {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.mfm-modal-close-btn[b-2zeckdrzi1] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.mfm-modal-close-btn:hover[b-2zeckdrzi1] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.mfm-modal-body[b-2zeckdrzi1] {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 75vh;
    overflow-y: auto;
}

.mfm-form-group[b-2zeckdrzi1] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mfm-form-label[b-2zeckdrzi1] {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mfm-form-input[b-2zeckdrzi1],
.mfm-form-select[b-2zeckdrzi1] {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mfm-form-input:focus[b-2zeckdrzi1],
.mfm-form-select:focus[b-2zeckdrzi1] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.mfm-grid-2col[b-2zeckdrzi1] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mfm-grid-3col[b-2zeckdrzi1] {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.mfm-checkbox-label[b-2zeckdrzi1] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    user-select: none;
}

.mfm-modal-footer[b-2zeckdrzi1] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.mfm-btn-delete[b-2zeckdrzi1] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #fca5a5;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mfm-btn-delete:hover:not(:disabled)[b-2zeckdrzi1] {
    background: #fee2e2;
}

.mfm-btn-delete:disabled[b-2zeckdrzi1] {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #e2e8f0;
    color: #94a3b8;
}

.mfm-btn-save[b-2zeckdrzi1] {
    height: 32px;
    padding: 0 16px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mfm-btn-save:hover[b-2zeckdrzi1] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

/* ── 6. Pagination & Table Footer ─────────────────────────── */
.mfm-table-footer[b-2zeckdrzi1] {
    padding: 6px 14px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 10px;
    background: #ffffff;
    font-size: 12px;
}

.mfm-page-size-wrap[b-2zeckdrzi1] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.mfm-page-size-select[b-2zeckdrzi1] {
    height: 26px;
    padding: 0 6px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    outline: none;
    cursor: pointer;
}

.mfm-page-info[b-2zeckdrzi1] {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.mfm-page-info strong[b-2zeckdrzi1] {
    color: #0f172a;
    font-weight: 700;
}

.mfm-pagination-wrap[b-2zeckdrzi1] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mfm-page-btn[b-2zeckdrzi1] {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mfm-page-btn:hover:not(:disabled)[b-2zeckdrzi1] {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.mfm-page-btn.active[b-2zeckdrzi1] {
    background: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
    font-weight: 700;
}

.mfm-page-btn:disabled[b-2zeckdrzi1] {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
}
/* /Components/Pages/OpeningStock.razor.rz.scp.css */
/* Scoped styles for OpeningStock component */

.opening-stock-page[b-kihmn6gmne] {
    width: 100%;
    min-height: 100vh;
    background: transparent;
    padding-bottom: 3rem;
}

.items-shell[b-kihmn6gmne] {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.items-content[b-kihmn6gmne] {
    width: 100%;
    margin: 0 auto;
}

/* ─── Premium Header Card (matching Stock Master) ─── */
.premium-header-card[b-kihmn6gmne] {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-radius: 16px !important;
    padding: 1.25rem 2rem !important;
    color: #1e1b4b !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
    position: relative;
    overflow: hidden;
    margin-top: 1.25rem !important;
    margin-bottom: 1.5rem !important;
}

.premium-header-card[b-kihmn6gmne]::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.header-card-left[b-kihmn6gmne] {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.header-card-icon[b-kihmn6gmne] {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #ffffff !important;
    border: 1px solid rgba(99, 102, 241, 0.2) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12) !important;
    color: #4f46e5;
    font-size: 1.4rem;
}

.header-card-text[b-kihmn6gmne] {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.header-card-heading[b-kihmn6gmne] {
    color: #0f172a !important;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tenant-code-badge[b-kihmn6gmne] {
    background: rgba(0, 0, 0, 0.04) !important;
    color: #4338ca !important;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
}

.header-card-subheading[b-kihmn6gmne] {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.status-dot[b-kihmn6gmne] {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #10b981;
    margin-right: 6px;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
}

.header-card-right[b-kihmn6gmne] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

/* ─── Header Action Buttons ─── */
.btn-header-action[b-kihmn6gmne] {
    height: 40px;
    border-radius: 12px;
    padding: 0 1.25rem;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: none;
    text-decoration: none;
}

.btn-header-template[b-kihmn6gmne] {
    background: #ffffff !important;
    color: #4f46e5 !important;
    border: 1px solid rgba(37, 99, 235, 0.25) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

.btn-header-template:hover:not(:disabled)[b-kihmn6gmne] {
    background: #f5f3ff !important;
    border-color: #4f46e5 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

.btn-header-nav[b-kihmn6gmne] {
    background: #4f46e5 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
}

.btn-header-nav:hover[b-kihmn6gmne] {
    background: #4338ca !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35) !important;
}

/* ─── Glassmorphic Card Container ─── */
.glass-panel-card[b-kihmn6gmne] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    transition: all 0.25s ease;
}

.panel-header-strip[b-kihmn6gmne] {
    padding: 1rem 1.75rem;
    background: linear-gradient(to right, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-header-title[b-kihmn6gmne] {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    letter-spacing: -0.2px;
}

.panel-header-title i[b-kihmn6gmne] {
    color: #4f46e5;
    font-size: 1.1rem;
}

.panel-header-badge[b-kihmn6gmne] {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
}

.panel-body-area[b-kihmn6gmne] {
    padding: 1.75rem;
}

/* ─── Upload Control Form Layout ─── */
.upload-form-wrapper[b-kihmn6gmne] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    align-items: stretch;
}

@media (max-width: 992px) {
    .upload-form-wrapper[b-kihmn6gmne] {
        grid-template-columns: 1fr;
    }
}

.upload-params-col[b-kihmn6gmne] {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group-custom[b-kihmn6gmne] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.form-label-custom[b-kihmn6gmne] {
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.form-label-custom .req-star[b-kihmn6gmne] {
    color: #ef4444;
    font-weight: 900;
}

.form-label-custom .hint-badge[b-kihmn6gmne] {
    font-size: 0.68rem;
    font-weight: 500;
    color: #64748b;
    margin-left: auto;
}

.custom-select-input[b-kihmn6gmne] {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    border: 1.5px solid #cbd5e1;
    background-color: #ffffff;
    padding: 0 1rem;
    font-size: 0.88rem;
    color: #1e293b;
    font-weight: 500;
    transition: all 0.2s ease;
    outline: none;
}

.custom-select-input:focus[b-kihmn6gmne] {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.custom-switch-card[b-kihmn6gmne] {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    cursor: pointer;
}

.custom-switch-card:hover[b-kihmn6gmne] {
    border-color: #cbd5e1;
}

.custom-switch-card.active[b-kihmn6gmne] {
    background: #f0fdf4;
    border-color: #86efac;
}

.switch-text-wrap[b-kihmn6gmne] {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
}

.switch-title[b-kihmn6gmne] {
    font-size: 0.84rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
}

.switch-desc[b-kihmn6gmne] {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.35;
}

/* ─── Guidance Card ─── */
.info-guidance-card[b-kihmn6gmne] {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    text-align: left;
}

.info-guidance-head[b-kihmn6gmne] {
    font-size: 0.78rem;
    font-weight: 700;
    color: #4f46e5;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.info-guidance-list[b-kihmn6gmne] {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.73rem;
    color: #64748b;
    line-height: 1.45;
}

.info-guidance-list li[b-kihmn6gmne] {
    margin-bottom: 3px;
}

.info-guidance-list li:last-child[b-kihmn6gmne] {
    margin-bottom: 0;
}

/* ─── File Dropzone Box ─── */
.dropzone-container[b-kihmn6gmne] {
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    padding: 1.75rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 190px;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
}

.dropzone-container:hover[b-kihmn6gmne], .dropzone-container.has-file[b-kihmn6gmne] {
    border-color: #4f46e5;
    background: #f5f3ff;
}

.dropzone-icon[b-kihmn6gmne] {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    font-size: 1.5rem;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.dropzone-text-main[b-kihmn6gmne] {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 3px;
}

.dropzone-text-sub[b-kihmn6gmne] {
    font-size: 0.74rem;
    color: #64748b;
    margin-bottom: 12px;
}

.btn-browse-file[b-kihmn6gmne] {
    background: #4f46e5;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.2);
    display: inline-flex;
    align-items: center;
}

.btn-browse-file:hover[b-kihmn6gmne] {
    background: #4338ca;
}

.file-selected-badge-box[b-kihmn6gmne] {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #86efac;
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
}

.file-info-left[b-kihmn6gmne] {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    overflow: hidden;
}

.file-info-icon[b-kihmn6gmne] {
    font-size: 1.7rem;
    color: #10b981;
    flex-shrink: 0;
}

.file-info-meta[b-kihmn6gmne] {
    overflow: hidden;
}

.file-info-title[b-kihmn6gmne] {
    font-size: 0.86rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.file-info-size[b-kihmn6gmne] {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 2px;
    display: flex;
    align-items: center;
}

.btn-remove-file[b-kihmn6gmne] {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-remove-file:hover[b-kihmn6gmne] {
    background: #ef4444;
    color: #ffffff;
}

/* ─── Upload Action Button ─── */
.btn-upload-submit[b-kihmn6gmne] {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
    transition: all 0.25s ease !important;
    margin-top: 1.25rem;
}

.btn-upload-submit:hover:not(:disabled)[b-kihmn6gmne] {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
    transform: translateY(-1.5px);
}

.btn-upload-submit:disabled[b-kihmn6gmne] {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
}

/* ─── Status & Result Cards ─── */
.stat-summary-grid[b-kihmn6gmne] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 992px) {
    .stat-summary-grid[b-kihmn6gmne] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .stat-summary-grid[b-kihmn6gmne] {
        grid-template-columns: 1fr;
    }
}

.stat-metric-card[b-kihmn6gmne] {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.stat-metric-card:hover[b-kihmn6gmne] {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.stat-icon-wrap[b-kihmn6gmne] {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-info-wrap[b-kihmn6gmne] {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.stat-val[b-kihmn6gmne] {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
    color: #1e293b;
}

.stat-lbl[b-kihmn6gmne] {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
    margin-top: 3px;
}

.stat-card-total .stat-icon-wrap[b-kihmn6gmne] {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}
.stat-card-total .stat-val[b-kihmn6gmne] {
    color: #1e40af;
}

.stat-card-inserted .stat-icon-wrap[b-kihmn6gmne] {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}
.stat-card-inserted .stat-val[b-kihmn6gmne] {
    color: #15803d;
}

.stat-card-updated .stat-icon-wrap[b-kihmn6gmne] {
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
}
.stat-card-updated .stat-val[b-kihmn6gmne] {
    color: #3730a3;
}

.stat-card-skipped .stat-icon-wrap[b-kihmn6gmne] {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}
.stat-card-skipped .stat-val[b-kihmn6gmne] {
    color: #b45309;
}

/* ─── Alerts & Banners ─── */
.banner-alert-box[b-kihmn6gmne] {
    border-radius: 14px;
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 1.25rem;
    text-align: left;
}

.banner-alert-success[b-kihmn6gmne] {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #14532d;
}

.banner-alert-warning[b-kihmn6gmne] {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #78350f;
}

.banner-alert-error[b-kihmn6gmne] {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #7f1d1d;
}

.banner-icon[b-kihmn6gmne] {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.banner-content[b-kihmn6gmne] {
    flex: 1;
}

.banner-title[b-kihmn6gmne] {
    font-size: 0.92rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.banner-text[b-kihmn6gmne] {
    font-size: 0.82rem;
    line-height: 1.4;
    margin: 0;
}

.warning-list[b-kihmn6gmne] {
    margin: 6px 0 0 0;
    padding-left: 1.25rem;
    font-size: 0.8rem;
}

/* ─── Errors / Skipped Rows Table ─── */
.error-table-card[b-kihmn6gmne] {
    background: #ffffff;
    border: 1px solid #fca5a5;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.error-table-header[b-kihmn6gmne] {
    background: #fee2e2;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #fecaca;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-download-skipped[b-kihmn6gmne] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #ffffff;
    color: #15803d;
    border: 1.5px solid #86efac;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.btn-download-skipped:hover:not(:disabled)[b-kihmn6gmne] {
    background: #f0fdf4;
    border-color: #22c55e;
    color: #166534;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(34, 197, 94, 0.2);
}

.btn-download-skipped:disabled[b-kihmn6gmne] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-stat-download-chip[b-kihmn6gmne] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ffffff;
    color: #b45309;
    border: 1px solid #fde68a;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-stat-download-chip:hover:not(:disabled)[b-kihmn6gmne] {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #92400e;
}

.error-table-title[b-kihmn6gmne] {
    font-size: 0.85rem;
    font-weight: 800;
    color: #991b1b;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.custom-table[b-kihmn6gmne] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    text-align: left;
}

.custom-table th[b-kihmn6gmne] {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 10px 14px;
    border-bottom: 1px solid #e2e8f0;
}

.custom-table td[b-kihmn6gmne] {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
}

.custom-table tr:hover td[b-kihmn6gmne] {
    background: #f8fafc;
}

.row-num-badge[b-kihmn6gmne] {
    background: #f1f5f9;
    color: #475569;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    display: inline-block;
}

/* ─── Stock Inventory Grid Toolbar & Styles ─── */
.stock-section-wrapper[b-kihmn6gmne] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.stock-filters-toolbar[b-kihmn6gmne] {
    padding: 1rem 1.75rem;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.toolbar-left-side[b-kihmn6gmne] {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.toolbar-title-wrap[b-kihmn6gmne] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar-title-text[b-kihmn6gmne] {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stock-count-badge[b-kihmn6gmne] {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
}

.filter-store-group[b-kihmn6gmne] {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 3px 12px;
    height: 38px;
}

.filter-store-label[b-kihmn6gmne] {
    font-size: 0.76rem;
    font-weight: 700;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.filter-store-select[b-kihmn6gmne] {
    border: none;
    background: transparent;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
    outline: none;
    cursor: pointer;
}

.toolbar-right-side[b-kihmn6gmne] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.items-search-wrap[b-kihmn6gmne] {
    position: relative;
    display: flex;
    align-items: center;
}

.items-search[b-kihmn6gmne] {
    width: 250px;
    height: 38px !important;
    border-radius: 20px !important;
    border: 1px solid #cbd5e1 !important;
    padding-left: 2.3rem !important;
    padding-right: 2rem !important;
    font-size: 0.82rem !important;
    background: #ffffff !important;
    color: #1e293b !important;
    box-shadow: none !important;
    transition: all 0.25s ease !important;
}

.items-search:focus[b-kihmn6gmne] {
    outline: none !important;
    width: 290px !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

.items-search-icon[b-kihmn6gmne] {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
}

.search-clear-btn[b-kihmn6gmne] {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.88rem;
}

.search-clear-btn:hover[b-kihmn6gmne] {
    color: #475569;
}

.view-toggle[b-kihmn6gmne] {
    display: inline-flex;
    border: 1px solid #cbd5e1 !important;
    border-radius: 20px !important;
    overflow: hidden;
    background: #f8fafc !important;
    height: 38px;
    padding: 2px;
    align-items: center;
}

.view-toggle button[b-kihmn6gmne] {
    border: 0 !important;
    background: transparent !important;
    color: #64748b !important;
    width: 36px;
    height: 32px;
    border-radius: 16px !important;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.view-toggle button.active[b-kihmn6gmne] {
    background: #ffffff !important;
    color: #4f46e5 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.btn-refresh-grid[b-kihmn6gmne] {
    height: 38px;
    border-radius: 20px;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 0 1.1rem;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-refresh-grid:hover:not(:disabled)[b-kihmn6gmne] {
    background: #e2e8f0;
    color: #1e293b;
    border-color: #94a3b8;
}

.spin[b-kihmn6gmne] {
    animation: rotateSpin-b-kihmn6gmne 1s linear infinite;
}

@keyframes rotateSpin-b-kihmn6gmne {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ─── State Loaders & Empty States ─── */
.stock-state-loading[b-kihmn6gmne], .stock-state-empty[b-kihmn6gmne] {
    text-align: center;
    padding: 3.5rem 1.5rem;
}

/* ─── NEAT & PERFECTLY ALIGNED TABLE ─── */
.opening-stock-table-responsive[b-kihmn6gmne] {
    max-height: 600px;
    overflow-y: auto;
    overflow-x: auto;
    border-top: 1px solid #e2e8f0;
}

.opening-stock-table[b-kihmn6gmne] {
    width: 100%;
    min-width: 1150px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.84rem;
    text-align: left;
}

.opening-stock-table thead tr th[b-kihmn6gmne] {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8fafc !important;
    color: #475569 !important;
    font-weight: 800 !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.7px !important;
    text-transform: uppercase !important;
    padding: 14px 16px !important;
    border-bottom: 2px solid #e2e8f0 !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
}

.opening-stock-table tbody tr td[b-kihmn6gmne] {
    padding: 13px 16px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #334155;
    vertical-align: middle !important;
    white-space: nowrap !important;
    background: #ffffff;
    transition: background 0.15s ease;
}

.opening-stock-table tbody tr:hover td[b-kihmn6gmne] {
    background: #f8faff !important;
}

/* Column Width Specifications */
.th-sno[b-kihmn6gmne], .td-sno[b-kihmn6gmne] {
    width: 55px;
    min-width: 55px;
    text-align: center;
    color: #64748b;
    font-weight: 600;
}

.th-code[b-kihmn6gmne], .td-code[b-kihmn6gmne] {
    width: 115px;
    min-width: 110px;
}

.th-item[b-kihmn6gmne], .td-item[b-kihmn6gmne] {
    min-width: 220px;
    max-width: 280px;
}

.th-store[b-kihmn6gmne], .td-store[b-kihmn6gmne] {
    width: 180px;
    min-width: 160px;
}

.th-batch[b-kihmn6gmne], .td-batch[b-kihmn6gmne] {
    width: 120px;
    min-width: 110px;
    text-align: center;
}

.th-qty[b-kihmn6gmne], .td-qty[b-kihmn6gmne] {
    width: 105px;
    min-width: 95px;
    text-align: right;
}

.th-cost[b-kihmn6gmne], .td-cost[b-kihmn6gmne] {
    width: 115px;
    min-width: 105px;
    text-align: right;
}

.th-val[b-kihmn6gmne], .td-val[b-kihmn6gmne] {
    width: 130px;
    min-width: 120px;
    text-align: right;
}

.th-status[b-kihmn6gmne], .td-status[b-kihmn6gmne] {
    width: 130px;
    min-width: 120px;
    text-align: center;
}

/* Cell Elements */
.stock-code-badge[b-kihmn6gmne] {
    background: #eef2ff;
    color: #4f46e5;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    letter-spacing: 0.3px;
    border: 1px solid #e0e7ff;
}

.item-name-wrap[b-kihmn6gmne] {
    font-weight: 700;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-text[b-kihmn6gmne] {
    color: #475569;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.batch-no-pill[b-kihmn6gmne] {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.batch-pill-active[b-kihmn6gmne] {
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #cbd5e1;
}

.batch-pill-muted[b-kihmn6gmne] {
    background: #f8fafc;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
}

.stock-status-tag[b-kihmn6gmne] {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-block;
}

.status-instock[b-kihmn6gmne] {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.status-lowstock[b-kihmn6gmne] {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.status-outofstock[b-kihmn6gmne] {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

/* ─── Card View Grid ─── */
.items-card-grid[b-kihmn6gmne] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.25rem;
    padding: 1.5rem;
}

.item-card[b-kihmn6gmne] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.item-card:hover[b-kihmn6gmne] {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.item-card-head[b-kihmn6gmne] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.card-item-code[b-kihmn6gmne] {
    font-size: 0.82rem;
    font-weight: 800;
    color: #4f46e5;
}

.detail-row[b-kihmn6gmne] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    padding: 5px 0;
}

.detail-label[b-kihmn6gmne] {
    color: #64748b;
}

.detail-value[b-kihmn6gmne] {
    color: #1e293b;
    font-weight: 600;
}

/* ─── Pagination Bar ─── */
.pagination-controls-wrap[b-kihmn6gmne] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.75rem;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    flex-wrap: wrap;
    gap: 10px;
}

.pagination-info-text[b-kihmn6gmne] {
    font-size: 0.82rem;
    font-weight: 500;
    color: #64748b;
}

.pagination-bar[b-kihmn6gmne] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.page-btn[b-kihmn6gmne] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled)[b-kihmn6gmne] {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

.page-btn.active[b-kihmn6gmne] {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
}

.page-btn:disabled[b-kihmn6gmne] {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ─── Dark Mode Support ─── */
[data-theme="dark"] .premium-header-card[b-kihmn6gmne] {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .header-card-heading[b-kihmn6gmne] {
    color: #f8fafc !important;
}

[data-theme="dark"] .header-card-icon[b-kihmn6gmne] {
    background: #1e293b !important;
    border-color: rgba(99, 102, 241, 0.4) !important;
    color: #818cf8 !important;
}

[data-theme="dark"] .btn-header-template[b-kihmn6gmne] {
    background: #1e293b !important;
    color: #818cf8 !important;
    border-color: rgba(99, 102, 241, 0.4) !important;
}

[data-theme="dark"] .glass-panel-card[b-kihmn6gmne],
[data-theme="dark"] .stock-section-wrapper[b-kihmn6gmne],
[data-theme="dark"] .item-card[b-kihmn6gmne] {
    background: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .panel-header-strip[b-kihmn6gmne] {
    background: #0f172a !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .panel-header-title[b-kihmn6gmne] {
    color: #f8fafc !important;
}

[data-theme="dark"] .form-label-custom[b-kihmn6gmne] {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .custom-select-input[b-kihmn6gmne],
[data-theme="dark"] .items-search[b-kihmn6gmne] {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .custom-switch-card[b-kihmn6gmne],
[data-theme="dark"] .info-guidance-card[b-kihmn6gmne],
[data-theme="dark"] .dropzone-container[b-kihmn6gmne],
[data-theme="dark"] .filter-store-group[b-kihmn6gmne],
[data-theme="dark"] .btn-refresh-grid[b-kihmn6gmne],
[data-theme="dark"] .view-toggle[b-kihmn6gmne] {
    background: #0f172a !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .custom-switch-card.active[b-kihmn6gmne] {
    background: #064e3b !important;
    border-color: #059669 !important;
}

[data-theme="dark"] .switch-title[b-kihmn6gmne],
[data-theme="dark"] .dropzone-text-main[b-kihmn6gmne],
[data-theme="dark"] .toolbar-title-text[b-kihmn6gmne],
[data-theme="dark"] .detail-value[b-kihmn6gmne],
[data-theme="dark"] .item-name-wrap[b-kihmn6gmne],
[data-theme="dark"] .filter-store-select[b-kihmn6gmne] {
    color: #f8fafc !important;
}

[data-theme="dark"] .dropzone-icon[b-kihmn6gmne] {
    background: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .file-selected-badge-box[b-kihmn6gmne] {
    background: #0f172a !important;
    border-color: #059669 !important;
}

[data-theme="dark"] .file-info-title[b-kihmn6gmne] {
    color: #f8fafc !important;
}

[data-theme="dark"] .opening-stock-table thead tr th[b-kihmn6gmne] {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] .opening-stock-table tbody tr td[b-kihmn6gmne] {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .opening-stock-table tbody tr:hover td[b-kihmn6gmne] {
    background: #0f172a !important;
}

[data-theme="dark"] .stock-filters-toolbar[b-kihmn6gmne],
[data-theme="dark"] .pagination-controls-wrap[b-kihmn6gmne] {
    background: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .page-btn[b-kihmn6gmne] {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] .page-btn:hover:not(:disabled)[b-kihmn6gmne] {
    background: #334155 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .stat-metric-card[b-kihmn6gmne] {
    background: #0f172a !important;
    border-color: #334155 !important;
}
/* /Components/Pages/OutsourceManagement.razor.rz.scp.css */
/* ==========================================================================
   OUTSOURCE MANAGEMENT — SINGLE VIEWPORT MODERN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Main Layout Wrapper ────────────────────── */
.os-page-root[b-h542brc5ye] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.os-top-bar[b-h542brc5ye] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.os-title-block[b-h542brc5ye] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.os-title-icon-wrap[b-h542brc5ye] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #f3e8ff;
    color: #9333ea;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.os-title-icon-wrap .material-symbols-outlined[b-h542brc5ye] {
    font-size: 20px;
}

.os-breadcrumbs[b-h542brc5ye] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    line-height: 1.2;
}

.os-breadcrumb-link[b-h542brc5ye] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.os-breadcrumb-link:hover[b-h542brc5ye] {
    color: #2563eb;
}

.os-breadcrumb-sep[b-h542brc5ye] {
    font-size: 10px;
    color: #cbd5e1;
}

.os-page-title[b-h542brc5ye] {
    margin: 2px 0 0 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.2;
}

.os-badge-directory[b-h542brc5ye] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #dcfce7;
    padding: 2px 7px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.os-live-dot[b-h542brc5ye] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
    animation: os-pulse-b-h542brc5ye 2s infinite;
}

@keyframes os-pulse-b-h542brc5ye {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    70% { transform: scale(1); box-shadow: 0 0 0 4px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ── Top Right Tab Switcher ────────────────────────────────── */
.os-tabs-nav[b-h542brc5ye] {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 9px;
}

.os-tab-btn[b-h542brc5ye] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.os-tab-btn:hover[b-h542brc5ye] {
    background: rgba(255, 255, 255, 0.6);
    color: #1e293b;
}

.os-tab-btn.active[b-h542brc5ye] {
    background: #0f172a !important;
    color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    font-weight: 700;
}

.os-tab-btn .material-symbols-outlined[b-h542brc5ye] {
    font-size: 16px;
}

/* ── 3. KPI / Stat Summary Cards Grid ──────────────────────── */
.os-stats-grid[b-h542brc5ye] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex-shrink: 0;
}

.os-stat-card[b-h542brc5ye] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 64px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.os-stat-card[b-h542brc5ye]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.os-card-primary[b-h542brc5ye]::before { background: #6366f1; }
.os-card-success[b-h542brc5ye]::before { background: #10b981; }
.os-card-warning[b-h542brc5ye]::before { background: #f59e0b; }
.os-card-info[b-h542brc5ye]::before    { background: #0ea5e9; }

.os-stat-top[b-h542brc5ye] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.os-stat-icon-wrap[b-h542brc5ye] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.os-card-primary .os-stat-icon-wrap[b-h542brc5ye] { background: #eef2ff; color: #4f46e5; }
.os-card-success .os-stat-icon-wrap[b-h542brc5ye] { background: #ecfdf5; color: #059669; }
.os-card-warning .os-stat-icon-wrap[b-h542brc5ye] { background: #fffbeb; color: #d97706; }
.os-card-info .os-stat-icon-wrap[b-h542brc5ye]    { background: #f0f9ff; color: #0284c7; }

.os-stat-icon-wrap .material-symbols-outlined[b-h542brc5ye] {
    font-size: 15px;
}

.os-stat-tag[b-h542brc5ye] {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
}

.os-stat-mid[b-h542brc5ye] {
    margin-top: 2px;
}

.os-stat-label[b-h542brc5ye] {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.os-stat-bottom[b-h542brc5ye] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.os-stat-val[b-h542brc5ye] {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.os-stat-subtext[b-h542brc5ye] {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── 4. Table Card Container (Single Viewport Inner Area) ─── */
.os-table-card[b-h542brc5ye] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

/* ── Toolbar Header within Table Card ──────────────────────── */
.os-toolbar[b-h542brc5ye] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
    gap: 8px;
    flex-wrap: wrap;
}

.os-toolbar-left[b-h542brc5ye] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.os-toolbar-right[b-h542brc5ye] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.os-search-wrap[b-h542brc5ye] {
    position: relative;
    max-width: 280px;
    width: 100%;
}

.os-search-wrap .material-symbols-outlined[b-h542brc5ye] {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.os-search-input[b-h542brc5ye] {
    width: 100%;
    height: 32px;
    padding: 0 10px 0 30px;
    font-size: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background-color: #f8fafc;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: all 0.15s;
}

.os-search-input:focus[b-h542brc5ye] {
    border-color: #6366f1;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.os-filter-select[b-h542brc5ye] {
    height: 32px;
    padding: 0 24px 0 10px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #f8fafc url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat right 8px center;
    background-size: 13px;
    color: #1e293b;
    outline: none;
    cursor: pointer;
}

.os-checkbox-label[b-h542brc5ye] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

.os-checkbox-label input[type="checkbox"][b-h542brc5ye] {
    accent-color: #6366f1;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.os-btn-primary[b-h542brc5ye] {
    height: 32px;
    padding: 0 14px;
    background: #0f172a !important;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 600;
    border: none !important;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.os-btn-primary:hover[b-h542brc5ye] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

.os-btn-secondary[b-h542brc5ye] {
    height: 32px;
    padding: 0 12px;
    background: #ffffff;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.os-btn-secondary:hover[b-h542brc5ye] {
    background: #f1f5f9;
    color: #0f172a;
}

/* Status Filter Pills for Work Orders */
.os-status-pills[b-h542brc5ye] {
    display: flex;
    gap: 5px;
    align-items: center;
}

.os-status-pill[b-h542brc5ye] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
}

.os-status-pill:hover[b-h542brc5ye] {
    background: #f8fafc;
    color: #1e293b;
}

.os-status-pill.active[b-h542brc5ye] {
    background: #0f172a !important;
    border-color: #0f172a !important;
    color: #ffffff !important;
}

.os-status-pill .pill-count[b-h542brc5ye] {
    background: rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 800;
}

.os-status-pill.active .pill-count[b-h542brc5ye] {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* ── 5. Internal Scroll Table Layout ───────────────────────── */
.os-table-container[b-h542brc5ye] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

.os-table[b-h542brc5ye] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    text-align: left;
}

/* Light Slate Modern Header */
.os-thead[b-h542brc5ye] {
    position: sticky;
    top: 0;
    z-index: 10;
}

.os-th[b-h542brc5ye] {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 9px 12px;
    border-bottom: 1px solid #e2e8f0;
    border-top: none;
    white-space: nowrap;
    user-select: none;
}

.os-tbody tr[b-h542brc5ye] {
    background-color: #ffffff;
    transition: background-color 0.12s ease;
}

.os-tbody tr:hover[b-h542brc5ye] {
    background-color: #f8fafc;
}

.os-td[b-h542brc5ye] {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
    font-size: 12px;
}

/* Avatar / Entity Cells */
.os-entity-cell[b-h542brc5ye] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.os-avatar[b-h542brc5ye] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 11px;
    color: #ffffff;
    flex-shrink: 0;
}

.os-avatar-purple[b-h542brc5ye] { background: linear-gradient(135deg, #a855f7, #6366f1); }
.os-avatar-blue[b-h542brc5ye]   { background: linear-gradient(135deg, #3b82f6, #0284c7); }
.os-avatar-teal[b-h542brc5ye]   { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.os-avatar-emerald[b-h542brc5ye]{ background: linear-gradient(135deg, #10b981, #059669); }
.os-avatar-amber[b-h542brc5ye]  { background: linear-gradient(135deg, #f59e0b, #d97706); }

/* Badges */
.os-badge[b-h542brc5ye] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.os-badge-green[b-h542brc5ye]  { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.os-badge-gray[b-h542brc5ye]   { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }
.os-badge-blue[b-h542brc5ye]   { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.os-badge-orange[b-h542brc5ye] { background: #ffedd5; color: #c2410c; border: 1px solid #fed7aa; }
.os-badge-purple[b-h542brc5ye] { background: #f3e8ff; color: #7e22ce; border: 1px solid #e9d5ff; }

/* Action Buttons */
.os-actions-cell[b-h542brc5ye] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.os-btn-action[b-h542brc5ye] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.12s;
    padding: 0;
}

.os-btn-action .material-symbols-outlined[b-h542brc5ye] {
    font-size: 15px;
}

.os-btn-action:hover[b-h542brc5ye] {
    background: #f1f5f9;
    color: #0f172a;
}

.os-btn-action-edit:hover[b-h542brc5ye] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.os-btn-action-upload:hover[b-h542brc5ye] {
    background: #ecfdf5;
    color: #059669;
    border-color: #a7f3d0;
}

.os-btn-action-delete:hover[b-h542brc5ye] {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

/* Empty State */
.os-empty-state[b-h542brc5ye] {
    padding: 40px !important;
    text-align: center;
    color: #94a3b8;
    font-size: 12.5px;
    font-style: normal;
}

.os-empty-state .material-symbols-outlined[b-h542brc5ye] {
    font-size: 36px;
    color: #cbd5e1;
    margin-bottom: 6px;
}

/* ── 6. Pagination Footer ──────────────────────────────────── */
.os-table-footer[b-h542brc5ye] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    font-size: 11.5px;
    color: #64748b;
    flex-shrink: 0;
}

.os-page-size-wrap[b-h542brc5ye] {
    display: flex;
    align-items: center;
    gap: 6px;
}

.os-page-size-select[b-h542brc5ye] {
    height: 26px;
    padding: 0 18px 0 6px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: #ffffff url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat right 4px center;
    background-size: 11px;
    color: #334155;
    outline: none;
    cursor: pointer;
}

.os-pagination-nav[b-h542brc5ye] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.os-page-btn[b-h542brc5ye] {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.12s;
    padding: 0;
}

.os-page-btn:hover:not(:disabled)[b-h542brc5ye] {
    background: #f1f5f9;
    color: #0f172a;
}

.os-page-btn:disabled[b-h542brc5ye] {
    opacity: 0.4;
    cursor: not-allowed;
}

.os-page-btn .material-symbols-outlined[b-h542brc5ye] {
    font-size: 14px;
}

/* ── 7. Modern Modal Dialog System ─────────────────────────── */
.os-modal-overlay[b-h542brc5ye] {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
    animation: os-fade-in-b-h542brc5ye 0.15s ease-out;
}

@keyframes os-fade-in-b-h542brc5ye {
    from { opacity: 0; }
    to { opacity: 1; }
}

.os-modal-card[b-h542brc5ye] {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: os-slide-up-b-h542brc5ye 0.2s ease-out;
}

@keyframes os-slide-up-b-h542brc5ye {
    from { transform: translateY(12px) scale(0.98); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.os-modal-header[b-h542brc5ye] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.os-modal-title-wrap[b-h542brc5ye] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.os-modal-title-wrap .material-symbols-outlined[b-h542brc5ye] {
    font-size: 20px;
    color: #6366f1;
}

.os-modal-title[b-h542brc5ye] {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.os-modal-close-btn[b-h542brc5ye] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 16px;
}

.os-modal-close-btn:hover[b-h542brc5ye] {
    background: #fee2e2;
    color: #ef4444;
}

.os-modal-body[b-h542brc5ye] {
    padding: 16px 18px;
    max-height: 75vh;
    overflow-y: auto;
}

.os-form-grid[b-h542brc5ye] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.os-form-grid-3[b-h542brc5ye] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.os-form-col-full[b-h542brc5ye] {
    grid-column: 1 / -1;
}

.os-form-group[b-h542brc5ye] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.os-form-label[b-h542brc5ye] {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.os-form-input[b-h542brc5ye], .os-form-select[b-h542brc5ye], .os-form-textarea[b-h542brc5ye] {
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #ffffff;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: all 0.15s;
    font-family: inherit;
}

.os-form-textarea[b-h542brc5ye] {
    height: 64px;
    padding: 6px 10px;
    resize: vertical;
}

.os-form-input:focus[b-h542brc5ye], .os-form-select:focus[b-h542brc5ye], .os-form-textarea:focus[b-h542brc5ye] {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.os-modal-footer[b-h542brc5ye] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 18px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    gap: 8px;
}

.os-btn-cancel[b-h542brc5ye] {
    height: 32px;
    padding: 0 14px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.os-btn-cancel:hover[b-h542brc5ye] {
    background: #f1f5f9;
    color: #1e293b;
}

.os-btn-save[b-h542brc5ye] {
    height: 32px;
    padding: 0 16px;
    background: #0f172a !important;
    border: none !important;
    border-radius: 6px;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.os-btn-save:hover[b-h542brc5ye] {
    background: #1e293b !important;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

.os-btn-save:disabled[b-h542brc5ye] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Info Summary Box in Detail Modal */
.os-info-grid[b-h542brc5ye] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.os-info-item[b-h542brc5ye] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.os-info-lbl[b-h542brc5ye] {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.os-info-val[b-h542brc5ye] {
    font-size: 12.5px;
    font-weight: 600;
    color: #1e293b;
}

/* ── 8. Outsource Workflow State Banners & Notice Boxes ──────── */
.os-state-banner[b-h542brc5ye] {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.45;
}

.os-state-banner .material-symbols-outlined[b-h542brc5ye] {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.os-banner-pending[b-h542brc5ye] {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}
.os-banner-pending .material-symbols-outlined[b-h542brc5ye] { color: #d97706; }

.os-banner-assisted[b-h542brc5ye] {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}
.os-banner-assisted .material-symbols-outlined[b-h542brc5ye] { color: #2563eb; }

.os-banner-received[b-h542brc5ye] {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}
.os-banner-received .material-symbols-outlined[b-h542brc5ye] { color: #059669; }

/* ── 9. Uploaded Report Files List & Cards ─────────────────── */
.os-reports-section-title[b-h542brc5ye] {
    font-size: 11.5px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 14px 0 8px 0;
}

.os-report-files-list[b-h542brc5ye] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
    padding: 2px;
}

.os-report-file-card[b-h542brc5ye] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: all 0.15s ease;
}

.os-report-file-card:hover[b-h542brc5ye] {
    border-color: #cbd5e1;
    box-shadow: 0 3px 6px rgba(0,0,0,0.06);
    background: #f8fafc;
}

.os-file-info-wrap[b-h542brc5ye] {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.os-file-thumb[b-h542brc5ye] {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    flex-shrink: 0;
}

.os-thumb-pdf[b-h542brc5ye] {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.os-thumb-img[b-h542brc5ye] {
    background: #e0e7ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
}

.os-file-meta[b-h542brc5ye] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 1px;
}

.os-file-name[b-h542brc5ye] {
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.os-file-sub[b-h542brc5ye] {
    font-size: 10.5px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.os-file-actions[b-h542brc5ye] {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.os-btn-file-action[b-h542brc5ye] {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.os-btn-file-action .material-symbols-outlined[b-h542brc5ye] {
    font-size: 16px;
}

.os-btn-file-action:hover[b-h542brc5ye] {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.os-btn-file-action.view:hover[b-h542brc5ye] { color: #2563eb; border-color: #93c5fd; background: #eff6ff; }
.os-btn-file-action.print:hover[b-h542brc5ye] { color: #4f46e5; border-color: #c7d2fe; background: #eef2ff; }
.os-btn-file-action.whatsapp:hover[b-h542brc5ye] { color: #16a34a; border-color: #86efac; background: #f0fdf4; }
.os-btn-file-action.email:hover[b-h542brc5ye] { color: #0284c7; border-color: #7dd3fc; background: #f0f9ff; }
.os-btn-file-action.delete:hover[b-h542brc5ye] { color: #dc2626; border-color: #fca5a5; background: #fee2e2; }

/* ── 10. Multi-File Upload UI ───────────────────────────────── */
.os-file-chips-grid[b-h542brc5ye] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 180px;
    overflow-y: auto;
    margin-top: 8px;
}

.os-file-chip[b-h542brc5ye] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 11.5px;
}

.os-file-chip-meta[b-h542brc5ye] {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.os-chip-remove[b-h542brc5ye] {
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 4px;
    border-radius: 4px;
    line-height: 1;
}

.os-chip-remove:hover[b-h542brc5ye] {
    color: #ef4444;
    background: #fee2e2;
}

/* ── 11. Send Report Modal UI ──────────────────────────────── */
.os-send-tabs[b-h542brc5ye] {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 14px;
}

.os-send-tab[b-h542brc5ye] {
    flex: 1;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s;
}

.os-send-tab.active-wa[b-h542brc5ye] {
    color: #16a34a;
    border-bottom-color: #16a34a;
    background: #f0fdf4;
}

.os-send-tab.active-em[b-h542brc5ye] {
    color: #0284c7;
    border-bottom-color: #0284c7;
    background: #f0f9ff;
}

.os-msg-preview-box[b-h542brc5ye] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 11.5px;
    color: #334155;
    white-space: pre-wrap;
    word-break: break-all;
    margin-top: 6px;
    font-family: monospace;
}

/* /Components/Pages/PackageMasterPage.razor.rz.scp.css */
/* ==========================================================================
   PACKAGE MASTER — MODERN OBSIDIAN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Main Layout Wrapper ────────────────────── */
.pkg-page-root[b-2qrldtm176] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.pkg-top-bar[b-2qrldtm176] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.pkg-title-block[b-2qrldtm176] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pkg-title-icon-wrap[b-2qrldtm176] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pkg-title-icon-wrap .material-symbols-outlined[b-2qrldtm176] {
    font-size: 20px;
}

.pkg-breadcrumbs[b-2qrldtm176] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.pkg-breadcrumb-link[b-2qrldtm176] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.pkg-breadcrumb-link:hover[b-2qrldtm176] {
    color: #2563eb;
}

.pkg-breadcrumb-sep[b-2qrldtm176] {
    font-size: 11px;
}

.pkg-page-title[b-2qrldtm176] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pkg-badge-directory[b-2qrldtm176] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pkg-live-dot[b-2qrldtm176] {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.pkg-top-actions[b-2qrldtm176] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pkg-search-wrap[b-2qrldtm176] {
    position: relative;
    width: 240px;
}

.pkg-search-wrap .material-symbols-outlined[b-2qrldtm176] {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.pkg-search-input[b-2qrldtm176] {
    width: 100%;
    height: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 10px 0 32px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pkg-search-input:focus[b-2qrldtm176] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.pkg-btn-primary[b-2qrldtm176] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.pkg-btn-primary:hover[b-2qrldtm176] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

.pkg-btn-icon[b-2qrldtm176] {
    font-size: 16px;
}

/* ── 3. KPI / Stat Cards Grid ───────────────────────────────── */
.pkg-stats-grid[b-2qrldtm176] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex-shrink: 0;
}

.pkg-stat-card[b-2qrldtm176] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 7px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.pkg-stat-card[b-2qrldtm176]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.pkg-card-total[b-2qrldtm176]::before    { background: #3b82f6; }
.pkg-card-active[b-2qrldtm176]::before   { background: #10b981; }
.pkg-card-tests[b-2qrldtm176]::before    { background: #6366f1; }
.pkg-card-filtered[b-2qrldtm176]::before { background: #f59e0b; }

.pkg-stat-card:hover[b-2qrldtm176] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.pkg-stat-top[b-2qrldtm176] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pkg-stat-icon-wrap[b-2qrldtm176] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pkg-stat-icon-wrap .material-symbols-outlined[b-2qrldtm176] {
    font-size: 15px;
}

.pkg-stat-tag[b-2qrldtm176] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.pkg-stat-tag .material-symbols-outlined[b-2qrldtm176] {
    font-size: 13px;
}

.pkg-card-total .pkg-stat-icon-wrap[b-2qrldtm176]    { background: #eff6ff; color: #3b82f6; }
.pkg-card-total .pkg-stat-tag[b-2qrldtm176]          { background: #eff6ff; color: #2563eb; }

.pkg-card-active .pkg-stat-icon-wrap[b-2qrldtm176]   { background: #ecfdf5; color: #10b981; }
.pkg-card-active .pkg-stat-tag[b-2qrldtm176]         { background: #ecfdf5; color: #059669; }

.pkg-card-tests .pkg-stat-icon-wrap[b-2qrldtm176]    { background: #eef2ff; color: #6366f1; }
.pkg-card-tests .pkg-stat-tag[b-2qrldtm176]          { background: #eef2ff; color: #4f46e5; }

.pkg-card-filtered .pkg-stat-icon-wrap[b-2qrldtm176] { background: #fffbeb; color: #d97706; }
.pkg-card-filtered .pkg-stat-tag[b-2qrldtm176]       { background: #fffbeb; color: #b45309; }

.pkg-stat-mid[b-2qrldtm176] {
    margin-top: 1px;
}

.pkg-stat-label[b-2qrldtm176] {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pkg-stat-bottom[b-2qrldtm176] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.pkg-stat-val[b-2qrldtm176] {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.pkg-stat-subtext[b-2qrldtm176] {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── 4. Table Card Container (Single Viewport Inner Area) ─── */
.pkg-table-card[b-2qrldtm176] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.pkg-table-container[b-2qrldtm176] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

.pkg-main-table[b-2qrldtm176] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    text-align: left;
}

/* Light Slate Sticky Header */
.pkg-main-thead[b-2qrldtm176] {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8fafc !important;
}

.pkg-main-th[b-2qrldtm176] {
    background-color: #f8fafc !important;
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 9px 12px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: none !important;
    white-space: nowrap;
    user-select: none;
}

.pkg-main-tbody tr[b-2qrldtm176] {
    background-color: #ffffff;
    transition: background-color 0.12s ease;
}

.pkg-main-tbody tr:hover[b-2qrldtm176] {
    background-color: #f8fafc;
}

.pkg-main-td[b-2qrldtm176] {
    padding: 7px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
    font-size: 12px;
}

.pkg-badge-code[b-2qrldtm176] {
    display: inline-block;
    padding: 2px 6px;
    background: #eff6ff;
    color: #2563eb;
    font-family: monospace;
    font-weight: 700;
    font-size: 11px;
    border-radius: 4px;
    border: 1px solid #bfdbfe;
}

.pkg-shortname-pill[b-2qrldtm176] {
    display: inline-block;
    color: #4f46e5;
    font-family: monospace;
    font-weight: 700;
    font-size: 11.5px;
    background: #eef2ff;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid #c7d2fe;
}

.pkg-name-cell[b-2qrldtm176] {
    font-weight: 700;
    color: #0f172a;
    font-size: 12px;
}

.pkg-dept-pill[b-2qrldtm176] {
    color: #64748b;
    font-size: 11.5px;
}

.pkg-tests-badge[b-2qrldtm176] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid #e2e8f0;
}

.pkg-amount-highlight[b-2qrldtm176] {
    color: #059669;
    font-weight: 800;
    font-size: 12.5px;
}

.pkg-amount-dim[b-2qrldtm176] {
    color: #64748b;
    font-weight: 600;
    font-size: 11.5px;
}

/* Action Buttons */
.pkg-actions-cell[b-2qrldtm176] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.pkg-btn-action[b-2qrldtm176] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.pkg-btn-action .material-symbols-outlined[b-2qrldtm176] {
    font-size: 14px;
}

.pkg-btn-edit:hover[b-2qrldtm176] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.pkg-btn-delete:hover[b-2qrldtm176] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* ── 5. Modal Backdrop & Card Form ──────────────────────────── */
.pkg-modal-overlay[b-2qrldtm176] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 16px;
    animation: pkgFadeIn-b-2qrldtm176 0.15s ease-out;
}

@keyframes pkgFadeIn-b-2qrldtm176 {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pkg-modal-card[b-2qrldtm176] {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 780px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: pkgSlideUp-b-2qrldtm176 0.15s ease-out;
}

@keyframes pkgSlideUp-b-2qrldtm176 {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pkg-modal-header[b-2qrldtm176] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.pkg-modal-title[b-2qrldtm176] {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.pkg-modal-close-btn[b-2qrldtm176] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.pkg-modal-close-btn:hover[b-2qrldtm176] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.pkg-modal-body[b-2qrldtm176] {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 75vh;
    overflow-y: auto;
}

.pkg-form-group[b-2qrldtm176] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pkg-form-label[b-2qrldtm176] {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pkg-form-input[b-2qrldtm176],
.pkg-form-select[b-2qrldtm176] {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pkg-form-input:focus[b-2qrldtm176],
.pkg-form-select:focus[b-2qrldtm176] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.pkg-grid-4col[b-2qrldtm176] {
    display: grid;
    grid-template-columns: 80px 140px 1fr 120px;
    gap: 10px;
}

.pkg-grid-4col-amounts[b-2qrldtm176] {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
}

.pkg-picker-box[b-2qrldtm176] {
    margin-top: 6px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pkg-picker-head[b-2qrldtm176] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.pkg-picker-title[b-2qrldtm176] {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pkg-picker-controls[b-2qrldtm176] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pkg-btn-add-test[b-2qrldtm176] {
    height: 30px;
    padding: 0 12px;
    border-radius: 6px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.pkg-btn-add-test:hover[b-2qrldtm176] {
    background: #1e293b;
}

.pkg-tests-table[b-2qrldtm176] {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.pkg-tests-table th[b-2qrldtm176] {
    background: #f1f5f9;
    color: #475569;
    font-size: 10.5px;
    font-weight: 700;
    padding: 6px 10px;
    text-transform: uppercase;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.pkg-tests-table td[b-2qrldtm176] {
    padding: 6px 10px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.pkg-test-remove-btn[b-2qrldtm176] {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.pkg-test-remove-btn:hover[b-2qrldtm176] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.pkg-modal-footer[b-2qrldtm176] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.pkg-btn-delete[b-2qrldtm176] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #fca5a5;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pkg-btn-delete:hover:not(:disabled)[b-2qrldtm176] {
    background: #fee2e2;
}

.pkg-btn-delete:disabled[b-2qrldtm176] {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #e2e8f0;
    color: #94a3b8;
}

.pkg-btn-save[b-2qrldtm176] {
    height: 32px;
    padding: 0 16px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pkg-btn-save:hover[b-2qrldtm176] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

/* ── 6. Pagination & Table Footer ─────────────────────────── */
.pkg-table-footer[b-2qrldtm176] {
    padding: 6px 14px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 10px;
    background: #ffffff;
    font-size: 12px;
}

.pkg-page-size-wrap[b-2qrldtm176] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.pkg-page-size-select[b-2qrldtm176] {
    height: 26px;
    padding: 0 6px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    outline: none;
    cursor: pointer;
}

.pkg-page-info[b-2qrldtm176] {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.pkg-page-info strong[b-2qrldtm176] {
    color: #0f172a;
    font-weight: 700;
}

.pkg-pagination-wrap[b-2qrldtm176] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pkg-page-btn[b-2qrldtm176] {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pkg-page-btn:hover:not(:disabled)[b-2qrldtm176] {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.pkg-page-btn.active[b-2qrldtm176] {
    background: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
    font-weight: 700;
}

.pkg-page-btn:disabled[b-2qrldtm176] {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
}
/* /Components/Pages/ParentCategoryMaster.razor.rz.scp.css */
/* Isolated styles for ParentCategoryMaster component */

.items-page[b-4swiou501t] {
    min-height: 100vh;
    background: transparent !important;
}

.items-shell[b-4swiou501t] {
    max-width: 1320px;
    margin: 0 auto;
}

.items-content[b-4swiou501t] {
    width: min(1240px, 100%);
    margin: 0 auto;
    text-align: center;
}

.premium-header-card[b-4swiou501t] {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-radius: 16px !important;
    padding: 1.25rem 2rem !important;
    color: #1e1b4b !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem !important;
}

.header-card-left[b-4swiou501t] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-card-icon[b-4swiou501t] {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

.header-card-icon svg[b-4swiou501t] {
    stroke: #2563eb !important;
}

.header-card-text[b-4swiou501t] {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.header-card-heading[b-4swiou501t] {
    color: #0f172a !important;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
}

.header-card-subheading[b-4swiou501t] {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b !important;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.status-dot[b-4swiou501t] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    margin-right: 6px;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
}

.header-card-right[b-4swiou501t] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.items-search-wrap[b-4swiou501t] {
    position: relative;
    display: flex;
    align-items: center;
}

.items-search[b-4swiou501t] {
    width: 220px;
    height: 38px !important;
    border-radius: 20px !important;
    border: 1px solid #cbd5e1 !important;
    padding-left: 2.4rem !important;
    font-size: 0.8rem !important;
    background: #ffffff !important;
    color: #1e293b !important;
    box-shadow: none !important;
    transition: all 0.25s ease !important;
}

.items-search:focus[b-4swiou501t] {
    outline: none !important;
    width: 280px !important;
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

.items-search-icon[b-4swiou501t] {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
}

.view-toggle[b-4swiou501t] {
    display: inline-flex;
    border: 1px solid #cbd5e1 !important;
    border-radius: 20px !important;
    overflow: hidden;
    background: #f8fafc !important;
    height: 38px;
    padding: 2px;
    align-items: center;
}

.view-toggle button[b-4swiou501t] {
    border: 0 !important;
    background: transparent !important;
    color: #64748b !important;
    width: 36px;
    height: 32px;
    border-radius: 16px !important;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle button.active[b-4swiou501t] {
    background: #ffffff !important;
    color: #4f46e5 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.add-item-btn[b-4swiou501t] {
    height: 38px !important;
    border-radius: 20px !important;
    background: #4f46e5 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0 1.5rem !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
    transition: all 0.2s ease-in-out !important;
}

.add-item-btn:hover[b-4swiou501t] {
    background: #3f39c5 !important;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35) !important;
    transform: translateY(-1.5px);
}

.items-main-card[b-4swiou501t] {
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    overflow: hidden;
    margin-top: 1.5rem !important;
    background: #ffffff !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
}

.items-table[b-4swiou501t] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

table.table.items-table thead tr th[b-4swiou501t],
.items-table th[b-4swiou501t] {
    background: #ffffff !important;
    color: #8a99ad !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.74rem !important;
    letter-spacing: 0.8px !important;
    padding: 10px 16px !important;
    border-bottom: 2px solid #eef2f6 !important;
    text-align: center !important;
}

.items-table td[b-4swiou501t] {
    border-top: none !important;
    border-bottom: 1px solid #eef2f6 !important;
    padding: 10px 16px !important;
    font-size: 0.8rem !important;
    background: #ffffff !important;
    color: #64748b !important;
    vertical-align: middle !important;
    text-align: center !important;
}

.items-table td:last-child[b-4swiou501t] {
    white-space: nowrap !important;
    text-align: center !important;
}

.items-table tr td:first-child[b-4swiou501t] {
    color: #3b82f6 !important;
    font-weight: 700 !important;
}

.items-table tr td:nth-child(2)[b-4swiou501t],
.items-table tr td:nth-child(3)[b-4swiou501t] {
    color: #1e293b !important;
    font-weight: 700 !important;
}

.action-btn[b-4swiou501t] {
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    margin: 0 2px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #94a3b8 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.action-btn:hover[b-4swiou501t] {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}

.action-btn i[b-4swiou501t] {
    font-size: 0.85rem !important;
}

.items-card-grid[b-4swiou501t] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
}

.item-card[b-4swiou501t] {
    background: #ffffff !important;
    border: 1px solid #eef2f6 !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.item-card:hover[b-4swiou501t] {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(37, 99, 235, 0.25) !important;
}

.item-card-head[b-4swiou501t] {
    background: #ffffff !important;
    color: #1e293b !important;
    padding: 0.6rem 1rem !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid rgba(99, 102, 241, 0.1) !important;
}

.card-item-code[b-4swiou501t] {
    color: #4b5563 !important;
    font-weight: 700 !important;
    margin-right: 6px;
}

.card-item-name[b-4swiou501t] {
    color: #374151 !important;
    font-weight: 700 !important;
}

.item-card-body[b-4swiou501t] {
    padding: 0.75rem 1rem !important;
    color: #64748b !important;
    font-size: 0.8rem !important;
}

.detail-row[b-4swiou501t] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0 !important;
    border-bottom: 1px solid #eef2f6 !important;
}

.detail-row:last-child[b-4swiou501t] {
    border-bottom: none !important;
}

.detail-row span[b-4swiou501t] {
    color: #8a99ad !important;
    font-weight: 700 !important;
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.detail-row strong[b-4swiou501t] {
    color: #000000 !important;
    font-weight: 600 !important;
}

/* Modal styles */
.modal-overlay[b-4swiou501t] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.modal-card[b-4swiou501t] {
    border-radius: 20px !important;
    border: none !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
    background: #fff;
}

.modal-header-bar[b-4swiou501t] {
    background: #fff !important;
    color: #333 !important;
    padding: 16px 32px !important;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-left[b-4swiou501t] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-title[b-4swiou501t] {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    color: #000000 !important;
    letter-spacing: -0.2px;
}

.btn-close-modal[b-4swiou501t] {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}

.btn-close-modal:hover[b-4swiou501t] {
    background: #e2e8f0;
    color: #1e293b;
}

.modal-inner[b-4swiou501t] {
    padding: 16px 32px !important;
    background: #fff;
}

.form-section-header[b-4swiou501t] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    margin-top: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid #f1f5f9;
}

.form-section-title[b-4swiou501t] {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #4f46e5;
}

.form-grid[b-4swiou501t] {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    margin-bottom: 12px;
    row-gap: 12px;
}

.col-1[b-4swiou501t] {
    grid-column: span 1;
}

.col-2[b-4swiou501t] {
    grid-column: span 2;
}

.col-3[b-4swiou501t] {
    grid-column: span 3;
}

.col-4[b-4swiou501t] {
    grid-column: span 4;
}

.col-5[b-4swiou501t] {
    grid-column: span 5;
}

.col-6[b-4swiou501t] {
    grid-column: span 6;
}

.col-7[b-4swiou501t] {
    grid-column: span 7;
}

.col-8[b-4swiou501t] {
    grid-column: span 8;
}

.col-9[b-4swiou501t] {
    grid-column: span 9;
}

.col-10[b-4swiou501t] {
    grid-column: span 10;
}

.col-11[b-4swiou501t] {
    grid-column: span 11;
}

.col-12[b-4swiou501t] {
    grid-column: span 12;
}

.field-group[b-4swiou501t] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label[b-4swiou501t] {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 2px;
}

.field-label.required[b-4swiou501t]::after {
    content: " *";
    color: #ef4444;
}

.premium-input[b-4swiou501t] {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 0.88rem !important;
    color: #4b5563 !important;
    transition: all 0.2s !important;
    height: auto !important;
}

.premium-input[b-4swiou501t]::placeholder {
    color: #cbd5e1 !important;
    opacity: 1 !important;
}

.premium-input:focus[b-4swiou501t] {
    background: #fff !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1) !important;
    outline: none !important;
}

.modal-footer-actions[b-4swiou501t] {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 16px !important;
    padding: 24px 32px !important;
    border-top: 1px solid #f0f0f0 !important;
    background: #ffffff !important;
}

.btn-cancel-modal[b-4swiou501t] {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: none !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    min-width: 100px !important;
    transition: all 0.2s !important;
}

.btn-cancel-modal:hover[b-4swiou501t] {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.btn-save-premium[b-4swiou501t] {
    background: #1c9f5f !important;
    color: white !important;
    border: none !important;
    padding: 10px 28px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(28, 159, 95, 0.3) !important;
    transition: all 0.2s !important;
    white-space: nowrap;
}

.btn-save-premium:hover[b-4swiou501t] {
    background: #168a52 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(28, 159, 95, 0.4) !important;
}

/* Pagination bar */
.page-btn[b-4swiou501t] {
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #64748b !important;
    border-radius: 8px !important;
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
    font-weight: 600;
    margin: 0 2px;
    transition: all 0.2s;
}

.page-btn.active[b-4swiou501t] {
    background: #4f46e5 !important;
    color: #ffffff !important;
    border-color: #4f46e5 !important;
}

.page-btn:hover:not(.active):not(:disabled)[b-4swiou501t] {
    background: #f8fafc !important;
    color: #1e293b !important;
}
/* /Components/Pages/PayModeMaster.razor.rz.scp.css */
/* ==========================================================================
   PAYMODE MASTER — MODERN OBSIDIAN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Main Layout Wrapper ────────────────────── */
.pm-page-root[b-brwf2skh32] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.pm-top-bar[b-brwf2skh32] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.pm-title-block[b-brwf2skh32] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pm-title-icon-wrap[b-brwf2skh32] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pm-title-icon-wrap .material-symbols-outlined[b-brwf2skh32] {
    font-size: 20px;
}

.pm-breadcrumbs[b-brwf2skh32] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.pm-breadcrumb-link[b-brwf2skh32] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.pm-breadcrumb-link:hover[b-brwf2skh32] {
    color: #2563eb;
}

.pm-breadcrumb-sep[b-brwf2skh32] {
    font-size: 11px;
}

.pm-page-title[b-brwf2skh32] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pm-badge-directory[b-brwf2skh32] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pm-live-dot[b-brwf2skh32] {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.pm-top-actions[b-brwf2skh32] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pm-search-wrap[b-brwf2skh32] {
    position: relative;
    width: 240px;
}

.pm-search-wrap .material-symbols-outlined[b-brwf2skh32] {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.pm-search-input[b-brwf2skh32] {
    width: 100%;
    height: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 10px 0 32px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pm-search-input:focus[b-brwf2skh32] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.pm-btn-primary[b-brwf2skh32] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.pm-btn-primary:hover[b-brwf2skh32] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

.pm-btn-icon[b-brwf2skh32] {
    font-size: 16px;
}

/* ── 3. KPI / Stat Cards Grid ───────────────────────────────── */
.pm-stats-grid[b-brwf2skh32] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex-shrink: 0;
}

.pm-stat-card[b-brwf2skh32] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 7px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.pm-stat-card[b-brwf2skh32]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.pm-card-total[b-brwf2skh32]::before    { background: #3b82f6; }
.pm-card-named[b-brwf2skh32]::before    { background: #6366f1; }
.pm-card-short[b-brwf2skh32]::before    { background: #10b981; }
.pm-card-filtered[b-brwf2skh32]::before { background: #f59e0b; }

.pm-stat-card:hover[b-brwf2skh32] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.pm-stat-top[b-brwf2skh32] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pm-stat-icon-wrap[b-brwf2skh32] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pm-stat-icon-wrap .material-symbols-outlined[b-brwf2skh32] {
    font-size: 15px;
}

.pm-stat-tag[b-brwf2skh32] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.pm-stat-tag .material-symbols-outlined[b-brwf2skh32] {
    font-size: 13px;
}

.pm-card-total .pm-stat-icon-wrap[b-brwf2skh32]    { background: #eff6ff; color: #3b82f6; }
.pm-card-total .pm-stat-tag[b-brwf2skh32]          { background: #eff6ff; color: #2563eb; }

.pm-card-named .pm-stat-icon-wrap[b-brwf2skh32]    { background: #eef2ff; color: #6366f1; }
.pm-card-named .pm-stat-tag[b-brwf2skh32]          { background: #eef2ff; color: #4f46e5; }

.pm-card-short .pm-stat-icon-wrap[b-brwf2skh32]    { background: #ecfdf5; color: #10b981; }
.pm-card-short .pm-stat-tag[b-brwf2skh32]          { background: #ecfdf5; color: #059669; }

.pm-card-filtered .pm-stat-icon-wrap[b-brwf2skh32] { background: #fffbeb; color: #d97706; }
.pm-card-filtered .pm-stat-tag[b-brwf2skh32]       { background: #fffbeb; color: #b45309; }

.pm-stat-mid[b-brwf2skh32] {
    margin-top: 1px;
}

.pm-stat-label[b-brwf2skh32] {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pm-stat-bottom[b-brwf2skh32] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.pm-stat-val[b-brwf2skh32] {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.pm-stat-subtext[b-brwf2skh32] {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── 4. Table Card Container (Single Viewport Inner Area) ─── */
.pm-table-card[b-brwf2skh32] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.pm-table-container[b-brwf2skh32] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

.pm-table[b-brwf2skh32] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    text-align: left;
}

/* Light Slate Sticky Header */
.pm-thead[b-brwf2skh32] {
    position: sticky;
    top: 0;
    z-index: 10;
}

.pm-th[b-brwf2skh32] {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 9px 12px;
    border-bottom: 1px solid #e2e8f0;
    border-top: none;
    white-space: nowrap;
    user-select: none;
}

.pm-tbody tr[b-brwf2skh32] {
    background-color: #ffffff;
    transition: background-color 0.12s ease;
}

.pm-tbody tr:hover[b-brwf2skh32] {
    background-color: #f8fafc;
}

.pm-td[b-brwf2skh32] {
    padding: 7px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
    font-size: 12px;
}

.pm-badge-code[b-brwf2skh32] {
    display: inline-block;
    padding: 2px 6px;
    background: #f1f5f9;
    color: #475569;
    font-family: monospace;
    font-weight: 700;
    font-size: 11px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.pm-shortname-pill[b-brwf2skh32] {
    display: inline-block;
    color: #64748b;
    font-family: monospace;
    font-weight: 600;
    font-size: 11.5px;
    background: #f8fafc;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.pm-name-cell[b-brwf2skh32] {
    font-weight: 700;
    color: #0f172a;
    font-size: 12px;
}

.pm-desc-cell[b-brwf2skh32] {
    color: #64748b;
    font-size: 11.5px;
}

/* Action Buttons */
.pm-actions-cell[b-brwf2skh32] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.pm-btn-action[b-brwf2skh32] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.pm-btn-action .material-symbols-outlined[b-brwf2skh32] {
    font-size: 14px;
}

.pm-btn-edit:hover[b-brwf2skh32] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.pm-btn-delete:hover[b-brwf2skh32] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* ── 5. Modal Backdrop & Card Form ──────────────────────────── */
.pm-modal-overlay[b-brwf2skh32] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 16px;
    animation: pmFadeIn-b-brwf2skh32 0.15s ease-out;
}

@keyframes pmFadeIn-b-brwf2skh32 {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pm-modal-card[b-brwf2skh32] {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 520px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: pmSlideUp-b-brwf2skh32 0.15s ease-out;
}

@keyframes pmSlideUp-b-brwf2skh32 {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pm-modal-header[b-brwf2skh32] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.pm-modal-title[b-brwf2skh32] {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.pm-modal-close-btn[b-brwf2skh32] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.pm-modal-close-btn:hover[b-brwf2skh32] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.pm-modal-body[b-brwf2skh32] {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 75vh;
    overflow-y: auto;
}

.pm-form-group[b-brwf2skh32] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pm-form-label[b-brwf2skh32] {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pm-form-input[b-brwf2skh32],
.pm-form-select[b-brwf2skh32] {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pm-form-input:focus[b-brwf2skh32],
.pm-form-select:focus[b-brwf2skh32] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.pm-grid-2col[b-brwf2skh32] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pm-modal-footer[b-brwf2skh32] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.pm-btn-delete[b-brwf2skh32] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #fca5a5;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pm-btn-delete:hover:not(:disabled)[b-brwf2skh32] {
    background: #fee2e2;
}

.pm-btn-delete:disabled[b-brwf2skh32] {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #e2e8f0;
    color: #94a3b8;
}

.pm-btn-save[b-brwf2skh32] {
    height: 32px;
    padding: 0 16px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pm-btn-save:hover[b-brwf2skh32] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

/* ── 6. Pagination & Table Footer ─────────────────────────── */
.pm-table-footer[b-brwf2skh32] {
    padding: 6px 14px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 10px;
    background: #ffffff;
    font-size: 12px;
}

.pm-page-size-wrap[b-brwf2skh32] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.pm-page-size-select[b-brwf2skh32] {
    height: 26px;
    padding: 0 6px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    outline: none;
    cursor: pointer;
}

.pm-page-info[b-brwf2skh32] {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.pm-page-info strong[b-brwf2skh32] {
    color: #0f172a;
    font-weight: 700;
}

.pm-pagination-wrap[b-brwf2skh32] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pm-page-btn[b-brwf2skh32] {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pm-page-btn:hover:not(:disabled)[b-brwf2skh32] {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.pm-page-btn.active[b-brwf2skh32] {
    background: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
    font-weight: 700;
}

.pm-page-btn:disabled[b-brwf2skh32] {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
}
/* /Components/Pages/PharmacyDashboard.razor.rz.scp.css */
/* Single Viewport Dashboard Layout - No Vertical Scrolling */
.dashboard-wrapper[b-59ygyg5xa8] {
    padding: 0.6rem 1rem;
    background: #f8fafc;
    height: calc(100vh - 65px);
    max-height: calc(100vh - 65px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    color: #0f172a;
    box-sizing: border-box;
}

/* Header */
.dashboard-header[b-59ygyg5xa8] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
}

.header-title[b-59ygyg5xa8] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.icon-badge[b-59ygyg5xa8] {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.icon-badge.emerald[b-59ygyg5xa8] { background: #dcfce7; color: #059669; }
.icon-badge.blue[b-59ygyg5xa8] { background: #dbeafe; color: #2563eb; }
.icon-badge.warning[b-59ygyg5xa8] { background: #fef3c7; color: #d97706; }
.icon-badge.purple[b-59ygyg5xa8] { background: #f3e8ff; color: #8b5cf6; }

.header-title h1[b-59ygyg5xa8] {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
    color: #1e293b;
    line-height: 1.2;
}

.header-title p[b-59ygyg5xa8] {
    font-size: 0.76rem;
    color: #64748b;
    margin: 0;
}

.header-actions[b-59ygyg5xa8] {
    display: flex;
    gap: 0.5rem;
}

.btn[b-59ygyg5xa8] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.78rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary[b-59ygyg5xa8] {
    background: linear-gradient(135deg, #059669, #047857);
    color: #ffffff;
    border: none;
    box-shadow: 0 3px 8px rgba(5, 150, 105, 0.25);
}

.btn-primary:hover[b-59ygyg5xa8] {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

.btn-outline[b-59ygyg5xa8] {
    background: #ffffff;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.btn-outline:hover[b-59ygyg5xa8] {
    background: #f1f5f9;
    color: #1e293b;
}

/* KPI Cards */
.kpi-grid[b-59ygyg5xa8] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.55rem;
    flex-shrink: 0;
}

.kpi-card[b-59ygyg5xa8] {
    background: #ffffff;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.kpi-card[b-59ygyg5xa8]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3.5px;
    height: 100%;
}

.kpi-card.emerald[b-59ygyg5xa8]::before { background: #059669; }
.kpi-card.blue[b-59ygyg5xa8]::before { background: #2563eb; }
.kpi-card.warning[b-59ygyg5xa8]::before { background: #d97706; }
.kpi-card.purple[b-59ygyg5xa8]::before { background: #8b5cf6; }

.kpi-top[b-59ygyg5xa8] {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kpi-label[b-59ygyg5xa8] {
    font-size: 0.7rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.kpi-icon[b-59ygyg5xa8] {
    font-size: 1rem;
    opacity: 0.8;
}

.kpi-card.emerald .kpi-icon[b-59ygyg5xa8] { color: #059669; }
.kpi-card.blue .kpi-icon[b-59ygyg5xa8] { color: #2563eb; }
.kpi-card.warning .kpi-icon[b-59ygyg5xa8] { color: #d97706; }
.kpi-card.purple .kpi-icon[b-59ygyg5xa8] { color: #8b5cf6; }

.kpi-value[b-59ygyg5xa8] {
    font-size: 1.45rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.1;
    margin: 0.15rem 0;
}

.kpi-foot[b-59ygyg5xa8] {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.kpi-foot.positive[b-59ygyg5xa8] { color: #16a34a; }
.kpi-foot.danger[b-59ygyg5xa8] { color: #dc2626; }
.kpi-foot.info[b-59ygyg5xa8] { color: #0284c7; }

/* Charts Row */
.charts-row[b-59ygyg5xa8] {
    display: flex;
    gap: 0.55rem;
    flex: 1.1;
    min-height: 0;
}

.flex-2[b-59ygyg5xa8] { flex: 2; min-width: 0; }
.flex-1[b-59ygyg5xa8] { flex: 1; min-width: 0; }

.chart-card[b-59ygyg5xa8] {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 0.65rem 0.85rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.chart-header[b-59ygyg5xa8] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.35rem;
    flex-shrink: 0;
}

.chart-header h3[b-59ygyg5xa8] {
    font-size: 0.92rem;
    font-weight: 800;
    margin: 0;
    color: #1e293b;
}

.chart-sub[b-59ygyg5xa8] {
    font-size: 0.72rem;
    color: #64748b;
}

.chart-body[b-59ygyg5xa8] {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
}

.chart-body canvas[b-59ygyg5xa8] {
    max-height: 100% !important;
}

/* Panel Card & Tables */
.dashboard-grid-2[b-59ygyg5xa8] {
    display: flex;
    gap: 0.55rem;
    flex: 1;
    min-height: 0;
}

.panel-card[b-59ygyg5xa8] {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 0.65rem 0.85rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.panel-header[b-59ygyg5xa8] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
    flex-shrink: 0;
}

.panel-header h3[b-59ygyg5xa8] {
    font-size: 0.92rem;
    font-weight: 800;
    margin: 0;
    color: #1e293b;
    display: flex;
    align-items: center;
}

.view-link[b-59ygyg5xa8] {
    font-size: 0.75rem;
    font-weight: 700;
    color: #059669;
    text-decoration: none;
}

.table-responsive[b-59ygyg5xa8] {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.custom-table[b-59ygyg5xa8] {
    width: 100%;
    border-collapse: collapse;
}

.custom-table th[b-59ygyg5xa8] {
    background: #f8fafc;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.45rem 0.6rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.custom-table td[b-59ygyg5xa8] {
    padding: 0.45rem 0.6rem;
    font-size: 0.78rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

.pay-tag[b-59ygyg5xa8] {
    font-weight: 800;
    font-size: 0.7rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}

.pay-tag.cash[b-59ygyg5xa8] { background: #dcfce7; color: #15803d; }
.pay-tag.upi[b-59ygyg5xa8] { background: #e0f2fe; color: #0369a1; }
.pay-tag.card[b-59ygyg5xa8] { background: #f3e8ff; color: #7e22ce; }

/* Quick Action Tiles */
.quick-action-grid[b-59ygyg5xa8] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
    flex: 1;
}

.action-tile[b-59ygyg5xa8] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 0.4rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #334155;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.76rem;
    transition: all 0.2s ease;
}

.action-tile i[b-59ygyg5xa8] {
    font-size: 1.15rem;
    color: #059669;
}

.action-tile:hover[b-59ygyg5xa8] {
    background: #ffffff;
    border-color: #059669;
    color: #059669;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.12);
}
/* /Components/Pages/PlaceholderPages.razor.rz.scp.css */
/* ==========================================================================
   PLACEHOLDER / COMING SOON PAGES — MODERN OBSIDIAN THEME
   Strict Single-Viewport Layout (Centered Hero Card)
   ========================================================================== */

.pl-page-root[b-zrmcryq302] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 12px;
    width: 100%;
}

/* Top Bar */
.pl-top-bar[b-zrmcryq302] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
}

.pl-title-block[b-zrmcryq302] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pl-title-icon-wrap[b-zrmcryq302] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pl-title-icon-wrap .material-symbols-outlined[b-zrmcryq302] {
    font-size: 20px;
}

.pl-breadcrumbs[b-zrmcryq302] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

.pl-breadcrumb-link[b-zrmcryq302] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.pl-breadcrumb-link:hover[b-zrmcryq302] {
    color: #2563eb;
}

.pl-breadcrumb-sep[b-zrmcryq302] {
    font-size: 11px;
}

.pl-page-title[b-zrmcryq302] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pl-badge-dev[b-zrmcryq302] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #d97706;
    background: #fffbeb;
    border: 1px solid #fde68a;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pl-pulse-dot[b-zrmcryq302] {
    width: 6px;
    height: 6px;
    background: #f59e0b;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
    animation: pl-pulse-b-zrmcryq302 2s infinite;
}

@keyframes pl-pulse-b-zrmcryq302 {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

/* Center Content Container */
.pl-content-container[b-zrmcryq302] {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pl-card[b-zrmcryq302] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 36px 44px;
    width: 100%;
    max-width: 580px;
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.pl-card[b-zrmcryq302]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
}

.pl-hero-icon-box[b-zrmcryq302] {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.pl-hero-icon-box .material-symbols-outlined[b-zrmcryq302] {
    font-size: 32px;
}

.pl-card-status-pill[b-zrmcryq302] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    border-radius: 20px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.pl-card-title[b-zrmcryq302] {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0 0 8px 0;
}

.pl-card-subtitle[b-zrmcryq302] {
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
    margin: 0 0 24px 0;
    max-width: 440px;
}

.pl-features-grid[b-zrmcryq302] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 28px;
    width: 100%;
}

.pl-feature-chip[b-zrmcryq302] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 11.5px;
    font-weight: 600;
    color: #334155;
}

.pl-feature-chip .material-symbols-outlined[b-zrmcryq302] {
    font-size: 14px;
    color: #2563eb;
}

.pl-card-actions[b-zrmcryq302] {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

.pl-btn-primary[b-zrmcryq302] {
    height: 38px;
    padding: 0 22px;
    border-radius: 8px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    font-size: 12.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    transition: all 0.15s ease;
}

.pl-btn-primary:hover[b-zrmcryq302] {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
}

.pl-btn-secondary[b-zrmcryq302] {
    height: 38px;
    padding: 0 20px;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    border: 1px solid #cbd5e1;
    font-size: 12.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pl-btn-secondary:hover[b-zrmcryq302] {
    background: #f8fafc;
    color: #0f172a;
    border-color: #94a3b8;
}
/* /Components/Pages/PrePrintBarcode.razor.rz.scp.css */
/* Pre-Print Barcode Management Styling */

.pb-page-root[b-kbbs1bag7q] {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    flex: 1;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: inherit;
    padding: 12px 22px;
    box-sizing: border-box;
    gap: 10px;
    overflow: hidden;
}

/* 1. Header Bar */
.pb-top-bar[b-kbbs1bag7q] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    flex-shrink: 0;
}

.pb-title-block[b-kbbs1bag7q] {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pb-title-icon-wrap[b-kbbs1bag7q] {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.25);
}

.pb-breadcrumbs[b-kbbs1bag7q] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #64748b;
    margin-bottom: 2px;
}

.pb-breadcrumb-link[b-kbbs1bag7q] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.pb-breadcrumb-link:hover[b-kbbs1bag7q] {
    color: #7c3aed;
}

.pb-breadcrumb-sep[b-kbbs1bag7q] {
    color: #cbd5e1;
}

.pb-page-title[b-kbbs1bag7q] {
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pb-badge-directory[b-kbbs1bag7q] {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: #f3e8ff;
    color: #7c3aed;
    padding: 2px 8px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pb-live-dot[b-kbbs1bag7q] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #7c3aed;
    animation: pulse-b-kbbs1bag7q 2s infinite;
}

@keyframes pulse-b-kbbs1bag7q {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
}

.pb-top-actions[b-kbbs1bag7q] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pb-btn-primary[b-kbbs1bag7q] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.25);
    transition: all 0.15s ease;
}

.pb-btn-primary:hover[b-kbbs1bag7q] {
    background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.35);
    transform: translateY(-1px);
}

.pb-btn-secondary[b-kbbs1bag7q] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pb-btn-secondary:hover[b-kbbs1bag7q] {
    background: #f1f5f9;
    border-color: #94a3b8;
}

/* 2. Stat Metric Cards */
.pb-stats-grid[b-kbbs1bag7q] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    flex-shrink: 0;
}

.pb-stat-card[b-kbbs1bag7q] {
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.15s, box-shadow 0.15s;
}

.pb-stat-card:hover[b-kbbs1bag7q] {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.pb-stat-label[b-kbbs1bag7q] {
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}

.pb-stat-value[b-kbbs1bag7q] {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.pb-stat-sub[b-kbbs1bag7q] {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

.pb-stat-icon-wrap[b-kbbs1bag7q] {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pb-stat-icon-purple[b-kbbs1bag7q] {
    background: #f3e8ff;
    color: #7c3aed;
}

.pb-stat-icon-emerald[b-kbbs1bag7q] {
    background: #dcfce7;
    color: #059669;
}

.pb-stat-icon-blue[b-kbbs1bag7q] {
    background: #e0f2fe;
    color: #0284c7;
}

.pb-stat-icon-amber[b-kbbs1bag7q] {
    background: #fef3c7;
    color: #d97706;
}

/* 3. Filter Toolbar */
.pb-filter-card[b-kbbs1bag7q] {
    background: #ffffff;
    border-radius: 12px;
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-shrink: 0;
}

.pb-filter-left[b-kbbs1bag7q] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.pb-search-box[b-kbbs1bag7q] {
    position: relative;
    width: 260px;
}

.pb-search-box span[b-kbbs1bag7q] {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    color: #94a3b8;
}

.pb-input-search[b-kbbs1bag7q] {
    width: 100%;
    padding: 7px 12px 7px 32px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 12.5px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.pb-input-search:focus[b-kbbs1bag7q] {
    border-color: #7c3aed;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15);
}

.pb-select[b-kbbs1bag7q] {
    padding: 7px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 12.5px;
    background: #ffffff;
    color: #1e293b;
    outline: none;
    cursor: pointer;
}

.pb-select:focus[b-kbbs1bag7q] {
    border-color: #7c3aed;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15);
}

.pb-date-input[b-kbbs1bag7q] {
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 12px;
    outline: none;
}

.pb-filter-right[b-kbbs1bag7q] {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 4. Table / Content Area - ViewBills-Style Responsive Viewport Fitting */
.pb-table-card[b-kbbs1bag7q] {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    margin-bottom: 0;
    position: relative;
}

.pb-table-header-info[b-kbbs1bag7q] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 12.5px;
    color: #64748b;
    font-weight: 500;
    flex-shrink: 0;
}

.pb-table-wrap[b-kbbs1bag7q] {
    flex: 1;
    overflow-x: auto;
    overflow-y: auto;
    min-height: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    -webkit-overflow-scrolling: touch;
}

.pb-table[b-kbbs1bag7q] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12.5px;
    text-align: left;
    white-space: nowrap;
}

.pb-table thead[b-kbbs1bag7q] {
    background: #f8fafc;
}

.pb-table th[b-kbbs1bag7q] {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    padding: 9px 14px;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
    box-shadow: 0 1px 0 #e2e8f0;
}

.pb-table td[b-kbbs1bag7q] {
    padding: 8px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.pb-table tr:hover[b-kbbs1bag7q] {
    background-color: #faf5ff;
}

.pb-barcode-cell[b-kbbs1bag7q] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pb-barcode-text[b-kbbs1bag7q] {
    font-family: monospace;
    font-weight: 800;
    font-size: 13.5px;
    color: #0f172a;
    letter-spacing: 0.5px;
}

.pb-pill-available[b-kbbs1bag7q] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dcfce7;
    color: #166534;
    font-weight: 700;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 9999px;
}

.pb-pill-used[b-kbbs1bag7q] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 700;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 9999px;
}

.pb-container-tag[b-kbbs1bag7q] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    color: #334155;
    font-weight: 600;
    font-size: 11.5px;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.pb-btn-action[b-kbbs1bag7q] {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    color: #64748b;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pb-btn-action:hover[b-kbbs1bag7q] {
    background: #e2e8f0;
    color: #0f172a;
}

.pb-btn-print[b-kbbs1bag7q] {
    color: #7c3aed;
}

.pb-btn-print:hover[b-kbbs1bag7q] {
    background: #f3e8ff;
    color: #6d28d9;
}

.pb-btn-delete[b-kbbs1bag7q] {
    color: #ef4444;
}

.pb-btn-delete:hover[b-kbbs1bag7q] {
    background: #fee2e2;
    color: #dc2626;
}

/* Pagination Footer */
.pb-pagination[b-kbbs1bag7q] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 18px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 12px;
    color: #64748b;
    flex-shrink: 0;
}

.pb-pagination-btns[b-kbbs1bag7q] {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pb-pg-btn[b-kbbs1bag7q] {
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}

.pb-pg-btn:disabled[b-kbbs1bag7q] {
    opacity: 0.5;
    cursor: not-allowed;
}

.pb-pg-btn.active[b-kbbs1bag7q] {
    background: #7c3aed;
    color: #ffffff;
    border-color: #7c3aed;
}

/* Modal Overlay */
.pb-modal-overlay[b-kbbs1bag7q] {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2147483647;
    padding: 16px;
    box-sizing: border-box;
    overflow-y: auto;
}

.pb-modal-card[b-kbbs1bag7q] {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    margin: auto;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2147483647;
    max-height: calc(100vh - 32px);
    animation: pbModalFadeIn-b-kbbs1bag7q 0.15s ease-out;
}

@keyframes pbModalFadeIn-b-kbbs1bag7q {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(-6px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.pb-modal-header[b-kbbs1bag7q] {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #ffffff;
    padding: 16px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pb-modal-header h3[b-kbbs1bag7q] {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pb-modal-close[b-kbbs1bag7q] {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
}

.pb-modal-close:hover[b-kbbs1bag7q] {
    background: rgba(255, 255, 255, 0.35);
}

.pb-modal-body[b-kbbs1bag7q] {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 75vh;
    overflow-y: auto;
}

.pb-modal-footer[b-kbbs1bag7q] {
    padding: 14px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.pb-form-group[b-kbbs1bag7q] {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pb-form-label[b-kbbs1bag7q] {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
}

.pb-form-input[b-kbbs1bag7q] {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
}

.pb-form-input:focus[b-kbbs1bag7q] {
    border-color: #7c3aed;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15);
}

.pb-qty-presets[b-kbbs1bag7q] {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.pb-preset-btn[b-kbbs1bag7q],
.pb-preset-pill[b-kbbs1bag7q] {
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1.2;
}

.pb-preset-btn:hover[b-kbbs1bag7q], .pb-preset-btn.active[b-kbbs1bag7q],
.pb-preset-pill:hover[b-kbbs1bag7q], .pb-preset-pill.active[b-kbbs1bag7q] {
    background: #f3e8ff;
    border-color: #7c3aed;
    color: #7c3aed;
    font-weight: 700;
}

.pb-preview-banner[b-kbbs1bag7q] {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive Breakpoints - Matches ViewBills Dynamic Layout */
@media (max-width: 1200px) {
    .pb-stats-grid[b-kbbs1bag7q] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pb-page-root[b-kbbs1bag7q] {
        height: auto;
        min-height: 100%;
        max-height: none;
        overflow-y: auto;
        padding: 8px;
    }
    .pb-stats-grid[b-kbbs1bag7q] {
        grid-template-columns: 1fr;
    }
    .pb-top-bar[b-kbbs1bag7q] {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .pb-filter-card[b-kbbs1bag7q] {
        flex-direction: column;
        align-items: flex-start;
    }
    .pb-table-card[b-kbbs1bag7q] {
        min-height: 350px;
    }
}
/* /Components/Pages/ProMaster.razor.rz.scp.css */
/* ==========================================================================
   PRO MASTER (PARTNER MANAGEMENT) — MODERN OBSIDIAN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Layout Wrapper ─────────────────────────── */
.pm-page-root[b-utry2h0n82] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.pm-top-bar[b-utry2h0n82] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.pm-title-block[b-utry2h0n82] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pm-title-icon-wrap[b-utry2h0n82] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pm-title-icon-wrap .material-symbols-outlined[b-utry2h0n82] {
    font-size: 20px;
}

.pm-breadcrumbs[b-utry2h0n82] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.pm-breadcrumb-link[b-utry2h0n82] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.pm-breadcrumb-link:hover[b-utry2h0n82] {
    color: #2563eb;
}

.pm-breadcrumb-sep[b-utry2h0n82] {
    font-size: 11px;
}

.pm-page-title[b-utry2h0n82] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pm-badge-directory[b-utry2h0n82] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pm-live-dot[b-utry2h0n82] {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.pm-top-actions[b-utry2h0n82] {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Filter Pills */
.pm-filter-pills[b-utry2h0n82] {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f8fafc;
    padding: 2px 4px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.pm-filter-pill[b-utry2h0n82] {
    padding: 3px 10px;
    border-radius: 4px;
    border: none;
    background: transparent;
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pm-filter-pill:hover[b-utry2h0n82] {
    color: #0f172a;
}

.pm-filter-pill.active[b-utry2h0n82] {
    background: #0f172a;
    color: #ffffff;
}

/* Search input */
.pm-search-wrap[b-utry2h0n82] {
    position: relative;
    width: 200px;
}

.pm-search-wrap .material-symbols-outlined[b-utry2h0n82] {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.pm-search-input[b-utry2h0n82] {
    width: 100%;
    height: 32px;
    padding: 0 10px 0 30px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pm-search-input:focus[b-utry2h0n82] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.pm-btn-primary[b-utry2h0n82] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.pm-btn-primary:hover[b-utry2h0n82] {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(15, 23, 42, 0.12);
}

/* ── 3. KPI / Stat Cards Grid ───────────────────────────────── */
.pm-stats-grid[b-utry2h0n82] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex-shrink: 0;
}

.pm-stat-card[b-utry2h0n82] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 7px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.pm-stat-card[b-utry2h0n82]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.pm-card-total[b-utry2h0n82]::before     { background: #3b82f6; }
.pm-card-active[b-utry2h0n82]::before    { background: #10b981; }
.pm-card-city[b-utry2h0n82]::before      { background: #6366f1; }
.pm-card-contact[b-utry2h0n82]::before   { background: #f59e0b; }

.pm-stat-card:hover[b-utry2h0n82] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.pm-stat-top[b-utry2h0n82] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pm-stat-icon-wrap[b-utry2h0n82] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pm-stat-icon-wrap .material-symbols-outlined[b-utry2h0n82] {
    font-size: 15px;
}

.pm-stat-tag[b-utry2h0n82] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.pm-stat-tag .material-symbols-outlined[b-utry2h0n82] {
    font-size: 13px;
}

.pm-card-total .pm-stat-icon-wrap[b-utry2h0n82]   { background: #eff6ff; color: #3b82f6; }
.pm-card-total .pm-stat-tag[b-utry2h0n82]         { background: #eff6ff; color: #2563eb; }

.pm-card-active .pm-stat-icon-wrap[b-utry2h0n82]  { background: #ecfdf5; color: #10b981; }
.pm-card-active .pm-stat-tag[b-utry2h0n82]        { background: #ecfdf5; color: #059669; }

.pm-card-city .pm-stat-icon-wrap[b-utry2h0n82]    { background: #eef2ff; color: #6366f1; }
.pm-card-city .pm-stat-tag[b-utry2h0n82]          { background: #eef2ff; color: #4f46e5; }

.pm-card-contact .pm-stat-icon-wrap[b-utry2h0n82] { background: #fffbeb; color: #f59e0b; }
.pm-card-contact .pm-stat-tag[b-utry2h0n82]       { background: #fffbeb; color: #d97706; }

.pm-stat-mid[b-utry2h0n82] {
    margin-top: 1px;
}

.pm-stat-label[b-utry2h0n82] {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pm-stat-bottom[b-utry2h0n82] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.pm-stat-val[b-utry2h0n82] {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.pm-stat-subtext[b-utry2h0n82] {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── 4. Table Card Container (Single Viewport) ─────────────── */
.pm-table-card[b-utry2h0n82] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.pm-table-container[b-utry2h0n82] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

.pm-table[b-utry2h0n82] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    text-align: left;
}

/* Light Slate Sticky Header */
.pm-thead[b-utry2h0n82] {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8fafc !important;
}

.pm-th[b-utry2h0n82] {
    background-color: #f8fafc !important;
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 8px 12px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: none !important;
    white-space: nowrap;
    user-select: none;
}

.pm-tbody tr[b-utry2h0n82] {
    background-color: #ffffff;
    transition: background-color 0.12s ease;
}

.pm-tbody tr:hover[b-utry2h0n82] {
    background-color: #f8fafc;
}

.pm-td[b-utry2h0n82] {
    padding: 6px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
    font-size: 12px;
}

/* Partner Identity Cell */
.pm-partner-identity[b-utry2h0n82] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pm-avatar-circle[b-utry2h0n82] {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
    border: 1px solid #dbeafe;
}

.pm-partner-name[b-utry2h0n82] {
    font-weight: 700;
    color: #0f172a;
    font-size: 12px;
}

/* Status Badges */
.pm-badge-pill[b-utry2h0n82] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 7px;
    border-radius: 12px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.pm-badge-active[b-utry2h0n82] {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.pm-badge-deleted[b-utry2h0n82] {
    background: #fee2e2;
    color: #ef4444;
    border: 1px solid #fca5a5;
}

.pm-badge-city[b-utry2h0n82] {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

/* Action buttons in row */
.pm-row-actions[b-utry2h0n82] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pm-btn-icon-action[b-utry2h0n82] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: #f8fafc;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.pm-btn-icon-action:hover[b-utry2h0n82] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.pm-btn-icon-delete:hover[b-utry2h0n82] {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
}

.pm-btn-icon-action .material-symbols-outlined[b-utry2h0n82] {
    font-size: 15px;
}

/* ── 5. Pagination Footer ───────────────────────────────────── */
.pm-pagination-bar[b-utry2h0n82] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 14px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
    font-size: 11.5px;
    color: #64748b;
}

.pm-page-controls[b-utry2h0n82] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pm-btn-page[b-utry2h0n82] {
    height: 26px;
    min-width: 26px;
    padding: 0 6px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.pm-btn-page:hover:not(:disabled)[b-utry2h0n82] {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.pm-btn-page:disabled[b-utry2h0n82] {
    opacity: 0.4;
    cursor: not-allowed;
}

.pm-btn-page .material-symbols-outlined[b-utry2h0n82] {
    font-size: 14px;
}

/* ── 6. Modal Form Overlay & Card ───────────────────────────── */
.pm-modal-overlay[b-utry2h0n82] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 16px;
}

.pm-modal-card[b-utry2h0n82] {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 640px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 90vh;
}

.pm-modal-header[b-utry2h0n82] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.pm-modal-title[b-utry2h0n82] {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.pm-modal-close-btn[b-utry2h0n82] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.pm-modal-close-btn:hover[b-utry2h0n82] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.pm-modal-body[b-utry2h0n82] {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}

.pm-form-group[b-utry2h0n82] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pm-field-label[b-utry2h0n82] {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pm-input[b-utry2h0n82] {
    width: 100%;
    height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 12.5px;
    color: #1e293b;
    background: #ffffff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pm-input:focus[b-utry2h0n82] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.pm-textarea[b-utry2h0n82] {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 12.5px;
    color: #1e293b;
    background: #ffffff;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    resize: vertical;
}

.pm-textarea:focus[b-utry2h0n82] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.pm-modal-footer[b-utry2h0n82] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}
/* /Components/Pages/PurchaseMaster.razor.rz.scp.css */
/* Scoped styles for PurchaseMaster component */

.items-page[b-4lojxai4pl] {
    min-height: 100vh;
    background: transparent !important;
}

.items-shell[b-4lojxai4pl] {
    max-width: 1320px;
    margin: 0 auto;
}

.items-content[b-4lojxai4pl] {
    width: min(1240px, 100%);
    margin: 0 auto;
    text-align: center;
}

.premium-header-card[b-4lojxai4pl] {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-radius: 16px !important;
    padding: 1.25rem 2rem !important;
    color: #1e1b4b !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem !important;
}

.header-card-left[b-4lojxai4pl] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-card-icon[b-4lojxai4pl] {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

.header-card-icon svg[b-4lojxai4pl] {
    stroke: #2563eb !important;
}

.header-card-text[b-4lojxai4pl] {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.header-card-heading[b-4lojxai4pl] {
    color: #0f172a !important;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
}

.header-card-subheading[b-4lojxai4pl] {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b !important;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.status-dot[b-4lojxai4pl] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    margin-right: 6px;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
}

.header-card-right[b-4lojxai4pl] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.items-search-wrap[b-4lojxai4pl] {
    position: relative;
    display: flex;
    align-items: center;
}

.items-search[b-4lojxai4pl] {
    width: 220px;
    height: 38px !important;
    border-radius: 20px !important;
    border: 1px solid #cbd5e1 !important;
    padding-left: 2.4rem !important;
    font-size: 0.8rem !important;
    background: #ffffff !important;
    color: #1e293b !important;
    box-shadow: none !important;
    transition: all 0.25s ease !important;
}

.items-search:focus[b-4lojxai4pl] {
    outline: none !important;
    width: 280px !important;
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

.items-search-icon[b-4lojxai4pl] {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
}

.view-toggle[b-4lojxai4pl] {
    display: inline-flex;
    border: 1px solid #cbd5e1 !important;
    border-radius: 20px !important;
    overflow: hidden;
    background: #f8fafc !important;
    height: 38px;
    padding: 2px;
    align-items: center;
}

.view-toggle button[b-4lojxai4pl] {
    border: 0 !important;
    background: transparent !important;
    color: #64748b !important;
    width: 36px;
    height: 32px;
    border-radius: 16px !important;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle button.active[b-4lojxai4pl] {
    background: #ffffff !important;
    color: #4f46e5 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.add-item-btn[b-4lojxai4pl] {
    height: 38px !important;
    border-radius: 20px !important;
    background: #4f46e5 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0 1.5rem !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
    transition: all 0.2s ease-in-out !important;
}

.add-item-btn:hover[b-4lojxai4pl] {
    background: #3f39c5 !important;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35) !important;
    transform: translateY(-1.5px);
}

.items-main-card[b-4lojxai4pl] {
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    overflow: hidden;
    margin-top: 1.5rem !important;
    background: #ffffff !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
}

.items-main-card .table-responsive[b-4lojxai4pl] {
    max-height: 550px !important;
    overflow-y: auto !important;
    overflow-x: auto !important;
}

.items-table[b-4lojxai4pl] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

table.table.items-table thead tr th[b-4lojxai4pl],
.items-table th[b-4lojxai4pl] {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    background: #ffffff !important;
    color: #8a99ad !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.74rem !important;
    letter-spacing: 0.8px !important;
    padding: 10px 16px !important;
    border-bottom: 2px solid #eef2f6 !important;
    text-align: center !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.items-table td[b-4lojxai4pl] {
    border-top: none !important;
    border-bottom: 1px solid #eef2f6 !important;
    padding: 10px 16px !important;
    font-size: 0.8rem !important;
    background: #ffffff !important;
    color: #64748b !important;
    vertical-align: middle !important;
    text-align: center !important;
}

.items-table td:last-child[b-4lojxai4pl] {
    white-space: nowrap !important;
    text-align: center !important;
}

.items-table tr td:first-child[b-4lojxai4pl] {
    color: #3b82f6 !important;
    font-weight: 700 !important;
}

.action-btn[b-4lojxai4pl] {
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    margin: 0 2px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #94a3b8 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.action-btn:hover[b-4lojxai4pl] {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}

.action-btn i[b-4lojxai4pl] {
    font-size: 0.85rem !important;
}

.items-card-grid[b-4lojxai4pl] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
}

.item-card[b-4lojxai4pl] {
    background: #ffffff !important;
    border: 1px solid #eef2f6 !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.item-card:hover[b-4lojxai4pl] {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(37, 99, 235, 0.25) !important;
}

.item-card-head[b-4lojxai4pl] {
    background: #ffffff !important;
    color: #1e293b !important;
    padding: 0.6rem 1rem !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid rgba(99, 102, 241, 0.1) !important;
}

.card-item-code[b-4lojxai4pl] {
    color: #4b5563 !important;
    font-weight: 700 !important;
    margin-right: 6px;
}

.card-item-name[b-4lojxai4pl] {
    color: #374151 !important;
    font-weight: 700 !important;
}

.item-card-body[b-4lojxai4pl] {
    padding: 0.75rem 1rem !important;
    color: #64748b !important;
    font-size: 0.8rem !important;
}

.detail-row[b-4lojxai4pl] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0 !important;
    border-bottom: 1px solid #eef2f6 !important;
}

.detail-row:last-child[b-4lojxai4pl] {
    border-bottom: none !important;
}

.detail-row span[b-4lojxai4pl] {
    color: #8a99ad !important;
    font-weight: 700 !important;
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.detail-row strong[b-4lojxai4pl] {
    color: #000000 !important;
    font-weight: 600 !important;
}

/* Purchase modal alignment */
.btn-cancel-modal[b-4lojxai4pl] {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: none !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    min-width: 100px !important;
    transition: all 0.2s !important;
}

.btn-cancel-modal:hover[b-4lojxai4pl] {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.purchase-add-item-btn[b-4lojxai4pl] {
    height: 32px;
    border-radius: 8px;
    font-size: 0.8rem;
    padding: 0 12px;
}

.purchase-details-list[b-4lojxai4pl] {
    display: grid;
    gap: 0.85rem;
}

.purchase-detail-card[b-4lojxai4pl] {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.purchase-detail-head[b-4lojxai4pl] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.7rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px dashed #dbe6ef;
}

.purchase-detail-title[b-4lojxai4pl] {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0f678f;
}

.purchase-remove-inline-btn[b-4lojxai4pl] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #fecaca;
    background: #fff5f5;
    color: #b91c1c;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.6rem;
}

.purchase-remove-inline-btn:hover[b-4lojxai4pl] {
    background: #fee2e2;
}

.purchase-detail-field[b-4lojxai4pl] {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.purchase-mini-label[b-4lojxai4pl] {
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.purchase-compact-input[b-4lojxai4pl] {
    padding: 6px 10px !important;
    font-size: 0.85rem !important;
    min-height: 36px;
}

.purchase-value-muted[b-4lojxai4pl] {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b;
}

.purchase-value-total[b-4lojxai4pl] {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b;
}

.purchase-summary-gap[b-4lojxai4pl] {
    margin-top: 2.25rem !important;
}

/* Purchase Page Table Column Widths */
.purchase-page .items-table th:nth-child(1)[b-4lojxai4pl],
.purchase-page .items-table td:nth-child(1)[b-4lojxai4pl] {
    width: 35px;
}

.purchase-page .items-table th:nth-child(2)[b-4lojxai4pl],
.purchase-page .items-table td:nth-child(2)[b-4lojxai4pl] {
    width: 80px;
}

.purchase-page .items-table th:nth-child(3)[b-4lojxai4pl],
.purchase-page .items-table td:nth-child(3)[b-4lojxai4pl] {
    width: 75px;
    min-width: 75px;
}

.purchase-page .items-table th:nth-child(4)[b-4lojxai4pl],
.purchase-page .items-table td:nth-child(4)[b-4lojxai4pl] {
    width: 85px;
}

.purchase-page .items-table th:nth-child(5)[b-4lojxai4pl],
.purchase-page .items-table td:nth-child(5)[b-4lojxai4pl] {
    width: 140px;
    min-width: 140px;
}

.purchase-page .items-table th:nth-child(6)[b-4lojxai4pl],
.purchase-page .items-table td:nth-child(6)[b-4lojxai4pl] {
    width: 85px;
}

.purchase-page .items-table th:nth-child(7)[b-4lojxai4pl],
.purchase-page .items-table td:nth-child(7)[b-4lojxai4pl] {
    width: 80px;
}

.purchase-page .items-table th:nth-child(8)[b-4lojxai4pl],
.purchase-page .items-table td:nth-child(8)[b-4lojxai4pl] {
    width: 70px;
}

.purchase-page .items-table th:nth-child(9)[b-4lojxai4pl],
.purchase-page .items-table td:nth-child(9)[b-4lojxai4pl] {
    width: 80px;
    min-width: 80px;
}

@media (max-width: 992px) {
    .purchase-detail-grid-top[b-4lojxai4pl] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .purchase-detail-grid-bottom[b-4lojxai4pl] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .purchase-detail-head[b-4lojxai4pl] {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .purchase-detail-grid-top[b-4lojxai4pl],
    .purchase-detail-grid-bottom[b-4lojxai4pl] {
        grid-template-columns: 1fr;
    }
}

/* Purchase Items Table */
.purchase-items-table[b-4lojxai4pl] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.purchase-items-table th[b-4lojxai4pl] {
    color: #64748b;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 0.5rem 0.75rem;
    border: none;
    background: transparent;
    text-align: left;
}

.purchase-items-table td[b-4lojxai4pl] {
    padding: 0.5rem 0.75rem;
    vertical-align: middle;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.purchase-items-table tr td:first-child[b-4lojxai4pl] {
    border-left: 1px solid #e2e8f0;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.purchase-items-table tr td:last-child[b-4lojxai4pl] {
    border-right: 1px solid #e2e8f0;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.purchase-items-table .table-input[b-4lojxai4pl] {
    width: 100%;
    min-width: 60px;
    height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 0.5rem;
    font-size: 0.85rem;
    color: #334155;
    background: #ffffff;
    outline: none;
    transition: all 0.2s;
}

.purchase-items-table .table-input:focus[b-4lojxai4pl] {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.1);
}

.purchase-items-table .table-value[b-4lojxai4pl] {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}

.purchase-items-table .table-total[b-4lojxai4pl] {
    font-size: 0.9rem;
    font-weight: 700;
    color: #10b981;
}

.purchase-bill-wrapper[b-4lojxai4pl] {
    display: flex;
    gap: 2.25rem;
    flex-wrap: wrap;
}

.purchase-bill-fields[b-4lojxai4pl] {
    flex: 1.5;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.purchase-bill-fields .premium-input[b-4lojxai4pl] {
    width: 100% !important;
    padding: 0 10px !important;
    font-size: 0.82rem !important;
    border-radius: 6px !important;
    height: 36px !important;
    line-height: normal !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-sizing: border-box !important;
    display: block !important;
}

.purchase-bill-fields input[type="date"].premium-input[b-4lojxai4pl],
.purchase-bill-fields input.premium-input[b-4lojxai4pl] {
    width: 100% !important;
    padding: 0 10px !important;
    height: 36px !important;
    line-height: normal !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    display: block !important;
}

.purchase-bill-fields .field-group[b-4lojxai4pl],
.field-group[b-4lojxai4pl] {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.purchase-bill-fields .field-label[b-4lojxai4pl],
.field-label[b-4lojxai4pl] {
    font-size: 0.68rem !important;
    margin-bottom: 4px !important;
    font-weight: 700 !important;
    color: #374151 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.purchase-bill-fields .form-grid[b-4lojxai4pl],
.form-grid[b-4lojxai4pl] {
    display: grid !important;
    grid-template-columns: repeat(12, 1fr) !important;
    gap: 14px 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.form-grid > *[b-4lojxai4pl],
.form-grid > [class*="col-"][b-4lojxai4pl],
.form-grid .field-group[b-4lojxai4pl],
.purchase-bill-fields .col-1[b-4lojxai4pl], .form-grid .col-1[b-4lojxai4pl],
.purchase-bill-fields .col-2[b-4lojxai4pl], .form-grid .col-2[b-4lojxai4pl],
.purchase-bill-fields .col-3[b-4lojxai4pl], .form-grid .col-3[b-4lojxai4pl],
.purchase-bill-fields .col-4[b-4lojxai4pl], .form-grid .col-4[b-4lojxai4pl],
.purchase-bill-fields .col-5[b-4lojxai4pl], .form-grid .col-5[b-4lojxai4pl],
.purchase-bill-fields .col-6[b-4lojxai4pl], .form-grid .col-6[b-4lojxai4pl],
.purchase-bill-fields .col-7[b-4lojxai4pl], .form-grid .col-7[b-4lojxai4pl],
.purchase-bill-fields .col-8[b-4lojxai4pl], .form-grid .col-8[b-4lojxai4pl],
.purchase-bill-fields .col-9[b-4lojxai4pl], .form-grid .col-9[b-4lojxai4pl],
.purchase-bill-fields .col-10[b-4lojxai4pl], .form-grid .col-10[b-4lojxai4pl],
.purchase-bill-fields .col-11[b-4lojxai4pl], .form-grid .col-11[b-4lojxai4pl],
.purchase-bill-fields .col-12[b-4lojxai4pl], .form-grid .col-12[b-4lojxai4pl] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    box-sizing: border-box !important;
}

.purchase-bill-fields .col-1[b-4lojxai4pl], .form-grid .col-1[b-4lojxai4pl] { grid-column: span 1 !important; }
.purchase-bill-fields .col-2[b-4lojxai4pl], .form-grid .col-2[b-4lojxai4pl] { grid-column: span 2 !important; }
.purchase-bill-fields .col-3[b-4lojxai4pl], .form-grid .col-3[b-4lojxai4pl] { grid-column: span 3 !important; }
.purchase-bill-fields .col-4[b-4lojxai4pl], .form-grid .col-4[b-4lojxai4pl] { grid-column: span 4 !important; }
.purchase-bill-fields .col-5[b-4lojxai4pl], .form-grid .col-5[b-4lojxai4pl] { grid-column: span 5 !important; }
.purchase-bill-fields .col-6[b-4lojxai4pl], .form-grid .col-6[b-4lojxai4pl] { grid-column: span 6 !important; }
.purchase-bill-fields .col-7[b-4lojxai4pl], .form-grid .col-7[b-4lojxai4pl] { grid-column: span 7 !important; }
.purchase-bill-fields .col-8[b-4lojxai4pl], .form-grid .col-8[b-4lojxai4pl] { grid-column: span 8 !important; }
.purchase-bill-fields .col-9[b-4lojxai4pl], .form-grid .col-9[b-4lojxai4pl] { grid-column: span 9 !important; }
.purchase-bill-fields .col-10[b-4lojxai4pl], .form-grid .col-10[b-4lojxai4pl] { grid-column: span 10 !important; }
.purchase-bill-fields .col-11[b-4lojxai4pl], .form-grid .col-11[b-4lojxai4pl] { grid-column: span 11 !important; }
.purchase-bill-fields .col-12[b-4lojxai4pl], .form-grid .col-12[b-4lojxai4pl] { grid-column: span 12 !important; }

.purchase-bill-summary[b-4lojxai4pl] {
    flex: 0.85;
    min-width: 300px;
    max-width: 320px;
    display: flex;
    align-items: stretch;
}

.purchase-item-entry-card[b-4lojxai4pl] {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0.7rem;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow-x: hidden;
    box-sizing: border-box;
}

.purchase-item-entry-header[b-4lojxai4pl] {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(52px, 0.55fr) minmax(60px, 0.65fr) minmax(52px, 0.55fr) minmax(52px, 0.55fr) minmax(80px, 0.9fr) minmax(110px, 1fr);
    gap: 10px;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.purchase-item-entry-label[b-4lojxai4pl] {
    font-size: 0.6rem;
    font-weight: 700;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.purchase-item-entry-label span[b-4lojxai4pl] {
    color: #ef4444;
}

.purchase-item-entry-fields[b-4lojxai4pl] {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(52px, 0.55fr) minmax(60px, 0.65fr) minmax(52px, 0.55fr) minmax(52px, 0.55fr) minmax(80px, 0.9fr) minmax(110px, 1fr);
    gap: 10px;
    align-items: center;
    width: 100%;
}

.purchase-item-entry-fields>div[b-4lojxai4pl],
.purchase-item-entry-header>div[b-4lojxai4pl] {
    min-width: 0;
}

.purchase-item-input[b-4lojxai4pl] {
    height: 28px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: white;
    font-size: 0.65rem;
    padding: 0 6px;
    outline: none;
    transition: all 0.2s;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.purchase-item-input:focus[b-4lojxai4pl] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    background: #f8fbff;
}

.purchase-item-select[b-4lojxai4pl] {
    height: 28px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: white;
    font-size: 0.65rem;
    padding: 0 6px;
    outline: none;
    transition: all 0.2s;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.purchase-item-select:focus[b-4lojxai4pl] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    background: #f8fbff;
}

.purchase-item-add-btn[b-4lojxai4pl] {
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    height: 28px;
    font-weight: 700;
    font-size: 0.65rem;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.purchase-item-add-btn:hover[b-4lojxai4pl] {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.purchase-item-add-btn:active[b-4lojxai4pl] {
    transform: translateY(0);
}

.purchase-details-wrapper[b-4lojxai4pl] {
    width: 100%;
    margin-bottom: 2rem;
}

.purchase-details-link[b-4lojxai4pl] {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f678f;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.purchase-details-link:hover[b-4lojxai4pl] {
    color: #0ea5e9;
    gap: 8px;
}

.purchase-items-table-wrapper[b-4lojxai4pl] {
    border: none !important;
    border-radius: 0;
    overflow: visible;
    background: white;
    margin-bottom: 0.5rem !important;
    box-shadow: none !important;
}

.purchase-items-table-wrapper table[b-4lojxai4pl] {
    table-layout: fixed;
    width: 100%;
}

.purchase-items-table-wrapper .purchase-item-input[b-4lojxai4pl],
.purchase-items-table-wrapper .purchase-item-select[b-4lojxai4pl] {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    height: 26px;
    font-size: 0.65rem;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: white;
    outline: none;
    transition: all 0.2s;
}

.purchase-items-table-wrapper .purchase-item-input:focus[b-4lojxai4pl],
.purchase-items-table-wrapper .purchase-item-select:focus[b-4lojxai4pl] {
    border-color: #0273b2;
    box-shadow: 0 0 0 2px rgba(2, 115, 178, 0.1);
    background: #f4f8fa;
}

.purchase-items-table-wrapper .purchase-item-select[b-4lojxai4pl] {
    min-width: 130px;
}

.purchase-items-table-header[b-4lojxai4pl] {
    background: #f8fafc !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

.purchase-items-table-header th[b-4lojxai4pl] {
    font-weight: 700;
    font-size: 0.72rem;
    color: #475569 !important;
    background: #f8fafc !important;
    padding: 10px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #e2e8f0 !important;
}

.purchase-add-row-wrapper[b-4lojxai4pl] {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.purchase-add-row-btn[b-4lojxai4pl] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 2px dashed #0273b2 !important;
    border-radius: 10px !important;
    background: #f4f8fa !important;
    color: #0273b2 !important;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.45rem 1.25rem;
    min-width: 200px;
    cursor: pointer;
    transition: all 0.22s ease-in-out;
    box-shadow: 0 2px 4px rgba(2, 115, 178, 0.05);
}

.purchase-add-row-btn:hover[b-4lojxai4pl] {
    background: #e6f2fa !important;
    border-color: #015f94 !important;
    color: #015f94 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(2, 115, 178, 0.12);
}

.purchase-add-row-btn i[b-4lojxai4pl] {
    font-size: 0.95rem;
    color: #0273b2 !important;
    transition: color 0.22s ease-in-out;
}

.purchase-add-row-btn:hover i[b-4lojxai4pl] {
    color: #015f94 !important;
}

.purchase-item-readonly[b-4lojxai4pl] {
    display: block;
    width: 100%;
    height: 26px;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 6px;
    line-height: 24px;
    font-size: 0.65rem;
    color: #475569;
    box-sizing: border-box;
    pointer-events: none;
    user-select: none;
    text-align: right;
}

.purchase-items-table-wrapper .purchase-item-input:disabled[b-4lojxai4pl],
.purchase-items-table-wrapper .purchase-item-select:disabled[b-4lojxai4pl] {
    pointer-events: none;
    cursor: default;
    background-color: white !important;
    color: #000000 !important;
    border-color: #d1d5db !important;
}

.btn-add-item-blue[b-4lojxai4pl] {
    background: #0273b2;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(2, 115, 178, 0.3);
    transition: all 0.2s;
    white-space: nowrap;
    font-size: 0.82rem;
    height: 32px;
}

.btn-add-item-blue:hover[b-4lojxai4pl] {
    background: #015c8f;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(2, 115, 178, 0.4);
}

.btn-add-item-blue:active[b-4lojxai4pl] {
    transform: translateY(0);
}

.bill-card-premium[b-4lojxai4pl] {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 5px solid #3b82f6;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.04);
    transition: all 0.3s ease;
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.25rem;
    padding: 0.4rem 0.65rem;
}

.bill-card-premium:hover[b-4lojxai4pl] {
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.08);
    border-color: #93c5fd;
    border-left-color: #2563eb;
}

.bill-card-header-premium[b-4lojxai4pl] {
    margin-bottom: 0.15rem;
    padding-bottom: 0.35rem;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #4f46e5;
    letter-spacing: 0.8px;
    border-bottom: 1px dashed #bfdbfe;
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-premium-gross[b-4lojxai4pl] {
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 4px solid #1e3a8a !important;
    color: #1e3a8a !important;
    font-weight: 700 !important;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-premium-gross:hover[b-4lojxai4pl] {
    transform: translateY(-1.5px);
    background-color: #f1f5f9 !important;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.08);
}

.input-premium-gross:focus[b-4lojxai4pl] {
    border-color: #2563eb !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18) !important;
    outline: none;
}

.input-premium-discount[b-4lojxai4pl] {
    background-color: #f0fdf4 !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 4px solid #059669 !important;
    color: #065f46 !important;
    font-weight: 700 !important;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-premium-discount:hover[b-4lojxai4pl] {
    transform: translateY(-1.5px);
    background-color: #ecfdf5 !important;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.08);
}

.input-premium-discount:focus[b-4lojxai4pl] {
    border-color: #10b981 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18) !important;
    outline: none;
}

.input-premium-tax[b-4lojxai4pl] {
    background-color: #fffbeb !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 4px solid #d97706 !important;
    color: #92400e !important;
    font-weight: 700 !important;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-premium-tax:hover[b-4lojxai4pl] {
    transform: translateY(-1.5px);
    background-color: #fef3c7 !important;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.08);
}

.input-premium-tax:focus[b-4lojxai4pl] {
    border-color: #f59e0b !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18) !important;
    outline: none;
}

.net-payable-wrapper-premium[b-4lojxai4pl] {
    margin-top: 0.2rem;
    padding-top: 0.5rem;
    border-top: 2px dashed rgba(99, 102, 241, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.net-payable-label-premium[b-4lojxai4pl] {
    font-size: 0.74rem;
    font-weight: 800;
    color: #4f46e5;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.net-payable-value-premium[b-4lojxai4pl] {
    font-size: 1.25rem;
    font-weight: 800;
    color: #4f46e5;
    text-shadow: 0 1px 2px rgba(79, 70, 229, 0.1);
}

@keyframes premium-pulse-blink-b-4lojxai4pl {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.65;
        transform: scale(0.97);
    }
}

.blink-payable-value[b-4lojxai4pl] {
    animation: premium-pulse-blink-b-4lojxai4pl 1.8s infinite ease-in-out;
    display: inline-block;
}

.btn-dotted-add[b-4lojxai4pl] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px dashed #0f678f !important;
    background: #fff !important;
    color: #0f678f !important;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 20px;
    padding: 8px 32px;
    box-shadow: none;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-dotted-add:hover[b-4lojxai4pl] {
    background: rgba(15, 103, 143, 0.04) !important;
    border-color: #0d587a !important;
    color: #0d587a !important;
    transform: translateY(-1.5px);
}

.btn-dotted-add:active[b-4lojxai4pl] {
    transform: translateY(0);
}

.purchase-bill-fields select.premium-input[b-4lojxai4pl] {
    -webkit-appearance: auto !important;
    appearance: auto !important;
    background-image: none !important;
    padding-right: 24px !important;
}

/* Vendor Master Specific Styles */
.items-main-card .table-responsive[b-4lojxai4pl] {
    padding-right: 0 !important;
    overflow-x: auto !important;
}

.items-table[b-4lojxai4pl] {
    width: 100% !important;
}

.items-table th[b-4lojxai4pl] {
    background: #f8fafc !important;
    color: #1e293b !important;
    white-space: nowrap !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    padding: 12px 16px !important;
}

.items-table td[b-4lojxai4pl] {
    white-space: normal !important;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.8rem !important;
    padding: 3px 6px !important;
}

/* Premium Modal Styles for Vendor */
.modal-card[b-4lojxai4pl] {
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    overflow: hidden;
    background: #fff;
}

.modal-header-bar[b-4lojxai4pl] {
    background: #fff !important;
    color: #333 !important;
    padding: 24px 32px !important;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-left[b-4lojxai4pl] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-badge[b-4lojxai4pl] {
    background: var(--sidebar-bg);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.modal-title[b-4lojxai4pl] {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
}

.modal-subtitle[b-4lojxai4pl] {
    font-size: 0.85rem;
    color: #64748b;
}

.btn-close-modal[b-4lojxai4pl] {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}

.btn-close-modal:hover[b-4lojxai4pl] {
    background: #e2e8f0;
    color: #1e293b;
}

.modal-inner[b-4lojxai4pl] {
    padding: 16px 32px !important;
    background: #fff;
}

.form-section-header[b-4lojxai4pl] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    margin-top: 4px;
}

.form-section-icon[b-4lojxai4pl] {
    background: var(--sidebar-bg);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.form-section-title[b-4lojxai4pl] {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #025091;
}

.form-grid[b-4lojxai4pl] {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.col-prefix[b-4lojxai4pl] {
    grid-column: span 3;
}

.col-main[b-4lojxai4pl] {
    grid-column: span 9;
}

.col-2[b-4lojxai4pl] {
    grid-column: span 2;
}

.col-3[b-4lojxai4pl] {
    grid-column: span 3;
}

.col-4[b-4lojxai4pl] {
    grid-column: span 4;
}

.col-5[b-4lojxai4pl] {
    grid-column: span 5;
}

.col-6[b-4lojxai4pl] {
    grid-column: span 6;
}

.col-7[b-4lojxai4pl] {
    grid-column: span 7;
}

.col-8[b-4lojxai4pl] {
    grid-column: span 8;
}

.col-9[b-4lojxai4pl] {
    grid-column: span 9;
}

.col-10[b-4lojxai4pl] {
    grid-column: span 10;
}

.col-11[b-4lojxai4pl] {
    grid-column: span 11;
}

.col-12[b-4lojxai4pl] {
    grid-column: span 12;
}

.field-group[b-4lojxai4pl] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-label[b-4lojxai4pl] {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 2px;
}

.field-label.required[b-4lojxai4pl]::after {
    content: " *";
    color: #ef4444;
}

.premium-input[b-4lojxai4pl] {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 0.88rem !important;
    color: #4b5563 !important;
    transition: all 0.2s !important;
    height: auto !important;
}

.premium-input[b-4lojxai4pl]::placeholder {
    color: #cbd5e1 !important;
    opacity: 1 !important;
}

.premium-input:focus[b-4lojxai4pl] {
    background: #fff !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1) !important;
    outline: none !important;
}

.modal-footer-actions[b-4lojxai4pl] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.btn-delete-text[b-4lojxai4pl] {
    color: #ef4444;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-delete-text:hover[b-4lojxai4pl] {
    background: #fef2f2;
}

.btn-save-premium[b-4lojxai4pl] {
    background: #1c9f5f;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(28, 159, 95, 0.3);
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-save-premium:hover[b-4lojxai4pl] {
    background: #168a52;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(28, 159, 95, 0.4);
}

.btn-save-premium:active[b-4lojxai4pl] {
    transform: translateY(0);
}

.btn-save-premium:disabled[b-4lojxai4pl] {
    opacity: 0.6;
    cursor: not-allowed;
}


/* Financial Summary Card Styles */
.financial-summary-card[b-4lojxai4pl] {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    padding: 1.5rem;
    font-family: 'Inter', 'Outfit', sans-serif;
}

.financial-summary-header[b-4lojxai4pl] {
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.financial-summary-row[b-4lojxai4pl] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.financial-summary-label[b-4lojxai4pl] {
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.financial-summary-value[b-4lojxai4pl] {
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
}

.financial-summary-input[b-4lojxai4pl] {
    width: 80px;
    height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: #334155;
    outline: none;
    transition: all 0.2s;
    background: #ffffff;
}

.financial-summary-input:focus[b-4lojxai4pl] {
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.financial-summary-net[b-4lojxai4pl] {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.financial-summary-net-label[b-4lojxai4pl] {
    color: #0f172a;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.financial-summary-net-value[b-4lojxai4pl] {
    color: #4f46e5;
    font-weight: 800;
    font-size: 1.4rem;
}

/* Purchase Entry Master Compact Summary Card */
.compact-summary-card[b-4lojxai4pl] {
    border-radius: 14px;
    padding: 1.25rem 1.4rem;
    border: 1.5px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.compact-summary-card[b-4lojxai4pl]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #6366f1, #06b6d4);
    border-radius: 14px 0 0 14px;
}

.compact-summary-card:hover[b-4lojxai4pl] {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
}

/* Physical Bill Totals - Blue-indigo gradient */
.compact-summary-card.bill-card[b-4lojxai4pl] {
    background: linear-gradient(135deg, #eef2ff 0%, #f0fdff 100%);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02);
}

.compact-summary-card.bill-card[b-4lojxai4pl]::before {
    background: linear-gradient(180deg, #6366f1, #06b6d4);
}

/* Computed Items Total - Teal-green gradient */
.compact-summary-card.items-card[b-4lojxai4pl] {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 100%);
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.08);
}

.compact-summary-card.items-card[b-4lojxai4pl]::before {
    background: linear-gradient(180deg, #10b981, #06b6d4);
}

.compact-summary-card.items-card:hover[b-4lojxai4pl] {
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.18);
}

.compact-summary-header[b-4lojxai4pl] {
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed rgba(37, 99, 235, 0.25);
    padding-left: 8px;
}

.compact-summary-card.items-card .compact-summary-header[b-4lojxai4pl] {
    color: #10b981;
    border-bottom-color: rgba(16, 185, 129, 0.25);
}

.compact-summary-row[b-4lojxai4pl] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding-left: 8px;
}

.compact-summary-label[b-4lojxai4pl] {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.compact-summary-value[b-4lojxai4pl] {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
}

.compact-summary-input[b-4lojxai4pl] {
    width: 110px;
    height: 30px;
    border-radius: 8px;
    border: 1.5px solid rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.8);
    text-align: right;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0 10px;
    color: #1e293b;
}

.compact-summary-input:focus[b-4lojxai4pl] {
    outline: none;
    border-color: #64748b;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: #fff;
}

.compact-summary-net[b-4lojxai4pl] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    padding-left: 8px;
    border-top: 1.5px solid rgba(99, 102, 241, 0.2);
}

.compact-summary-card.items-card .compact-summary-net[b-4lojxai4pl] {
    border-top-color: rgba(16, 185, 129, 0.2);
}

.compact-summary-net-label[b-4lojxai4pl] {
    font-size: 0.8rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compact-summary-net-value[b-4lojxai4pl] {
    font-size: 1.3rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: -0.5px;
}

.compact-summary-card.items-card .compact-summary-net-value[b-4lojxai4pl] {
    color: #10b981;
}

/* Stock Indent Status Badges */
.badge-indent-pending[b-4lojxai4pl] {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #d97706 !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

.badge-indent-approved[b-4lojxai4pl] {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #059669 !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

.badge-indent-rejected[b-4lojxai4pl] {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #dc2626 !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

/* Stock volume indicators */
.badge-stock-high[b-4lojxai4pl] {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #059669 !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

.badge-stock-low[b-4lojxai4pl] {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #d97706 !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

.badge-stock-empty[b-4lojxai4pl] {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #dc2626 !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

/* OVERRIDE FOR HIGH-DENSITY PURCHASE BILL FORM (e.g. ItemMaster Modal) */
.purchase-bill-fields .premium-segmented-control-joined[b-4lojxai4pl] {
    height: 38px !important;
    border-radius: 8px !important;
    max-width: none !important;
}

.purchase-bill-fields .segment-btn-joined[b-4lojxai4pl] {
    font-size: 0.82rem !important;
    font-weight: 600 !important;
}

.purchase-bill-fields .segment-btn-joined:first-child[b-4lojxai4pl] {
    border-right: 1px solid #e2e8f0 !important;
}

/* Tabular Grid/Real Table styling for purchase details table */
.purchase-items-table-wrapper table[b-4lojxai4pl] {
    border-collapse: collapse !important;
    border: 1px solid #cbd5e1 !important;
    width: 100%;
}

.purchase-items-table-wrapper th[b-4lojxai4pl],
.purchase-items-table-wrapper td[b-4lojxai4pl] {
    border: 1px solid #cbd5e1 !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

.purchase-items-table-header th[b-4lojxai4pl] {
    border: 1px solid #e2e8f0 !important;
    padding: 10px 8px !important;
    font-weight: 700;
    font-size: 0.72rem;
    color: #475569 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f8fafc !important;
}

.purchase-items-table-wrapper .purchase-item-input[b-4lojxai4pl],
.purchase-items-table-wrapper .purchase-item-select[b-4lojxai4pl] {
    width: 100% !important;
    height: 34px !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 8px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background: transparent !important;
}

.purchase-items-table-wrapper .purchase-item-input:focus[b-4lojxai4pl],
.purchase-items-table-wrapper .purchase-item-select:focus[b-4lojxai4pl] {
    background: #f4f8fa !important;
    box-shadow: inset 0 0 0 2px rgba(2, 115, 178, 0.2) !important;
}

.purchase-items-table-wrapper .purchase-item-readonly[b-4lojxai4pl] {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    width: 100% !important;
    height: 34px !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 8px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background-color: #f8fafc !important;
    font-weight: 600;
}

.purchase-items-table-wrapper td.purchase-items-table-footer-cell[b-4lojxai4pl] {
    padding: 16px 24px !important;
}
:root[b-4lojxai4pl] {
    --sidebar-bg: #f4f7fc;
    --sidebar-hover: #eaeff8;
    --sidebar-active: linear-gradient(90deg, rgba(79, 70, 229, 0.14) 0%, rgba(79, 70, 229, 0.04) 100%);
    --sidebar-active-text: #4338ca;
    --sidebar-text: #334155;
    --sidebar-border: #e2e8f0;
    --accent-blue: #4f46e5;
    --text-muted: #64748b;
    --sidebar-width: 220px;
    --sidebar-collapsed-width: 80px;
}

html[b-4lojxai4pl],
body[b-4lojxai4pl] {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background-color: #f8fafc !important;
}

body[b-4lojxai4pl] {
    font-family: 'Inter', 'Roboto', 'Segoe UI', sans-serif;
    font-size: 13px;
}

.page[b-4lojxai4pl] {
    display: flex;
    height: 100vh;
    width: 100vw;
    background: transparent;
}

main[b-4lojxai4pl] {
    flex: 1;
    overflow-y: auto;
    background: transparent !important;
    display: flex;
    flex-direction: column;
}

.sidebar[b-4lojxai4pl] {
    background-color: var(--sidebar-bg);
    width: var(--sidebar-width);
    min-width: var(--sidebar-collapsed-width);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    color: var(--sidebar-text);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.02);
    border-right: 1px solid var(--sidebar-border);
    z-index: 100;
    overflow: visible;
    /* Need visible for floating overlapping button */
    position: relative;
}

.sidebar.collapsed[b-4lojxai4pl] {
    width: var(--sidebar-collapsed-width);
}

/* Sidebar Header */
.sidebar-header[b-4lojxai4pl] {
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5.5rem;
    white-space: nowrap;
    border-bottom: 1px solid var(--sidebar-border);
    position: relative;
    /* relative for floating toggle */
}

.sidebar.collapsed .sidebar-header[b-4lojxai4pl] {
    padding: 0;
    justify-content: center;
}

.sidebar-brand[b-4lojxai4pl] {
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s ease;
}

.sidebar.collapsed .sidebar-brand[b-4lojxai4pl] {
    gap: 0;
    justify-content: center;
}

.logo-box[b-4lojxai4pl] {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.logo-box svg[b-4lojxai4pl] {
    color: #ffffff;
}

.sidebar.collapsed .logo-box[b-4lojxai4pl] {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.sidebar-brand-text[b-4lojxai4pl] {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand-icon[b-4lojxai4pl] {
    text-shadow: 0 0 15px rgba(79, 70, 229, 0.15);
}

.brand-title[b-4lojxai4pl] {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.25;
    letter-spacing: -0.1px;
    white-space: normal;
    max-width: 125px;
}

.brand-title span.accent-text[b-4lojxai4pl] {
    color: #4f46e5 !important;
    font-weight: 800;
}

.brand-subtitle[b-4lojxai4pl] {
    font-size: 0.62rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 1px;
}

.collapsed .sidebar-brand-text[b-4lojxai4pl] {
    opacity: 0;
    transform: translateX(-10px);
    pointer-events: none;
    width: 0;
    overflow: hidden;
}

.sidebar-toggle[b-4lojxai4pl] {
    position: absolute;
    right: -14px;
    /* floats half outside the sidebar */
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border: 1px solid #dbeafe !important;
    color: #4f46e5 !important;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.15) !important;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-toggle:hover[b-4lojxai4pl] {
    background: #f8fafc;
    transform: translateY(-50%) scale(1.08);
}

.sidebar-toggle i[b-4lojxai4pl] {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Nav Category Removed as requested */

/* Nav Links */
.nav-scrollable[b-4lojxai4pl] {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

.nav-scrollable[b-4lojxai4pl]::-webkit-scrollbar {
    width: 5px;
}

.nav-scrollable[b-4lojxai4pl]::-webkit-scrollbar-track {
    background: transparent;
}

.nav-scrollable[b-4lojxai4pl]::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.nav-section-title[b-4lojxai4pl] {
    font-size: 0.66rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 0.9rem 1.5rem 0.2rem 24px;
    margin-top: 0.1rem;
}

.collapsed .nav-section-title[b-4lojxai4pl] {
    display: none;
}

.nav-item[b-4lojxai4pl] {
    padding: 0 16px 0 0;
    margin-bottom: 0.15rem;
}

.nav-link[b-4lojxai4pl] {
    display: flex;
    align-items: center;
    padding: 0.45rem 0.8rem 0.45rem 24px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    color: var(--sidebar-text) !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    white-space: nowrap;
    background: transparent !important;
    border-left: 3.5px solid transparent;
}

.nav-link:hover[b-4lojxai4pl] {
    color: var(--sidebar-active-text) !important;
    background: var(--sidebar-hover) !important;
}

.nav-link.active[b-4lojxai4pl] {
    color: var(--sidebar-active-text) !important;
    background: var(--sidebar-active) !important;
    border-left-color: #4f46e5 !important;
    font-weight: 700;
}

.nav-link span[b-4lojxai4pl] {
    transition: opacity 0.3s, transform 0.3s;
    opacity: 1;
    font-size: 0.78rem;
    font-weight: 600;
}

.collapsed .nav-link span[b-4lojxai4pl] {
    opacity: 0;
    pointer-events: none;
    width: 0;
    display: inline-block;
    overflow: hidden;
}

/* Icon Box Style */
.icon-box[b-4lojxai4pl] {
    width: 30px;
    height: 30px;
    min-width: 30px;
    background: transparent;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.7rem;
    transition: all 0.2s ease;
    color: #475569;
    font-size: 0.95rem;
}

.nav-link:hover .icon-box[b-4lojxai4pl] {
    color: var(--sidebar-active-text) !important;
}

.nav-link.active .icon-box[b-4lojxai4pl] {
    color: #4f46e5 !important;
}

.collapsed .icon-box[b-4lojxai4pl] {
    margin-right: 0;
}

.collapsed .nav-item[b-4lojxai4pl] {
    padding: 0 10px 0 0;
}

.collapsed .nav-link[b-4lojxai4pl] {
    justify-content: center;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-left: 3px solid transparent;
    padding: 0.48rem 0;
}

.collapsed .nav-link.active[b-4lojxai4pl] {
    background: rgba(2, 101, 158, 0.12) !important;
    color: #02659e !important;
    border-left: 3px solid #02659e !important;
}

/* Main Content */
.content[b-4lojxai4pl] {
    padding: 0.25rem 2rem 2rem 2rem;
    background: transparent !important;
}

.card[b-4lojxai4pl] {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}



/* Blue Shade Form Theme */
.bg-blue-soft[b-4lojxai4pl] {
    background-color: #f0f7ff !important;
}

.card-blue-shade[b-4lojxai4pl] {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e1e9f4 !important;
}

.form-control-blue[b-4lojxai4pl] {
    background-color: #f4f8fb !important;
    border: 1px solid #e1e9f4 !important;
    transition: all 0.3s;
}

.form-control-blue:focus[b-4lojxai4pl] {
    background-color: #ffffff !important;
    border-color: #006092 !important;
    box-shadow: 0 0 0 4px rgba(0, 96, 146, 0.1);
}

/* Premium Notification System */
.notification-container[b-4lojxai4pl] {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 14px;
    pointer-events: none;
    perspective: 1000px;
}

.notification-item[b-4lojxai4pl] {
    pointer-events: auto;
    min-width: 320px;
    max-width: 480px;
    padding: 0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 20px 40px -10px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: premiumSlideIn-b-4lojxai4pl 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.3s ease;
}

.notification-item:hover[b-4lojxai4pl] {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.18);
}

@keyframes premiumSlideIn-b-4lojxai4pl {
    0% {
        transform: translateX(120%) rotateY(-20deg);
        opacity: 0;
    }

    100% {
        transform: translateX(0) rotateY(0);
        opacity: 1;
    }
}

.notification-inner[b-4lojxai4pl] {
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.notification-content[b-4lojxai4pl] {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: -0.01em;
}

.notification-icon-wrap[b-4lojxai4pl] {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Theme Variations */
.notification-item.success .notification-icon-wrap[b-4lojxai4pl] {
    background: #10b981;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.notification-item.error .notification-icon-wrap[b-4lojxai4pl] {
    background: #ef4444;
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.notification-item.warning .notification-icon-wrap[b-4lojxai4pl] {
    background: #f59e0b;
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.notification-item.info .notification-icon-wrap[b-4lojxai4pl] {
    background: #3b82f6;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.notification-item.success[b-4lojxai4pl] {
    border-left: 4px solid #10b981;
}

.notification-item.error[b-4lojxai4pl] {
    border-left: 4px solid #ef4444;
}

.notification-item.warning[b-4lojxai4pl] {
    border-left: 4px solid #f59e0b;
}

.notification-item.info[b-4lojxai4pl] {
    border-left: 4px solid #3b82f6;
}

.notification-text[b-4lojxai4pl] {
    color: #1e293b;
}

.notification-close[b-4lojxai4pl] {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: #64748b;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.notification-close:hover[b-4lojxai4pl] {
    background: rgba(0, 0, 0, 0.1);
    color: #1e293b;
    transform: rotate(90deg);
}

/* Progress Bar */
.notification-progress[b-4lojxai4pl] {
    height: 3px;
    width: 100%;
    background: rgba(0, 0, 0, 0.03);
}

.notification-progress-bar[b-4lojxai4pl] {
    height: 100%;
    width: 100%;
    background: currentColor;
    opacity: 0.6;
    animation: notificationProgress-b-4lojxai4pl 5s linear forwards;
}

@keyframes notificationProgress-b-4lojxai4pl {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

.notification-item.success .notification-progress-bar[b-4lojxai4pl] {
    color: #10b981;
}

.notification-item.error .notification-progress-bar[b-4lojxai4pl] {
    color: #ef4444;
}

.notification-item.warning .notification-progress-bar[b-4lojxai4pl] {
    color: #f59e0b;
}

.notification-item.info .notification-progress-bar[b-4lojxai4pl] {
    color: #3b82f6;
}

/* Add Item Page Styles */
.ai-page[b-4lojxai4pl] {
    min-height: 100vh;
    background: linear-gradient(180deg, #eff6fb 0%, #e2edf6 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    overflow-y: auto;
}

.ai-shell[b-4lojxai4pl] {
    width: 100%;
    display: flex;
    justify-content: center;
}

.ai-card[b-4lojxai4pl] {
    width: 100%;
    max-width: 650px;
    background: #ffffff;
    border-radius: 16px;
    border: 0;
    box-shadow: 0 22px 55px rgba(3, 26, 46, 0.16);
    overflow: hidden;
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
}

.ai-header[b-4lojxai4pl] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.1rem;
    background: linear-gradient(90deg, #0f678f 0%, #0b5777 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-head-left[b-4lojxai4pl] {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.ai-badge[b-4lojxai4pl] {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.ai-title[b-4lojxai4pl] {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.1px;
    line-height: 1.1;
    font-size: 1.1rem;
}

.ai-subtitle[b-4lojxai4pl] {
    display: none;
}

.ai-body[b-4lojxai4pl] {
    padding: .95rem .85rem 1rem;
    overflow-y: auto;
    flex: 1;
}

.ai-form-wrap[b-4lojxai4pl] {
    max-width: 500px;
    margin: 0 auto;
}

.ai-section[b-4lojxai4pl] {
    background: linear-gradient(180deg, #ffffff 0%, #fcfeff 100%);
    border: 1px solid #dce9f4;
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.ai-row[b-4lojxai4pl] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ai-row.full-width[b-4lojxai4pl] {
    grid-column: span 2;
}

.ai-label[b-4lojxai4pl] {
    padding-top: 0;
    font-weight: 700;
    color: #0b5777;
    font-size: .72rem;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.ai-field[b-4lojxai4pl] {
    width: 100%;
}

.ai-input[b-4lojxai4pl],
.ai-select[b-4lojxai4pl],
.ai-textarea[b-4lojxai4pl] {
    border: 1px solid #e6eef8;
    border-radius: 8px;
    padding: .4rem .6rem;
    min-height: 32px;
    background: #fbfdff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    font-size: .85rem;
    width: 100%;
    max-width: 280px;
}

.ai-textarea[b-4lojxai4pl] {
    max-width: 100%;
    height: auto;
    min-height: 78px;
    padding-top: .6rem;
}

.ai-input:focus[b-4lojxai4pl],
.ai-select:focus[b-4lojxai4pl],
.ai-textarea:focus[b-4lojxai4pl] {
    border-color: #0aa06a;
    box-shadow: 0 6px 20px rgba(10, 160, 106, 0.06);
    outline: none;
    background: #fff;
}

.btn-accent[b-4lojxai4pl] {
    background: #009b63;
    color: #fff;
    border: 1px solid #078a57;
    padding: .55rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(3, 130, 90, 0.12);
}

.btn-accent:hover[b-4lojxai4pl] {
    transform: translateY(-2px);
}

.ai-actions[b-4lojxai4pl] {
    display: flex;
    justify-content: center;
    gap: .75rem;
    margin-top: .85rem;
}

.ai-action-btn[b-4lojxai4pl] {
    min-width: 120px;
    padding: .62rem 1.2rem;
    border-radius: 10px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .ai-row[b-4lojxai4pl] {
        grid-template-columns: 1fr;
    }

    .ai-label[b-4lojxai4pl] {
        padding-top: 0;
    }

    .ai-card[b-4lojxai4pl] {
        max-height: none;
    }

    .ai-card[b-4lojxai4pl] {
        max-width: 96vw;
    }
}



/* Modal Styles */
/* Modal Styles */
.modal-overlay[b-4lojxai4pl] {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.55) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    padding: 0 !important;
    z-index: 1050 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    animation: modalFadeIn-b-4lojxai4pl 0.22s ease-out forwards;
}

.modal-card[b-4lojxai4pl] {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    background: #ffffff !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    box-sizing: border-box !important;
    animation: modalScaleIn-b-4lojxai4pl 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-header-bar[b-4lojxai4pl] {
    background: #ffffff !important;
    color: #0f172a !important;
    padding: 12px 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    border-bottom: 1px solid #e2e8f0 !important;
    flex-shrink: 0 !important;
}

.modal-inner[b-4lojxai4pl] {
    padding: 12px 24px !important;
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
    min-height: 0 !important;
}

.modal-inner form[b-4lojxai4pl],
.modal-inner[b-4lojxai4pl]  form {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
    min-height: 0 !important;
    height: 100% !important;
}

.modal-scroll-area[b-4lojxai4pl] {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    padding-right: 8px !important;
}

.modal-footer-actions[b-4lojxai4pl] {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 12px !important;
    padding-top: 10px !important;
    padding-bottom: 4px !important;
    border-top: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    flex-shrink: 0 !important;
}

.modal-header-left[b-4lojxai4pl] {
    display: flex;
    align-items: center;
    gap: .9rem;
}

.modal-badge[b-4lojxai4pl] {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .12);
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
}

.modal-title[b-4lojxai4pl] {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
}

.modal-subtitle[b-4lojxai4pl] {
    font-size: .92rem;
    color: rgba(255, 255, 255, .88);
    margin-top: .15rem;
}

.modal-inner[b-4lojxai4pl] {
    padding: 0.5rem 1rem 0.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    overflow-y: auto;
    flex: 1;
}

.modal-form-wrap[b-4lojxai4pl] {
    max-width: 100%;
    margin: 0 auto;
}

.modal-section[b-4lojxai4pl] {
    background: #fff;
    border: 1px solid #dce9f4;
    border-radius: 12px;
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.modal-row[b-4lojxai4pl] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.modal-row.full-width[b-4lojxai4pl] {
    grid-column: span 2;
}

.modal-label[b-4lojxai4pl] {
    padding-top: 0;
    font-size: .72rem;
    font-weight: 700;
    color: #0b5777;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.modal-field[b-4lojxai4pl] {
    width: 100%;
}

.modal-input[b-4lojxai4pl],
.modal-select[b-4lojxai4pl],
.modal-textarea[b-4lojxai4pl] {
    border: 1px solid #e6eef8;
    border-radius: 8px;
    background: #fbfdff;
    min-height: 32px;
    padding: .4rem .6rem;
    width: 100%;
    max-width: 250px;
    font-size: .85rem;
}

.modal-textarea[b-4lojxai4pl] {
    max-width: 100%;
    min-height: 64px;
    resize: vertical;
}

.modal-actions[b-4lojxai4pl] {
    display: flex;
    justify-content: center;
    gap: .75rem;
    margin-top: 1.2rem;
}

.modal-action-btn[b-4lojxai4pl] {
    min-width: 130px;
    padding: .65rem 1.25rem;
    border-radius: 10px;
    font-weight: 700;
}

/* Popup Styles */
.action-popup-overlay[b-4lojxai4pl] {
    position: fixed;
    inset: 0;
    background: rgba(8, 25, 40, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1200;
    animation: modalFadeIn-b-4lojxai4pl 0.25s ease-out forwards;
}

.action-popup-card[b-4lojxai4pl] {
    width: min(420px, 96%);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #cfe4f2;
    box-shadow: 0 16px 36px rgba(3, 26, 46, 0.28);
    animation: modalScaleIn-b-4lojxai4pl 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalFadeIn-b-4lojxai4pl {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalScaleIn-b-4lojxai4pl {
    from {
        transform: scale(0.95) translateY(12px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.action-popup-header[b-4lojxai4pl] {
    background: #ffffff;
    color: #0f172a;
    padding: .9rem 1.2rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-family: 'Inter', 'Roboto', 'Segoe UI', sans-serif;
}

.action-popup-body[b-4lojxai4pl] {
    padding: 1rem;
    background: #f2f9ff;
    color: #0d3f5b;
    font-size: .96rem;
}

.action-popup-actions[b-4lojxai4pl] {
    display: flex;
    justify-content: flex-end;
    gap: .6rem;
    padding: .85rem 1rem 1rem;
    background: #f2f9ff;
    border-top: 1px solid #d5e9f7;
}

.popup-btn[b-4lojxai4pl] {
    min-width: 88px;
    border-radius: 8px;
    font-weight: 700;
    border: 1px solid transparent;
    padding: .45rem .9rem;
}

.popup-btn-cancel[b-4lojxai4pl] {
    background: #fff;
    color: #0f172a;
    border-color: rgba(49, 46, 129, 0.35);
    transition: all 0.2s ease;
}

.popup-btn-cancel:hover[b-4lojxai4pl] {
    background: #f0f3ff;
    color: #1e1b4b;
    border-color: rgba(49, 46, 129, 0.6);
}

.popup-btn-delete[b-4lojxai4pl] {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
    transition: all 0.2s ease;
}

.popup-btn-delete:hover[b-4lojxai4pl] {
    background: #dc2626;
    border-color: #dc2626;
}

.popup-btn-ok[b-4lojxai4pl] {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
    transition: all 0.2s ease;
}

.popup-btn-ok:hover[b-4lojxai4pl] {
    background: #2563eb;
    border-color: #2563eb;
}

@media (max-width: 768px) {
    .modal-row[b-4lojxai4pl] {
        grid-template-columns: 1fr;
        gap: .4rem;
    }

    .modal-card[b-4lojxai4pl] {
        max-height: 100vh !important;
        height: 100vh !important;
        width: 100vw !important;
        max-width: 100vw !important;
        border-radius: 0 !important;
    }
}

@media (max-width: 576px) {

    .items-title-wrap[b-4lojxai4pl],
    .items-search[b-4lojxai4pl],
    .view-toggle[b-4lojxai4pl],
    .add-item-btn[b-4lojxai4pl] {
        width: 92vw;
        justify-content: center;
    }

    .view-toggle button[b-4lojxai4pl] {
        width: 50%;
    }
}

.display-controls[b-4lojxai4pl] {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    justify-content: flex-end;
}



.total-count-text[b-4lojxai4pl] {
    color: #4b5563;
    font-weight: 700;
    font-size: 0.95rem;
    margin-right: 0mm;
}

.pagination-bar[b-4lojxai4pl] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-right: 1.5rem !important;
}

.page-btn[b-4lojxai4pl] {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #4b5563;
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.page-btn:hover:not(:disabled)[b-4lojxai4pl] {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.page-btn.active[b-4lojxai4pl] {
    background: #02659e !important;
    color: #ffffff !important;
    border-color: #02659e !important;
}

.page-btn:disabled[b-4lojxai4pl] {
    opacity: 0.4;
    cursor: not-allowed;
}



/* Purchase Bill Layout Styles */


/* FLAT, CLEAN, PERFECTLY ALIGNED BRAND STYLE */
.dashboard-page[b-4lojxai4pl] {
    min-height: calc(100vh - 56px);
    background-color: #f8fafc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.dashboard-container[b-4lojxai4pl] {
    max-width: 1400px;
    margin: 0 auto;
}

.text-dark-blue[b-4lojxai4pl] {
    color: #025091;
}

/* KPI CARDS STYLING */
.kpi-card[b-4lojxai4pl] {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.kpi-card:hover[b-4lojxai4pl] {
    transform: translateY(-2px);
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

.kpi-label[b-4lojxai4pl] {
    font-size: 0.68rem;
    letter-spacing: 0.8px;
    color: #64748b !important;
}

.kpi-value[b-4lojxai4pl] {
    font-size: 1.45rem;
    letter-spacing: -0.5px;
}

.kpi-icon-box[b-4lojxai4pl] {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* SOLID COLOR BACKGROUND ACCENTS */
.bg-blue-light[b-4lojxai4pl] {
    background-color: #eff6ff;
}

.bg-green-light[b-4lojxai4pl] {
    background-color: #f0fdf4;
}

.bg-purple-light[b-4lojxai4pl] {
    background-color: #faf5ff;
}

.bg-orange-light[b-4lojxai4pl] {
    background-color: #fff7ed;
}

/* CARD SYSTEM */
.card[b-4lojxai4pl] {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
    transition: none;
}

.card:hover[b-4lojxai4pl] {
    transform: none;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
}

.card-header[b-4lojxai4pl] {
    border-bottom: 1px solid #e2e8f0 !important;
}

/* ALIGNED HIGH DENSITY TABLES */
.table th[b-4lojxai4pl] {
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
    letter-spacing: 0.5px;
    padding: 10px 12px;
}

.table td[b-4lojxai4pl] {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.78rem;
}

.table tr:last-child td[b-4lojxai4pl] {
    border-bottom: none;
}

.bg-danger-soft[b-4lojxai4pl] {
    background-color: #fef2f2;
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

/* ALIGNMENT UTILS */
.fs-7[b-4lojxai4pl] {
    font-size: 0.8rem !important;
}

.fs-8[b-4lojxai4pl] {
    font-size: 0.72rem !important;
}

.fs-9[b-4lojxai4pl] {
    font-size: 0.6rem !important;
}

.btn-xs[b-4lojxai4pl] {
    font-size: 0.7rem;
    padding: 2px 8px;
}

.btn-outline-primary[b-4lojxai4pl] {
    border-color: #025091;
    color: #025091;
}

.btn-outline-primary:hover[b-4lojxai4pl] {
    background-color: #025091;
    color: #fff;
}

/* Custom high-density scrollbars */
[b-4lojxai4pl]::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

[b-4lojxai4pl]::-webkit-scrollbar-track {
    background: transparent;
}

[b-4lojxai4pl]::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

[b-4lojxai4pl]::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Premium Custom Segmented Control Joined Styles */
.premium-segmented-control-joined[b-4lojxai4pl] {
    display: flex;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    height: 46px;
    width: 100%;
    max-width: 200px;
    /* Reduced width for a neat, compact look */
    box-sizing: border-box;
    overflow: hidden;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.premium-segmented-control-joined:hover[b-4lojxai4pl] {
    border-color: #cbd5e1;
}

.segment-btn-joined[b-4lojxai4pl] {
    flex: 1;
    border: none;
    background: transparent;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.segment-btn-joined:first-child[b-4lojxai4pl] {
    border-right: 1px solid #e2e8f0;
}

.segment-btn-joined:hover:not(.active)[b-4lojxai4pl] {
    background: #f1f5f9;
    color: #0f172a;
}

/* State-Dependent Colors */
.segment-btn-joined.btn-false.active[b-4lojxai4pl] {
    background: #64748b !important;
    /* Premium Slate Gray for False/Off state */
    color: white !important;
}

.segment-btn-joined.btn-true.active[b-4lojxai4pl] {
    background: #006b3c !important;
    /* Premium Deep Green for True/On state */
    color: white !important;
}



/* Premium Action Buttons Outline Styling */
.action-btn[b-4lojxai4pl] {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    cursor: pointer !important;
    margin: 0 2px !important;
    background: #ffffff !important;
    color: #94a3b8 !important;
}

.action-btn:hover[b-4lojxai4pl] {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}

.action-btn i[b-4lojxai4pl] {
    font-size: 0.85rem !important;
}

/* Schedule Checkboxes styling */
.schedule-checkboxes-group[b-4lojxai4pl] {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.schedule-check-item[b-4lojxai4pl] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    margin: 0;
}

.schedule-check-input[b-4lojxai4pl] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid #cbd5e1;
    border-radius: 4px;
    outline: none;
    background-color: #fff;
    cursor: pointer;
    display: grid;
    place-content: center;
    transition: all 0.2s ease;
    margin: 0;
}

.schedule-check-input:hover[b-4lojxai4pl] {
    border-color: #02659e;
    box-shadow: 0 0 0 3px rgba(2, 101, 158, 0.15);
}

.schedule-check-input:checked[b-4lojxai4pl] {
    background-color: #02659e;
    border-color: #02659e;
}

.schedule-check-input:checked[b-4lojxai4pl]::before {
    content: "";
    width: 10px;
    height: 10px;
    clip-path: polygon(14% 44%, 0 58%, 38% 96%, 100% 19%, 83% 5%, 38% 68%);
    background-color: white;
}

.schedule-check-label[b-4lojxai4pl] {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    user-select: none;
    cursor: pointer;
    transition: color 0.2s ease;
    margin: 0;
}

.schedule-check-item:hover .schedule-check-label[b-4lojxai4pl] {
    color: #02659e;
}

/* Branch Selector in Modal Header */
.branch-selector-container[b-4lojxai4pl] {
    position: relative;
    display: inline-block;
}

.btn-branch-picker[b-4lojxai4pl] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-branch-picker:hover[b-4lojxai4pl] {
    background: #eef2ff;
    border-color: #818cf8;
    color: #4338ca;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.12);
}

.btn-branch-picker:active[b-4lojxai4pl] {
    transform: translateY(1px);
}

.branch-dropdown-menu[b-4lojxai4pl] {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    min-width: 240px;
    max-width: 320px;
    z-index: 1200;
    overflow: hidden;
}

.branch-dropdown-item[b-4lojxai4pl] {
    padding: 9px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease, color 0.15s ease;
    color: #1e293b;
}

.branch-dropdown-item:hover[b-4lojxai4pl] {
    background: #f1f5f9;
    color: #4338ca;
}

.branch-dropdown-item.active[b-4lojxai4pl] {
    background: #eef2ff;
    color: #4338ca;
    font-weight: 700;
}

/* /Components/Pages/PurchaseOrder.razor.rz.scp.css */
/* Scoped styles for PurchaseOrder component */

.items-page[b-z67ma86lep] {
    min-height: 100vh;
    background: transparent !important;
}

.items-shell[b-z67ma86lep] {
    max-width: 1340px;
    margin: 0 auto;
}

.items-content[b-z67ma86lep] {
    width: min(1280px, 100%);
    margin: 0 auto;
    text-align: center;
}

.premium-header-card[b-z67ma86lep] {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-radius: 16px !important;
    padding: 1.25rem 2rem !important;
    color: #1e1b4b !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem !important;
}

.header-card-left[b-z67ma86lep] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-card-icon[b-z67ma86lep] {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

.header-card-icon svg[b-z67ma86lep] {
    stroke: #2563eb !important;
}

.header-card-text[b-z67ma86lep] {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.header-card-heading[b-z67ma86lep] {
    color: #0f172a !important;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
}

.header-card-subheading[b-z67ma86lep] {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b !important;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.status-dot[b-z67ma86lep] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    margin-right: 6px;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
}

.header-card-right[b-z67ma86lep] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.status-filter-select[b-z67ma86lep] {
    height: 38px !important;
    border-radius: 20px !important;
    border: 1px solid #cbd5e1 !important;
    padding: 0 1rem !important;
    font-size: 0.8rem !important;
    background: #ffffff !important;
    color: #1e293b !important;
    font-weight: 600 !important;
    cursor: pointer;
    box-shadow: none !important;
    outline: none !important;
}

.items-search-wrap[b-z67ma86lep] {
    position: relative;
    display: flex;
    align-items: center;
}

.items-search[b-z67ma86lep] {
    width: 220px;
    height: 38px !important;
    border-radius: 20px !important;
    border: 1px solid #cbd5e1 !important;
    padding-left: 2.4rem !important;
    font-size: 0.8rem !important;
    background: #ffffff !important;
    color: #1e293b !important;
    box-shadow: none !important;
    transition: all 0.25s ease !important;
}

.items-search:focus[b-z67ma86lep] {
    outline: none !important;
    width: 280px !important;
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

.items-search-icon[b-z67ma86lep] {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
}

.view-toggle[b-z67ma86lep] {
    display: inline-flex;
    border: 1px solid #cbd5e1 !important;
    border-radius: 20px !important;
    overflow: hidden;
    background: #f8fafc !important;
    height: 38px;
    padding: 2px;
    align-items: center;
}

.view-toggle button[b-z67ma86lep] {
    border: 0 !important;
    background: transparent !important;
    color: #64748b !important;
    width: 36px;
    height: 32px;
    border-radius: 16px !important;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.view-toggle button.active[b-z67ma86lep] {
    background: #ffffff !important;
    color: #4f46e5 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.add-item-btn[b-z67ma86lep] {
    height: 38px !important;
    border-radius: 20px !important;
    background: #4f46e5 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0 1.5rem !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
    transition: all 0.2s ease-in-out !important;
}

.add-item-btn:hover[b-z67ma86lep] {
    background: #3f39c5 !important;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35) !important;
    transform: translateY(-1.5px);
}

.items-main-card[b-z67ma86lep] {
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    overflow: hidden;
    margin-top: 1.5rem !important;
    background: #ffffff !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
}

.items-main-card .table-responsive[b-z67ma86lep] {
    max-height: 560px !important;
    overflow-y: auto !important;
    overflow-x: auto !important;
}

.items-table[b-z67ma86lep] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

table.table.items-table thead tr th[b-z67ma86lep],
.items-table th[b-z67ma86lep] {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    background: #ffffff !important;
    color: #8a99ad !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.74rem !important;
    letter-spacing: 0.8px !important;
    padding: 12px 16px !important;
    border-bottom: 2px solid #eef2f6 !important;
    text-align: center !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.items-table td[b-z67ma86lep] {
    border-top: none !important;
    border-bottom: 1px solid #eef2f6 !important;
    padding: 10px 16px !important;
    font-size: 0.8rem !important;
    background: #ffffff !important;
    color: #64748b !important;
    vertical-align: middle !important;
    text-align: center !important;
}

.items-table td:last-child[b-z67ma86lep] {
    white-space: nowrap !important;
    text-align: center !important;
}

.items-table tr td:first-child[b-z67ma86lep] {
    color: #3b82f6 !important;
    font-weight: 700 !important;
}

.items-table tbody tr:hover td[b-z67ma86lep] {
    background-color: #f8fafc !important;
}

.action-btn[b-z67ma86lep] {
    border: none;
    background: transparent;
    padding: 5px 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-view[b-z67ma86lep] {
    color: #0284c7;
    background: rgba(2, 132, 199, 0.08);
}
.btn-view:hover[b-z67ma86lep] {
    background: #0284c7;
    color: #ffffff;
}

.btn-edit[b-z67ma86lep] {
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.08);
}
.btn-edit:hover[b-z67ma86lep] {
    background: #4f46e5;
    color: #ffffff;
}

.btn-delete[b-z67ma86lep] {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.08);
}
.btn-delete:hover[b-z67ma86lep] {
    background: #dc2626;
    color: #ffffff;
}

/* Status Badges */
.badge-status[b-z67ma86lep] {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.badge-pending[b-z67ma86lep] {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.badge-approved[b-z67ma86lep] {
    background: #d1fae5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.badge-closed[b-z67ma86lep] {
    background: #e2e8f0;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.badge-cancelled[b-z67ma86lep] {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.badge-converted[b-z67ma86lep] {
    background: #e0e7ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
}

/* Grid Cards */
.items-card-grid[b-z67ma86lep] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    padding: 1.25rem;
}

.item-card[b-z67ma86lep] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.item-card:hover[b-z67ma86lep] {
    border-color: #cbd5e1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.item-card-head[b-z67ma86lep] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.card-item-code[b-z67ma86lep] {
    font-weight: 800;
    color: #4f46e5;
    font-size: 0.95rem;
}

.item-card-body[b-z67ma86lep] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.detail-row[b-z67ma86lep] {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #64748b;
}

.detail-row strong[b-z67ma86lep] {
    color: #1e293b;
    font-weight: 600;
}

/* Pagination Controls */
.display-controls[b-z67ma86lep] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
}

.page-btn[b-z67ma86lep] {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled)[b-z67ma86lep] {
    background: #f1f5f9;
    color: #1e293b;
}

.page-btn.active[b-z67ma86lep] {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
}

.page-btn:disabled[b-z67ma86lep] {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Modal Overlay & Card */
.modal-overlay[b-z67ma86lep] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-card[b-z67ma86lep] {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    height: 90vh;
    overflow: hidden;
    animation: modalAppear-b-z67ma86lep 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalAppear-b-z67ma86lep {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header-bar[b-z67ma86lep] {
    padding: 16px 32px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    flex-shrink: 0;
}

.modal-title[b-z67ma86lep] {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.2px;
}

.btn-close-modal[b-z67ma86lep] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-close-modal:hover[b-z67ma86lep] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.modal-inner[b-z67ma86lep] {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.modal-inner > form[b-z67ma86lep],
.modal-inner form[b-z67ma86lep] {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.modal-scroll-area[b-z67ma86lep] {
    flex: 1;
    min-height: 0;
    overflow-y: auto !important;
    overflow-x: hidden;
    padding: 1.25rem 2rem;
}

.form-section-header[b-z67ma86lep] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 1.5px solid #f1f5f9;
}

.form-section-title[b-z67ma86lep] {
    font-size: 0.82rem;
    font-weight: 800;
    color: #4f46e5;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-grid[b-z67ma86lep] {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px;
    margin-bottom: 1rem;
    text-align: left;
}

.field-group[b-z67ma86lep] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.col-1[b-z67ma86lep] { grid-column: span 1; }
.col-2[b-z67ma86lep] { grid-column: span 2; }
.col-3[b-z67ma86lep] { grid-column: span 3; }
.col-4[b-z67ma86lep] { grid-column: span 4; }
.col-5[b-z67ma86lep] { grid-column: span 5; }
.col-6[b-z67ma86lep] { grid-column: span 6; }
.col-7[b-z67ma86lep] { grid-column: span 7; }
.col-8[b-z67ma86lep] { grid-column: span 8; }
.col-9[b-z67ma86lep] { grid-column: span 9; }
.col-10[b-z67ma86lep] { grid-column: span 10; }
.col-11[b-z67ma86lep] { grid-column: span 11; }
.col-12[b-z67ma86lep] { grid-column: span 12; }

.field-label[b-z67ma86lep] {
    font-size: 0.7rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 2px;
}

.field-label.required[b-z67ma86lep]::after {
    content: " *";
    color: #ef4444;
}

.premium-input[b-z67ma86lep] {
    height: 36px !important;
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    padding: 0 10px !important;
    font-size: 0.8rem !important;
    background: #ffffff !important;
    color: #1e293b !important;
    font-weight: 500 !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.premium-input:focus[b-z67ma86lep] {
    outline: none !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

/* PO Items Table */
.po-items-table-wrapper[b-z67ma86lep] {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow-x: auto;
    background: #ffffff;
    margin-bottom: 0.5rem;
}

.po-items-table[b-z67ma86lep] {
    width: 100%;
    margin-bottom: 0;
    font-size: 0.82rem;
}

.po-items-table thead th[b-z67ma86lep] {
    background: #f8fafc;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.5px;
    padding: 8px 10px;
    border-bottom: 1.5px solid #e2e8f0;
    text-align: center;
}

.po-items-table tbody td[b-z67ma86lep] {
    padding: 4px 6px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.po-table-input[b-z67ma86lep] {
    height: 32px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    padding: 0 8px;
    font-size: 0.78rem;
    color: #1e293b;
    width: 100%;
    background: #ffffff;
}

.po-table-input:focus[b-z67ma86lep] {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
}

.btn-dotted-add[b-z67ma86lep] {
    background: #f0fdf4;
    color: #16a34a;
    border: 1.5px dashed #86efac;
    border-radius: 12px;
    padding: 5px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-dotted-add:hover[b-z67ma86lep] {
    background: #dcfce7;
    border-color: #4ade80;
    color: #15803d;
}

/* Terms Table */
.terms-table-wrapper[b-z67ma86lep] {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow-x: auto;
    background: #ffffff;
    margin-bottom: 0.5rem;
}

.quick-term-pill[b-z67ma86lep] {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    border-radius: 14px;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-term-pill:hover[b-z67ma86lep] {
    background: #e0e7ff;
    color: #4338ca;
    border-color: #c7d2fe;
}

/* Modal Footer */
.modal-footer-actions[b-z67ma86lep] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 28px;
    border-top: 1px solid #f1f5f9;
    background: #ffffff;
}

.btn-cancel-modal[b-z67ma86lep] {
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 0.55rem 1.4rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel-modal:hover[b-z67ma86lep] {
    background: #e2e8f0;
    color: #1e293b;
}

.btn-save-premium[b-z67ma86lep] {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff;
    border: none;
    padding: 0.55rem 1.8rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    transition: all 0.2s;
}

.btn-save-premium:hover:not(:disabled)[b-z67ma86lep] {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
    transform: translateY(-1px);
}

.btn-save-premium:disabled[b-z67ma86lep] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Print Voucher Styling */
.print-voucher-card[b-z67ma86lep] {
    background: #ffffff;
    color: #0f172a;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.voucher-header[b-z67ma86lep] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #4f46e5;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.voucher-title-badge[b-z67ma86lep] {
    font-size: 1.4rem;
    font-weight: 800;
    color: #4f46e5;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.voucher-meta-box[b-z67ma86lep] {
    text-align: right;
    font-size: 0.85rem;
}

.voucher-parties[b-z67ma86lep] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.voucher-table[b-z67ma86lep] {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 0.82rem;
}

.voucher-table th[b-z67ma86lep] {
    background: #4f46e5;
    color: #ffffff;
    padding: 8px 10px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
    border: 1px solid #4f46e5;
    text-align: center;
}

.voucher-table td[b-z67ma86lep] {
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.voucher-totals-wrapper[b-z67ma86lep] {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.voucher-totals-box[b-z67ma86lep] {
    width: 320px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.voucher-totals-row[b-z67ma86lep] {
    display: flex;
    justify-content: space-between;
    padding: 6px 12px;
    font-size: 0.82rem;
    border-bottom: 1px solid #f1f5f9;
}

.voucher-totals-row.grand-total[b-z67ma86lep] {
    background: #4f46e5;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
}

.voucher-terms-box[b-z67ma86lep] {
    margin-top: 16px;
    padding: 12px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    font-size: 0.8rem;
}

.voucher-signatures[b-z67ma86lep] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
}

.signature-line[b-z67ma86lep] {
    border-top: 1.5px solid #0f172a;
    padding-top: 6px;
    font-weight: 700;
    font-size: 0.82rem;
}

@media print {
    body *[b-z67ma86lep] {
        visibility: hidden;
    }
    .print-voucher-card[b-z67ma86lep], .print-voucher-card *[b-z67ma86lep] {
        visibility: visible;
    }
    .print-voucher-card[b-z67ma86lep] {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 10px;
    }
    .no-print[b-z67ma86lep] {
        display: none !important;
    }
}
/* /Components/Pages/PurchaseReturn.razor.rz.scp.css */
/* Scoped styles for PurchaseReturn component */

.items-page[b-c6hcypn67e] {
    min-height: 100vh;
    background: transparent !important;
}

.items-shell[b-c6hcypn67e] {
    max-width: 1320px;
    margin: 0 auto;
}

.items-content[b-c6hcypn67e] {
    width: min(1240px, 100%);
    margin: 0 auto;
    text-align: center;
}

.premium-header-card[b-c6hcypn67e] {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-radius: 16px !important;
    padding: 1.25rem 2rem !important;
    color: #1e1b4b !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem !important;
}

.header-card-left[b-c6hcypn67e] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-card-icon[b-c6hcypn67e] {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

.header-card-icon svg[b-c6hcypn67e] {
    stroke: #2563eb !important;
}

.header-card-text[b-c6hcypn67e] {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.header-card-heading[b-c6hcypn67e] {
    color: #0f172a !important;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
}

.header-card-subheading[b-c6hcypn67e] {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b !important;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.status-dot[b-c6hcypn67e] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    margin-right: 6px;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
}

.header-card-right[b-c6hcypn67e] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.items-search-wrap[b-c6hcypn67e] {
    position: relative;
    display: flex;
    align-items: center;
}

.items-search[b-c6hcypn67e] {
    width: 280px !important;
    height: 38px !important;
    border-radius: 20px !important;
    border: 1px solid #cbd5e1 !important;
    padding-left: 2.4rem !important;
    font-size: 0.8rem !important;
    background: #ffffff !important;
    color: #1e293b !important;
    box-shadow: none !important;
    transition: all 0.25s ease !important;
}

.items-search:focus[b-c6hcypn67e] {
    outline: none !important;
    width: 320px !important;
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

.items-search-icon[b-c6hcypn67e] {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
}

.view-toggle[b-c6hcypn67e] {
    display: inline-flex;
    border: 1px solid #cbd5e1 !important;
    border-radius: 20px !important;
    overflow: hidden;
    background: #f8fafc !important;
    height: 38px;
    padding: 2px;
    align-items: center;
}

.view-toggle button[b-c6hcypn67e] {
    border: 0 !important;
    background: transparent !important;
    color: #64748b !important;
    width: 36px;
    height: 32px;
    border-radius: 16px !important;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle button.active[b-c6hcypn67e] {
    background: #ffffff !important;
    color: #4f46e5 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.add-item-btn[b-c6hcypn67e] {
    height: 38px !important;
    border-radius: 20px !important;
    background: #4f46e5 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0 1.5rem !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
    transition: all 0.2s ease-in-out !important;
}

.add-item-btn:hover[b-c6hcypn67e] {
    background: #3f39c5 !important;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35) !important;
    transform: translateY(-1.5px);
}

.items-main-card[b-c6hcypn67e] {
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    overflow: hidden;
    margin-top: 1.5rem !important;
    background: #ffffff !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
}

.items-main-card .table-responsive[b-c6hcypn67e] {
    max-height: 550px !important;
    overflow-y: auto !important;
    overflow-x: auto !important;
}

.items-table[b-c6hcypn67e] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.items-table tr[b-c6hcypn67e] {
    height: 48px !important;
}

table.table.items-table thead tr th[b-c6hcypn67e],
.items-table th[b-c6hcypn67e] {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    background: #ffffff !important;
    color: #8a99ad !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.74rem !important;
    letter-spacing: 0.8px !important;
    padding: 10px 16px !important;
    height: 44px !important;
    border-bottom: 2px solid #eef2f6 !important;
    text-align: center !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.items-table td[b-c6hcypn67e] {
    border-top: none !important;
    border-bottom: 1px solid #eef2f6 !important;
    padding: 10px 16px !important;
    height: 48px !important;
    font-size: 0.8rem !important;
    background: #ffffff !important;
    color: #64748b !important;
    vertical-align: middle !important;
    text-align: center !important;
}

.items-table td:last-child[b-c6hcypn67e] {
    white-space: nowrap !important;
    text-align: center !important;
}

.items-table tr td:first-child[b-c6hcypn67e] {
    color: #3b82f6 !important;
    font-weight: 700 !important;
}

.action-btn[b-c6hcypn67e] {
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    margin: 0 2px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #94a3b8 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.action-btn:hover[b-c6hcypn67e] {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}

.action-btn i[b-c6hcypn67e] {
    font-size: 0.85rem !important;
}

.items-card-grid[b-c6hcypn67e] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
}

.item-card[b-c6hcypn67e] {
    background: #ffffff !important;
    border: 1px solid #eef2f6 !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.item-card:hover[b-c6hcypn67e] {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(37, 99, 235, 0.25) !important;
}

.item-card-head[b-c6hcypn67e] {
    background: #ffffff !important;
    color: #1e293b !important;
    padding: 0.6rem 1rem !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid rgba(99, 102, 241, 0.1) !important;
}

.card-item-code[b-c6hcypn67e] {
    color: #4b5563 !important;
    font-weight: 700 !important;
    margin-right: 6px;
}

.card-item-name[b-c6hcypn67e] {
    color: #374151 !important;
    font-weight: 700 !important;
}

.item-card-body[b-c6hcypn67e] {
    padding: 0.75rem 1rem !important;
    color: #64748b !important;
    font-size: 0.8rem !important;
}

.detail-row[b-c6hcypn67e] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0 !important;
    border-bottom: 1px solid #eef2f6 !important;
}

.detail-row:last-child[b-c6hcypn67e] {
    border-bottom: none !important;
}

.detail-row span[b-c6hcypn67e] {
    color: #8a99ad !important;
    font-weight: 700 !important;
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.detail-row strong[b-c6hcypn67e] {
    color: #000000 !important;
    font-weight: 600 !important;
}

.btn-cancel-modal[b-c6hcypn67e] {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: none !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    min-width: 100px !important;
    transition: all 0.2s !important;
}

.btn-cancel-modal:hover[b-c6hcypn67e] {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.purchase-bill-wrapper[b-c6hcypn67e] {
    display: flex;
    gap: 2.25rem;
    flex-wrap: wrap;
}

.purchase-bill-fields[b-c6hcypn67e] {
    flex: 1.5;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.purchase-bill-fields .premium-input[b-c6hcypn67e] {
    padding: 0 10px !important;
    font-size: 0.8rem !important;
    border-radius: 6px !important;
    height: 32px !important;
    line-height: 32px !important;
    background: #f9fafc !important;
    border: 1px solid #e5e7eb !important;
    color: #1f2937 !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    display: flex !important;
    align-items: center !important;
}

.purchase-bill-fields input[type="date"].premium-input[b-c6hcypn67e],
.purchase-bill-fields input.premium-input[b-c6hcypn67e] {
    padding: 0 10px !important;
    height: 32px !important;
    line-height: normal !important;
    background: #f9fafc !important;
    border: 1px solid #e5e7eb !important;
}

.purchase-bill-fields .field-group[b-c6hcypn67e] {
    gap: 4px;
}

.purchase-bill-fields .field-label[b-c6hcypn67e] {
    font-size: 0.68rem !important;
    margin-bottom: 4px !important;
    font-weight: 700 !important;
    color: #374151 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.purchase-bill-fields .form-grid[b-c6hcypn67e] {
    gap: 12px;
}

.purchase-bill-summary[b-c6hcypn67e] {
    flex: 0.85;
    min-width: 300px;
    max-width: 320px;
    display: flex;
    align-items: stretch;
}

.purchase-item-entry-card[b-c6hcypn67e] {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0.7rem;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow-x: hidden;
    box-sizing: border-box;
}

.purchase-item-entry-header[b-c6hcypn67e] {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(52px, 0.55fr) minmax(60px, 0.65fr) minmax(52px, 0.55fr) minmax(52px, 0.55fr) minmax(80px, 0.9fr) minmax(110px, 1fr);
    gap: 10px;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.purchase-item-entry-label[b-c6hcypn67e] {
    font-size: 0.6rem;
    font-weight: 700;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.purchase-item-entry-label span[b-c6hcypn67e] {
    color: #ef4444;
}

.purchase-item-entry-fields[b-c6hcypn67e] {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(52px, 0.55fr) minmax(60px, 0.65fr) minmax(52px, 0.55fr) minmax(52px, 0.55fr) minmax(80px, 0.9fr) minmax(110px, 1fr);
    gap: 10px;
    align-items: center;
    width: 100%;
}

.purchase-item-entry-fields>div[b-c6hcypn67e],
.purchase-item-entry-header>div[b-c6hcypn67e] {
    min-width: 0;
}

.purchase-item-input[b-c6hcypn67e] {
    height: 28px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: white;
    font-size: 0.65rem;
    padding: 0 6px;
    outline: none;
    transition: all 0.2s;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.purchase-item-input:focus[b-c6hcypn67e] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    background: #f8fbff;
}

.purchase-item-select[b-c6hcypn67e] {
    height: 28px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: white;
    font-size: 0.65rem;
    padding: 0 6px;
    outline: none;
    transition: all 0.2s;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.purchase-item-select:focus[b-c6hcypn67e] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    background: #f8fbff;
}

.purchase-item-add-btn[b-c6hcypn67e] {
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    height: 28px;
    font-weight: 700;
    font-size: 0.65rem;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.purchase-item-add-btn:hover[b-c6hcypn67e] {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.purchase-item-add-btn:active[b-c6hcypn67e] {
    transform: translateY(0);
}

.purchase-details-wrapper[b-c6hcypn67e] {
    width: 100%;
    margin-bottom: 2rem;
}

.purchase-details-link[b-c6hcypn67e] {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f678f;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.purchase-details-link:hover[b-c6hcypn67e] {
    color: #0ea5e9;
    gap: 8px;
}

.purchase-items-table-wrapper[b-c6hcypn67e] {
    border: none !important;
    border-radius: 0;
    overflow: visible;
    background: white;
    margin-bottom: 0.5rem !important;
    box-shadow: none !important;
}

.purchase-items-table-wrapper table[b-c6hcypn67e] {
    table-layout: fixed;
    width: 100%;
}

.purchase-items-table-wrapper .purchase-item-input[b-c6hcypn67e],
.purchase-items-table-wrapper .purchase-item-select[b-c6hcypn67e] {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    height: 26px;
    font-size: 0.65rem;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: white;
    outline: none;
    transition: all 0.2s;
}

.purchase-items-table-wrapper .purchase-item-input:focus[b-c6hcypn67e],
.purchase-items-table-wrapper .purchase-item-select:focus[b-c6hcypn67e] {
    border-color: #0273b2;
    box-shadow: 0 0 0 2px rgba(2, 115, 178, 0.1);
    background: #f4f8fa;
}

.purchase-items-table-wrapper .purchase-item-select[b-c6hcypn67e] {
    min-width: 130px;
}

.purchase-items-table-header[b-c6hcypn67e] {
    background: #0273b2 !important;
    border-bottom: none;
}

.purchase-items-table-header th[b-c6hcypn67e] {
    font-weight: 700;
    font-size: 0.72rem;
    color: #ffffff !important;
    padding: 12px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.purchase-add-row-wrapper[b-c6hcypn67e] {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.purchase-add-row-btn[b-c6hcypn67e] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 2px dashed #0273b2 !important;
    border-radius: 10px !important;
    background: #f4f8fa !important;
    color: #0273b2 !important;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.45rem 1.25rem;
    min-width: 200px;
    cursor: pointer;
    transition: all 0.22s ease-in-out;
    box-shadow: 0 2px 4px rgba(2, 115, 178, 0.05);
}

.purchase-add-row-btn:hover[b-c6hcypn67e] {
    background: #e6f2fa !important;
    border-color: #015f94 !important;
    color: #015f94 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(2, 115, 178, 0.12);
}

.purchase-add-row-btn i[b-c6hcypn67e] {
    font-size: 0.95rem;
    color: #0273b2 !important;
    transition: color 0.22s ease-in-out;
}

.purchase-add-row-btn:hover i[b-c6hcypn67e] {
    color: #015f94 !important;
}

.purchase-item-readonly[b-c6hcypn67e] {
    display: block;
    width: 100%;
    height: 26px;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 6px;
    line-height: 24px;
    font-size: 0.65rem;
    color: #475569;
    box-sizing: border-box;
    pointer-events: none;
    user-select: none;
    text-align: right;
}

.purchase-items-table-wrapper .purchase-item-input:disabled[b-c6hcypn67e],
.purchase-items-table-wrapper .purchase-item-select:disabled[b-c6hcypn67e] {
    pointer-events: none;
    cursor: default;
    background-color: white !important;
    color: #000000 !important;
    border-color: #d1d5db !important;
}

.btn-add-item-blue[b-c6hcypn67e] {
    background: #0273b2;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(2, 115, 178, 0.3);
    transition: all 0.2s;
    white-space: nowrap;
    font-size: 0.82rem;
    height: 32px;
}

.btn-add-item-blue:hover[b-c6hcypn67e] {
    background: #015c8f;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(2, 115, 178, 0.4);
}

.btn-add-item-blue:active[b-c6hcypn67e] {
    transform: translateY(0);
}

.bill-card-premium[b-c6hcypn67e] {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 5px solid #3b82f6;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.04);
    transition: all 0.3s ease;
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.25rem;
    padding: 0.4rem 0.65rem;
}

.bill-card-premium:hover[b-c6hcypn67e] {
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.08);
    border-color: #93c5fd;
    border-left-color: #2563eb;
}

.bill-card-header-premium[b-c6hcypn67e] {
    margin-bottom: 0.15rem;
    padding-bottom: 0.35rem;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #4f46e5;
    letter-spacing: 0.8px;
    border-bottom: 1px dashed #bfdbfe;
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-premium-gross[b-c6hcypn67e] {
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 4px solid #1e3a8a !important;
    color: #1e3a8a !important;
    font-weight: 700 !important;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-premium-gross:hover[b-c6hcypn67e] {
    transform: translateY(-1.5px);
    background-color: #f1f5f9 !important;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.08);
}

.input-premium-gross:focus[b-c6hcypn67e] {
    border-color: #2563eb !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18) !important;
    outline: none;
}

.input-premium-discount[b-c6hcypn67e] {
    background-color: #f0fdf4 !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 4px solid #059669 !important;
    color: #065f46 !important;
    font-weight: 700 !important;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-premium-discount:hover[b-c6hcypn67e] {
    transform: translateY(-1.5px);
    background-color: #ecfdf5 !important;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.08);
}

.input-premium-discount:focus[b-c6hcypn67e] {
    border-color: #10b981 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18) !important;
    outline: none;
}

.input-premium-tax[b-c6hcypn67e] {
    background-color: #fffbeb !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 4px solid #d97706 !important;
    color: #92400e !important;
    font-weight: 700 !important;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-premium-tax:hover[b-c6hcypn67e] {
    transform: translateY(-1.5px);
    background-color: #fef3c7 !important;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.08);
}

.input-premium-tax:focus[b-c6hcypn67e] {
    border-color: #f59e0b !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18) !important;
    outline: none;
}

.net-payable-wrapper-premium[b-c6hcypn67e] {
    margin-top: 0.2rem;
    padding-top: 0.5rem;
    border-top: 2px dashed rgba(99, 102, 241, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.net-payable-label-premium[b-c6hcypn67e] {
    font-size: 0.74rem;
    font-weight: 800;
    color: #4f46e5;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.net-payable-value-premium[b-c6hcypn67e] {
    font-size: 1.25rem;
    font-weight: 800;
    color: #4f46e5;
    text-shadow: 0 1px 2px rgba(79, 70, 229, 0.1);
}

@keyframes premium-pulse-blink-b-c6hcypn67e {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.65;
        transform: scale(0.97);
    }
}

.blink-payable-value[b-c6hcypn67e] {
    animation: premium-pulse-blink-b-c6hcypn67e 1.8s infinite ease-in-out;
    display: inline-block;
}

.btn-dotted-add[b-c6hcypn67e] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px dashed #0f678f !important;
    background: #fff !important;
    color: #0f678f !important;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 20px;
    padding: 8px 32px;
    box-shadow: none;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-dotted-add:hover[b-c6hcypn67e] {
    background: rgba(15, 103, 143, 0.04) !important;
    border-color: #0d587a !important;
    color: #0d587a !important;
    transform: translateY(-1.5px);
}

.btn-dotted-add:active[b-c6hcypn67e] {
    transform: translateY(0);
}

.purchase-bill-fields select.premium-input[b-c6hcypn67e] {
    -webkit-appearance: auto !important;
    appearance: auto !important;
    background-image: none !important;
    padding-right: 24px !important;
}

/* Vendor Master Specific Styles */
.items-main-card .table-responsive[b-c6hcypn67e] {
    padding-right: 0 !important;
    overflow-x: auto !important;
}

.items-table[b-c6hcypn67e] {
    width: 100% !important;
}

.items-table th[b-c6hcypn67e] {
    background: #f8fafc !important;
    color: #1e293b !important;
    white-space: nowrap !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    padding: 12px 16px !important;
}

.items-table td[b-c6hcypn67e] {
    white-space: normal !important;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.8rem !important;
    padding: 3px 6px !important;
}

/* Premium Modal Styles for Vendor */
.modal-card[b-c6hcypn67e] {
    border-radius: 24px !important;
    border: none !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
    background: #fff;
}

.modal-header-bar[b-c6hcypn67e] {
    background: #fff !important;
    color: #333 !important;
    padding: 24px 32px !important;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-left[b-c6hcypn67e] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-badge[b-c6hcypn67e] {
    background: var(--sidebar-bg);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.modal-title[b-c6hcypn67e] {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
}

.modal-subtitle[b-c6hcypn67e] {
    font-size: 0.85rem;
    color: #64748b;
}

.btn-close-modal[b-c6hcypn67e] {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}

.btn-close-modal:hover[b-c6hcypn67e] {
    background: #e2e8f0;
    color: #1e293b;
}

.modal-inner[b-c6hcypn67e] {
    padding: 16px 32px !important;
    background: #fff;
}

.form-section-header[b-c6hcypn67e] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    margin-top: 4px;
}

.form-section-icon[b-c6hcypn67e] {
    background: var(--sidebar-bg);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.form-section-title[b-c6hcypn67e] {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #025091;
}

.form-grid[b-c6hcypn67e] {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.col-prefix[b-c6hcypn67e] {
    grid-column: span 3;
}

.col-main[b-c6hcypn67e] {
    grid-column: span 9;
}

.col-2[b-c6hcypn67e] {
    grid-column: span 2;
}

.col-3[b-c6hcypn67e] {
    grid-column: span 3;
}

.col-4[b-c6hcypn67e] {
    grid-column: span 4;
}

.col-5[b-c6hcypn67e] {
    grid-column: span 5;
}

.col-6[b-c6hcypn67e] {
    grid-column: span 6;
}

.col-7[b-c6hcypn67e] {
    grid-column: span 7;
}

.col-8[b-c6hcypn67e] {
    grid-column: span 8;
}

.col-9[b-c6hcypn67e] {
    grid-column: span 9;
}

.col-10[b-c6hcypn67e] {
    grid-column: span 10;
}

.col-11[b-c6hcypn67e] {
    grid-column: span 11;
}

.col-12[b-c6hcypn67e] {
    grid-column: span 12;
}

.field-group[b-c6hcypn67e] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-label[b-c6hcypn67e] {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 2px;
}

.field-label.required[b-c6hcypn67e]::after {
    content: " *";
    color: #ef4444;
}

.premium-input[b-c6hcypn67e] {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 0.88rem !important;
    color: #4b5563 !important;
    transition: all 0.2s !important;
    height: auto !important;
}

.premium-input[b-c6hcypn67e]::placeholder {
    color: #cbd5e1 !important;
    opacity: 1 !important;
}

.premium-input:focus[b-c6hcypn67e] {
    background: #fff !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1) !important;
    outline: none !important;
}

.modal-footer-actions[b-c6hcypn67e] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.btn-delete-text[b-c6hcypn67e] {
    color: #ef4444;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-delete-text:hover[b-c6hcypn67e] {
    background: #fef2f2;
}

.btn-save-premium[b-c6hcypn67e] {
    background: #1c9f5f;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(28, 159, 95, 0.3);
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-save-premium:hover[b-c6hcypn67e] {
    background: #168a52;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(28, 159, 95, 0.4);
}

.btn-save-premium:active[b-c6hcypn67e] {
    transform: translateY(0);
}

.btn-save-premium:disabled[b-c6hcypn67e] {
    opacity: 0.6;
    cursor: not-allowed;
}


/* Financial Summary Card Styles */
.financial-summary-card[b-c6hcypn67e] {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    padding: 1.5rem;
    font-family: 'Inter', 'Outfit', sans-serif;
}

.financial-summary-header[b-c6hcypn67e] {
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.financial-summary-row[b-c6hcypn67e] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.financial-summary-label[b-c6hcypn67e] {
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.financial-summary-value[b-c6hcypn67e] {
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
}

.financial-summary-input[b-c6hcypn67e] {
    width: 80px;
    height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: #334155;
    outline: none;
    transition: all 0.2s;
    background: #ffffff;
}

.financial-summary-input:focus[b-c6hcypn67e] {
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.financial-summary-net[b-c6hcypn67e] {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.financial-summary-net-label[b-c6hcypn67e] {
    color: #0f172a;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.financial-summary-net-value[b-c6hcypn67e] {
    color: #4f46e5;
    font-weight: 800;
    font-size: 1.4rem;
}

/* Purchase Entry Master Compact Summary Card */
.compact-summary-card[b-c6hcypn67e] {
    border-radius: 14px;
    padding: 1.25rem 1.4rem;
    border: 1.5px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.compact-summary-card[b-c6hcypn67e]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #6366f1, #06b6d4);
    border-radius: 14px 0 0 14px;
}

.compact-summary-card:hover[b-c6hcypn67e] {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
}

/* Physical Bill Totals - Blue-indigo gradient */
.compact-summary-card.bill-card[b-c6hcypn67e] {
    background: linear-gradient(135deg, #eef2ff 0%, #f0fdff 100%);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02);
}

.compact-summary-card.bill-card[b-c6hcypn67e]::before {
    background: linear-gradient(180deg, #6366f1, #06b6d4);
}

/* Computed Items Total - Teal-green gradient */
.compact-summary-card.items-card[b-c6hcypn67e] {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 100%);
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.08);
}

.compact-summary-card.items-card[b-c6hcypn67e]::before {
    background: linear-gradient(180deg, #10b981, #06b6d4);
}

.compact-summary-card.items-card:hover[b-c6hcypn67e] {
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.18);
}

.compact-summary-header[b-c6hcypn67e] {
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed rgba(37, 99, 235, 0.25);
    padding-left: 8px;
}

.compact-summary-card.items-card .compact-summary-header[b-c6hcypn67e] {
    color: #10b981;
    border-bottom-color: rgba(16, 185, 129, 0.25);
}

.compact-summary-row[b-c6hcypn67e] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding-left: 8px;
}

.compact-summary-label[b-c6hcypn67e] {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.compact-summary-value[b-c6hcypn67e] {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
}

.compact-summary-input[b-c6hcypn67e] {
    width: 110px;
    height: 30px;
    border-radius: 8px;
    border: 1.5px solid rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.8);
    text-align: right;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0 10px;
    color: #1e293b;
}

.compact-summary-input:focus[b-c6hcypn67e] {
    outline: none;
    border-color: #64748b;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: #fff;
}

.compact-summary-net[b-c6hcypn67e] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    padding-left: 8px;
    border-top: 1.5px solid rgba(99, 102, 241, 0.2);
}

.compact-summary-card.items-card .compact-summary-net[b-c6hcypn67e] {
    border-top-color: rgba(16, 185, 129, 0.2);
}

.compact-summary-net-label[b-c6hcypn67e] {
    font-size: 0.8rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compact-summary-net-value[b-c6hcypn67e] {
    font-size: 1.3rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: -0.5px;
}

.compact-summary-card.items-card .compact-summary-net-value[b-c6hcypn67e] {
    color: #10b981;
}

/* Stock Indent Status Badges */
.badge-indent-pending[b-c6hcypn67e] {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #d97706 !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

.badge-indent-approved[b-c6hcypn67e] {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #059669 !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

.badge-indent-rejected[b-c6hcypn67e] {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #dc2626 !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

/* Stock volume indicators */
.badge-stock-high[b-c6hcypn67e] {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #059669 !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

.badge-stock-low[b-c6hcypn67e] {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #d97706 !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

.badge-stock-empty[b-c6hcypn67e] {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #dc2626 !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

/* OVERRIDE FOR HIGH-DENSITY PURCHASE BILL FORM (e.g. ItemMaster Modal) */
.purchase-bill-fields .premium-segmented-control-joined[b-c6hcypn67e] {
    height: 32px !important;
    border-radius: 6px !important;
    max-width: none !important;
}

.purchase-bill-fields .segment-btn-joined[b-c6hcypn67e] {
    font-size: 0.8rem !important;
}

.purchase-bill-fields .segment-btn-joined:first-child[b-c6hcypn67e] {
    border-right: 1px solid #e2e8f0 !important;
}

/* Tabular Grid/Real Table styling for purchase details table */
.purchase-items-table-wrapper table[b-c6hcypn67e] {
    border-collapse: collapse !important;
    border: 1px solid #cbd5e1 !important;
    width: 100%;
}

.purchase-items-table-wrapper th[b-c6hcypn67e],
.purchase-items-table-wrapper td[b-c6hcypn67e] {
    border: 1px solid #cbd5e1 !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

.purchase-items-table-header th[b-c6hcypn67e] {
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    padding: 10px 8px !important;
    font-weight: 700;
    font-size: 0.72rem;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #0273b2 !important;
}

.purchase-items-table-wrapper .purchase-item-input[b-c6hcypn67e],
.purchase-items-table-wrapper .purchase-item-select[b-c6hcypn67e] {
    width: 100% !important;
    height: 34px !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 8px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background: transparent !important;
}

.purchase-items-table-wrapper .purchase-item-input:focus[b-c6hcypn67e],
.purchase-items-table-wrapper .purchase-item-select:focus[b-c6hcypn67e] {
    background: #f4f8fa !important;
    box-shadow: inset 0 0 0 2px rgba(2, 115, 178, 0.2) !important;
}

.purchase-items-table-wrapper .purchase-item-readonly[b-c6hcypn67e] {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    width: 100% !important;
    height: 34px !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 8px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background-color: #f8fafc !important;
    font-weight: 600;
}

.purchase-items-table-wrapper td.purchase-items-table-footer-cell[b-c6hcypn67e] {
    padding: 16px 24px !important;
}

/* Modal Styles */
.modal-overlay[b-c6hcypn67e] {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(8, 25, 40, 0.45) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.25rem !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    animation: modalFadeIn-b-c6hcypn67e 0.25s ease-out forwards;
}

.modal-card[b-c6hcypn67e] {
    width: min(1350px, 96%) !important;
    max-width: 1350px !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 25px 60px rgba(3, 26, 46, 0.35) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    max-height: calc(100vh - 2.5rem) !important;
    animation: modalScaleIn-b-c6hcypn67e 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
    z-index: 10000;
    margin: auto;
}

.modal-header-bar[b-c6hcypn67e] {
    background: #ffffff !important;
    color: #1e293b !important;
    padding: 18px 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.modal-header-left[b-c6hcypn67e] {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-title[b-c6hcypn67e] {
    font-weight: 800 !important;
    font-size: 1.25rem !important;
    letter-spacing: -0.2px !important;
    margin: 0 !important;
    color: #1e293b !important;
}

.modal-inner[b-c6hcypn67e] {
    padding: 20px 28px !important;
    background: #ffffff !important;
    overflow-y: auto !important;
    flex: 1 !important;
    max-height: calc(100vh - 120px) !important;
}

.btn-close-modal[b-c6hcypn67e] {
    background: #f1f5f9 !important;
    border: none !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #64748b !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.btn-close-modal:hover[b-c6hcypn67e] {
    background: #fee2e2 !important;
    color: #ef4444 !important;
}

@keyframes modalFadeIn-b-c6hcypn67e {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalScaleIn-b-c6hcypn67e {
    from { transform: scale(0.95) translateY(12px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

/* Return Items Table Styling */
.return-items-table-wrapper[b-c6hcypn67e] {
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    overflow: visible !important;
    background: #ffffff !important;
    margin-bottom: 8px !important;
}

.return-items-table[b-c6hcypn67e] {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    font-size: 0.82rem !important;
    min-width: 980px !important;
}

.return-items-table thead[b-c6hcypn67e],
.return-items-table thead th[b-c6hcypn67e] {
    background: #0273b2 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 10px 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.return-items-table thead th:last-child[b-c6hcypn67e] {
    border-right: none !important;
}

.return-items-table tbody td[b-c6hcypn67e] {
    border-bottom: 1px solid #e2e8f0 !important;
    border-right: 1px solid #f1f5f9 !important;
    padding: 5px 6px !important;
    vertical-align: middle !important;
    overflow: visible !important;
}

.return-items-table tbody td:last-child[b-c6hcypn67e] {
    border-right: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   DARK MODE OVERRIDES FOR PURCHASE RETURN
   ═══════════════════════════════════════════════════════════════ */
:host-context([data-theme="dark"]) .items-page[b-c6hcypn67e],
[data-theme="dark"] .items-page[b-c6hcypn67e] {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}

:host-context([data-theme="dark"]) .premium-header-card[b-c6hcypn67e],
[data-theme="dark"] .premium-header-card[b-c6hcypn67e] {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

:host-context([data-theme="dark"]) .header-card-icon[b-c6hcypn67e],
[data-theme="dark"] .header-card-icon[b-c6hcypn67e] {
    background: #0f172a !important;
    border-color: #334155 !important;
}

:host-context([data-theme="dark"]) .header-card-heading[b-c6hcypn67e],
[data-theme="dark"] .header-card-heading[b-c6hcypn67e] {
    color: #f8fafc !important;
}

:host-context([data-theme="dark"]) .header-card-subheading[b-c6hcypn67e],
[data-theme="dark"] .header-card-subheading[b-c6hcypn67e] {
    color: #38bdf8 !important;
}

:host-context([data-theme="dark"]) .items-main-card[b-c6hcypn67e],
[data-theme="dark"] .items-main-card[b-c6hcypn67e] {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

:host-context([data-theme="dark"]) .card-body[b-c6hcypn67e],
[data-theme="dark"] .card-body[b-c6hcypn67e] {
    background: #1e293b !important;
    color: #f8fafc !important;
}

:host-context([data-theme="dark"]) .field-label[b-c6hcypn67e],
[data-theme="dark"] .field-label[b-c6hcypn67e] {
    color: #cbd5e1 !important;
}

:host-context([data-theme="dark"]) .premium-input[b-c6hcypn67e],
[data-theme="dark"] .premium-input[b-c6hcypn67e] {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}
/* /Components/Pages/Rate.razor.rz.scp.css */
/* ==========================================================================
   RATE MASTER — MODERN OBSIDIAN THEME (ULTRA-COMPACT CONTROLS & MAX TABLE HEIGHT)
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Main Layout Wrapper ────────────────────── */
.rm-page-root[b-e1qsbpe3zk] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 6px 12px;
    gap: 6px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.rm-top-bar[b-e1qsbpe3zk] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
    padding: 6px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 10px;
}

.rm-title-block[b-e1qsbpe3zk] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rm-title-icon-wrap[b-e1qsbpe3zk] {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rm-title-icon-wrap .material-symbols-outlined[b-e1qsbpe3zk] {
    font-size: 18px;
}

.rm-breadcrumbs[b-e1qsbpe3zk] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    color: #94a3b8;
    font-weight: 500;
}

.rm-breadcrumb-link[b-e1qsbpe3zk] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.rm-breadcrumb-link:hover[b-e1qsbpe3zk] {
    color: #2563eb;
}

.rm-breadcrumb-sep[b-e1qsbpe3zk] {
    font-size: 10px;
}

.rm-page-title[b-e1qsbpe3zk] {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rm-badge-directory[b-e1qsbpe3zk] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9.5px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 6px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rm-live-dot[b-e1qsbpe3zk] {
    width: 5px;
    height: 5px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.rm-top-actions[b-e1qsbpe3zk] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rm-filter-toggle-btn[b-e1qsbpe3zk] {
    height: 28px;
    padding: 0 10px;
    border-radius: 6px;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.rm-filter-toggle-btn:hover[b-e1qsbpe3zk] {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.rm-filter-toggle-btn.active[b-e1qsbpe3zk] {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
}

/* ── 3. KPI / Stat Cards Grid (Ultra Compact) ──────────────── */
.rm-stats-grid[b-e1qsbpe3zk] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    flex-shrink: 0;
}

.rm-stat-card[b-e1qsbpe3zk] {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
    padding: 5px 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.rm-stat-card[b-e1qsbpe3zk]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.rm-card-total[b-e1qsbpe3zk]::before    { background: #3b82f6; }
.rm-card-avg[b-e1qsbpe3zk]::before      { background: #10b981; }
.rm-card-min[b-e1qsbpe3zk]::before      { background: #f59e0b; }
.rm-card-max[b-e1qsbpe3zk]::before      { background: #6366f1; }

.rm-stat-card:hover[b-e1qsbpe3zk] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.rm-stat-top[b-e1qsbpe3zk] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rm-stat-icon-wrap[b-e1qsbpe3zk] {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rm-stat-icon-wrap .material-symbols-outlined[b-e1qsbpe3zk] {
    font-size: 13px;
}

.rm-stat-tag[b-e1qsbpe3zk] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
}

.rm-stat-tag .material-symbols-outlined[b-e1qsbpe3zk] {
    font-size: 11px;
}

.rm-card-total .rm-stat-icon-wrap[b-e1qsbpe3zk]    { background: #eff6ff; color: #3b82f6; }
.rm-card-total .rm-stat-tag[b-e1qsbpe3zk]          { background: #eff6ff; color: #2563eb; }

.rm-card-avg .rm-stat-icon-wrap[b-e1qsbpe3zk]      { background: #ecfdf5; color: #10b981; }
.rm-card-avg .rm-stat-tag[b-e1qsbpe3zk]            { background: #ecfdf5; color: #059669; }

.rm-card-min .rm-stat-icon-wrap[b-e1qsbpe3zk]      { background: #fffbeb; color: #d97706; }
.rm-card-min .rm-stat-tag[b-e1qsbpe3zk]            { background: #fffbeb; color: #b45309; }

.rm-card-max .rm-stat-icon-wrap[b-e1qsbpe3zk]      { background: #eef2ff; color: #6366f1; }
.rm-card-max .rm-stat-tag[b-e1qsbpe3zk]            { background: #eef2ff; color: #4f46e5; }

.rm-stat-mid[b-e1qsbpe3zk] {
    margin-top: 1px;
}

.rm-stat-label[b-e1qsbpe3zk] {
    font-size: 9.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rm-stat-bottom[b-e1qsbpe3zk] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.rm-stat-val[b-e1qsbpe3zk] {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.rm-stat-subtext[b-e1qsbpe3zk] {
    font-size: 9.5px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── 4. Main Configuration & Filter Panel (Dense 2-Row Horizontal) ── */
.rm-controls-card[b-e1qsbpe3zk] {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 6px 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-sizing: border-box;
    transition: opacity 0.15s ease-in-out;
}

.rm-controls-row[b-e1qsbpe3zk] {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    width: 100%;
}

.rm-inline-field[b-e1qsbpe3zk] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rm-field-label[b-e1qsbpe3zk] {
    font-size: 9.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.rm-type-options[b-e1qsbpe3zk] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rm-pill-radio[b-e1qsbpe3zk] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    height: 28px;
    box-sizing: border-box;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    white-space: nowrap;
}

.rm-pill-radio input[b-e1qsbpe3zk] {
    display: none;
}

.rm-pill-radio.active[b-e1qsbpe3zk] {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.rm-input-with-btn[b-e1qsbpe3zk] {
    display: flex;
    align-items: center;
    gap: 3px;
    width: 100%;
}

.rm-profile-dropdown-wrapper[b-e1qsbpe3zk] {
    position: relative;
    flex: 1;
}

.rm-input[b-e1qsbpe3zk],
.rm-select[b-e1qsbpe3zk] {
    width: 100%;
    height: 28px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    padding: 0 6px;
    font-size: 11px;
    color: #1e293b;
    background: #ffffff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rm-input:focus[b-e1qsbpe3zk],
.rm-select:focus[b-e1qsbpe3zk] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.rm-dropdown-menu[b-e1qsbpe3zk] {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff !important;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    max-height: 220px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 2px;
    box-sizing: border-box;
}

.rm-dropdown-item[b-e1qsbpe3zk] {
    width: 100%;
    text-align: left;
    padding: 5px 8px;
    border: none;
    background: transparent;
    font-size: 11px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
}

.rm-dropdown-item:hover[b-e1qsbpe3zk] {
    background: #eff6ff;
    color: #2563eb;
}

.rm-btn-square[b-e1qsbpe3zk] {
    width: 28px;
    height: 28px;
    border-radius: 5px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.15s;
    flex-shrink: 0;
}

.rm-btn-square:hover[b-e1qsbpe3zk] {
    background: #e2e8f0;
    color: #0f172a;
}

.rm-dept-options[b-e1qsbpe3zk] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rm-dept-pill[b-e1qsbpe3zk] {
    display: inline-flex;
    align-items: center;
    padding: 0 6px;
    height: 28px;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    text-transform: uppercase;
    white-space: nowrap;
}

.rm-dept-pill.active[b-e1qsbpe3zk] {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.rm-copy-row[b-e1qsbpe3zk] {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.rm-set-group[b-e1qsbpe3zk] {
    display: flex;
    align-items: center;
    gap: 3px;
    width: 100%;
}

.rm-btn-action-sm[b-e1qsbpe3zk] {
    height: 28px;
    padding: 0 8px;
    border-radius: 5px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.rm-btn-action-sm:hover[b-e1qsbpe3zk] {
    background: #1e293b;
}

.rm-btn-primary-action[b-e1qsbpe3zk] {
    width: 100%;
    height: 28px;
    border-radius: 5px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.rm-btn-primary-action:hover[b-e1qsbpe3zk] {
    background: #1e293b;
    transform: translateY(-1px);
}

/* ── 5. Data Table Card Container (Maximized Height in Viewport) ── */
.rm-table-card[b-e1qsbpe3zk] {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.rm-table-container[b-e1qsbpe3zk] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

.rm-table[b-e1qsbpe3zk] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 11.5px;
    text-align: left;
}

/* Light Slate Sticky Header */
.rm-thead[b-e1qsbpe3zk] {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8fafc !important;
}

.rm-th[b-e1qsbpe3zk] {
    background-color: #f8fafc !important;
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 9.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 6px 8px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: none !important;
    white-space: nowrap;
    user-select: none;
}

.rm-tbody tr[b-e1qsbpe3zk] {
    background-color: #ffffff;
    transition: background-color 0.12s ease;
}

.rm-tbody tr:hover[b-e1qsbpe3zk] {
    background-color: #f8fafc;
}

.rm-td[b-e1qsbpe3zk] {
    padding: 4px 8px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
    font-size: 11px;
}

.rm-input-cell[b-e1qsbpe3zk] {
    height: 24px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 0 5px;
    font-size: 11px;
    outline: none;
    background: #ffffff;
    box-sizing: border-box;
}

.rm-input-cell:focus[b-e1qsbpe3zk] {
    border-color: #2563eb;
}

.rm-input-highlight[b-e1qsbpe3zk] {
    background: #f0fdf4 !important;
    border-color: #86efac !important;
    color: #15803d !important;
    font-weight: 700 !important;
}

/* ── 6. Bottom Save Bar ─────────────────────────────────────── */
.rm-save-bar[b-e1qsbpe3zk] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
    border-radius: 0 0 8px 8px;
}

.rm-profile-status[b-e1qsbpe3zk] {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 600;
}

.rm-profile-status strong[b-e1qsbpe3zk] {
    color: #0f172a;
    font-weight: 700;
}

.rm-btn-save-rates[b-e1qsbpe3zk] {
    height: 30px;
    padding: 0 16px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none;
    border-radius: 5px;
    font-size: 11.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.rm-btn-save-rates:hover:not(:disabled)[b-e1qsbpe3zk] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

.rm-btn-save-rates:disabled[b-e1qsbpe3zk] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── 7. Feetype Modal ───────────────────────────────────────── */
.rm-modal-overlay[b-e1qsbpe3zk] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 16px;
}

.rm-modal-card[b-e1qsbpe3zk] {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 520px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.rm-modal-header[b-e1qsbpe3zk] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.rm-modal-title[b-e1qsbpe3zk] {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.rm-modal-close-btn[b-e1qsbpe3zk] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.rm-modal-close-btn:hover[b-e1qsbpe3zk] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.rm-modal-body[b-e1qsbpe3zk] {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rm-modal-footer[b-e1qsbpe3zk] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}
/* /Components/Pages/ReceiveStock.razor.rz.scp.css */
/* Scoped styles for ReceiveStock component matching IssueStock design */

.items-page[b-r9exs91qcy] {
    min-height: 100vh;
    background: transparent !important;
}

.items-shell[b-r9exs91qcy] {
    max-width: 1360px;
    margin: 0 auto;
}

.items-content[b-r9exs91qcy] {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.premium-header-card[b-r9exs91qcy] {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-radius: 16px !important;
    padding: 1.1rem 1.75rem !important;
    color: #1e1b4b !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
    margin-top: 0.5rem !important;
}

.header-card-left[b-r9exs91qcy] {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-card-icon[b-r9exs91qcy] {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff !important;
    border: 1px solid rgba(99, 102, 241, 0.2) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.1) !important;
}

.header-card-icon svg[b-r9exs91qcy] {
    stroke: #2563eb !important;
}

.header-card-text[b-r9exs91qcy] {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.header-card-heading[b-r9exs91qcy] {
    color: #1e1b4b !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.2px;
}

.header-card-subheading[b-r9exs91qcy] {
    font-size: 0.64rem !important;
    font-weight: 700 !important;
    color: #64748b !important;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.status-dot[b-r9exs91qcy] {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #10b981;
    margin-right: 6px;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
}

.header-card-right[b-r9exs91qcy] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Header Status Pills */
.btn-header-pill[b-r9exs91qcy] {
    background: #ffffff !important;
    color: #4f46e5 !important;
    border: 1.5px solid #c7d2fe !important;
    border-radius: 20px !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    padding: 5px 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.btn-header-pill:hover[b-r9exs91qcy] {
    background: #f5f3ff !important;
    border-color: #818cf8 !important;
    color: #3730a3 !important;
    transform: translateY(-1px) !important;
}

.btn-header-pill.active[b-r9exs91qcy] {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 3px 10px rgba(79, 70, 229, 0.3) !important;
}

.badge-pill-count[b-r9exs91qcy] {
    background: #e0e7ff !important;
    color: #4338ca !important;
    border-radius: 12px !important;
    font-size: 0.68rem !important;
    padding: 1px 7px !important;
    font-weight: 800 !important;
}

.btn-header-pill.active .badge-pill-count[b-r9exs91qcy] {
    background: #ffffff !important;
    color: #4f46e5 !important;
}

/* Form & Input Styles */
.compact-field-group[b-r9exs91qcy] {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.compact-field-label[b-r9exs91qcy] {
    font-size: 0.66rem !important;
    font-weight: 700 !important;
    color: #475569 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    margin: 0 !important;
}

.compact-field-label.required[b-r9exs91qcy]::after {
    content: " *";
    color: #ef4444;
}

.compact-input[b-r9exs91qcy] {
    width: 100% !important;
    box-sizing: border-box !important;
    height: 32px !important;
    font-size: 0.78rem !important;
    padding: 0 10px !important;
    border-radius: 6px !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
    outline: none !important;
    transition: all 0.15s ease !important;
    display: block !important;
}

.compact-input:focus[b-r9exs91qcy] {
    border-color: #4f46e5 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15) !important;
}

select.compact-input[b-r9exs91qcy] {
    -webkit-appearance: auto !important;
    appearance: auto !important;
    padding-right: 18px !important;
}

/* Table Styles */
.compact-grid-table th[b-r9exs91qcy] {
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    padding: 6px 10px !important;
    border: 1px solid #cbd5e1 !important;
    letter-spacing: 0.03em !important;
}

.compact-grid-table td[b-r9exs91qcy] {
    padding: 0 10px !important;
    height: 34px !important;
    vertical-align: middle !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 0.78rem !important;
}

.compact-grid-table tr:hover td[b-r9exs91qcy] {
    background-color: #fbfcfe;
}

/* Summary Strip / Card */
.inward-summary-card[b-r9exs91qcy] {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    border-left: 4px solid #3b82f6 !important;
    border-radius: 8px !important;
    padding: 0 14px !important;
    height: 32px !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.inward-summary-card .summary-metric[b-r9exs91qcy] {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 0.74rem !important;
}

.inward-summary-card .summary-divider[b-r9exs91qcy] {
    width: 1px !important;
    height: 16px !important;
    background: #cbd5e1 !important;
}

/* Icon-Only Action Buttons */
.action-btn-group[b-r9exs91qcy] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
}

.btn-action-icon[b-r9exs91qcy] {
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    border-radius: 7px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.82rem !important;
    cursor: pointer !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border: 1px solid transparent !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.btn-action-receive[b-r9exs91qcy] {
    background: #ecfdf5 !important;
    color: #059669 !important;
    border-color: #a7f3d0 !important;
}

.btn-action-receive:hover[b-r9exs91qcy] {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.28) !important;
}

.btn-action-view[b-r9exs91qcy] {
    background: #eef2ff !important;
    color: #4f46e5 !important;
    border-color: #c7d2fe !important;
}

.btn-action-view:hover[b-r9exs91qcy] {
    background: #4f46e5 !important;
    border-color: #4f46e5 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(79, 70, 229, 0.28) !important;
}

.btn-dispatch-vibrant[b-r9exs91qcy] {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    min-width: 130px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.btn-dispatch-vibrant:hover[b-r9exs91qcy] {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 14px rgba(16, 185, 129, 0.45) !important;
    color: #ffffff !important;
}

.btn-reject-clean[b-r9exs91qcy] {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
    border-radius: 8px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    height: 36px !important;
    padding: 0 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.btn-reject-clean:hover[b-r9exs91qcy] {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25) !important;
}

.modal-overlay-backdrop[b-r9exs91qcy] {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(6px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 100000 !important;
    padding: 1.25rem !important;
}

/* Partial Receiving Item Action Buttons */
.item-action-pill-group[b-r9exs91qcy] {
    display: inline-flex;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 2px;
    gap: 2px;
    border: 1px solid #e2e8f0;
}

.item-action-btn[b-r9exs91qcy] {
    border: none;
    background: transparent;
    padding: 3px 9px;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 6px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.item-action-btn:hover[b-r9exs91qcy] {
    color: #1e293b;
    background: rgba(255, 255, 255, 0.6);
}

.item-action-btn.active-accept[b-r9exs91qcy] {
    background: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.35);
}

.item-action-btn.active-partial[b-r9exs91qcy] {
    background: #f59e0b !important;
    color: #ffffff !important;
    box-shadow: 0 1px 4px rgba(245, 158, 11, 0.35);
}

.item-action-btn.active-reject[b-r9exs91qcy] {
    background: #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 1px 4px rgba(239, 68, 68, 0.35);
}

.qty-input-compact[b-r9exs91qcy] {
    font-size: 0.78rem !important;
    padding: 2px 6px !important;
    height: 28px !important;
    border-radius: 6px !important;
    border: 1px solid #cbd5e1 !important;
    font-weight: 700 !important;
    color: #1e293b !important;
}

.qty-input-compact:focus[b-r9exs91qcy] {
    border-color: #64748b !important;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2) !important;
}
/* /Components/Pages/ReferralMaster.razor.rz.scp.css */
/* ==========================================================================
   REFERRAL MASTER — SINGLE VIEWPORT MODERN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Main Layout Wrapper ────────────────────── */
.rm-page-root[b-3v6tp50fae] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.rm-top-bar[b-3v6tp50fae] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.rm-title-block[b-3v6tp50fae] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rm-title-icon-wrap[b-3v6tp50fae] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rm-title-icon-wrap .material-symbols-outlined[b-3v6tp50fae] {
    font-size: 20px;
}

.rm-breadcrumbs[b-3v6tp50fae] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.rm-breadcrumb-link[b-3v6tp50fae] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.rm-breadcrumb-link:hover[b-3v6tp50fae] {
    color: #2563eb;
}

.rm-breadcrumb-sep[b-3v6tp50fae] {
    font-size: 11px;
}

.rm-page-title[b-3v6tp50fae] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rm-badge-directory[b-3v6tp50fae] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1.5px 6px;
    border-radius: 10px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.rm-live-dot[b-3v6tp50fae] {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.rm-top-actions[b-3v6tp50fae] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rm-search-wrap[b-3v6tp50fae] {
    position: relative;
    width: 260px;
}

.rm-search-wrap .material-symbols-outlined[b-3v6tp50fae] {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.rm-search-input[b-3v6tp50fae] {
    width: 100%;
    height: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 10px 0 32px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rm-search-input:focus[b-3v6tp50fae] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.rm-btn-primary[b-3v6tp50fae] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.rm-btn-primary:hover[b-3v6tp50fae] {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

.rm-btn-icon[b-3v6tp50fae] {
    font-size: 16px;
}

/* ── 3. KPI / Stat Cards Grid ───────────────────────────────── */
.rm-stats-grid[b-3v6tp50fae] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    flex-shrink: 0;
}

@media (max-width: 1100px) {
    .rm-stats-grid[b-3v6tp50fae] {
        grid-template-columns: repeat(2, 1fr);
    }
}

.rm-stat-card[b-3v6tp50fae] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 7px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rm-stat-card:hover[b-3v6tp50fae] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.rm-stat-top[b-3v6tp50fae] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rm-stat-icon-wrap[b-3v6tp50fae] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rm-stat-icon-wrap .material-symbols-outlined[b-3v6tp50fae] {
    font-size: 15px;
}

.rm-stat-tag[b-3v6tp50fae] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.rm-card-total .rm-stat-icon-wrap[b-3v6tp50fae] { background: #eff6ff; color: #3b82f6; }
.rm-card-total .rm-stat-tag[b-3v6tp50fae] { background: #eff6ff; color: #2563eb; }

.rm-card-contact .rm-stat-icon-wrap[b-3v6tp50fae] { background: #f0fdf4; color: #16a34a; }
.rm-card-contact .rm-stat-tag[b-3v6tp50fae] { background: #f0fdf4; color: #15803d; }

.rm-card-area .rm-stat-icon-wrap[b-3v6tp50fae] { background: #fef3c7; color: #d97706; }
.rm-card-area .rm-stat-tag[b-3v6tp50fae] { background: #fef3c7; color: #b45309; }

.rm-card-active .rm-stat-icon-wrap[b-3v6tp50fae] { background: #eef2ff; color: #6366f1; }
.rm-card-active .rm-stat-tag[b-3v6tp50fae] { background: #eef2ff; color: #4f46e5; }

.rm-stat-mid[b-3v6tp50fae] {
    margin-top: 2px;
}

.rm-stat-label[b-3v6tp50fae] {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    margin: 0;
}

.rm-stat-bottom[b-3v6tp50fae] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.rm-stat-val[b-3v6tp50fae] {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1;
}

.rm-stat-subtext[b-3v6tp50fae] {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
}

/* ── 4. Table Card & Single Viewport Table ─────────────────── */
.rm-table-card[b-3v6tp50fae] {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    margin-bottom: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
}

.rm-table-container[b-3v6tp50fae] {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    width: 100%;
}

.rm-table[b-3v6tp50fae] {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    text-align: left;
}

.rm-thead[b-3v6tp50fae] {
    background: #f8fafc !important;
}

.rm-th[b-3v6tp50fae] {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8fafc !important;
    padding: 9px 10px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
    border-top: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-left: none !important;
    border-right: none !important;
    vertical-align: middle !important;
    box-shadow: 0 1px 0 #e2e8f0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rm-tbody tr[b-3v6tp50fae] {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.12s ease;
}

.rm-tbody tr:hover[b-3v6tp50fae] {
    background-color: #f8fafc;
}

.rm-td[b-3v6tp50fae] {
    padding: 7px 10px;
    color: #334155;
    vertical-align: middle;
    border-bottom: 1px solid #f8fafc;
    font-size: 13px;
    overflow: hidden;
}

.rm-text-truncate[b-3v6tp50fae] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
}

/* Doctor Cell */
.rm-doctor-cell[b-3v6tp50fae] {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    width: 100%;
}

.rm-doctor-text-wrap[b-3v6tp50fae] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.rm-avatar[b-3v6tp50fae] {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    transition: transform 0.15s ease;
}

.rm-avatar:hover[b-3v6tp50fae] {
    transform: scale(1.08);
}

.rm-avatar-blue[b-3v6tp50fae] {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.rm-avatar-indigo[b-3v6tp50fae] {
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
}

.rm-avatar-teal[b-3v6tp50fae] {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.rm-avatar-amber[b-3v6tp50fae] {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
}

.rm-doctor-name[b-3v6tp50fae] {
    font-weight: 700;
    color: #0f172a;
    font-size: 13.5px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
}

.rm-doctor-sub[b-3v6tp50fae] {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rm-badge-code[b-3v6tp50fae] {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    white-space: nowrap;
}

/* Action Buttons */
.rm-actions-cell[b-3v6tp50fae] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.rm-btn-edit[b-3v6tp50fae] {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.rm-btn-edit:hover[b-3v6tp50fae] {
    background: #2563eb;
    color: #ffffff;
}

.rm-btn-edit .material-symbols-outlined[b-3v6tp50fae] {
    font-size: 15px;
}

.rm-btn-delete[b-3v6tp50fae] {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.rm-btn-delete:hover[b-3v6tp50fae] {
    background: #e11d48;
    color: #ffffff;
}

.rm-btn-delete .material-symbols-outlined[b-3v6tp50fae] {
    font-size: 15px;
}

/* ── 5. Pagination & Table Footer ─────────────────────────── */
.rm-table-footer[b-3v6tp50fae] {
    padding: 6px 14px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 10px;
    background: #ffffff;
    font-size: 12px;
}

.rm-page-size-wrap[b-3v6tp50fae] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.rm-page-size-select[b-3v6tp50fae] {
    height: 26px;
    padding: 0 6px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    outline: none;
}

.rm-page-info[b-3v6tp50fae] {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.rm-page-info strong[b-3v6tp50fae] {
    color: #0f172a;
    font-weight: 700;
}

.rm-pagination-wrap[b-3v6tp50fae] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rm-page-btn[b-3v6tp50fae] {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.rm-page-btn:hover:not(:disabled)[b-3v6tp50fae] {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.rm-page-btn.active[b-3v6tp50fae] {
    background: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
    font-weight: 700;
}

.rm-page-btn:disabled[b-3v6tp50fae] {
    opacity: 0.4;
    cursor: not-allowed;
}

.rm-page-btn .material-symbols-outlined[b-3v6tp50fae] {
    font-size: 15px;
}

/* ── 6. Add/Edit Modal Dialog ─────────────────────────────── */
.rm-modal-overlay[b-3v6tp50fae] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.rm-modal-card[b-3v6tp50fae] {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
    animation: rmModalIn-b-3v6tp50fae 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes rmModalIn-b-3v6tp50fae {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.rm-modal-header[b-3v6tp50fae] {
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafafa;
}

.rm-modal-header h3[b-3v6tp50fae] {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.rm-modal-close-btn[b-3v6tp50fae] {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.15s;
}

.rm-modal-close-btn:hover[b-3v6tp50fae] {
    background: #f1f5f9;
    color: #0f172a;
}

.rm-modal-body[b-3v6tp50fae] {
    padding: 16px 18px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rm-form-grid[b-3v6tp50fae] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.rm-form-col-1[b-3v6tp50fae] { grid-column: span 1; }
.rm-form-col-2[b-3v6tp50fae] { grid-column: span 2; }
.rm-form-col-3[b-3v6tp50fae] { grid-column: span 3; }

.rm-form-group[b-3v6tp50fae] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rm-form-label[b-3v6tp50fae] {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.rm-form-input[b-3v6tp50fae],
.rm-form-select[b-3v6tp50fae],
.rm-form-textarea[b-3v6tp50fae] {
    height: 32px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.rm-form-textarea[b-3v6tp50fae] {
    height: 56px;
    padding: 6px 10px;
    resize: vertical;
}

.rm-form-input:focus[b-3v6tp50fae],
.rm-form-select:focus[b-3v6tp50fae],
.rm-form-textarea:focus[b-3v6tp50fae] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.rm-modal-footer[b-3v6tp50fae] {
    padding: 10px 18px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    background: #fafafa;
}

.rm-btn-cancel[b-3v6tp50fae] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.rm-btn-cancel:hover[b-3v6tp50fae] {
    background: #f1f5f9;
    color: #0f172a;
}

.rm-btn-save[b-3v6tp50fae] {
    height: 32px;
    padding: 0 18px;
    border-radius: 6px;
    background: #0f172a;
    border: none;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}

.rm-btn-save:hover:not(:disabled)[b-3v6tp50fae] {
    background: #1e293b;
}

.rm-btn-save:disabled[b-3v6tp50fae] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── 7. Empty & Loading States ────────────────────────────── */
.rm-empty-state-cell[b-3v6tp50fae] {
    padding: 60px 20px !important;
    text-align: center !important;
    vertical-align: middle !important;
}

.rm-empty-state[b-3v6tp50fae] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #64748b;
    font-size: 13.5px;
    font-weight: 500;
    width: 100%;
    margin: 0 auto;
}

.rm-spinner-icon[b-3v6tp50fae] {
    font-size: 38px !important;
    color: #4f46e5 !important;
    animation: spin 1s linear infinite !important;
}

.rm-spinner-text[b-3v6tp50fae] {
    color: #475569;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.rm-empty-icon[b-3v6tp50fae] {
    font-size: 42px !important;
    color: #cbd5e1 !important;
}

/* ── 8. Checkbox Section Alignment ────────────────────────── */
.rm-checkbox-section[b-3v6tp50fae] {
    grid-column: span 3;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 4px 0;
}

.rm-checkbox-grid[b-3v6tp50fae] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 16px;
    align-items: center;
}

.rm-checkbox-label[b-3v6tp50fae] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.rm-checkbox-input[b-3v6tp50fae] {
    accent-color: #0f172a;
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

/* ── 9. Doctor Name Row & Credit Badge in Table ───────────────── */
.rm-doctor-name-row[b-3v6tp50fae] {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
}

.rm-credit-badge[b-3v6tp50fae] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    padding: 1.5px 6px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
    white-space: nowrap;
    flex-shrink: 0;
}

.rm-credit-badge-icon[b-3v6tp50fae] {
    font-size: 12px !important;
    line-height: 1;
}

/* ── 10. Credit Account Configuration Box in Modal ────────────── */
.rm-credit-section[b-3v6tp50fae] {
    grid-column: span 3;
    margin: 2px 0 6px 0;
    animation: rmCreditFadeIn-b-3v6tp50fae 0.2s ease-out;
}

@keyframes rmCreditFadeIn-b-3v6tp50fae {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rm-credit-box[b-3v6tp50fae] {
    background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
    border: 1.5px solid #bae6fd;
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(3, 105, 161, 0.05);
}

.rm-credit-box-header[b-3v6tp50fae] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0f2fe;
}

.rm-credit-icon-wrap[b-3v6tp50fae] {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #0284c7;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rm-credit-icon-wrap .material-symbols-outlined[b-3v6tp50fae] {
    font-size: 17px;
}

.rm-credit-header-text[b-3v6tp50fae] {
    display: flex;
    flex-direction: column;
}

.rm-credit-title[b-3v6tp50fae] {
    font-size: 12.5px;
    font-weight: 700;
    color: #0369a1;
    letter-spacing: -0.01em;
}

.rm-credit-subtitle[b-3v6tp50fae] {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.rm-credit-grid[b-3v6tp50fae] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.rm-credit-field[b-3v6tp50fae] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rm-credit-hint[b-3v6tp50fae] {
    font-size: 10.5px;
    font-weight: 500;
    color: #64748b;
    margin-left: 4px;
}

.rm-credit-input-wrap[b-3v6tp50fae] {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.rm-credit-input-prefix[b-3v6tp50fae] {
    position: absolute;
    left: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #0369a1;
    pointer-events: none;
    z-index: 1;
}

.rm-credit-input-prefix-icon[b-3v6tp50fae] {
    position: absolute;
    left: 9px;
    font-size: 16px !important;
    color: #0369a1;
    pointer-events: none;
    z-index: 1;
}

.rm-credit-input[b-3v6tp50fae] {
    padding-left: 28px !important;
    font-weight: 600;
    color: #0f172a;
    background-color: #ffffff !important;
    border: 1px solid #93c5fd !important;
    transition: all 0.2s ease;
}

.rm-credit-input:focus[b-3v6tp50fae] {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

.rm-credit-days-input[b-3v6tp50fae] {
    padding-left: 32px !important;
}

/* /Components/Pages/ReimbursementCompanyMaster.razor.rz.scp.css */
/* ==========================================================================
   REIMBURSEMENT COMPANY MASTER — MODERN OBSIDIAN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Main Layout Wrapper ────────────────────── */
.rc-page-root[b-19yzfwhz18] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.rc-top-bar[b-19yzfwhz18] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.rc-title-block[b-19yzfwhz18] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rc-title-icon-wrap[b-19yzfwhz18] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rc-title-icon-wrap .material-symbols-outlined[b-19yzfwhz18] {
    font-size: 20px;
}

.rc-breadcrumbs[b-19yzfwhz18] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.rc-breadcrumb-link[b-19yzfwhz18] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.rc-breadcrumb-link:hover[b-19yzfwhz18] {
    color: #2563eb;
}

.rc-breadcrumb-sep[b-19yzfwhz18] {
    font-size: 11px;
}

.rc-page-title[b-19yzfwhz18] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rc-badge-directory[b-19yzfwhz18] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rc-live-dot[b-19yzfwhz18] {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.rc-top-actions[b-19yzfwhz18] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rc-search-wrap[b-19yzfwhz18] {
    position: relative;
    width: 240px;
}

.rc-search-wrap .material-symbols-outlined[b-19yzfwhz18] {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.rc-search-input[b-19yzfwhz18] {
    width: 100%;
    height: 32px;
    padding: 0 10px 0 30px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rc-search-input:focus[b-19yzfwhz18] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.rc-btn-primary[b-19yzfwhz18] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.rc-btn-primary:hover[b-19yzfwhz18] {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(15, 23, 42, 0.12);
}

/* ── 3. KPI / Stat Cards Grid ───────────────────────────────── */
.rc-stats-grid[b-19yzfwhz18] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex-shrink: 0;
}

.rc-stat-card[b-19yzfwhz18] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 7px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.rc-stat-card[b-19yzfwhz18]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.rc-card-total[b-19yzfwhz18]::before    { background: #3b82f6; }
.rc-card-active[b-19yzfwhz18]::before   { background: #10b981; }
.rc-card-cities[b-19yzfwhz18]::before   { background: #f59e0b; }
.rc-card-filtered[b-19yzfwhz18]::before { background: #6366f1; }

.rc-stat-card:hover[b-19yzfwhz18] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.rc-stat-top[b-19yzfwhz18] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rc-stat-icon-wrap[b-19yzfwhz18] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rc-stat-icon-wrap .material-symbols-outlined[b-19yzfwhz18] {
    font-size: 15px;
}

.rc-stat-tag[b-19yzfwhz18] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.rc-stat-tag .material-symbols-outlined[b-19yzfwhz18] {
    font-size: 13px;
}

.rc-card-total .rc-stat-icon-wrap[b-19yzfwhz18]    { background: #eff6ff; color: #3b82f6; }
.rc-card-total .rc-stat-tag[b-19yzfwhz18]          { background: #eff6ff; color: #2563eb; }

.rc-card-active .rc-stat-icon-wrap[b-19yzfwhz18]   { background: #ecfdf5; color: #10b981; }
.rc-card-active .rc-stat-tag[b-19yzfwhz18]         { background: #ecfdf5; color: #059669; }

.rc-card-cities .rc-stat-icon-wrap[b-19yzfwhz18]   { background: #fffbeb; color: #d97706; }
.rc-card-cities .rc-stat-tag[b-19yzfwhz18]         { background: #fffbeb; color: #b45309; }

.rc-card-filtered .rc-stat-icon-wrap[b-19yzfwhz18] { background: #eef2ff; color: #6366f1; }
.rc-card-filtered .rc-stat-tag[b-19yzfwhz18]       { background: #eef2ff; color: #4f46e5; }

.rc-stat-mid[b-19yzfwhz18] {
    margin-top: 1px;
}

.rc-stat-label[b-19yzfwhz18] {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rc-stat-bottom[b-19yzfwhz18] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.rc-stat-val[b-19yzfwhz18] {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.rc-stat-subtext[b-19yzfwhz18] {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── 4. Table Card Container (Single Viewport) ─────────────── */
.rc-table-card[b-19yzfwhz18] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.rc-table-container[b-19yzfwhz18] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

.rc-table[b-19yzfwhz18] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    text-align: left;
}

/* Light Slate Sticky Header */
.rc-thead[b-19yzfwhz18] {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8fafc !important;
}

.rc-th[b-19yzfwhz18] {
    background-color: #f8fafc !important;
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 8px 12px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: none !important;
    white-space: nowrap;
    user-select: none;
}

.rc-tbody tr[b-19yzfwhz18] {
    background-color: #ffffff;
    transition: background-color 0.12s ease;
}

.rc-tbody tr:hover[b-19yzfwhz18] {
    background-color: #f8fafc;
}

.rc-td[b-19yzfwhz18] {
    padding: 6px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
    font-size: 12px;
}

/* Row action buttons */
.rc-row-actions[b-19yzfwhz18] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rc-btn-icon-action[b-19yzfwhz18] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: #f8fafc;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.rc-btn-icon-action:hover[b-19yzfwhz18] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.rc-btn-icon-delete:hover[b-19yzfwhz18] {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
}

.rc-btn-icon-action .material-symbols-outlined[b-19yzfwhz18] {
    font-size: 15px;
}

/* ── 5. Pagination Footer ───────────────────────────────────── */
.rc-pagination-bar[b-19yzfwhz18] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 14px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
    font-size: 11.5px;
    color: #64748b;
}

.rc-page-controls[b-19yzfwhz18] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rc-btn-page[b-19yzfwhz18] {
    height: 26px;
    min-width: 26px;
    padding: 0 6px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.rc-btn-page:hover:not(:disabled)[b-19yzfwhz18] {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.rc-btn-page:disabled[b-19yzfwhz18] {
    opacity: 0.4;
    cursor: not-allowed;
}

.rc-btn-page .material-symbols-outlined[b-19yzfwhz18] {
    font-size: 14px;
}

/* ── 6. Modal Form Overlay & Card ───────────────────────────── */
.rc-modal-overlay[b-19yzfwhz18] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 16px;
}

.rc-modal-card[b-19yzfwhz18] {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 740px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.rc-modal-card-sm[b-19yzfwhz18] {
    max-width: 440px !important;
}

.rc-modal-overlay-nested[b-19yzfwhz18] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2200;
    padding: 16px;
}

.rc-btn-quick-add[b-19yzfwhz18] {
    height: 34px;
    width: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, transform 0.1s ease;
}

.rc-btn-quick-add:hover[b-19yzfwhz18] {
    background: #2563eb;
    transform: translateY(-1px);
}

.rc-btn-quick-add:active[b-19yzfwhz18] {
    transform: translateY(0);
}

.rc-modal-header[b-19yzfwhz18] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.rc-modal-title[b-19yzfwhz18] {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.rc-modal-close-btn[b-19yzfwhz18] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.rc-modal-close-btn:hover[b-19yzfwhz18] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.rc-modal-body[b-19yzfwhz18] {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 70vh;
    overflow-y: auto;
}

.rc-form-group[b-19yzfwhz18] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rc-field-label[b-19yzfwhz18] {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.rc-input[b-19yzfwhz18],
.rc-select[b-19yzfwhz18] {
    width: 100%;
    height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 12.5px;
    color: #1e293b;
    background: #ffffff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rc-input:focus[b-19yzfwhz18],
.rc-select:focus[b-19yzfwhz18] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.rc-modal-footer[b-19yzfwhz18] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}
/* /Components/Pages/ReportMethodMaster.razor.rz.scp.css */
/* ==========================================================================
   REPORT METHOD MASTER — SINGLE VIEWPORT MODERN OBSIDIAN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Main Layout Wrapper ────────────────────── */
.rm-page-root[b-f8xwgrf956] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.rm-top-bar[b-f8xwgrf956] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.rm-title-block[b-f8xwgrf956] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rm-title-icon-wrap[b-f8xwgrf956] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rm-title-icon-wrap .material-symbols-outlined[b-f8xwgrf956] {
    font-size: 20px;
}

.rm-breadcrumbs[b-f8xwgrf956] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.rm-breadcrumb-link[b-f8xwgrf956] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.rm-breadcrumb-link:hover[b-f8xwgrf956] {
    color: #2563eb;
}

.rm-breadcrumb-sep[b-f8xwgrf956] {
    font-size: 11px;
}

.rm-page-title[b-f8xwgrf956] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rm-badge-directory[b-f8xwgrf956] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rm-live-dot[b-f8xwgrf956] {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.rm-top-actions[b-f8xwgrf956] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rm-search-wrap[b-f8xwgrf956] {
    position: relative;
    width: 240px;
}

.rm-search-wrap .material-symbols-outlined[b-f8xwgrf956] {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.rm-search-input[b-f8xwgrf956] {
    width: 100%;
    height: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 10px 0 32px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rm-search-input:focus[b-f8xwgrf956] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.rm-btn-primary[b-f8xwgrf956] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.rm-btn-primary:hover[b-f8xwgrf956] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

.rm-btn-icon[b-f8xwgrf956] {
    font-size: 16px;
}

/* ── 3. KPI / Stat Cards Grid ───────────────────────────────── */
.rm-stats-grid[b-f8xwgrf956] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex-shrink: 0;
}

.rm-stat-card[b-f8xwgrf956] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 7px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.rm-stat-card[b-f8xwgrf956]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.rm-card-total[b-f8xwgrf956]::before    { background: #3b82f6; }
.rm-card-culture[b-f8xwgrf956]::before  { background: #10b981; }
.rm-card-standard[b-f8xwgrf956]::before { background: #6366f1; }
.rm-card-active[b-f8xwgrf956]::before   { background: #f59e0b; }

.rm-stat-card:hover[b-f8xwgrf956] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.rm-stat-top[b-f8xwgrf956] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rm-stat-icon-wrap[b-f8xwgrf956] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rm-stat-icon-wrap .material-symbols-outlined[b-f8xwgrf956] {
    font-size: 15px;
}

.rm-stat-tag[b-f8xwgrf956] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.rm-stat-tag .material-symbols-outlined[b-f8xwgrf956] {
    font-size: 13px;
}

.rm-card-total .rm-stat-icon-wrap[b-f8xwgrf956]    { background: #eff6ff; color: #3b82f6; }
.rm-card-total .rm-stat-tag[b-f8xwgrf956]          { background: #eff6ff; color: #2563eb; }

.rm-card-culture .rm-stat-icon-wrap[b-f8xwgrf956]  { background: #ecfdf5; color: #059669; }
.rm-card-culture .rm-stat-tag[b-f8xwgrf956]        { background: #ecfdf5; color: #047857; }

.rm-card-standard .rm-stat-icon-wrap[b-f8xwgrf956] { background: #eef2ff; color: #6366f1; }
.rm-card-standard .rm-stat-tag[b-f8xwgrf956]       { background: #eef2ff; color: #4f46e5; }

.rm-card-active .rm-stat-icon-wrap[b-f8xwgrf956]   { background: #fffbeb; color: #d97706; }
.rm-card-active .rm-stat-tag[b-f8xwgrf956]         { background: #fffbeb; color: #b45309; }

.rm-stat-mid[b-f8xwgrf956] {
    margin-top: 1px;
}

.rm-stat-label[b-f8xwgrf956] {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rm-stat-bottom[b-f8xwgrf956] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.rm-stat-val[b-f8xwgrf956] {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.rm-stat-subtext[b-f8xwgrf956] {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── 4. Table Card Container (Single Viewport Inner Area) ─── */
.rm-table-card[b-f8xwgrf956] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.rm-table-container[b-f8xwgrf956] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

.rm-table[b-f8xwgrf956] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    text-align: left;
}

/* Light Slate Sticky Header */
.rm-thead[b-f8xwgrf956] {
    position: sticky;
    top: 0;
    z-index: 10;
}

.rm-th[b-f8xwgrf956] {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 9px 12px;
    border-bottom: 1px solid #e2e8f0;
    border-top: none;
    white-space: nowrap;
    user-select: none;
}

.rm-tbody tr[b-f8xwgrf956] {
    background-color: #ffffff;
    transition: background-color 0.12s ease;
}

.rm-tbody tr:hover[b-f8xwgrf956] {
    background-color: #f8fafc;
}

.rm-td[b-f8xwgrf956] {
    padding: 7px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
    font-size: 12px;
}

.rm-badge-code[b-f8xwgrf956] {
    display: inline-block;
    padding: 2px 6px;
    background: #f1f5f9;
    color: #475569;
    font-family: monospace;
    font-weight: 700;
    font-size: 11px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.rm-shortname-pill[b-f8xwgrf956] {
    display: inline-block;
    color: #64748b;
    font-family: monospace;
    font-weight: 600;
    font-size: 11.5px;
}

.rm-name-cell[b-f8xwgrf956] {
    font-weight: 700;
    color: #0f172a;
    font-size: 12px;
}

.rm-duration-badge[b-f8xwgrf956] {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 5px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #bfdbfe;
}

.rm-culture-yes[b-f8xwgrf956] {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    background: #ecfdf5;
    color: #047857;
    font-size: 10.5px;
    font-weight: 700;
    border: 1px solid #a7f3d0;
}

.rm-culture-no[b-f8xwgrf956] {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 10.5px;
    font-weight: 600;
}

.rm-date-text[b-f8xwgrf956] {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

/* Action Buttons */
.rm-actions-cell[b-f8xwgrf956] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.rm-btn-action[b-f8xwgrf956] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.12s ease;
    padding: 0;
}

.rm-btn-action .material-symbols-outlined[b-f8xwgrf956] {
    font-size: 15px;
}

.rm-btn-action:hover[b-f8xwgrf956] {
    background: #f1f5f9;
    color: #0f172a;
}

.rm-btn-action-edit:hover[b-f8xwgrf956] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.rm-btn-action-delete:hover[b-f8xwgrf956] {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

/* ── 5. Modal Form Overlay & Card ────────────────────────────── */
.rm-modal-overlay[b-f8xwgrf956] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 16px;
}

.rm-modal-card[b-f8xwgrf956] {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 580px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: rmModalFadeIn-b-f8xwgrf956 0.15s ease-out;
}

@keyframes rmModalFadeIn-b-f8xwgrf956 {
    from {
        opacity: 0;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.rm-modal-header[b-f8xwgrf956] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.rm-modal-title[b-f8xwgrf956] {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rm-modal-close-btn[b-f8xwgrf956] {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.12s;
    padding: 0;
}

.rm-modal-close-btn:hover[b-f8xwgrf956] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}

.rm-modal-body[b-f8xwgrf956] {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 70vh;
    overflow-y: auto;
}

.rm-form-group[b-f8xwgrf956] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rm-form-label[b-f8xwgrf956] {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rm-form-input[b-f8xwgrf956] {
    height: 32px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 500;
    color: #0f172a;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rm-form-input:focus[b-f8xwgrf956] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.rm-grid-3col[b-f8xwgrf956] {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 10px;
}

.rm-grid-2col[b-f8xwgrf956] {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px;
}

.rm-form-textarea[b-f8xwgrf956] {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
    color: #0f172a;
    outline: none;
    box-sizing: border-box;
    resize: vertical;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rm-form-textarea:focus[b-f8xwgrf956] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.rm-chk-row[b-f8xwgrf956] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    padding-top: 4px;
}

.rm-chk-box[b-f8xwgrf956] {
    width: 16px;
    height: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    cursor: pointer;
}

.rm-modal-footer[b-f8xwgrf956] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.rm-btn-delete[b-f8xwgrf956] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #dc2626;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.rm-btn-delete:hover:not(:disabled)[b-f8xwgrf956] {
    background: #fee2e2;
    border-color: #f87171;
}

.rm-btn-delete:disabled[b-f8xwgrf956] {
    opacity: 0.4;
    cursor: not-allowed;
}

.rm-btn-save[b-f8xwgrf956] {
    height: 32px;
    padding: 0 16px;
    border-radius: 6px;
    border: none;
    background: #0f172a !important;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
}

.rm-btn-save:hover[b-f8xwgrf956] {
    background: #1e293b !important;
    transform: translateY(-1px);
}
/* /Components/Pages/ResultSearch.razor.rz.scp.css */
/* ==========================================================================
   RESULT SEARCH WORKLIST — COMPACT MODERN LIMS THEME
   Pixel-accurate matching of modern clinical workstation layout:
   - 4 Top Parameter / Scope / Criteria / Quick Statement Cards
   - Split Workspace: Result Worklist Grid (Left) + Associated Tests & Sample Collection (Right)
   - Sticky Bottom Actions & Authorization Bar
   - Zero outer page scroll, high information density, sleek micro-interactions
   ========================================================================== */

/* ── 1. Root Container ────────────────────────────────────── */
.rs-container[b-jz2yni5me2] {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 0% !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    padding: 6px 8px 6px 8px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    background-color: #f1f5f9 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 13px !important;
    color: #1e293b !important;
    gap: 6px !important;
    width: 100% !important;
}

/* ── 2. Ultra-Compact Top Filter Ribbon (~42px) ───────────── */
.rs-ribbon-container[b-jz2yni5me2] {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    z-index: 20 !important;
}

/* ── 2. Top Filter Panel (3 Responsive Flexbox Rows) ─────────────── */
.rs-filter-panel[b-jz2yni5me2] {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 6px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
    box-sizing: border-box !important;
}

.rs-filter-row[b-jz2yni5me2] {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.rs-filter-row-1[b-jz2yni5me2] {
    padding-bottom: 5px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.rs-filter-row-2[b-jz2yni5me2] {
    padding-bottom: 5px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.rs-filter-row-3[b-jz2yni5me2] {
    padding-top: 1px !important;
}

/* Common Control Elements in Filter Panel */
.rs-r-group[b-jz2yni5me2] {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    flex-shrink: 0 !important;
}

.rs-r-icon[b-jz2yni5me2] {
    font-size: 18px !important;
    color: #64748b !important;
}

.rs-icon-emerald[b-jz2yni5me2] {
    color: #059669 !important;
}

.rs-icon-teal[b-jz2yni5me2] {
    color: #0d9488 !important;
}

.rs-r-select[b-jz2yni5me2] {
    height: 28px !important;
    min-height: 28px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    padding: 0 8px !important;
    outline: none !important;
    transition: border-color 0.15s ease !important;
    box-sizing: border-box !important;
}

.rs-r-select:focus[b-jz2yni5me2] {
    border-color: #0d9488 !important;
}

.rs-r-select-branch[b-jz2yni5me2] {
    max-width: 190px !important;
    min-width: 130px !important;
    font-weight: 700 !important;
}

.rs-r-select-dept[b-jz2yni5me2] {
    max-width: 160px !important;
    min-width: 120px !important;
}

.rs-date-group[b-jz2yni5me2] {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.rs-r-date[b-jz2yni5me2] {
    height: 28px !important;
    min-height: 28px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    padding: 0 5px !important;
    width: 118px !important;
    min-width: 118px !important;
    box-sizing: border-box !important;
}

.rs-r-to[b-jz2yni5me2] {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    padding: 0 2px !important;
}

/* Omnibox Quick Search */
.rs-r-search-wrap[b-jz2yni5me2] {
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    flex: 1 1 240px !important;
    max-width: 420px !important;
    min-width: 180px !important;
}

.rs-r-search-icon[b-jz2yni5me2] {
    position: absolute !important;
    left: 8px !important;
    font-size: 16px !important;
    color: #94a3b8 !important;
    pointer-events: none !important;
}

.rs-r-search-input[b-jz2yni5me2] {
    width: 100% !important;
    height: 28px !important;
    min-height: 28px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    padding: 0 24px 0 28px !important;
    outline: none !important;
    transition: all 0.15s ease !important;
    box-sizing: border-box !important;
}

.rs-r-search-input:focus[b-jz2yni5me2] {
    background: #ffffff !important;
    border-color: #0d9488 !important;
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.15) !important;
}

.rs-r-clear-btn[b-jz2yni5me2] {
    position: absolute !important;
    right: 5px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    color: #94a3b8 !important;
    display: flex !important;
    align-items: center !important;
    padding: 2px !important;
}

.rs-r-clear-btn:hover[b-jz2yni5me2] {
    color: #ef4444 !important;
}

/* Button Toggle Pill Groups */
.rs-pill-toggles[b-jz2yni5me2] {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    flex-shrink: 0 !important;
}

.rs-pill-opt[b-jz2yni5me2] {
    height: 26px !important;
    min-height: 26px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    border: 1px solid #cbd5e1 !important;
    background: #f8fafc !important;
    color: #475569 !important;
    cursor: pointer !important;
    transition: all 0.12s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    user-select: none !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.rs-pill-opt:hover:not(.active)[b-jz2yni5me2] {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.rs-pill-opt.active[b-jz2yni5me2] {
    background: #0d9488 !important;
    color: #ffffff !important;
    border-color: #0d9488 !important;
    box-shadow: 0 1px 2px rgba(13, 148, 136, 0.25) !important;
}

/* Statements Dropdown Menu */
.rs-r-dropdown-wrap[b-jz2yni5me2] {
    position: relative !important;
    flex-shrink: 0 !important;
}

.rs-r-btn-statements[b-jz2yni5me2] {
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 9px !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: all 0.12s ease !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.rs-r-btn-statements:hover[b-jz2yni5me2],
.rs-r-btn-statements.active[b-jz2yni5me2] {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

.rs-r-dropdown-menu[b-jz2yni5me2] {
    position: absolute !important;
    top: 33px !important;
    left: 0 !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
    padding: 4px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    min-width: 195px !important;
    z-index: 100 !important;
}

.rs-r-menu-item[b-jz2yni5me2] {
    height: 29px !important;
    padding: 0 10px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-align: left !important;
    transition: background-color 0.12s ease !important;
}

.rs-r-menu-item:hover[b-jz2yni5me2] {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

/* Primary CTA Actions */
.rs-r-actions[b-jz2yni5me2] {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
}

.rs-btn-view-worklist[b-jz2yni5me2] {
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 13px !important;
    background: #059669 !important;
    color: #ffffff !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    border-radius: 4px !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    cursor: pointer !important;
    box-shadow: 0 1px 2px rgba(5, 150, 105, 0.25) !important;
    transition: all 0.12s ease !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.rs-btn-view-worklist:hover[b-jz2yni5me2] {
    background: #047857 !important;
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.35) !important;
}

.rs-btn-bulk-mail[b-jz2yni5me2] {
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 11px !important;
    background: #ffffff !important;
    color: #059669 !important;
    border: 1px solid #059669 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    cursor: pointer !important;
    transition: all 0.12s ease !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.rs-btn-bulk-mail:hover[b-jz2yni5me2] {
    background: #ecfdf5 !important;
}

/* Row 2 & 3 Input Labels & Controls */
.rs-adv-lbl[b-jz2yni5me2] {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    white-space: nowrap !important;
}

.rs-ctrl-input[b-jz2yni5me2] {
    height: 26px !important;
    min-height: 26px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    padding: 0 7px !important;
    outline: none !important;
    box-sizing: border-box !important;
}

.rs-ctrl-input:focus[b-jz2yni5me2] {
    border-color: #0d9488 !important;
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.15) !important;
}

.rs-chk-label[b-jz2yni5me2] {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    cursor: pointer !important;
    user-select: none !important;
    white-space: nowrap !important;
}

.rs-chk-label input[b-jz2yni5me2] {
    cursor: pointer !important;
    accent-color: #0d9488 !important;
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
}

.rs-tat-badge[b-jz2yni5me2] {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #059669 !important;
    cursor: pointer !important;
    transition: opacity 0.12s ease !important;
    user-select: none !important;
    white-space: nowrap !important;
}

.rs-tat-badge:hover[b-jz2yni5me2] {
    opacity: 0.8 !important;
}

/* ── 2A. Protection against .theme-size-lg blowup & Responsiveness ── */
.rs-filter-panel select[b-jz2yni5me2],
.rs-filter-panel input:not([type="checkbox"]):not([type="radio"])[b-jz2yni5me2],
.rs-filter-panel button[b-jz2yni5me2] {
    box-sizing: border-box !important;
}

/* Under Large UI Scaling */
#lc-app-root.theme-size-lg .rs-filter-panel[b-jz2yni5me2] {
    padding: 7px 12px !important;
    gap: 7px !important;
}

#lc-app-root.theme-size-lg .rs-filter-panel .rs-filter-row[b-jz2yni5me2] {
    gap: 10px !important;
}

#lc-app-root.theme-size-lg .rs-filter-panel .rs-r-select[b-jz2yni5me2],
#lc-app-root.theme-size-lg .rs-filter-panel .rs-r-date[b-jz2yni5me2],
#lc-app-root.theme-size-lg .rs-filter-panel .rs-ctrl-input[b-jz2yni5me2],
#lc-app-root.theme-size-lg .rs-filter-panel .rs-r-search-input[b-jz2yni5me2] {
    height: 31px !important;
    min-height: 31px !important;
    max-height: 31px !important;
    font-size: 13px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

#lc-app-root.theme-size-lg .rs-filter-panel .rs-r-date[b-jz2yni5me2] {
    width: 125px !important;
    min-width: 125px !important;
}

#lc-app-root.theme-size-lg .rs-filter-panel .rs-pill-opt[b-jz2yni5me2] {
    height: 29px !important;
    min-height: 29px !important;
    max-height: 29px !important;
    font-size: 12.5px !important;
    padding: 0 11px !important;
}

#lc-app-root.theme-size-lg .rs-filter-panel .rs-r-btn-statements[b-jz2yni5me2],
#lc-app-root.theme-size-lg .rs-filter-panel .rs-btn-view-worklist[b-jz2yni5me2],
#lc-app-root.theme-size-lg .rs-filter-panel .rs-btn-bulk-mail[b-jz2yni5me2] {
    height: 31px !important;
    min-height: 31px !important;
    max-height: 31px !important;
    font-size: 13px !important;
    padding: 0 12px !important;
}

#lc-app-root.theme-size-lg .rs-filter-panel .rs-adv-lbl[b-jz2yni5me2] {
    font-size: 11.5px !important;
}

/* ── 3. Middle Workspace Section ──────────────────────────── */
.rs-workspace-split[b-jz2yni5me2] {
    display: grid !important;
    grid-template-columns: 1fr 380px !important;
    gap: 6px !important;
    flex: 1 1 0% !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
}


/* ── 3A. Left Side Worklist Table ─────────────────────────── */
.rs-grid-card[b-jz2yni5me2] {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 7px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
}

.rs-table-wrapper[b-jz2yni5me2] {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow-y: auto !important;
    overflow-x: auto !important;
    background: #ffffff !important;
}

.rs-data-table[b-jz2yni5me2] {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 13.5px !important;
    white-space: nowrap !important;
}

.rs-data-table thead[b-jz2yni5me2] {
    position: sticky !important;
    top: 0 !important;
    z-index: 5 !important;
    background: #f1f5f9 !important;
}

.rs-data-table th[b-jz2yni5me2] {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    padding: 7px 10px !important;
    border-bottom: 2px solid #cbd5e1 !important;
    text-align: left !important;
    user-select: none !important;
}

.rs-data-table td[b-jz2yni5me2] {
    padding: 6px 10px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 13.5px !important;
    color: #1e293b !important;
    vertical-align: middle !important;
}

.rs-table-row[b-jz2yni5me2] {
    cursor: pointer !important;
    transition: background-color 0.1s ease !important;
}

/* Selected Active Row (Cyan/Blue Theme) */
.rs-row-active[b-jz2yni5me2] {
    background: #0284c7 !important;
    color: #ffffff !important;
}

.rs-row-active td[b-jz2yni5me2] {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    border-bottom: 1px solid #0369a1 !important;
}

.rs-row-active .rs-status-text[b-jz2yni5me2] {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 12.5px !important;
}

.rs-row-active .rs-pointer-arrow[b-jz2yni5me2] {
    display: inline-block !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    margin-right: 3px !important;
    font-size: 12px !important;
}

/* Pending Soft Yellow Row */
.rs-row-pending[b-jz2yni5me2] {
    background: #fef9c3 !important;
}

.rs-row-pending td[b-jz2yni5me2] {
    color: #1e293b !important;
    border-bottom: 1px solid #fef08a !important;
}

.rs-row-pending:hover:not(.rs-row-active)[b-jz2yni5me2] {
    background: #fef08a !important;
}

.rs-row-normal[b-jz2yni5me2] {
    background: #ffffff !important;
}

.rs-row-normal:nth-child(even)[b-jz2yni5me2] {
    background: #f8fafc !important;
}

.rs-row-normal:hover:not(.rs-row-active)[b-jz2yni5me2] {
    background: #f1f5f9 !important;
}

.rs-status-text[b-jz2yni5me2] {
    font-weight: 700 !important;
    font-size: 12.5px !important;
}

.rs-status-pending-txt[b-jz2yni5me2] {
    color: #d97706 !important;
}

.rs-status-finished-txt[b-jz2yni5me2] {
    color: #059669 !important;
}

/* ── 3B. Right Side Stacked Cards ─────────────────────────── */
.rs-right-cards[b-jz2yni5me2] {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
}

.rs-side-card[b-jz2yni5me2] {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 7px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    min-height: 0 !important;
}

.rs-side-card-top[b-jz2yni5me2] {
    flex: 1 1 45% !important;
}

.rs-side-card-bottom[b-jz2yni5me2] {
    flex: 1 1 55% !important;
}

.rs-side-card-hdr[b-jz2yni5me2] {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 6px 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-shrink: 0 !important;
}

.rs-side-card-hdr .rs-card-title[b-jz2yni5me2] {
    font-size: 12px !important;
    font-weight: 800 !important;
}

.rs-badge-count-green[b-jz2yni5me2] {
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #047857 !important;
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    border-radius: 4px !important;
    padding: 2px 7px !important;
}

.rs-btn-collect-all[b-jz2yni5me2] {
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #047857 !important;
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    border-radius: 4px !important;
    padding: 2px 8px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: all 0.12s ease !important;
}

.rs-btn-collect-all:hover[b-jz2yni5me2] {
    background: #d1fae5 !important;
    border-color: #6ee7b7 !important;
}

.rs-side-table-scroll[b-jz2yni5me2] {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: #ffffff !important;
}

.rs-sub-table[b-jz2yni5me2] {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 12px !important;
}

.rs-sub-table thead[b-jz2yni5me2] {
    position: sticky !important;
    top: 0 !important;
    background: #f8fafc !important;
    z-index: 2 !important;
}

.rs-sub-table th[b-jz2yni5me2] {
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    padding: 6px 8px !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.rs-sub-table td[b-jz2yni5me2] {
    padding: 6px 8px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 12px !important;
    color: #1e293b !important;
    vertical-align: middle !important;
}

.rs-test-item-title[b-jz2yni5me2] {
    font-weight: 700 !important;
    color: #0f172a !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
}

.rs-test-item-sub[b-jz2yni5me2] {
    font-size: 10.5px !important;
    color: #64748b !important;
    font-weight: 600 !important;
}

.rs-status-pill-amber[b-jz2yni5me2] {
    font-size: 10.5px !important;
    font-weight: 800 !important;
    color: #b45309 !important;
    background: #fef3c7 !important;
    border: 1px solid #fde68a !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
    white-space: nowrap !important;
}

.rs-status-pill-green[b-jz2yni5me2] {
    font-size: 10.5px !important;
    font-weight: 800 !important;
    color: #047857 !important;
    background: #dcfce7 !important;
    border: 1px solid #bbf7d0 !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
    white-space: nowrap !important;
}

.rs-specimen-dot[b-jz2yni5me2] {
    display: inline-block !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    margin-right: 6px !important;
    vertical-align: middle !important;
}

.rs-specimen-name[b-jz2yni5me2] {
    font-weight: 700 !important;
    font-size: 12px !important;
    color: #1e293b !important;
}

/* Action Buttons in Side Cards */
.rs-btn-barcode-full[b-jz2yni5me2] {
    height: 30px !important;
    background: #0f172a !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    transition: all 0.12s ease !important;
    border-radius: 0 0 6px 6px !important;
    letter-spacing: 0.02em !important;
}

.rs-btn-barcode-full:hover[b-jz2yni5me2] {
    background: #1e293b !important;
}

.rs-sample-footer-bar[b-jz2yni5me2] {
    padding: 6px 10px !important;
    background: #ffffff !important;
    border-top: 1px solid #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-shrink: 0 !important;
}

.rs-footer-left-actions[b-jz2yni5me2] {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.rs-btn-action-light[b-jz2yni5me2] {
    height: 25px !important;
    padding: 0 9px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: all 0.12s ease !important;
}

.rs-btn-action-light:hover[b-jz2yni5me2] {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
}

.rs-btn-save-green[b-jz2yni5me2] {
    height: 25px !important;
    padding: 0 12px !important;
    background: #059669 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    box-shadow: 0 1px 2px rgba(5, 150, 105, 0.3) !important;
    transition: all 0.12s ease !important;
}

.rs-btn-save-green:hover[b-jz2yni5me2] {
    background: #047857 !important;
}

/* ── 4. Bottom Sticky Action Toolbar ──────────────────────── */
.rs-bottom-bar[b-jz2yni5me2] {
    background: #ffffff !important;
    border: 1px solid #dbe2ea !important;
    border-radius: 6px !important;
    padding: 4px 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-shrink: 0 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    gap: 8px !important;
    height: 38px !important;
    min-height: 38px !important;
    margin-top: auto !important;
    box-sizing: border-box !important;
    z-index: 10 !important;
}

.rs-bottom-left[b-jz2yni5me2] {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.rs-bottom-total-cases[b-jz2yni5me2] {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
}

.rs-bottom-total-cases strong[b-jz2yni5me2] {
    color: #0f172a !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
}

.rs-bottom-auth[b-jz2yni5me2] {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #334155 !important;
}

.rs-bottom-select[b-jz2yni5me2] {
    height: 27px !important;
    padding: 0 8px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    background: #ffffff !important;
    outline: none !important;
}

.rs-bottom-mid[b-jz2yni5me2] {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.rs-segmented-toggle[b-jz2yni5me2] {
    display: inline-flex !important;
    align-items: center !important;
    background: #f1f5f9 !important;
    padding: 2px !important;
    border-radius: 4px !important;
    border: 1px solid #e2e8f0 !important;
}

.rs-seg-btn[b-jz2yni5me2] {
    height: 25px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border: none !important;
    background: transparent !important;
    color: #475569 !important;
    cursor: pointer !important;
    border-radius: 3px !important;
    transition: all 0.12s ease !important;
}

.rs-seg-btn.active[b-jz2yni5me2] {
    background: #059669 !important;
    color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(5, 150, 105, 0.2) !important;
}

.rs-bottom-right[b-jz2yni5me2] {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.rs-btn-preview-res[b-jz2yni5me2] {
    height: 28px !important;
    padding: 0 12px !important;
    background: #ffffff !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    transition: all 0.12s ease !important;
}

.rs-btn-preview-res:hover[b-jz2yni5me2] {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

.rs-btn-print-res[b-jz2yni5me2] {
    height: 28px !important;
    padding: 0 14px !important;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.25) !important;
    transition: all 0.12s ease !important;
}

.rs-btn-print-res:hover[b-jz2yni5me2] {
    background: #1e293b !important;
}

/* Protection against global .theme-size-lg blowout on bottom toolbar */
.rs-bottom-bar select[b-jz2yni5me2],
.rs-bottom-bar button[b-jz2yni5me2],
.rs-bottom-bar .rs-seg-btn[b-jz2yni5me2],
.rs-bottom-bar .rs-btn-preview-res[b-jz2yni5me2],
.rs-bottom-bar .rs-btn-print-res[b-jz2yni5me2] {
    box-sizing: border-box !important;
}

#lc-app-root.theme-size-lg .rs-bottom-bar[b-jz2yni5me2] {
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 12px !important;
}

#lc-app-root.theme-size-lg .rs-bottom-bar select[b-jz2yni5me2],
#lc-app-root.theme-size-lg .rs-bottom-bar button[b-jz2yni5me2],
#lc-app-root.theme-size-lg .rs-bottom-bar .rs-seg-btn[b-jz2yni5me2],
#lc-app-root.theme-size-lg .rs-bottom-bar .rs-btn-preview-res[b-jz2yni5me2],
#lc-app-root.theme-size-lg .rs-bottom-bar .rs-btn-print-res[b-jz2yni5me2] {
    min-height: 28px !important;
    max-height: 30px !important;
    height: 29px !important;
    font-size: 13px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Custom Scrollbar for High Density */
.rs-table-wrapper[b-jz2yni5me2]::-webkit-scrollbar,
.rs-side-table-scroll[b-jz2yni5me2]::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.rs-table-wrapper[b-jz2yni5me2]::-webkit-scrollbar-track,
.rs-side-table-scroll[b-jz2yni5me2]::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.rs-table-wrapper[b-jz2yni5me2]::-webkit-scrollbar-thumb,
.rs-side-table-scroll[b-jz2yni5me2]::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.rs-table-wrapper[b-jz2yni5me2]::-webkit-scrollbar-thumb:hover,
.rs-side-table-scroll[b-jz2yni5me2]::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ─────────────────────────────────────────────────────────────
   ORDER TESTS CARD & BUTTON ENHANCEMENTS
   ───────────────────────────────────────────────────────────── */

/* Mini Select All / None Buttons in Header */
.rs-btn-mini-sel[b-jz2yni5me2] {
    height: 18px !important;
    padding: 0 6px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #0369a1 !important;
    background: #e0f2fe !important;
    border: 1px solid #bae6fd !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    transition: all 0.12s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.rs-btn-mini-sel:hover[b-jz2yni5me2] {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
}

/* Selected row highlight in Order Tests */
.rs-test-row-selected[b-jz2yni5me2] {
    background-color: #f0fdf4 !important;
}

.rs-test-row-selected:hover[b-jz2yni5me2] {
    background-color: #dcfce7 !important;
}

/* Order Tests Footer Action Bar */
.rs-order-tests-footer[b-jz2yni5me2] {
    height: 34px !important;
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 8px !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.rs-btn-order-routine[b-jz2yni5me2] {
    flex: 1 !important;
    height: 26px !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border: 1px solid #1d4ed8 !important;
    border-radius: 4px !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    transition: all 0.15s ease !important;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25) !important;
}

.rs-btn-order-routine:hover:not(:disabled)[b-jz2yni5me2] {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.35) !important;
}

.rs-btn-order-routine:disabled[b-jz2yni5me2] {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.rs-btn-order-culture[b-jz2yni5me2] {
    flex: 1 !important;
    height: 26px !important;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
    color: #ffffff !important;
    border: 1px solid #6d28d9 !important;
    border-radius: 4px !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    transition: all 0.15s ease !important;
    box-shadow: 0 1px 2px rgba(124, 58, 237, 0.25) !important;
}

.rs-btn-order-culture:hover:not(:disabled)[b-jz2yni5me2] {
    background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%) !important;
    box-shadow: 0 2px 4px rgba(124, 58, 237, 0.35) !important;
}

.rs-btn-order-culture:disabled[b-jz2yni5me2] {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.rs-btn-order-barcode[b-jz2yni5me2] {
    height: 26px !important;
    padding: 0 8px !important;
    background: #0f172a !important;
    color: #ffffff !important;
    border: 1px solid #0f172a !important;
    border-radius: 4px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    transition: all 0.15s ease !important;
}

.rs-btn-order-barcode:hover:not(:disabled)[b-jz2yni5me2] {
    background: #1e293b !important;
}

.rs-btn-order-barcode:disabled[b-jz2yni5me2] {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Bottom Toolbar Routine and Culture Buttons */
.rs-btn-bar-routine[b-jz2yni5me2] {
    height: 28px !important;
    padding: 0 12px !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border: 1px solid #1d4ed8 !important;
    border-radius: 4px !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    transition: all 0.15s ease !important;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25) !important;
}

.rs-btn-bar-routine:hover:not(:disabled)[b-jz2yni5me2] {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.35) !important;
}

.rs-btn-bar-routine:disabled[b-jz2yni5me2] {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.rs-btn-bar-culture[b-jz2yni5me2] {
    height: 28px !important;
    padding: 0 12px !important;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
    color: #ffffff !important;
    border: 1px solid #6d28d9 !important;
    border-radius: 4px !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    transition: all 0.15s ease !important;
    box-shadow: 0 1px 2px rgba(124, 58, 237, 0.25) !important;
}

.rs-btn-bar-culture:hover:not(:disabled)[b-jz2yni5me2] {
    background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%) !important;
    box-shadow: 0 2px 4px rgba(124, 58, 237, 0.35) !important;
}

.rs-btn-bar-culture:disabled[b-jz2yni5me2] {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

#lc-app-root.theme-size-lg .rs-bottom-bar .rs-btn-bar-routine[b-jz2yni5me2],
#lc-app-root.theme-size-lg .rs-bottom-bar .rs-btn-bar-culture[b-jz2yni5me2] {
    min-height: 28px !important;
    max-height: 30px !important;
    height: 29px !important;
    font-size: 13px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* ════════════════════════════════════════════════════════════════════════════
   RESULT SEARCH — TABLET & RESPONSIVE WORKSTATION ARCHITECTURE
   ════════════════════════════════════════════════════════════════════════════ */

/* 1. DESKTOP VIEW (> 1200px) - Kept 100% Unchanged */
@media (min-width: 1201px) {
    .rs-container[b-jz2yni5me2] {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        max-height: 100% !important;
        overflow: hidden !important;
    }
    .rs-workspace-split[b-jz2yni5me2] {
        display: grid !important;
        grid-template-columns: 1fr 380px !important;
        gap: 6px !important;
        flex: 1 1 0% !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }
    .rs-grid-card[b-jz2yni5me2] {
        height: 100% !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }
    .rs-table-wrapper[b-jz2yni5me2] {
        height: 100% !important;
        overflow-y: auto !important;
    }
    .rs-right-cards[b-jz2yni5me2] {
        display: flex !important;
        flex-direction: column !important;
        gap: 7px !important;
        height: 100% !important;
        overflow: hidden !important;
    }

    /* Column Widths on Desktop */
    .col-sno[b-jz2yni5me2] { width: 50px !important; }
    .col-case[b-jz2yni5me2] { width: 75px !important; }
    .col-date[b-jz2yni5me2] { width: 100px !important; }
    .col-reg[b-jz2yni5me2] { width: 90px !important; }
    .col-patient[b-jz2yni5me2] { width: auto !important; }
    .col-doctor[b-jz2yni5me2] { width: auto !important; }
    .col-status[b-jz2yni5me2] { width: 90px !important; }
    .col-pathology[b-jz2yni5me2] { width: 100px !important; }
}

/* 2. TABLET VIEW (769px – 1200px) - Elongated Worklist Table & Compact Lower Cards */
@media (min-width: 769px) and (max-width: 1200px) {
    .rs-container[b-jz2yni5me2] {
        height: 100% !important;
        min-height: 0 !important;
        max-height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        padding: 6px 8px !important;
        gap: 6px !important;
        box-sizing: border-box !important;
    }

    .rs-workspace-split[b-jz2yni5me2] {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        flex: 1 1 0% !important;
        min-height: 0 !important;
        height: 100% !important;
        overflow: hidden !important;
    }

    /* Worklist Table: ELONGATED to fill all available vertical height */
    .rs-grid-card[b-jz2yni5me2] {
        flex: 1 1 0% !important;
        height: 100% !important;
        min-height: 240px !important;
        max-height: none !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 8px !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
        background: #ffffff !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .rs-table-wrapper[b-jz2yni5me2] {
        flex: 1 1 0% !important;
        min-height: 0 !important;
        height: 100% !important;
        max-height: none !important;
        overflow-y: auto !important;
        overflow-x: hidden !important; /* Strict removal of horizontal scrollbar */
        -webkit-overflow-scrolling: touch !important;
        background: #ffffff !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .rs-data-table[b-jz2yni5me2] {
        table-layout: fixed !important;
        width: 100% !important;
        border-collapse: collapse !important;
        font-size: 12px !important;
    }

    .rs-data-table thead[b-jz2yni5me2] {
        position: sticky !important;
        top: 0 !important;
        z-index: 10 !important;
        background: #f1f5f9 !important;
    }

    .rs-data-table thead th[b-jz2yni5me2] {
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08) !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        padding: 6px 4px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .rs-data-table td[b-jz2yni5me2] {
        padding: 5px 4px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
        font-size: 12px !important;
        line-height: 1.25 !important;
    }

    /* 8 Proportional Columns Adding up to 100% (No horizontal scroll needed) */
    .col-sno[b-jz2yni5me2]       { width: 5.5% !important; text-align: center !important; }
    .col-case[b-jz2yni5me2]      { width: 8.5% !important; }
    .col-date[b-jz2yni5me2]      { width: 12% !important; }
    .col-reg[b-jz2yni5me2]       { width: 9% !important; }
    .col-patient[b-jz2yni5me2]   { width: 25% !important; }
    .col-doctor[b-jz2yni5me2]    { width: 17% !important; }
    .col-status[b-jz2yni5me2]    { width: 10% !important; text-align: center !important; }
    .col-pathology[b-jz2yni5me2] { width: 13% !important; }

    .rs-status-text[b-jz2yni5me2] {
        font-size: 11px !important;
        padding: 1px 4px !important;
    }

    /* Bottom Cards: Compact Order Tests & Sample Collection directly above Footer */
    .rs-right-cards[b-jz2yni5me2] {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 6px !important;
        flex: 0 0 165px !important;
        height: 165px !important;
        min-height: 140px !important;
        max-height: 175px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .rs-side-card[b-jz2yni5me2] {
        height: 100% !important;
        max-height: 175px !important;
        min-height: 140px !important;
        flex: 1 1 0% !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 7px !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
        background: #ffffff !important;
        box-sizing: border-box !important;
    }

    .rs-side-card-top[b-jz2yni5me2],
    .rs-side-card-bottom[b-jz2yni5me2] {
        flex: 1 1 0% !important;
    }

    .rs-side-card-hdr[b-jz2yni5me2] {
        padding: 4px 8px !important;
        min-height: 26px !important;
        height: 26px !important;
        flex: 0 0 auto !important;
    }

    .rs-side-card-hdr .rs-card-title[b-jz2yni5me2] {
        font-size: 11px !important;
    }

    .rs-side-table-scroll[b-jz2yni5me2] {
        flex: 1 1 0% !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow-y: auto !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .rs-sub-table th[b-jz2yni5me2],
    .rs-sub-table td[b-jz2yni5me2] {
        padding: 3px 6px !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
    }

    .rs-order-tests-footer[b-jz2yni5me2],
    .rs-sample-footer-bar[b-jz2yni5me2] {
        padding: 3px 8px !important;
        min-height: 28px !important;
        height: 28px !important;
        flex: 0 0 auto !important;
        background: #f8fafc !important;
        border-top: 1px solid #e2e8f0 !important;
    }

    .rs-btn-order-routine[b-jz2yni5me2],
    .rs-btn-order-barcode[b-jz2yni5me2],
    .rs-btn-action-light[b-jz2yni5me2],
    .rs-btn-save-green[b-jz2yni5me2],
    .rs-btn-collect-all[b-jz2yni5me2] {
        padding: 2px 7px !important;
        font-size: 11px !important;
        height: 22px !important;
        line-height: 1 !important;
    }

    /* Docked Bottom Bar */
    .rs-bottom-bar[b-jz2yni5me2] {
        flex: 0 0 auto !important;
        position: relative !important;
        bottom: auto !important;
        z-index: 20 !important;
        background: #ffffff !important;
        box-shadow: 0 -2px 6px rgba(15, 23, 42, 0.05) !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 8px !important;
        margin-top: 0 !important;
        padding: 4px 10px !important;
        height: auto !important;
        min-height: 36px !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        box-sizing: border-box !important;
    }
}

/* 3. MOBILE VIEW (<= 768px) - Clean Single Column Stack */
@media (max-width: 768px) {
    .rs-container[b-jz2yni5me2] {
        height: auto !important;
        max-height: none !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 6px 8px 16px 8px !important;
        gap: 8px !important;
    }

    .rs-workspace-split[b-jz2yni5me2] {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .rs-grid-card[b-jz2yni5me2] {
        height: auto !important;
        max-height: 320px !important;
        min-height: 200px !important;
        flex: none !important;
        overflow: hidden !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 8px !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
    }

    .rs-table-wrapper[b-jz2yni5me2] {
        height: auto !important;
        max-height: 320px !important;
        overflow-y: auto !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .rs-data-table thead[b-jz2yni5me2] {
        position: sticky !important;
        top: 0 !important;
        z-index: 10 !important;
        background: #f1f5f9 !important;
    }

    .rs-right-cards[b-jz2yni5me2] {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .rs-side-card[b-jz2yni5me2] {
        height: 260px !important;
        max-height: 260px !important;
        min-height: 220px !important;
        flex: none !important;
        display: flex !important;
        flex-direction: column !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 8px !important;
        overflow: hidden !important;
    }

    .rs-side-table-scroll[b-jz2yni5me2] {
        flex: 1 1 0% !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .rs-bottom-bar[b-jz2yni5me2] {
        position: sticky !important;
        bottom: 0 !important;
        z-index: 90 !important;
        background: #ffffff !important;
        box-shadow: 0 -3px 12px rgba(15, 23, 42, 0.1) !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 8px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        height: auto !important;
        padding: 8px !important;
        gap: 6px !important;
    }

    .rs-bottom-left[b-jz2yni5me2],
    .rs-bottom-right[b-jz2yni5me2] {
        display: flex !important;
        justify-content: space-between !important;
        width: 100% !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   CREDIT DUE AMOUNT INDICATORS & BLOCKED BADGES
   ═══════════════════════════════════════════════════════════════ */
.rs-doctor-cell[b-jz2yni5me2] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    overflow: hidden;
}

.rs-doctor-name[b-jz2yni5me2] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rs-due-badge[b-jz2yni5me2] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 6px;
    border-radius: 9999px;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.2;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #b45309;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(217, 119, 6, 0.08);
}

.rs-due-badge.rs-due-badge-blocked[b-jz2yni5me2] {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.rs-row-active .rs-due-badge[b-jz2yni5me2] {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #78350f;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.rs-row-active .rs-due-badge.rs-due-badge-blocked[b-jz2yni5me2] {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

.rs-due-icon[b-jz2yni5me2] {
    font-size: 11px !important;
}

.rs-blocked-dot[b-jz2yni5me2] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    background: #ef4444;
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 800;
    border-radius: 50%;
    margin-left: 2px;
}

.rs-hdr-due-badge[b-jz2yni5me2] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
    margin-left: 6px;
}

.rs-hdr-due-badge.rs-hdr-due-blocked[b-jz2yni5me2] {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.rs-due-blocked-tag[b-jz2yni5me2] {
    font-size: 9.5px;
    background: #ef4444;
    color: #ffffff;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.rs-bottom-due-alert[b-jz2yni5me2] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    margin-left: 10px;
}

.rs-bottom-due-alert.rs-bottom-due-blocked[b-jz2yni5me2] {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.rs-due-blocked-pill[b-jz2yni5me2] {
    background: #dc2626;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.rs-btn-blocked-notice[b-jz2yni5me2] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: #fef2f2;
    border: 1.5px dashed #f87171;
    color: #b91c1c;
    font-size: 11.5px;
    font-weight: 700;
    border-radius: 8px;
    user-select: none;
}


/* /Components/Pages/SalesMaster.razor.rz.scp.css */
/* Scoped styles for SalesMaster component */

.items-page[b-alcqpabp93] {
    min-height: 100vh;
    background: transparent !important;
}

.items-shell[b-alcqpabp93] {
    max-width: 1320px;
    margin: 0 auto;
}

.items-content[b-alcqpabp93] {
    width: min(1240px, 100%);
    margin: 0 auto;
    text-align: center;
}

.premium-header-card[b-alcqpabp93] {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    padding: 1.25rem 2rem;
    color: #1e1b4b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem;
    margin-bottom: 1.75rem !important;
}

.header-card-left[b-alcqpabp93] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-card-icon[b-alcqpabp93] {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.header-card-icon svg[b-alcqpabp93] {
    stroke: #2563eb;
}

.header-card-text[b-alcqpabp93] {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.header-card-heading[b-alcqpabp93] {
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
}

.header-card-subheading[b-alcqpabp93] {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.status-dot[b-alcqpabp93] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    margin-right: 6px;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
}

.header-card-right[b-alcqpabp93] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.items-search-wrap[b-alcqpabp93] {
    position: relative;
    display: flex;
    align-items: center;
}

.items-search[b-alcqpabp93] {
    width: 220px;
    height: 38px;
    border-radius: 20px;
    border: 1px solid #cbd5e1;
    padding-left: 2.4rem;
    font-size: 0.8rem;
    background: #ffffff;
    color: #1e293b;
    box-shadow: none;
    transition: all 0.25s ease;
}

.items-search:focus[b-alcqpabp93] {
    outline: none;
    width: 280px;
    background: #ffffff;
    color: #1e293b;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.items-search-icon[b-alcqpabp93] {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
}

.view-toggle[b-alcqpabp93] {
    display: inline-flex;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    overflow: hidden;
    background: #f8fafc;
    height: 38px;
    padding: 2px;
    align-items: center;
}

.view-toggle button[b-alcqpabp93] {
    border: 0;
    background: transparent;
    color: #64748b;
    width: 36px;
    height: 32px;
    border-radius: 16px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle button.active[b-alcqpabp93] {
    background: #ffffff;
    color: #4f46e5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.add-item-btn[b-alcqpabp93] {
    height: 38px;
    border-radius: 20px;
    background: #4f46e5;
    color: #ffffff;
    border: none;
    padding: 0 1.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    transition: all 0.2s ease-in-out;
}

.add-item-btn:hover[b-alcqpabp93] {
    background: #3f39c5;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
    transform: translateY(-1.5px);
}

.items-main-card[b-alcqpabp93] {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 1.5rem;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02);
}

.items-main-card .table-responsive[b-alcqpabp93] {
    max-height: calc(100vh - 270px) !important;
    overflow-y: auto !important;
    overflow-x: auto !important;
    position: relative !important;
}

.items-table[b-alcqpabp93] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

table.table.items-table thead tr th[b-alcqpabp93],
.items-table th[b-alcqpabp93] {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    background: #f8fafc !important;
    color: #475569 !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.74rem;
    letter-spacing: 0.8px;
    padding: 12px 16px;
    border-bottom: 2px solid #e2e8f0;
    text-align: left;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.items-table td[b-alcqpabp93] {
    border-top: none;
    border-bottom: 1px solid #eef2f6;
    padding: 18px 24px;
    font-size: 0.8rem;
    background: #ffffff;
    color: #64748b;
    vertical-align: middle;
}

.items-table td:last-child[b-alcqpabp93] {
    white-space: nowrap !important;
    text-align: center !important;
}

.items-table tr td:first-child[b-alcqpabp93] {
    color: #3b82f6 !important;
    font-weight: 700 !important;
}

.action-btn[b-alcqpabp93] {
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    margin: 0 2px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #94a3b8 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.action-btn:hover[b-alcqpabp93] {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}

.action-btn.btn-report[b-alcqpabp93] {
    color: #4f46e5 !important;
}

.action-btn.btn-report:hover[b-alcqpabp93] {
    background: #eef2ff !important;
    border-color: #c7d2fe !important;
    color: #4338ca !important;
}

.action-btn.btn-edit[b-alcqpabp93] {
    color: #0284c7 !important;
}

.action-btn.btn-edit:hover[b-alcqpabp93] {
    background: #f0f9ff !important;
    border-color: #bae6fd !important;
    color: #0369a1 !important;
}

.action-btn.btn-delete[b-alcqpabp93] {
    color: #ef4444 !important;
}

.action-btn.btn-delete:hover[b-alcqpabp93] {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #dc2626 !important;
}

.action-btn i[b-alcqpabp93] {
    font-size: 0.85rem !important;
}

.items-card-grid[b-alcqpabp93] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
}

.item-card[b-alcqpabp93] {
    background: #ffffff !important;
    border: 1px solid #eef2f6 !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.item-card:hover[b-alcqpabp93] {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(37, 99, 235, 0.25) !important;
}

.item-card-head[b-alcqpabp93] {
    background: #ffffff !important;
    color: #1e293b !important;
    padding: 0.6rem 1rem !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid rgba(99, 102, 241, 0.1) !important;
}

.card-item-code[b-alcqpabp93] {
    color: #4b5563 !important;
    font-weight: 700 !important;
    margin-right: 6px;
}

.card-item-name[b-alcqpabp93] {
    color: #374151 !important;
    font-weight: 700 !important;
}

.item-card-body[b-alcqpabp93] {
    padding: 0.75rem 1rem !important;
    color: #64748b !important;
    font-size: 0.8rem !important;
}

.detail-row[b-alcqpabp93] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0 !important;
    border-bottom: 1px solid #eef2f6 !important;
}

.detail-row:last-child[b-alcqpabp93] {
    border-bottom: none !important;
}

.detail-row span[b-alcqpabp93] {
    color: #8a99ad !important;
    font-weight: 700 !important;
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.detail-row strong[b-alcqpabp93] {
    color: #000000 !important;
    font-weight: 600 !important;
}

.btn-cancel-modal[b-alcqpabp93] {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: none !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    min-width: 100px !important;
    transition: all 0.2s !important;
}

.btn-cancel-modal:hover[b-alcqpabp93] {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.purchase-bill-wrapper[b-alcqpabp93] {
    display: flex;
    gap: 2.25rem;
    flex-wrap: wrap;
}

.purchase-bill-fields[b-alcqpabp93] {
    flex: 1.5;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.purchase-bill-fields .premium-input[b-alcqpabp93] {
    padding: 0 10px !important;
    font-size: 0.8rem !important;
    border-radius: 6px !important;
    height: 38px !important;
    line-height: 38px !important;
    background: #f9fafc !important;
    border: 1px solid #e5e7eb !important;
    color: #1f2937 !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.purchase-bill-fields input[type="date"].premium-input[b-alcqpabp93],
.purchase-bill-fields input.premium-input[b-alcqpabp93] {
    padding: 0 10px !important;
    height: 38px !important;
    line-height: normal !important;
    background: #f9fafc !important;
    border: 1px solid #e5e7eb !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.purchase-bill-fields .field-group[b-alcqpabp93] {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    width: 100% !important;
}

.purchase-bill-fields .field-label[b-alcqpabp93] {
    font-size: 0.68rem !important;
    margin-bottom: 4px !important;
    font-weight: 700 !important;
    color: #374151 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.custom-typeahead-dropdown[b-alcqpabp93] {
    position: absolute !important;
    top: calc(100% + 4px) !important;
    left: 0 !important;
    width: 100% !important;
    min-width: 320px !important;
    max-height: 260px !important;
    overflow-y: auto !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18) !important;
    z-index: 9999 !important;
}

.custom-typeahead-item[b-alcqpabp93] {
    cursor: pointer !important;
    transition: background-color 0.15s ease !important;
}

.custom-typeahead-item:hover[b-alcqpabp93] {
    background-color: #f1f5f9 !important;
}

.purchase-bill-fields .form-grid[b-alcqpabp93] {
    gap: 12px;
}

.purchase-bill-summary[b-alcqpabp93] {
    flex: 0.85;
    min-width: 300px;
    max-width: 320px;
    display: flex;
    align-items: stretch;
}

.purchase-item-entry-card[b-alcqpabp93] {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0.7rem;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow-x: hidden;
    box-sizing: border-box;
}

.purchase-item-entry-header[b-alcqpabp93] {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(52px, 0.55fr) minmax(60px, 0.65fr) minmax(52px, 0.55fr) minmax(52px, 0.55fr) minmax(80px, 0.9fr) minmax(110px, 1fr);
    gap: 10px;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.purchase-item-entry-label[b-alcqpabp93] {
    font-size: 0.6rem;
    font-weight: 700;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.purchase-item-entry-label span[b-alcqpabp93] {
    color: #ef4444;
}

.purchase-item-entry-fields[b-alcqpabp93] {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(52px, 0.55fr) minmax(60px, 0.65fr) minmax(52px, 0.55fr) minmax(52px, 0.55fr) minmax(80px, 0.9fr) minmax(110px, 1fr);
    gap: 10px;
    align-items: center;
    width: 100%;
}

.purchase-item-entry-fields>div[b-alcqpabp93],
.purchase-item-entry-header>div[b-alcqpabp93] {
    min-width: 0;
}

.purchase-item-input[b-alcqpabp93] {
    height: 28px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: white;
    font-size: 0.65rem;
    padding: 0 6px;
    outline: none;
    transition: all 0.2s;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.purchase-item-input:focus[b-alcqpabp93] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    background: #f8fbff;
}

.purchase-item-select[b-alcqpabp93] {
    height: 28px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: white;
    font-size: 0.65rem;
    padding: 0 6px;
    outline: none;
    transition: all 0.2s;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.purchase-item-select:focus[b-alcqpabp93] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    background: #f8fbff;
}

.purchase-item-add-btn[b-alcqpabp93] {
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    height: 28px;
    font-weight: 700;
    font-size: 0.65rem;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.purchase-item-add-btn:hover[b-alcqpabp93] {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.purchase-item-add-btn:active[b-alcqpabp93] {
    transform: translateY(0);
}

.purchase-details-wrapper[b-alcqpabp93] {
    width: 100%;
    margin-bottom: 2rem;
}

.purchase-details-link[b-alcqpabp93] {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f678f;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.purchase-details-link:hover[b-alcqpabp93] {
    color: #0ea5e9;
    gap: 8px;
}

.purchase-items-table-wrapper[b-alcqpabp93] {
    border: none !important;
    border-radius: 0;
    overflow: visible;
    background: white;
    margin-bottom: 0.5rem !important;
    box-shadow: none !important;
}

.purchase-items-table-wrapper table[b-alcqpabp93] {
    table-layout: fixed;
    width: 100%;
}

.purchase-items-table-wrapper .purchase-item-input[b-alcqpabp93],
.purchase-items-table-wrapper .purchase-item-select[b-alcqpabp93] {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    height: 26px;
    font-size: 0.65rem;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: white;
    outline: none;
    transition: all 0.2s;
}

.purchase-items-table-wrapper .purchase-item-input:focus[b-alcqpabp93],
.purchase-items-table-wrapper .purchase-item-select:focus[b-alcqpabp93] {
    border-color: #0273b2;
    box-shadow: 0 0 0 2px rgba(2, 115, 178, 0.1);
    background: #f4f8fa;
}

.purchase-items-table-wrapper .purchase-item-select[b-alcqpabp93] {
    min-width: 130px;
}

.purchase-items-table-header[b-alcqpabp93] {
    background: #0273b2 !important;
    border-bottom: none;
}

.purchase-items-table-header th[b-alcqpabp93] {
    font-weight: 700;
    font-size: 0.72rem;
    color: #ffffff !important;
    padding: 12px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.purchase-add-row-wrapper[b-alcqpabp93] {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.purchase-add-row-btn[b-alcqpabp93] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 2px dashed #0273b2 !important;
    border-radius: 10px !important;
    background: #f4f8fa !important;
    color: #0273b2 !important;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.45rem 1.25rem;
    min-width: 200px;
    cursor: pointer;
    transition: all 0.22s ease-in-out;
    box-shadow: 0 2px 4px rgba(2, 115, 178, 0.05);
}

.purchase-add-row-btn:hover[b-alcqpabp93] {
    background: #e6f2fa !important;
    border-color: #015f94 !important;
    color: #015f94 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(2, 115, 178, 0.12);
}

.purchase-add-row-btn i[b-alcqpabp93] {
    font-size: 0.95rem;
    color: #0273b2 !important;
    transition: color 0.22s ease-in-out;
}

.purchase-add-row-btn:hover i[b-alcqpabp93] {
    color: #015f94 !important;
}

.purchase-item-readonly[b-alcqpabp93] {
    display: block;
    width: 100%;
    height: 26px;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 6px;
    line-height: 24px;
    font-size: 0.65rem;
    color: #475569;
    box-sizing: border-box;
    pointer-events: none;
    user-select: none;
    text-align: right;
}

.purchase-items-table-wrapper .purchase-item-input:disabled[b-alcqpabp93],
.purchase-items-table-wrapper .purchase-item-select:disabled[b-alcqpabp93] {
    pointer-events: none;
    cursor: default;
    background-color: white !important;
    color: #000000 !important;
    border-color: #d1d5db !important;
}

.btn-add-item-blue[b-alcqpabp93] {
    background: #0273b2;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(2, 115, 178, 0.3);
    transition: all 0.2s;
    white-space: nowrap;
    font-size: 0.82rem;
    height: 32px;
}

.btn-add-item-blue:hover[b-alcqpabp93] {
    background: #015c8f;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(2, 115, 178, 0.4);
}

.btn-add-item-blue:active[b-alcqpabp93] {
    transform: translateY(0);
}

.bill-card-premium[b-alcqpabp93] {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 5px solid #3b82f6;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.04);
    transition: all 0.3s ease;
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.25rem;
    padding: 0.4rem 0.65rem;
}

.bill-card-premium:hover[b-alcqpabp93] {
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.08);
    border-color: #93c5fd;
    border-left-color: #2563eb;
}

.bill-card-header-premium[b-alcqpabp93] {
    margin-bottom: 0.15rem;
    padding-bottom: 0.35rem;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #4f46e5;
    letter-spacing: 0.8px;
    border-bottom: 1px dashed #bfdbfe;
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-premium-gross[b-alcqpabp93] {
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 4px solid #1e3a8a !important;
    color: #1e3a8a !important;
    font-weight: 700 !important;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-premium-gross:hover[b-alcqpabp93] {
    transform: translateY(-1.5px);
    background-color: #f1f5f9 !important;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.08);
}

.input-premium-gross:focus[b-alcqpabp93] {
    border-color: #2563eb !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18) !important;
    outline: none;
}

.input-premium-discount[b-alcqpabp93] {
    background-color: #f0fdf4 !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 4px solid #059669 !important;
    color: #065f46 !important;
    font-weight: 700 !important;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-premium-discount:hover[b-alcqpabp93] {
    transform: translateY(-1.5px);
    background-color: #ecfdf5 !important;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.08);
}

.input-premium-discount:focus[b-alcqpabp93] {
    border-color: #10b981 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18) !important;
    outline: none;
}

.input-premium-tax[b-alcqpabp93] {
    background-color: #fffbeb !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 4px solid #d97706 !important;
    color: #92400e !important;
    font-weight: 700 !important;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-premium-tax:hover[b-alcqpabp93] {
    transform: translateY(-1.5px);
    background-color: #fef3c7 !important;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.08);
}

.input-premium-tax:focus[b-alcqpabp93] {
    border-color: #f59e0b !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18) !important;
    outline: none;
}

.net-payable-wrapper-premium[b-alcqpabp93] {
    margin-top: 0.2rem;
    padding-top: 0.5rem;
    border-top: 2px dashed rgba(99, 102, 241, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.net-payable-label-premium[b-alcqpabp93] {
    font-size: 0.74rem;
    font-weight: 800;
    color: #4f46e5;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.net-payable-value-premium[b-alcqpabp93] {
    font-size: 1.25rem;
    font-weight: 800;
    color: #4f46e5;
    text-shadow: 0 1px 2px rgba(79, 70, 229, 0.1);
}

@keyframes premium-pulse-blink-b-alcqpabp93 {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.65;
        transform: scale(0.97);
    }
}

.blink-payable-value[b-alcqpabp93] {
    animation: premium-pulse-blink-b-alcqpabp93 1.8s infinite ease-in-out;
    display: inline-block;
}

.btn-dotted-add[b-alcqpabp93] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px dashed #0f678f !important;
    background: #fff !important;
    color: #0f678f !important;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 20px;
    padding: 8px 32px;
    box-shadow: none;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-dotted-add:hover[b-alcqpabp93] {
    background: rgba(15, 103, 143, 0.04) !important;
    border-color: #0d587a !important;
    color: #0d587a !important;
    transform: translateY(-1.5px);
}

.btn-dotted-add:active[b-alcqpabp93] {
    transform: translateY(0);
}

.purchase-bill-fields select.premium-input[b-alcqpabp93] {
    -webkit-appearance: auto !important;
    appearance: auto !important;
    background-image: none !important;
    padding-right: 24px !important;
}

/* Table Specific Styles */
.items-main-card .table-responsive[b-alcqpabp93] {
    padding-right: 0 !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    max-height: calc(100vh - 270px) !important;
    position: relative !important;
}

.items-table[b-alcqpabp93] {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.items-table thead[b-alcqpabp93] {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
}

.items-table th[b-alcqpabp93],
.items-table thead tr th[b-alcqpabp93],
table.table.items-table thead tr th[b-alcqpabp93] {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    background: #f8fafc !important;
    color: #1e293b !important;
    white-space: nowrap !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    padding: 12px 16px !important;
    border-bottom: 2px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

.items-table td[b-alcqpabp93] {
    white-space: normal !important;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.8rem !important;
    padding: 3px 6px !important;
}

/* Premium Modal Styles for Vendor */
.modal-card[b-alcqpabp93] {
    border-radius: 24px !important;
    border: none !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
    background: #fff;
}

.modal-header-bar[b-alcqpabp93] {
    background: #fff !important;
    color: #333 !important;
    padding: 24px 32px !important;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-left[b-alcqpabp93] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-badge[b-alcqpabp93] {
    background: var(--sidebar-bg);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.modal-title[b-alcqpabp93] {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
}

.modal-subtitle[b-alcqpabp93] {
    font-size: 0.85rem;
    color: #64748b;
}

.btn-close-modal[b-alcqpabp93] {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}

.btn-close-modal:hover[b-alcqpabp93] {
    background: #e2e8f0;
    color: #1e293b;
}

/* Branch Selector Button in Modal Header */
.branch-selector-container[b-alcqpabp93] {
    position: relative;
}



.modal-inner[b-alcqpabp93] {
    padding: 16px 32px !important;
    background: #fff;
}

.form-section-header[b-alcqpabp93] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    margin-top: 4px;
}

.form-section-icon[b-alcqpabp93] {
    background: var(--sidebar-bg);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.form-section-title[b-alcqpabp93] {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #025091;
}

.form-grid[b-alcqpabp93] {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.col-prefix[b-alcqpabp93] {
    grid-column: span 3;
}

.col-main[b-alcqpabp93] {
    grid-column: span 9;
}

.col-2[b-alcqpabp93] {
    grid-column: span 2;
}

.col-3[b-alcqpabp93] {
    grid-column: span 3;
}

.col-4[b-alcqpabp93] {
    grid-column: span 4;
}

.col-5[b-alcqpabp93] {
    grid-column: span 5;
}

.col-6[b-alcqpabp93] {
    grid-column: span 6;
}

.col-7[b-alcqpabp93] {
    grid-column: span 7;
}

.col-8[b-alcqpabp93] {
    grid-column: span 8;
}

.col-9[b-alcqpabp93] {
    grid-column: span 9;
}

.col-10[b-alcqpabp93] {
    grid-column: span 10;
}

.col-11[b-alcqpabp93] {
    grid-column: span 11;
}

.col-12[b-alcqpabp93] {
    grid-column: span 12;
}

.field-group[b-alcqpabp93] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-label[b-alcqpabp93] {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 2px;
}

.field-label.required[b-alcqpabp93]::after {
    content: " *";
    color: #ef4444;
}

.premium-input[b-alcqpabp93] {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 0.88rem !important;
    color: #4b5563 !important;
    transition: all 0.2s !important;
    height: auto !important;
}

.premium-input[b-alcqpabp93]::placeholder {
    color: #cbd5e1 !important;
    opacity: 1 !important;
}

.premium-input:focus[b-alcqpabp93] {
    background: #fff !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1) !important;
    outline: none !important;
}

.modal-footer-actions[b-alcqpabp93] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.btn-delete-text[b-alcqpabp93] {
    color: #ef4444;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-delete-text:hover[b-alcqpabp93] {
    background: #fef2f2;
}

.btn-save-premium[b-alcqpabp93] {
    background: #1c9f5f;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(28, 159, 95, 0.3);
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-save-premium:hover[b-alcqpabp93] {
    background: #168a52;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(28, 159, 95, 0.4);
}

.btn-save-premium:active[b-alcqpabp93] {
    transform: translateY(0);
}

.btn-save-premium:disabled[b-alcqpabp93] {
    opacity: 0.6;
    cursor: not-allowed;
}


/* Financial Summary Card Styles */
.financial-summary-card[b-alcqpabp93] {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    padding: 1.5rem;
    font-family: 'Inter', 'Outfit', sans-serif;
}

.financial-summary-header[b-alcqpabp93] {
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.financial-summary-row[b-alcqpabp93] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.financial-summary-label[b-alcqpabp93] {
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.financial-summary-value[b-alcqpabp93] {
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
}

.financial-summary-input[b-alcqpabp93] {
    width: 80px;
    height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: #334155;
    outline: none;
    transition: all 0.2s;
    background: #ffffff;
}

.financial-summary-input:focus[b-alcqpabp93] {
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.financial-summary-net[b-alcqpabp93] {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.financial-summary-net-label[b-alcqpabp93] {
    color: #0f172a;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.financial-summary-net-value[b-alcqpabp93] {
    color: #4f46e5;
    font-weight: 800;
    font-size: 1.4rem;
}

/* Purchase Entry Master Compact Summary Card */
.compact-summary-card[b-alcqpabp93] {
    border-radius: 14px;
    padding: 1.25rem 1.4rem;
    border: 1.5px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.compact-summary-card[b-alcqpabp93]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #6366f1, #06b6d4);
    border-radius: 14px 0 0 14px;
}

.compact-summary-card:hover[b-alcqpabp93] {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
}

/* Physical Bill Totals - Blue-indigo gradient */
.compact-summary-card.bill-card[b-alcqpabp93] {
    background: linear-gradient(135deg, #eef2ff 0%, #f0fdff 100%);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02);
}

.compact-summary-card.bill-card[b-alcqpabp93]::before {
    background: linear-gradient(180deg, #6366f1, #06b6d4);
}

/* Computed Items Total - Teal-green gradient */
.compact-summary-card.items-card[b-alcqpabp93] {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 100%);
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.08);
}

.compact-summary-card.items-card[b-alcqpabp93]::before {
    background: linear-gradient(180deg, #10b981, #06b6d4);
}

.compact-summary-card.items-card:hover[b-alcqpabp93] {
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.18);
}

.compact-summary-header[b-alcqpabp93] {
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed rgba(37, 99, 235, 0.25);
    padding-left: 8px;
}

.compact-summary-card.items-card .compact-summary-header[b-alcqpabp93] {
    color: #10b981;
    border-bottom-color: rgba(16, 185, 129, 0.25);
}

.compact-summary-row[b-alcqpabp93] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding-left: 8px;
}

.compact-summary-label[b-alcqpabp93] {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.compact-summary-value[b-alcqpabp93] {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
}

.compact-summary-input[b-alcqpabp93] {
    width: 110px;
    height: 30px;
    border-radius: 8px;
    border: 1.5px solid rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.8);
    text-align: right;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0 10px;
    color: #1e293b;
}

.compact-summary-input:focus[b-alcqpabp93] {
    outline: none;
    border-color: #64748b;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: #fff;
}

.compact-summary-net[b-alcqpabp93] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    padding-left: 8px;
    border-top: 1.5px solid rgba(99, 102, 241, 0.2);
}

.compact-summary-card.items-card .compact-summary-net[b-alcqpabp93] {
    border-top-color: rgba(16, 185, 129, 0.2);
}

.compact-summary-net-label[b-alcqpabp93] {
    font-size: 0.8rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compact-summary-net-value[b-alcqpabp93] {
    font-size: 1.3rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: -0.5px;
}

.compact-summary-card.items-card .compact-summary-net-value[b-alcqpabp93] {
    color: #10b981;
}

/* Stock Indent Status Badges */
.badge-indent-pending[b-alcqpabp93] {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #d97706 !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

.badge-indent-approved[b-alcqpabp93] {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #059669 !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

.badge-indent-rejected[b-alcqpabp93] {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #dc2626 !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

/* Stock volume indicators */
.badge-stock-high[b-alcqpabp93] {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #059669 !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

.badge-stock-low[b-alcqpabp93] {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #d97706 !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

.badge-stock-empty[b-alcqpabp93] {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #dc2626 !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

/* OVERRIDE FOR HIGH-DENSITY PURCHASE BILL FORM (e.g. ItemMaster Modal) */
.purchase-bill-fields .premium-segmented-control-joined[b-alcqpabp93] {
    height: 32px !important;
    border-radius: 6px !important;
    max-width: none !important;
}

.purchase-bill-fields .segment-btn-joined[b-alcqpabp93] {
    font-size: 0.8rem !important;
}

.purchase-bill-fields .segment-btn-joined:first-child[b-alcqpabp93] {
    border-right: 1px solid #e2e8f0 !important;
}

/* Tabular Grid/Real Table styling for purchase details table */
.purchase-items-table-wrapper table[b-alcqpabp93] {
    border-collapse: collapse !important;
    border: 1px solid #cbd5e1 !important;
    width: 100%;
}

.purchase-items-table-wrapper th[b-alcqpabp93],
.purchase-items-table-wrapper td[b-alcqpabp93] {
    border: 1px solid #cbd5e1 !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

.purchase-items-table-header th[b-alcqpabp93] {
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    padding: 10px 8px !important;
    font-weight: 700;
    font-size: 0.72rem;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #0273b2 !important;
}

.purchase-items-table-wrapper .purchase-item-input[b-alcqpabp93],
.purchase-items-table-wrapper .purchase-item-select[b-alcqpabp93] {
    width: 100% !important;
    height: 34px !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 8px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background: transparent !important;
}

.purchase-items-table-wrapper .purchase-item-input:focus[b-alcqpabp93],
.purchase-items-table-wrapper .purchase-item-select:focus[b-alcqpabp93] {
    background: #f4f8fa !important;
    box-shadow: inset 0 0 0 2px rgba(2, 115, 178, 0.2) !important;
}

.purchase-items-table-wrapper .purchase-item-readonly[b-alcqpabp93] {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    width: 100% !important;
    height: 34px !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 8px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background-color: #f8fafc !important;
    font-weight: 600;
}

.purchase-items-table-wrapper td.purchase-items-table-footer-cell[b-alcqpabp93] {
    padding: 16px 24px !important;
}
:root[b-alcqpabp93] {
    --sidebar-bg: #f4f7fc;
    --sidebar-hover: #eaeff8;
    --sidebar-active: linear-gradient(90deg, rgba(79, 70, 229, 0.14) 0%, rgba(79, 70, 229, 0.04) 100%);
    --sidebar-active-text: #4338ca;
    --sidebar-text: #334155;
    --sidebar-border: #e2e8f0;
    --accent-blue: #4f46e5;
    --text-muted: #64748b;
    --sidebar-width: 220px;
    --sidebar-collapsed-width: 80px;
}

html[b-alcqpabp93],
body[b-alcqpabp93] {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background-color: #f8fafc !important;
}

body[b-alcqpabp93] {
    font-family: 'Inter', 'Roboto', 'Segoe UI', sans-serif;
    font-size: 13px;
}

.page[b-alcqpabp93] {
    display: flex;
    height: 100vh;
    width: 100vw;
    background: transparent;
}

main[b-alcqpabp93] {
    flex: 1;
    overflow-y: auto;
    background: transparent !important;
    display: flex;
    flex-direction: column;
}

.sidebar[b-alcqpabp93] {
    background-color: var(--sidebar-bg);
    width: var(--sidebar-width);
    min-width: var(--sidebar-collapsed-width);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    color: var(--sidebar-text);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.02);
    border-right: 1px solid var(--sidebar-border);
    z-index: 100;
    overflow: visible;
    /* Need visible for floating overlapping button */
    position: relative;
}

.sidebar.collapsed[b-alcqpabp93] {
    width: var(--sidebar-collapsed-width);
}

/* Sidebar Header */
.sidebar-header[b-alcqpabp93] {
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5.5rem;
    white-space: nowrap;
    border-bottom: 1px solid var(--sidebar-border);
    position: relative;
    /* relative for floating toggle */
}

.sidebar.collapsed .sidebar-header[b-alcqpabp93] {
    padding: 0;
    justify-content: center;
}

.sidebar-brand[b-alcqpabp93] {
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s ease;
}

.sidebar.collapsed .sidebar-brand[b-alcqpabp93] {
    gap: 0;
    justify-content: center;
}

.logo-box[b-alcqpabp93] {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.logo-box svg[b-alcqpabp93] {
    color: #ffffff;
}

.sidebar.collapsed .logo-box[b-alcqpabp93] {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.sidebar-brand-text[b-alcqpabp93] {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand-icon[b-alcqpabp93] {
    text-shadow: 0 0 15px rgba(79, 70, 229, 0.15);
}

.brand-title[b-alcqpabp93] {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.25;
    letter-spacing: -0.1px;
    white-space: normal;
    max-width: 125px;
}

.brand-title span.accent-text[b-alcqpabp93] {
    color: #4f46e5 !important;
    font-weight: 800;
}

.brand-subtitle[b-alcqpabp93] {
    font-size: 0.62rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 1px;
}

.collapsed .sidebar-brand-text[b-alcqpabp93] {
    opacity: 0;
    transform: translateX(-10px);
    pointer-events: none;
    width: 0;
    overflow: hidden;
}

.sidebar-toggle[b-alcqpabp93] {
    position: absolute;
    right: -14px;
    /* floats half outside the sidebar */
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border: 1px solid #dbeafe !important;
    color: #4f46e5 !important;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.15) !important;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-toggle:hover[b-alcqpabp93] {
    background: #f8fafc;
    transform: translateY(-50%) scale(1.08);
}

.sidebar-toggle i[b-alcqpabp93] {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Nav Category Removed as requested */

/* Nav Links */
.nav-scrollable[b-alcqpabp93] {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

.nav-scrollable[b-alcqpabp93]::-webkit-scrollbar {
    width: 5px;
}

.nav-scrollable[b-alcqpabp93]::-webkit-scrollbar-track {
    background: transparent;
}

.nav-scrollable[b-alcqpabp93]::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.nav-section-title[b-alcqpabp93] {
    font-size: 0.66rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 0.9rem 1.5rem 0.2rem 24px;
    margin-top: 0.1rem;
}

.collapsed .nav-section-title[b-alcqpabp93] {
    display: none;
}

.nav-item[b-alcqpabp93] {
    padding: 0 16px 0 0;
    margin-bottom: 0.15rem;
}

.nav-link[b-alcqpabp93] {
    display: flex;
    align-items: center;
    padding: 0.45rem 0.8rem 0.45rem 24px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    color: var(--sidebar-text) !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    white-space: nowrap;
    background: transparent !important;
    border-left: 3.5px solid transparent;
}

.nav-link:hover[b-alcqpabp93] {
    color: var(--sidebar-active-text) !important;
    background: var(--sidebar-hover) !important;
}

.nav-link.active[b-alcqpabp93] {
    color: var(--sidebar-active-text) !important;
    background: var(--sidebar-active) !important;
    border-left-color: #4f46e5 !important;
    font-weight: 700;
}

.nav-link span[b-alcqpabp93] {
    transition: opacity 0.3s, transform 0.3s;
    opacity: 1;
    font-size: 0.78rem;
    font-weight: 600;
}

.collapsed .nav-link span[b-alcqpabp93] {
    opacity: 0;
    pointer-events: none;
    width: 0;
    display: inline-block;
    overflow: hidden;
}

/* Icon Box Style */
.icon-box[b-alcqpabp93] {
    width: 30px;
    height: 30px;
    min-width: 30px;
    background: transparent;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.7rem;
    transition: all 0.2s ease;
    color: #475569;
    font-size: 0.95rem;
}

.nav-link:hover .icon-box[b-alcqpabp93] {
    color: var(--sidebar-active-text) !important;
}

.nav-link.active .icon-box[b-alcqpabp93] {
    color: #4f46e5 !important;
}

.collapsed .icon-box[b-alcqpabp93] {
    margin-right: 0;
}

.collapsed .nav-item[b-alcqpabp93] {
    padding: 0 10px 0 0;
}

.collapsed .nav-link[b-alcqpabp93] {
    justify-content: center;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-left: 3px solid transparent;
    padding: 0.48rem 0;
}

.collapsed .nav-link.active[b-alcqpabp93] {
    background: rgba(2, 101, 158, 0.12) !important;
    color: #02659e !important;
    border-left: 3px solid #02659e !important;
}

/* Main Content */
.content[b-alcqpabp93] {
    padding: 0.25rem 2rem 2rem 2rem;
    background: transparent !important;
}

.card[b-alcqpabp93] {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}



/* Blue Shade Form Theme */
.bg-blue-soft[b-alcqpabp93] {
    background-color: #f0f7ff !important;
}

.card-blue-shade[b-alcqpabp93] {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e1e9f4 !important;
}

.form-control-blue[b-alcqpabp93] {
    background-color: #f4f8fb !important;
    border: 1px solid #e1e9f4 !important;
    transition: all 0.3s;
}

.form-control-blue:focus[b-alcqpabp93] {
    background-color: #ffffff !important;
    border-color: #006092 !important;
    box-shadow: 0 0 0 4px rgba(0, 96, 146, 0.1);
}

/* Premium Notification System */
.notification-container[b-alcqpabp93] {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 14px;
    pointer-events: none;
    perspective: 1000px;
}

.notification-item[b-alcqpabp93] {
    pointer-events: auto;
    min-width: 320px;
    max-width: 480px;
    padding: 0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 20px 40px -10px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: premiumSlideIn-b-alcqpabp93 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.3s ease;
}

.notification-item:hover[b-alcqpabp93] {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.18);
}

@keyframes premiumSlideIn-b-alcqpabp93 {
    0% {
        transform: translateX(120%) rotateY(-20deg);
        opacity: 0;
    }

    100% {
        transform: translateX(0) rotateY(0);
        opacity: 1;
    }
}

.notification-inner[b-alcqpabp93] {
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.notification-content[b-alcqpabp93] {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: -0.01em;
}

.notification-icon-wrap[b-alcqpabp93] {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Theme Variations */
.notification-item.success .notification-icon-wrap[b-alcqpabp93] {
    background: #10b981;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.notification-item.error .notification-icon-wrap[b-alcqpabp93] {
    background: #ef4444;
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.notification-item.warning .notification-icon-wrap[b-alcqpabp93] {
    background: #f59e0b;
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.notification-item.info .notification-icon-wrap[b-alcqpabp93] {
    background: #3b82f6;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.notification-item.success[b-alcqpabp93] {
    border-left: 4px solid #10b981;
}

.notification-item.error[b-alcqpabp93] {
    border-left: 4px solid #ef4444;
}

.notification-item.warning[b-alcqpabp93] {
    border-left: 4px solid #f59e0b;
}

.notification-item.info[b-alcqpabp93] {
    border-left: 4px solid #3b82f6;
}

.notification-text[b-alcqpabp93] {
    color: #1e293b;
}

.notification-close[b-alcqpabp93] {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: #64748b;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.notification-close:hover[b-alcqpabp93] {
    background: rgba(0, 0, 0, 0.1);
    color: #1e293b;
    transform: rotate(90deg);
}

/* Progress Bar */
.notification-progress[b-alcqpabp93] {
    height: 3px;
    width: 100%;
    background: rgba(0, 0, 0, 0.03);
}

.notification-progress-bar[b-alcqpabp93] {
    height: 100%;
    width: 100%;
    background: currentColor;
    opacity: 0.6;
    animation: notificationProgress-b-alcqpabp93 5s linear forwards;
}

@keyframes notificationProgress-b-alcqpabp93 {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

.notification-item.success .notification-progress-bar[b-alcqpabp93] {
    color: #10b981;
}

.notification-item.error .notification-progress-bar[b-alcqpabp93] {
    color: #ef4444;
}

.notification-item.warning .notification-progress-bar[b-alcqpabp93] {
    color: #f59e0b;
}

.notification-item.info .notification-progress-bar[b-alcqpabp93] {
    color: #3b82f6;
}

/* Add Item Page Styles */
.ai-page[b-alcqpabp93] {
    min-height: 100vh;
    background: linear-gradient(180deg, #eff6fb 0%, #e2edf6 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    overflow-y: auto;
}

.ai-shell[b-alcqpabp93] {
    width: 100%;
    display: flex;
    justify-content: center;
}

.ai-card[b-alcqpabp93] {
    width: 100%;
    max-width: 650px;
    background: #ffffff;
    border-radius: 16px;
    border: 0;
    box-shadow: 0 22px 55px rgba(3, 26, 46, 0.16);
    overflow: hidden;
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
}

.ai-header[b-alcqpabp93] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.1rem;
    background: linear-gradient(90deg, #0f678f 0%, #0b5777 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-head-left[b-alcqpabp93] {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.ai-badge[b-alcqpabp93] {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.ai-title[b-alcqpabp93] {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.1px;
    line-height: 1.1;
    font-size: 1.1rem;
}

.ai-subtitle[b-alcqpabp93] {
    display: none;
}

.ai-body[b-alcqpabp93] {
    padding: .95rem .85rem 1rem;
    overflow-y: auto;
    flex: 1;
}

.ai-form-wrap[b-alcqpabp93] {
    max-width: 500px;
    margin: 0 auto;
}

.ai-section[b-alcqpabp93] {
    background: linear-gradient(180deg, #ffffff 0%, #fcfeff 100%);
    border: 1px solid #dce9f4;
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.ai-row[b-alcqpabp93] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ai-row.full-width[b-alcqpabp93] {
    grid-column: span 2;
}

.ai-label[b-alcqpabp93] {
    padding-top: 0;
    font-weight: 700;
    color: #0b5777;
    font-size: .72rem;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.ai-field[b-alcqpabp93] {
    width: 100%;
}

.ai-input[b-alcqpabp93],
.ai-select[b-alcqpabp93],
.ai-textarea[b-alcqpabp93] {
    border: 1px solid #e6eef8;
    border-radius: 8px;
    padding: .4rem .6rem;
    min-height: 32px;
    background: #fbfdff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    font-size: .85rem;
    width: 100%;
    max-width: 280px;
}

.ai-textarea[b-alcqpabp93] {
    max-width: 100%;
    height: auto;
    min-height: 78px;
    padding-top: .6rem;
}

.ai-input:focus[b-alcqpabp93],
.ai-select:focus[b-alcqpabp93],
.ai-textarea:focus[b-alcqpabp93] {
    border-color: #0aa06a;
    box-shadow: 0 6px 20px rgba(10, 160, 106, 0.06);
    outline: none;
    background: #fff;
}

.btn-accent[b-alcqpabp93] {
    background: #009b63;
    color: #fff;
    border: 1px solid #078a57;
    padding: .55rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(3, 130, 90, 0.12);
}

.btn-accent:hover[b-alcqpabp93] {
    transform: translateY(-2px);
}

.ai-actions[b-alcqpabp93] {
    display: flex;
    justify-content: center;
    gap: .75rem;
    margin-top: .85rem;
}

.ai-action-btn[b-alcqpabp93] {
    min-width: 120px;
    padding: .62rem 1.2rem;
    border-radius: 10px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .ai-row[b-alcqpabp93] {
        grid-template-columns: 1fr;
    }

    .ai-label[b-alcqpabp93] {
        padding-top: 0;
    }

    .ai-card[b-alcqpabp93] {
        max-height: none;
    }

    .ai-card[b-alcqpabp93] {
        max-width: 96vw;
    }
}



/* Modal Styles */
.modal-overlay[b-alcqpabp93] {
    position: fixed;
    inset: 0;
    background: rgba(8, 25, 40, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1050;
    overflow-y: auto;
    animation: modalFadeIn-b-alcqpabp93 0.3s ease-out forwards;
}

.modal-card[b-alcqpabp93] {
    width: min(1100px, 96%);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(3, 26, 46, 0.28);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 3rem);
    animation: modalScaleIn-b-alcqpabp93 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-header-bar[b-alcqpabp93] {
    background: linear-gradient(90deg, #0f678f 0%, #0b5777 100%);
    color: #fff;
    padding: 1.05rem 1.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.modal-header-left[b-alcqpabp93] {
    display: flex;
    align-items: center;
    gap: .9rem;
}

.modal-badge[b-alcqpabp93] {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .12);
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
}

.modal-title[b-alcqpabp93] {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
}

.modal-subtitle[b-alcqpabp93] {
    font-size: .92rem;
    color: rgba(255, 255, 255, .88);
    margin-top: .15rem;
}

.modal-inner[b-alcqpabp93] {
    padding: 0.5rem 1rem 0.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    overflow-y: auto;
    flex: 1;
}

.modal-form-wrap[b-alcqpabp93] {
    max-width: 100%;
    margin: 0 auto;
}

.modal-section[b-alcqpabp93] {
    background: #fff;
    border: 1px solid #dce9f4;
    border-radius: 12px;
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.modal-row[b-alcqpabp93] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.modal-row.full-width[b-alcqpabp93] {
    grid-column: span 2;
}

.modal-label[b-alcqpabp93] {
    padding-top: 0;
    font-size: .72rem;
    font-weight: 700;
    color: #0b5777;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.modal-field[b-alcqpabp93] {
    width: 100%;
}

.modal-input[b-alcqpabp93],
.modal-select[b-alcqpabp93],
.modal-textarea[b-alcqpabp93] {
    border: 1px solid #e6eef8;
    border-radius: 8px;
    background: #fbfdff;
    min-height: 32px;
    padding: .4rem .6rem;
    width: 100%;
    max-width: 250px;
    font-size: .85rem;
}

.modal-textarea[b-alcqpabp93] {
    max-width: 100%;
    min-height: 64px;
    resize: vertical;
}

.modal-actions[b-alcqpabp93] {
    display: flex;
    justify-content: center;
    gap: .75rem;
    margin-top: 1.2rem;
}

.modal-action-btn[b-alcqpabp93] {
    min-width: 130px;
    padding: .65rem 1.25rem;
    border-radius: 10px;
    font-weight: 700;
}

/* Popup Styles */
.action-popup-overlay[b-alcqpabp93] {
    position: fixed;
    inset: 0;
    background: rgba(8, 25, 40, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1200;
    animation: modalFadeIn-b-alcqpabp93 0.25s ease-out forwards;
}

.action-popup-card[b-alcqpabp93] {
    width: min(420px, 96%);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #cfe4f2;
    box-shadow: 0 16px 36px rgba(3, 26, 46, 0.28);
    animation: modalScaleIn-b-alcqpabp93 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalFadeIn-b-alcqpabp93 {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalScaleIn-b-alcqpabp93 {
    from {
        transform: scale(0.95) translateY(12px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.action-popup-header[b-alcqpabp93] {
    background: #ffffff;
    color: #0f172a;
    padding: .9rem 1.2rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-family: 'Inter', 'Roboto', 'Segoe UI', sans-serif;
}

.action-popup-body[b-alcqpabp93] {
    padding: 1rem;
    background: #f2f9ff;
    color: #0d3f5b;
    font-size: .96rem;
}

.action-popup-actions[b-alcqpabp93] {
    display: flex;
    justify-content: flex-end;
    gap: .6rem;
    padding: .85rem 1rem 1rem;
    background: #f2f9ff;
    border-top: 1px solid #d5e9f7;
}

.popup-btn[b-alcqpabp93] {
    min-width: 88px;
    border-radius: 8px;
    font-weight: 700;
    border: 1px solid transparent;
    padding: .45rem .9rem;
}

.popup-btn-cancel[b-alcqpabp93] {
    background: #fff;
    color: #0f172a;
    border-color: rgba(49, 46, 129, 0.35);
    transition: all 0.2s ease;
}

.popup-btn-cancel:hover[b-alcqpabp93] {
    background: #f0f3ff;
    color: #1e1b4b;
    border-color: rgba(49, 46, 129, 0.6);
}

.popup-btn-delete[b-alcqpabp93] {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
    transition: all 0.2s ease;
}

.popup-btn-delete:hover[b-alcqpabp93] {
    background: #dc2626;
    border-color: #dc2626;
}

.popup-btn-ok[b-alcqpabp93] {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
    transition: all 0.2s ease;
}

.popup-btn-ok:hover[b-alcqpabp93] {
    background: #2563eb;
    border-color: #2563eb;
}

@media (max-width: 768px) {
    .modal-row[b-alcqpabp93] {
        grid-template-columns: 1fr;
        gap: .4rem;
    }

    .modal-card[b-alcqpabp93] {
        max-height: calc(100vh - 3rem);
        width: min(96%, 900px);
    }
}

@media (max-width: 576px) {

    .items-title-wrap[b-alcqpabp93],
    .items-search[b-alcqpabp93],
    .view-toggle[b-alcqpabp93],
    .add-item-btn[b-alcqpabp93] {
        width: 92vw;
        justify-content: center;
    }

    .view-toggle button[b-alcqpabp93] {
        width: 50%;
    }
}

.display-controls[b-alcqpabp93] {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    justify-content: flex-end;
}



.total-count-text[b-alcqpabp93] {
    color: #4b5563;
    font-weight: 700;
    font-size: 0.95rem;
    margin-right: 0mm;
}

.pagination-bar[b-alcqpabp93] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-right: 1.5rem !important;
}

.page-btn[b-alcqpabp93] {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #4b5563;
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.page-btn:hover:not(:disabled)[b-alcqpabp93] {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.page-btn.active[b-alcqpabp93] {
    background: #02659e !important;
    color: #ffffff !important;
    border-color: #02659e !important;
}

.page-btn:disabled[b-alcqpabp93] {
    opacity: 0.4;
    cursor: not-allowed;
}



/* Purchase Bill Layout Styles */


/* FLAT, CLEAN, PERFECTLY ALIGNED BRAND STYLE */
.dashboard-page[b-alcqpabp93] {
    min-height: calc(100vh - 56px);
    background-color: #f8fafc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.dashboard-container[b-alcqpabp93] {
    max-width: 1400px;
    margin: 0 auto;
}

.text-dark-blue[b-alcqpabp93] {
    color: #025091;
}

/* KPI CARDS STYLING */
.kpi-card[b-alcqpabp93] {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.kpi-card:hover[b-alcqpabp93] {
    transform: translateY(-2px);
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

.kpi-label[b-alcqpabp93] {
    font-size: 0.68rem;
    letter-spacing: 0.8px;
    color: #64748b !important;
}

.kpi-value[b-alcqpabp93] {
    font-size: 1.45rem;
    letter-spacing: -0.5px;
}

.kpi-icon-box[b-alcqpabp93] {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* SOLID COLOR BACKGROUND ACCENTS */
.bg-blue-light[b-alcqpabp93] {
    background-color: #eff6ff;
}

.bg-green-light[b-alcqpabp93] {
    background-color: #f0fdf4;
}

.bg-purple-light[b-alcqpabp93] {
    background-color: #faf5ff;
}

.bg-orange-light[b-alcqpabp93] {
    background-color: #fff7ed;
}

/* CARD SYSTEM */
.card[b-alcqpabp93] {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
    transition: none;
}

.card:hover[b-alcqpabp93] {
    transform: none;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
}

.card-header[b-alcqpabp93] {
    border-bottom: 1px solid #e2e8f0 !important;
}

/* ALIGNED HIGH DENSITY TABLES */
.table th[b-alcqpabp93] {
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
    letter-spacing: 0.5px;
    padding: 10px 12px;
}

.table td[b-alcqpabp93] {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.78rem;
}

.table tr:last-child td[b-alcqpabp93] {
    border-bottom: none;
}

.bg-danger-soft[b-alcqpabp93] {
    background-color: #fef2f2;
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

/* ALIGNMENT UTILS */
.fs-7[b-alcqpabp93] {
    font-size: 0.8rem !important;
}

.fs-8[b-alcqpabp93] {
    font-size: 0.72rem !important;
}

.fs-9[b-alcqpabp93] {
    font-size: 0.6rem !important;
}

.btn-xs[b-alcqpabp93] {
    font-size: 0.7rem;
    padding: 2px 8px;
}

.btn-outline-primary[b-alcqpabp93] {
    border-color: #025091;
    color: #025091;
}

.btn-outline-primary:hover[b-alcqpabp93] {
    background-color: #025091;
    color: #fff;
}

/* Custom high-density scrollbars */
[b-alcqpabp93]::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

[b-alcqpabp93]::-webkit-scrollbar-track {
    background: transparent;
}

[b-alcqpabp93]::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

[b-alcqpabp93]::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Premium Custom Segmented Control Joined Styles */
.premium-segmented-control-joined[b-alcqpabp93] {
    display: flex;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    height: 46px;
    width: 100%;
    max-width: 200px;
    /* Reduced width for a neat, compact look */
    box-sizing: border-box;
    overflow: hidden;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.premium-segmented-control-joined:hover[b-alcqpabp93] {
    border-color: #cbd5e1;
}

.segment-btn-joined[b-alcqpabp93] {
    flex: 1;
    border: none;
    background: transparent;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.segment-btn-joined:first-child[b-alcqpabp93] {
    border-right: 1px solid #e2e8f0;
}

.segment-btn-joined:hover:not(.active)[b-alcqpabp93] {
    background: #f1f5f9;
    color: #0f172a;
}

/* State-Dependent Colors */
.segment-btn-joined.btn-false.active[b-alcqpabp93] {
    background: #64748b !important;
    /* Premium Slate Gray for False/Off state */
    color: white !important;
}

.segment-btn-joined.btn-true.active[b-alcqpabp93] {
    background: #006b3c !important;
    /* Premium Deep Green for True/On state */
    color: white !important;
}



/* Premium Action Buttons Outline Styling */
.action-btn[b-alcqpabp93] {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    cursor: pointer !important;
    margin: 0 2px !important;
    background: #ffffff !important;
    color: #94a3b8 !important;
}

.action-btn:hover[b-alcqpabp93] {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}

.action-btn i[b-alcqpabp93] {
    font-size: 0.85rem !important;
}

/* Schedule Checkboxes styling */
.schedule-checkboxes-group[b-alcqpabp93] {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.schedule-check-item[b-alcqpabp93] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    margin: 0;
}

.schedule-check-input[b-alcqpabp93] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid #cbd5e1;
    border-radius: 4px;
    outline: none;
    background-color: #fff;
    cursor: pointer;
    display: grid;
    place-content: center;
    transition: all 0.2s ease;
    margin: 0;
}

.schedule-check-input:hover[b-alcqpabp93] {
    border-color: #02659e;
    box-shadow: 0 0 0 3px rgba(2, 101, 158, 0.15);
}

.schedule-check-input:checked[b-alcqpabp93] {
    background-color: #02659e;
    border-color: #02659e;
}

.schedule-check-input:checked[b-alcqpabp93]::before {
    content: "";
    width: 10px;
    height: 10px;
    clip-path: polygon(14% 44%, 0 58%, 38% 96%, 100% 19%, 83% 5%, 38% 68%);
    background-color: white;
}

.schedule-check-label[b-alcqpabp93] {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    user-select: none;
    cursor: pointer;
    transition: color 0.2s ease;
    margin: 0;
}

.schedule-check-item:hover .schedule-check-label[b-alcqpabp93] {
    color: #02659e;
}

/* Report Toolbar & Filter Styling */
.filter-group[b-alcqpabp93] {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    height: 34px;
    padding: 0 12px;
    box-shadow: none;
    transition: all 0.25s ease;
}

.filter-group:focus-within[b-alcqpabp93] {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.filter-label[b-alcqpabp93] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    margin-right: 4px;
}

.filter-label i[b-alcqpabp93] {
    color: #4f46e5;
    font-size: 0.85rem;
}

.filter-select[b-alcqpabp93] {
    border: none;
    background: transparent;
    font-size: 0.78rem;
    font-weight: 600;
    color: #1e293b;
    padding: 0 4px;
    height: 100%;
    outline: none;
    cursor: pointer;
    max-width: 170px;
}

.filter-input-date[b-alcqpabp93] {
    border: none;
    background: transparent;
    font-size: 0.78rem;
    font-weight: 600;
    color: #1e293b;
    padding: 0 4px;
    height: 100%;
    outline: none;
    cursor: pointer;
    width: 125px;
}

.btn-report-preview[b-alcqpabp93] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #4f46e5;
    border: 1.5px solid #6366f1;
    border-radius: 16px;
    padding: 0 14px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
    height: 34px;
}

.btn-report-preview:hover:not(:disabled)[b-alcqpabp93] {
    background: #4f46e5;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
    transform: translateY(-1px);
}

.btn-report-preview:disabled[b-alcqpabp93] {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-report-download[b-alcqpabp93] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #16a34a;
    color: #ffffff;
    border: 1.5px solid #16a34a;
    border-radius: 16px;
    padding: 0 14px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(22, 163, 74, 0.15);
    transition: all 0.2s ease;
    height: 34px;
}

.btn-report-download:hover:not(:disabled)[b-alcqpabp93] {
    background: #15803d;
    border-color: #15803d;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.25);
    transform: translateY(-1px);
}

.btn-report-download:disabled[b-alcqpabp93] {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════════
   DARK MODE OVERRIDES FOR PHARMACY BILLING (SALES MASTER)
   ═══════════════════════════════════════════════════════════════ */
:host-context([data-theme="dark"]) .items-page[b-alcqpabp93],
[data-theme="dark"] .items-page[b-alcqpabp93] {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}

:host-context([data-theme="dark"]) .premium-header-card[b-alcqpabp93],
[data-theme="dark"] .premium-header-card[b-alcqpabp93] {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

:host-context([data-theme="dark"]) .header-card-icon[b-alcqpabp93],
[data-theme="dark"] .header-card-icon[b-alcqpabp93] {
    background: #0f172a !important;
    border-color: #334155 !important;
}

:host-context([data-theme="dark"]) .header-card-heading[b-alcqpabp93],
[data-theme="dark"] .header-card-heading[b-alcqpabp93] {
    color: #f8fafc !important;
}

:host-context([data-theme="dark"]) .header-card-subheading[b-alcqpabp93],
[data-theme="dark"] .header-card-subheading[b-alcqpabp93] {
    color: #38bdf8 !important;
}

:host-context([data-theme="dark"]) .items-search[b-alcqpabp93],
[data-theme="dark"] .items-search[b-alcqpabp93] {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

:host-context([data-theme="dark"]) .view-toggle[b-alcqpabp93],
[data-theme="dark"] .view-toggle[b-alcqpabp93] {
    background: #0f172a !important;
    border-color: #334155 !important;
}

:host-context([data-theme="dark"]) .view-toggle button[b-alcqpabp93],
[data-theme="dark"] .view-toggle button[b-alcqpabp93] {
    color: #94a3b8 !important;
}

:host-context([data-theme="dark"]) .view-toggle button.active[b-alcqpabp93],
[data-theme="dark"] .view-toggle button.active[b-alcqpabp93] {
    background: #1e293b !important;
    color: #38bdf8 !important;
}

:host-context([data-theme="dark"]) .filter-group[b-alcqpabp93],
[data-theme="dark"] .filter-group[b-alcqpabp93] {
    background: #1e293b !important;
    border-color: #334155 !important;
}

:host-context([data-theme="dark"]) .filter-label[b-alcqpabp93],
[data-theme="dark"] .filter-label[b-alcqpabp93] {
    color: #94a3b8 !important;
}

:host-context([data-theme="dark"]) .filter-select[b-alcqpabp93],
:host-context([data-theme="dark"]) .filter-input-date[b-alcqpabp93],
[data-theme="dark"] .filter-select[b-alcqpabp93],
[data-theme="dark"] .filter-input-date[b-alcqpabp93] {
    color: #f8fafc !important;
    background: transparent !important;
}

:host-context([data-theme="dark"]) .btn-report-preview[b-alcqpabp93],
[data-theme="dark"] .btn-report-preview[b-alcqpabp93] {
    background: #1e293b !important;
    color: #818cf8 !important;
    border-color: #64748b !important;
}

:host-context([data-theme="dark"]) .btn-report-preview:hover:not(:disabled)[b-alcqpabp93],
[data-theme="dark"] .btn-report-preview:hover:not(:disabled)[b-alcqpabp93] {
    background: #4f46e5 !important;
    color: #ffffff !important;
}

:host-context([data-theme="dark"]) .items-main-card[b-alcqpabp93],
[data-theme="dark"] .items-main-card[b-alcqpabp93] {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

:host-context([data-theme="dark"]) table.table.items-table thead tr th[b-alcqpabp93],
:host-context([data-theme="dark"]) .items-table th[b-alcqpabp93],
[data-theme="dark"] table.table.items-table thead tr th[b-alcqpabp93],
[data-theme="dark"] .items-table th[b-alcqpabp93] {
    background: #0f172a !important;
    color: #38bdf8 !important;
    border-bottom-color: #334155 !important;
}

:host-context([data-theme="dark"]) .items-table td[b-alcqpabp93],
[data-theme="dark"] .items-table td[b-alcqpabp93] {
    background: #1e293b !important;
    border-bottom-color: #334155 !important;
    color: #cbd5e1 !important;
}

:host-context([data-theme="dark"]) .items-table tr td:first-child[b-alcqpabp93],
[data-theme="dark"] .items-table tr td:first-child[b-alcqpabp93] {
    color: #38bdf8 !important;
}

:host-context([data-theme="dark"]) .items-table tr td.text-primary[b-alcqpabp93],
:host-context([data-theme="dark"]) .items-table tr td .text-primary[b-alcqpabp93],
[data-theme="dark"] .items-table tr td.text-primary[b-alcqpabp93],
[data-theme="dark"] .items-table tr td .text-primary[b-alcqpabp93] {
    color: #38bdf8 !important;
}

:host-context([data-theme="dark"]) .action-btn[b-alcqpabp93],
[data-theme="dark"] .action-btn[b-alcqpabp93] {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #38bdf8 !important;
}

:host-context([data-theme="dark"]) .action-btn:hover[b-alcqpabp93],
[data-theme="dark"] .action-btn:hover[b-alcqpabp93] {
    background: #1e293b !important;
    border-color: #475569 !important;
    color: #7dd3fc !important;
}

:host-context([data-theme="dark"]) .display-controls[b-alcqpabp93],
[data-theme="dark"] .display-controls[b-alcqpabp93] {
    background: #0f172a !important;
    border-top-color: #334155 !important;
}

:host-context([data-theme="dark"]) .total-count-text[b-alcqpabp93],
[data-theme="dark"] .total-count-text[b-alcqpabp93] {
    color: #94a3b8 !important;
}

:host-context([data-theme="dark"]) .page-btn[b-alcqpabp93],
[data-theme="dark"] .page-btn[b-alcqpabp93] {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

:host-context([data-theme="dark"]) .page-btn.active[b-alcqpabp93],
[data-theme="dark"] .page-btn.active[b-alcqpabp93] {
    background: #4f46e5 !important;
    border-color: #4f46e5 !important;
    color: #ffffff !important;
}

:host-context([data-theme="dark"]) .item-card[b-alcqpabp93],
[data-theme="dark"] .item-card[b-alcqpabp93] {
    background: #1e293b !important;
    border-color: #334155 !important;
}

:host-context([data-theme="dark"]) .item-card-head[b-alcqpabp93],
[data-theme="dark"] .item-card-head[b-alcqpabp93] {
    background: #0f172a !important;
    color: #f8fafc !important;
    border-bottom-color: #334155 !important;
}

:host-context([data-theme="dark"]) .item-card-body[b-alcqpabp93],
[data-theme="dark"] .item-card-body[b-alcqpabp93] {
    color: #cbd5e1 !important;
}

:host-context([data-theme="dark"]) .detail-row[b-alcqpabp93],
[data-theme="dark"] .detail-row[b-alcqpabp93] {
    border-bottom-color: #334155 !important;
}

:host-context([data-theme="dark"]) .detail-row span[b-alcqpabp93],
[data-theme="dark"] .detail-row span[b-alcqpabp93] {
    color: #94a3b8 !important;
}

:host-context([data-theme="dark"]) .detail-row strong[b-alcqpabp93],
[data-theme="dark"] .detail-row strong[b-alcqpabp93] {
    color: #f8fafc !important;
}

:host-context([data-theme="dark"]) .modal-card[b-alcqpabp93],
[data-theme="dark"] .modal-card[b-alcqpabp93] {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
}

:host-context([data-theme="dark"]) .modal-header-bar[b-alcqpabp93],
:host-context([data-theme="dark"]) .modal-inner[b-alcqpabp93],
:host-context([data-theme="dark"]) .modal-footer-actions[b-alcqpabp93],
[data-theme="dark"] .modal-header-bar[b-alcqpabp93],
[data-theme="dark"] .modal-inner[b-alcqpabp93],
[data-theme="dark"] .modal-footer-actions[b-alcqpabp93] {
    background: #1e293b !important;
    border-color: #334155 !important;
}

:host-context([data-theme="dark"]) .modal-title[b-alcqpabp93],
[data-theme="dark"] .modal-title[b-alcqpabp93] {
    color: #38bdf8 !important;
}

:host-context([data-theme="dark"]) .premium-input[b-alcqpabp93],
[data-theme="dark"] .premium-input[b-alcqpabp93] {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

:host-context([data-theme="dark"]) .field-label[b-alcqpabp93],
[data-theme="dark"] .field-label[b-alcqpabp93] {
    color: #cbd5e1 !important;
}

:host-context([data-theme="dark"]) .bill-card-premium[b-alcqpabp93],
[data-theme="dark"] .bill-card-premium[b-alcqpabp93] {
    background: #0f172a !important;
    border-color: #334155 !important;
}

:host-context([data-theme="dark"]) .purchase-items-table-wrapper[b-alcqpabp93],
[data-theme="dark"] .purchase-items-table-wrapper[b-alcqpabp93] {
    background: #1e293b !important;
}

:host-context([data-theme="dark"]) .purchase-item-input[b-alcqpabp93],
:host-context([data-theme="dark"]) .purchase-item-select[b-alcqpabp93],
[data-theme="dark"] .purchase-item-input[b-alcqpabp93],
[data-theme="dark"] .purchase-item-select[b-alcqpabp93] {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

:host-context([data-theme="dark"]) .purchase-item-readonly[b-alcqpabp93],
[data-theme="dark"] .purchase-item-readonly[b-alcqpabp93] {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

:host-context([data-theme="dark"]) .custom-typeahead-dropdown[b-alcqpabp93],
[data-theme="dark"] .custom-typeahead-dropdown[b-alcqpabp93] {
    background: #1e293b !important;
    border-color: #334155 !important;
}

:host-context([data-theme="dark"]) .custom-typeahead-item[b-alcqpabp93],
[data-theme="dark"] .custom-typeahead-item[b-alcqpabp93] {
    color: #cbd5e1 !important;
}

:host-context([data-theme="dark"]) .custom-typeahead-item:hover[b-alcqpabp93],
[data-theme="dark"] .custom-typeahead-item:hover[b-alcqpabp93] {
    background: #334155 !important;
    color: #38bdf8 !important;
}

/* Medicine Days Conversion Button & Modal */
.btn-conversion[b-alcqpabp93] {
    background: #0273b2;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 5px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(2, 115, 178, 0.25);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-conversion:hover[b-alcqpabp93] {
    background: #025d91;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 115, 178, 0.35);
    color: #ffffff;
}

.conversion-modal-overlay[b-alcqpabp93] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease-out;
}

.conversion-modal-card[b-alcqpabp93] {
    position: relative;
    background: #ffffff;
    border-radius: 14px;
    width: 90%;
    max-width: 380px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: none;
    animation: slideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.conversion-modal-header[b-alcqpabp93] {
    background: #ffffff;
    padding: 12px 16px;
    color: #0f172a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
}

.conversion-modal-title[b-alcqpabp93] {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0f172a;
    text-transform: uppercase;
    font-family: system-ui, -apple-system, sans-serif;
}

.conversion-modal-title i[b-alcqpabp93] {
    color: #0273b2;
    font-size: 1rem;
}

.conversion-modal-close[b-alcqpabp93] {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    padding: 0;
}

.conversion-modal-close:hover[b-alcqpabp93] {
    background: #fef2f2;
    color: #ef4444;
}

.conversion-modal-body[b-alcqpabp93] {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #ffffff;
}

.conversion-panel-box[b-alcqpabp93] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.conversion-field-row[b-alcqpabp93] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.conversion-field-row.active-field-row[b-alcqpabp93] {
    background: #eff6ff;
    border: 1px dashed #0273b2;
}

.conversion-field-row.converted-field-row[b-alcqpabp93] {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.conversion-label-col[b-alcqpabp93] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 175px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    font-family: system-ui, -apple-system, sans-serif;
    letter-spacing: 0.1px;
}

.conversion-label-col .colon[b-alcqpabp93] {
    margin-left: auto;
    padding-left: 6px;
    font-weight: 800;
    color: #94a3b8;
}

.conversion-value-col[b-alcqpabp93] {
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.conversion-input-feed[b-alcqpabp93] {
    width: 110px;
    height: 28px;
    text-align: right;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: 'Consolas', 'Courier New', monospace;
    color: #334155;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 2px 8px;
}

.conversion-input-feed:focus[b-alcqpabp93] {
    outline: none;
    border-color: #0273b2;
    box-shadow: 0 0 0 2px rgba(2, 115, 178, 0.15);
}

.conversion-input-target[b-alcqpabp93] {
    width: 110px;
    height: 28px;
    text-align: right;
    font-size: 0.95rem;
    font-weight: 800;
    font-family: 'Consolas', 'Courier New', monospace;
    color: #0273b2;
    background: #ffffff;
    border: 1.5px solid #0273b2;
    border-radius: 6px;
    padding: 2px 8px;
    box-shadow: 0 0 0 2px rgba(2, 115, 178, 0.15);
}

.conversion-input-target:focus[b-alcqpabp93] {
    outline: none;
    border-color: #0273b2;
    box-shadow: 0 0 0 3px rgba(2, 115, 178, 0.25);
}

.conversion-amount-box[b-alcqpabp93] {
    width: 110px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 2px 8px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.88rem;
    font-weight: 800;
    border-radius: 6px;
}

.conversion-amount-box.orig-amount[b-alcqpabp93] {
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
}

.conversion-amount-box.converted-amount[b-alcqpabp93] {
    color: #059669;
    background: #d1fae5;
    border: 1px solid #10b981;
    font-size: 0.95rem;
    box-shadow: 0 1px 2px rgba(16, 185, 129, 0.15);
}

.conversion-amount-box .amount-val[b-alcqpabp93] {
    letter-spacing: 0.3px;
}

.conversion-error-alert[b-alcqpabp93] {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
}

.conversion-modal-footer[b-alcqpabp93] {
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    padding: 10px 16px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.btn-conversion-cancel[b-alcqpabp93] {
    background: #ffffff;
    color: #475569;
    border: 1px solid #cbd5e1;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 5px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-conversion-cancel:hover[b-alcqpabp93] {
    background: #f1f5f9;
    color: #1e293b;
}

.btn-conversion-submit[b-alcqpabp93] {
    background: #0273b2;
    color: #ffffff;
    border: none;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 5px 18px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 5px rgba(2, 115, 178, 0.25);
    transition: all 0.15s ease;
}

.btn-conversion-submit:hover[b-alcqpabp93] {
    background: #025d91;
    box-shadow: 0 3px 8px rgba(2, 115, 178, 0.35);
    transform: translateY(-1px);
    color: #ffffff;
}

/* ==========================================================================
   Branch & Counter Compact Toggle Dropdowns in Pharmacy Billing Header
   ========================================================================== */
.branch-selector-container[b-alcqpabp93],
.counter-selector-container[b-alcqpabp93] {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.btn-branch-picker[b-alcqpabp93],
.btn-counter-picker[b-alcqpabp93] {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 2px 10px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.76rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    outline: none;
    user-select: none;
}

.btn-branch-picker:hover[b-alcqpabp93] {
    background: #f8fafc;
    border-color: #818cf8;
    color: #4338ca;
    box-shadow: 0 2px 5px rgba(79, 70, 229, 0.12);
}

.btn-counter-picker:hover[b-alcqpabp93] {
    background: #f8fafc;
    border-color: #38bdf8;
    color: #0284c7;
    box-shadow: 0 2px 5px rgba(2, 132, 199, 0.12);
}

.header-picker-name[b-alcqpabp93] {
    font-weight: 600;
    font-size: 0.76rem;
    letter-spacing: -0.1px;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
}

.header-picker-arrow[b-alcqpabp93] {
    font-size: 0.65rem;
    color: #94a3b8;
    transition: transform 0.15s ease;
    margin-left: 1px;
}

.header-picker-arrow.open[b-alcqpabp93] {
    transform: rotate(180deg);
}

.branch-dropdown-menu[b-alcqpabp93],
.counter-dropdown-menu[b-alcqpabp93] {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    width: 210px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.04);
    z-index: 1200;
    overflow: hidden;
    animation: fadeInDropdown-b-alcqpabp93 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInDropdown-b-alcqpabp93 {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.picker-dropdown-header[b-alcqpabp93] {
    padding: 5px 8px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.branch-dropdown-item[b-alcqpabp93],
.counter-dropdown-item[b-alcqpabp93] {
    padding: 6px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.12s ease;
    border-bottom: 1px solid #f8fafc;
    font-size: 0.76rem;
}

.branch-dropdown-item:last-child[b-alcqpabp93],
.counter-dropdown-item:last-child[b-alcqpabp93] {
    border-bottom: none;
}

.branch-dropdown-item:hover[b-alcqpabp93],
.counter-dropdown-item:hover[b-alcqpabp93] {
    background: #f1f5f9;
}

.branch-dropdown-item.active[b-alcqpabp93] {
    background: #eef2ff;
    color: #4338ca;
    font-weight: 700;
}

.counter-dropdown-item.active[b-alcqpabp93] {
    background: #f0f9ff;
    color: #0284c7;
    font-weight: 700;
}

/* Item Dosage Badge Pill near Item Name - Blue Color */
.item-dosage-badge[b-alcqpabp93] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #eff6ff;
    color: #0284c7;
    border: 1px solid #bae6fd;
    border-radius: 4px;
    padding: 1.5px 6px;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.15;
    margin-top: 2px;
    width: fit-content;
    box-shadow: 0 1px 2px rgba(2, 132, 199, 0.08);
}

.item-dosage-badge i[b-alcqpabp93] {
    font-size: 0.68rem;
    color: #0284c7;
}


/* /Components/Pages/SalesReturn.razor.rz.scp.css */
/* Scoped styles for SalesReturn component */

.items-page[b-qgdn8hpmvf] {
    min-height: 100vh;
    background: transparent !important;
}

.items-shell[b-qgdn8hpmvf] {
    max-width: 1320px;
    margin: 0 auto;
}

.items-content[b-qgdn8hpmvf] {
    width: min(1240px, 100%);
    margin: 0 auto;
    text-align: center;
}

.premium-header-card[b-qgdn8hpmvf] {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-radius: 16px !important;
    padding: 1.25rem 2rem !important;
    color: #1e1b4b !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem !important;
}

.header-card-left[b-qgdn8hpmvf] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-card-icon[b-qgdn8hpmvf] {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

.header-card-icon svg[b-qgdn8hpmvf] {
    stroke: #2563eb !important;
}

.header-card-text[b-qgdn8hpmvf] {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.header-card-heading[b-qgdn8hpmvf] {
    color: #0f172a !important;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
}

.header-card-subheading[b-qgdn8hpmvf] {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b !important;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.status-dot[b-qgdn8hpmvf] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    margin-right: 6px;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
}

.header-card-right[b-qgdn8hpmvf] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.items-search-wrap[b-qgdn8hpmvf] {
    position: relative;
    display: flex;
    align-items: center;
}

.items-search[b-qgdn8hpmvf] {
    width: 280px !important;
    height: 38px !important;
    border-radius: 20px !important;
    border: 1px solid #cbd5e1 !important;
    padding-left: 2.4rem !important;
    font-size: 0.8rem !important;
    background: #ffffff !important;
    color: #1e293b !important;
    box-shadow: none !important;
    transition: all 0.25s ease !important;
}

.items-search:focus[b-qgdn8hpmvf] {
    outline: none !important;
    width: 320px !important;
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

.items-search-icon[b-qgdn8hpmvf] {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
}

.view-toggle[b-qgdn8hpmvf] {
    display: inline-flex;
    border: 1px solid #cbd5e1 !important;
    border-radius: 20px !important;
    overflow: hidden;
    background: #f8fafc !important;
    height: 38px;
    padding: 2px;
    align-items: center;
}

.view-toggle button[b-qgdn8hpmvf] {
    border: 0 !important;
    background: transparent !important;
    color: #64748b !important;
    width: 36px;
    height: 32px;
    border-radius: 16px !important;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle button.active[b-qgdn8hpmvf] {
    background: #ffffff !important;
    color: #4f46e5 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.add-item-btn[b-qgdn8hpmvf] {
    height: 38px !important;
    border-radius: 20px !important;
    background: #4f46e5 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0 1.5rem !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
    transition: all 0.2s ease-in-out !important;
}

.add-item-btn:hover[b-qgdn8hpmvf] {
    background: #3f39c5 !important;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35) !important;
    transform: translateY(-1.5px);
}

.items-main-card[b-qgdn8hpmvf] {
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    overflow: hidden;
    margin-top: 1.5rem !important;
    background: #ffffff !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
}

.items-main-card .table-responsive[b-qgdn8hpmvf] {
    max-height: 550px !important;
    overflow-y: auto !important;
    overflow-x: auto !important;
}

.items-table[b-qgdn8hpmvf] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.items-table tr[b-qgdn8hpmvf] {
    height: 48px !important;
}

table.table.items-table thead tr th[b-qgdn8hpmvf],
.items-table th[b-qgdn8hpmvf] {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    background: #ffffff !important;
    color: #8a99ad !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.74rem !important;
    letter-spacing: 0.8px !important;
    padding: 10px 16px !important;
    height: 44px !important;
    border-bottom: 2px solid #eef2f6 !important;
    text-align: center !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.items-table td[b-qgdn8hpmvf] {
    border-top: none !important;
    border-bottom: 1px solid #eef2f6 !important;
    padding: 10px 16px !important;
    height: 48px !important;
    font-size: 0.8rem !important;
    background: #ffffff !important;
    color: #64748b !important;
    vertical-align: middle !important;
    text-align: center !important;
}

.items-table td:last-child[b-qgdn8hpmvf] {
    white-space: nowrap !important;
    text-align: center !important;
}

.items-table tr td:first-child[b-qgdn8hpmvf] {
    color: #3b82f6 !important;
    font-weight: 700 !important;
}

.action-btn[b-qgdn8hpmvf] {
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    margin: 0 2px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #94a3b8 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.action-btn:hover[b-qgdn8hpmvf] {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}

.action-btn i[b-qgdn8hpmvf] {
    font-size: 0.85rem !important;
}

.items-card-grid[b-qgdn8hpmvf] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
}

.item-card[b-qgdn8hpmvf] {
    background: #ffffff !important;
    border: 1px solid #eef2f6 !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.item-card:hover[b-qgdn8hpmvf] {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(37, 99, 235, 0.25) !important;
}

.item-card-head[b-qgdn8hpmvf] {
    background: #ffffff !important;
    color: #1e293b !important;
    padding: 0.6rem 1rem !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid rgba(99, 102, 241, 0.1) !important;
}

.card-item-code[b-qgdn8hpmvf] {
    color: #4b5563 !important;
    font-weight: 700 !important;
    margin-right: 6px;
}

.card-item-name[b-qgdn8hpmvf] {
    color: #374151 !important;
    font-weight: 700 !important;
}

.item-card-body[b-qgdn8hpmvf] {
    padding: 0.75rem 1rem !important;
    color: #64748b !important;
    font-size: 0.8rem !important;
}

.detail-row[b-qgdn8hpmvf] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0 !important;
    border-bottom: 1px solid #eef2f6 !important;
}

.detail-row:last-child[b-qgdn8hpmvf] {
    border-bottom: none !important;
}

.detail-row span[b-qgdn8hpmvf] {
    color: #8a99ad !important;
    font-weight: 700 !important;
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.detail-row strong[b-qgdn8hpmvf] {
    color: #000000 !important;
    font-weight: 600 !important;
}

.btn-cancel-modal[b-qgdn8hpmvf] {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: none !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    min-width: 100px !important;
    transition: all 0.2s !important;
}

.btn-cancel-modal:hover[b-qgdn8hpmvf] {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.purchase-bill-wrapper[b-qgdn8hpmvf] {
    display: flex;
    gap: 2.25rem;
    flex-wrap: wrap;
}

.purchase-bill-fields[b-qgdn8hpmvf] {
    flex: 1.5;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.purchase-bill-fields .premium-input[b-qgdn8hpmvf] {
    padding: 0 10px !important;
    font-size: 0.8rem !important;
    border-radius: 6px !important;
    height: 32px !important;
    line-height: 32px !important;
    background: #f9fafc !important;
    border: 1px solid #e5e7eb !important;
    color: #1f2937 !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    display: flex !important;
    align-items: center !important;
}

.purchase-bill-fields input[type="date"].premium-input[b-qgdn8hpmvf],
.purchase-bill-fields input.premium-input[b-qgdn8hpmvf] {
    padding: 0 10px !important;
    height: 32px !important;
    line-height: normal !important;
    background: #f9fafc !important;
    border: 1px solid #e5e7eb !important;
}

.purchase-bill-fields .field-group[b-qgdn8hpmvf] {
    gap: 4px;
}

.purchase-bill-fields .field-label[b-qgdn8hpmvf] {
    font-size: 0.68rem !important;
    margin-bottom: 4px !important;
    font-weight: 700 !important;
    color: #374151 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.purchase-bill-fields .form-grid[b-qgdn8hpmvf] {
    gap: 12px;
}

.purchase-bill-summary[b-qgdn8hpmvf] {
    flex: 0.85;
    min-width: 300px;
    max-width: 320px;
    display: flex;
    align-items: stretch;
}

.purchase-item-entry-card[b-qgdn8hpmvf] {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0.7rem;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow-x: hidden;
    box-sizing: border-box;
}

.purchase-item-entry-header[b-qgdn8hpmvf] {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(52px, 0.55fr) minmax(60px, 0.65fr) minmax(52px, 0.55fr) minmax(52px, 0.55fr) minmax(80px, 0.9fr) minmax(110px, 1fr);
    gap: 10px;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.purchase-item-entry-label[b-qgdn8hpmvf] {
    font-size: 0.6rem;
    font-weight: 700;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.purchase-item-entry-label span[b-qgdn8hpmvf] {
    color: #ef4444;
}

.purchase-item-entry-fields[b-qgdn8hpmvf] {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(52px, 0.55fr) minmax(60px, 0.65fr) minmax(52px, 0.55fr) minmax(52px, 0.55fr) minmax(80px, 0.9fr) minmax(110px, 1fr);
    gap: 10px;
    align-items: center;
    width: 100%;
}

.purchase-item-entry-fields>div[b-qgdn8hpmvf],
.purchase-item-entry-header>div[b-qgdn8hpmvf] {
    min-width: 0;
}

.purchase-item-input[b-qgdn8hpmvf] {
    height: 28px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: white;
    font-size: 0.65rem;
    padding: 0 6px;
    outline: none;
    transition: all 0.2s;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.purchase-item-input:focus[b-qgdn8hpmvf] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    background: #f8fbff;
}

.purchase-item-select[b-qgdn8hpmvf] {
    height: 28px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: white;
    font-size: 0.65rem;
    padding: 0 6px;
    outline: none;
    transition: all 0.2s;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.purchase-item-select:focus[b-qgdn8hpmvf] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    background: #f8fbff;
}

.purchase-item-add-btn[b-qgdn8hpmvf] {
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    height: 28px;
    font-weight: 700;
    font-size: 0.65rem;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.purchase-item-add-btn:hover[b-qgdn8hpmvf] {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.purchase-item-add-btn:active[b-qgdn8hpmvf] {
    transform: translateY(0);
}

.purchase-details-wrapper[b-qgdn8hpmvf] {
    width: 100%;
    margin-bottom: 2rem;
}

.purchase-details-link[b-qgdn8hpmvf] {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f678f;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.purchase-details-link:hover[b-qgdn8hpmvf] {
    color: #0ea5e9;
    gap: 8px;
}

.purchase-items-table-wrapper[b-qgdn8hpmvf] {
    border: none !important;
    border-radius: 0;
    overflow: visible;
    background: white;
    margin-bottom: 0.5rem !important;
    box-shadow: none !important;
}

.purchase-items-table-wrapper table[b-qgdn8hpmvf] {
    table-layout: fixed;
    width: 100%;
}

.purchase-items-table-wrapper .purchase-item-input[b-qgdn8hpmvf],
.purchase-items-table-wrapper .purchase-item-select[b-qgdn8hpmvf] {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    height: 26px;
    font-size: 0.65rem;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: white;
    outline: none;
    transition: all 0.2s;
}

.purchase-items-table-wrapper .purchase-item-input:focus[b-qgdn8hpmvf],
.purchase-items-table-wrapper .purchase-item-select:focus[b-qgdn8hpmvf] {
    border-color: #0273b2;
    box-shadow: 0 0 0 2px rgba(2, 115, 178, 0.1);
    background: #f4f8fa;
}

.purchase-items-table-wrapper .purchase-item-select[b-qgdn8hpmvf] {
    min-width: 130px;
}

.purchase-items-table-header[b-qgdn8hpmvf] {
    background: #0273b2 !important;
    border-bottom: none;
}

.purchase-items-table-header th[b-qgdn8hpmvf] {
    font-weight: 700;
    font-size: 0.72rem;
    color: #ffffff !important;
    padding: 12px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.purchase-add-row-wrapper[b-qgdn8hpmvf] {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.purchase-add-row-btn[b-qgdn8hpmvf] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 2px dashed #0273b2 !important;
    border-radius: 10px !important;
    background: #f4f8fa !important;
    color: #0273b2 !important;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.45rem 1.25rem;
    min-width: 200px;
    cursor: pointer;
    transition: all 0.22s ease-in-out;
    box-shadow: 0 2px 4px rgba(2, 115, 178, 0.05);
}

.purchase-add-row-btn:hover[b-qgdn8hpmvf] {
    background: #e6f2fa !important;
    border-color: #015f94 !important;
    color: #015f94 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(2, 115, 178, 0.12);
}

.purchase-add-row-btn i[b-qgdn8hpmvf] {
    font-size: 0.95rem;
    color: #0273b2 !important;
    transition: color 0.22s ease-in-out;
}

.purchase-add-row-btn:hover i[b-qgdn8hpmvf] {
    color: #015f94 !important;
}

.purchase-item-readonly[b-qgdn8hpmvf] {
    display: block;
    width: 100%;
    height: 26px;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 6px;
    line-height: 24px;
    font-size: 0.65rem;
    color: #475569;
    box-sizing: border-box;
    pointer-events: none;
    user-select: none;
    text-align: right;
}

.purchase-items-table-wrapper .purchase-item-input:disabled[b-qgdn8hpmvf],
.purchase-items-table-wrapper .purchase-item-select:disabled[b-qgdn8hpmvf] {
    pointer-events: none;
    cursor: default;
    background-color: white !important;
    color: #000000 !important;
    border-color: #d1d5db !important;
}

.btn-add-item-blue[b-qgdn8hpmvf] {
    background: #0273b2;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(2, 115, 178, 0.3);
    transition: all 0.2s;
    white-space: nowrap;
    font-size: 0.82rem;
    height: 32px;
}

.btn-add-item-blue:hover[b-qgdn8hpmvf] {
    background: #015c8f;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(2, 115, 178, 0.4);
}

.btn-add-item-blue:active[b-qgdn8hpmvf] {
    transform: translateY(0);
}

.bill-card-premium[b-qgdn8hpmvf] {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 5px solid #3b82f6;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.04);
    transition: all 0.3s ease;
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.25rem;
    padding: 0.4rem 0.65rem;
}

.bill-card-premium:hover[b-qgdn8hpmvf] {
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.08);
    border-color: #93c5fd;
    border-left-color: #2563eb;
}

.bill-card-header-premium[b-qgdn8hpmvf] {
    margin-bottom: 0.15rem;
    padding-bottom: 0.35rem;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #4f46e5;
    letter-spacing: 0.8px;
    border-bottom: 1px dashed #bfdbfe;
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-premium-gross[b-qgdn8hpmvf] {
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 4px solid #1e3a8a !important;
    color: #1e3a8a !important;
    font-weight: 700 !important;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-premium-gross:hover[b-qgdn8hpmvf] {
    transform: translateY(-1.5px);
    background-color: #f1f5f9 !important;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.08);
}

.input-premium-gross:focus[b-qgdn8hpmvf] {
    border-color: #2563eb !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18) !important;
    outline: none;
}

.input-premium-discount[b-qgdn8hpmvf] {
    background-color: #f0fdf4 !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 4px solid #059669 !important;
    color: #065f46 !important;
    font-weight: 700 !important;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-premium-discount:hover[b-qgdn8hpmvf] {
    transform: translateY(-1.5px);
    background-color: #ecfdf5 !important;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.08);
}

.input-premium-discount:focus[b-qgdn8hpmvf] {
    border-color: #10b981 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18) !important;
    outline: none;
}

.input-premium-tax[b-qgdn8hpmvf] {
    background-color: #fffbeb !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 4px solid #d97706 !important;
    color: #92400e !important;
    font-weight: 700 !important;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-premium-tax:hover[b-qgdn8hpmvf] {
    transform: translateY(-1.5px);
    background-color: #fef3c7 !important;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.08);
}

.input-premium-tax:focus[b-qgdn8hpmvf] {
    border-color: #f59e0b !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18) !important;
    outline: none;
}

.net-payable-wrapper-premium[b-qgdn8hpmvf] {
    margin-top: 0.2rem;
    padding-top: 0.5rem;
    border-top: 2px dashed rgba(99, 102, 241, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.net-payable-label-premium[b-qgdn8hpmvf] {
    font-size: 0.74rem;
    font-weight: 800;
    color: #4f46e5;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.net-payable-value-premium[b-qgdn8hpmvf] {
    font-size: 1.25rem;
    font-weight: 800;
    color: #4f46e5;
    text-shadow: 0 1px 2px rgba(79, 70, 229, 0.1);
}

@keyframes premium-pulse-blink-b-qgdn8hpmvf {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.65;
        transform: scale(0.97);
    }
}

.blink-payable-value[b-qgdn8hpmvf] {
    animation: premium-pulse-blink-b-qgdn8hpmvf 1.8s infinite ease-in-out;
    display: inline-block;
}

.btn-dotted-add[b-qgdn8hpmvf] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px dashed #0f678f !important;
    background: #fff !important;
    color: #0f678f !important;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 20px;
    padding: 8px 32px;
    box-shadow: none;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-dotted-add:hover[b-qgdn8hpmvf] {
    background: rgba(15, 103, 143, 0.04) !important;
    border-color: #0d587a !important;
    color: #0d587a !important;
    transform: translateY(-1.5px);
}

.btn-dotted-add:active[b-qgdn8hpmvf] {
    transform: translateY(0);
}

.purchase-bill-fields select.premium-input[b-qgdn8hpmvf] {
    -webkit-appearance: auto !important;
    appearance: auto !important;
    background-image: none !important;
    padding-right: 24px !important;
}

/* Vendor Master Specific Styles */
.items-main-card .table-responsive[b-qgdn8hpmvf] {
    padding-right: 0 !important;
    overflow-x: auto !important;
}

.items-table[b-qgdn8hpmvf] {
    width: 100% !important;
}

.items-table th[b-qgdn8hpmvf] {
    background: #f8fafc !important;
    color: #1e293b !important;
    white-space: nowrap !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    padding: 12px 16px !important;
}

.items-table td[b-qgdn8hpmvf] {
    white-space: normal !important;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.8rem !important;
    padding: 3px 6px !important;
}

/* Premium Modal Styles for Vendor */
.modal-card[b-qgdn8hpmvf] {
    border-radius: 24px !important;
    border: none !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
    background: #fff;
}

.modal-header-bar[b-qgdn8hpmvf] {
    background: #fff !important;
    color: #333 !important;
    padding: 24px 32px !important;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-left[b-qgdn8hpmvf] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-badge[b-qgdn8hpmvf] {
    background: var(--sidebar-bg);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.modal-title[b-qgdn8hpmvf] {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
}

.modal-subtitle[b-qgdn8hpmvf] {
    font-size: 0.85rem;
    color: #64748b;
}

.btn-close-modal[b-qgdn8hpmvf] {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}

.btn-close-modal:hover[b-qgdn8hpmvf] {
    background: #e2e8f0;
    color: #1e293b;
}

.modal-inner[b-qgdn8hpmvf] {
    padding: 16px 32px !important;
    background: #fff;
}

.form-section-header[b-qgdn8hpmvf] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    margin-top: 4px;
}

.form-section-icon[b-qgdn8hpmvf] {
    background: var(--sidebar-bg);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.form-section-title[b-qgdn8hpmvf] {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #025091;
}

.form-grid[b-qgdn8hpmvf] {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.col-prefix[b-qgdn8hpmvf] {
    grid-column: span 3;
}

.col-main[b-qgdn8hpmvf] {
    grid-column: span 9;
}

.col-2[b-qgdn8hpmvf] {
    grid-column: span 2;
}

.col-3[b-qgdn8hpmvf] {
    grid-column: span 3;
}

.col-4[b-qgdn8hpmvf] {
    grid-column: span 4;
}

.col-5[b-qgdn8hpmvf] {
    grid-column: span 5;
}

.col-6[b-qgdn8hpmvf] {
    grid-column: span 6;
}

.col-7[b-qgdn8hpmvf] {
    grid-column: span 7;
}

.col-8[b-qgdn8hpmvf] {
    grid-column: span 8;
}

.col-9[b-qgdn8hpmvf] {
    grid-column: span 9;
}

.col-10[b-qgdn8hpmvf] {
    grid-column: span 10;
}

.col-11[b-qgdn8hpmvf] {
    grid-column: span 11;
}

.col-12[b-qgdn8hpmvf] {
    grid-column: span 12;
}

.field-group[b-qgdn8hpmvf] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-label[b-qgdn8hpmvf] {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 2px;
}

.field-label.required[b-qgdn8hpmvf]::after {
    content: " *";
    color: #ef4444;
}

.premium-input[b-qgdn8hpmvf] {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 0.88rem !important;
    color: #4b5563 !important;
    transition: all 0.2s !important;
    height: auto !important;
}

.premium-input[b-qgdn8hpmvf]::placeholder {
    color: #cbd5e1 !important;
    opacity: 1 !important;
}

.premium-input:focus[b-qgdn8hpmvf] {
    background: #fff !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1) !important;
    outline: none !important;
}

.modal-footer-actions[b-qgdn8hpmvf] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.btn-delete-text[b-qgdn8hpmvf] {
    color: #ef4444;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-delete-text:hover[b-qgdn8hpmvf] {
    background: #fef2f2;
}

.btn-save-premium[b-qgdn8hpmvf] {
    background: #1c9f5f;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(28, 159, 95, 0.3);
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-save-premium:hover[b-qgdn8hpmvf] {
    background: #168a52;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(28, 159, 95, 0.4);
}

.btn-save-premium:active[b-qgdn8hpmvf] {
    transform: translateY(0);
}

.btn-save-premium:disabled[b-qgdn8hpmvf] {
    opacity: 0.6;
    cursor: not-allowed;
}


/* Financial Summary Card Styles */
.financial-summary-card[b-qgdn8hpmvf] {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    padding: 1.5rem;
    font-family: 'Inter', 'Outfit', sans-serif;
}

.financial-summary-header[b-qgdn8hpmvf] {
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.financial-summary-row[b-qgdn8hpmvf] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.financial-summary-label[b-qgdn8hpmvf] {
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.financial-summary-value[b-qgdn8hpmvf] {
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
}

.financial-summary-input[b-qgdn8hpmvf] {
    width: 80px;
    height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: #334155;
    outline: none;
    transition: all 0.2s;
    background: #ffffff;
}

.financial-summary-input:focus[b-qgdn8hpmvf] {
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.financial-summary-net[b-qgdn8hpmvf] {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.financial-summary-net-label[b-qgdn8hpmvf] {
    color: #0f172a;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.financial-summary-net-value[b-qgdn8hpmvf] {
    color: #4f46e5;
    font-weight: 800;
    font-size: 1.4rem;
}

/* Purchase Entry Master Compact Summary Card */
.compact-summary-card[b-qgdn8hpmvf] {
    border-radius: 14px;
    padding: 1.25rem 1.4rem;
    border: 1.5px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.compact-summary-card[b-qgdn8hpmvf]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #6366f1, #06b6d4);
    border-radius: 14px 0 0 14px;
}

.compact-summary-card:hover[b-qgdn8hpmvf] {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
}

/* Physical Bill Totals - Blue-indigo gradient */
.compact-summary-card.bill-card[b-qgdn8hpmvf] {
    background: linear-gradient(135deg, #eef2ff 0%, #f0fdff 100%);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02);
}

.compact-summary-card.bill-card[b-qgdn8hpmvf]::before {
    background: linear-gradient(180deg, #6366f1, #06b6d4);
}

/* Computed Items Total - Teal-green gradient */
.compact-summary-card.items-card[b-qgdn8hpmvf] {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 100%);
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.08);
}

.compact-summary-card.items-card[b-qgdn8hpmvf]::before {
    background: linear-gradient(180deg, #10b981, #06b6d4);
}

.compact-summary-card.items-card:hover[b-qgdn8hpmvf] {
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.18);
}

.compact-summary-header[b-qgdn8hpmvf] {
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed rgba(37, 99, 235, 0.25);
    padding-left: 8px;
}

.compact-summary-card.items-card .compact-summary-header[b-qgdn8hpmvf] {
    color: #10b981;
    border-bottom-color: rgba(16, 185, 129, 0.25);
}

.compact-summary-row[b-qgdn8hpmvf] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding-left: 8px;
}

.compact-summary-label[b-qgdn8hpmvf] {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.compact-summary-value[b-qgdn8hpmvf] {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
}

.compact-summary-input[b-qgdn8hpmvf] {
    width: 110px;
    height: 30px;
    border-radius: 8px;
    border: 1.5px solid rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.8);
    text-align: right;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0 10px;
    color: #1e293b;
}

.compact-summary-input:focus[b-qgdn8hpmvf] {
    outline: none;
    border-color: #64748b;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: #fff;
}

.compact-summary-net[b-qgdn8hpmvf] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    padding-left: 8px;
    border-top: 1.5px solid rgba(99, 102, 241, 0.2);
}

.compact-summary-card.items-card .compact-summary-net[b-qgdn8hpmvf] {
    border-top-color: rgba(16, 185, 129, 0.2);
}

.compact-summary-net-label[b-qgdn8hpmvf] {
    font-size: 0.8rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compact-summary-net-value[b-qgdn8hpmvf] {
    font-size: 1.3rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: -0.5px;
}

.compact-summary-card.items-card .compact-summary-net-value[b-qgdn8hpmvf] {
    color: #10b981;
}

/* Stock Indent Status Badges */
.badge-indent-pending[b-qgdn8hpmvf] {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #d97706 !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

.badge-indent-approved[b-qgdn8hpmvf] {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #059669 !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

.badge-indent-rejected[b-qgdn8hpmvf] {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #dc2626 !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

/* Stock volume indicators */
.badge-stock-high[b-qgdn8hpmvf] {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #059669 !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

.badge-stock-low[b-qgdn8hpmvf] {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #d97706 !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

.badge-stock-empty[b-qgdn8hpmvf] {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #dc2626 !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

/* OVERRIDE FOR HIGH-DENSITY PURCHASE BILL FORM (e.g. ItemMaster Modal) */
.purchase-bill-fields .premium-segmented-control-joined[b-qgdn8hpmvf] {
    height: 32px !important;
    border-radius: 6px !important;
    max-width: none !important;
}

.purchase-bill-fields .segment-btn-joined[b-qgdn8hpmvf] {
    font-size: 0.8rem !important;
}

.purchase-bill-fields .segment-btn-joined:first-child[b-qgdn8hpmvf] {
    border-right: 1px solid #e2e8f0 !important;
}

/* Tabular Grid/Real Table styling for purchase details table */
.purchase-items-table-wrapper table[b-qgdn8hpmvf] {
    border-collapse: collapse !important;
    border: 1px solid #cbd5e1 !important;
    width: 100%;
}

.purchase-items-table-wrapper th[b-qgdn8hpmvf],
.purchase-items-table-wrapper td[b-qgdn8hpmvf] {
    border: 1px solid #cbd5e1 !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

.purchase-items-table-header th[b-qgdn8hpmvf] {
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    padding: 10px 8px !important;
    font-weight: 700;
    font-size: 0.72rem;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #0273b2 !important;
}

.purchase-items-table-wrapper .purchase-item-input[b-qgdn8hpmvf],
.purchase-items-table-wrapper .purchase-item-select[b-qgdn8hpmvf] {
    width: 100% !important;
    height: 34px !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 8px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background: transparent !important;
}

.purchase-items-table-wrapper .purchase-item-input:focus[b-qgdn8hpmvf],
.purchase-items-table-wrapper .purchase-item-select:focus[b-qgdn8hpmvf] {
    background: #f4f8fa !important;
    box-shadow: inset 0 0 0 2px rgba(2, 115, 178, 0.2) !important;
}

.purchase-items-table-wrapper .purchase-item-readonly[b-qgdn8hpmvf] {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    width: 100% !important;
    height: 34px !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 8px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background-color: #f8fafc !important;
    font-weight: 600;
}

.purchase-items-table-wrapper td.purchase-items-table-footer-cell[b-qgdn8hpmvf] {
    padding: 16px 24px !important;
}

/* Return Items Table Styling */
.return-items-table-wrapper[b-qgdn8hpmvf] {
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    overflow: visible !important;
    background: #ffffff !important;
    margin-bottom: 8px !important;
}

.return-items-table[b-qgdn8hpmvf] {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    font-size: 0.82rem !important;
    min-width: 980px !important;
}

.return-items-table thead[b-qgdn8hpmvf],
.return-items-table thead th[b-qgdn8hpmvf] {
    background: #0273b2 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 10px 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.return-items-table thead th:last-child[b-qgdn8hpmvf] {
    border-right: none !important;
}

.return-items-table tbody td[b-qgdn8hpmvf] {
    border-bottom: 1px solid #e2e8f0 !important;
    border-right: 1px solid #f1f5f9 !important;
    padding: 5px 6px !important;
    vertical-align: middle !important;
    overflow: visible !important;
}

.return-items-table tbody td:last-child[b-qgdn8hpmvf] {
    border-right: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   DARK MODE OVERRIDES FOR SALES RETURN
   ═══════════════════════════════════════════════════════════════ */
:host-context([data-theme="dark"]) .items-page[b-qgdn8hpmvf],
[data-theme="dark"] .items-page[b-qgdn8hpmvf] {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}

:host-context([data-theme="dark"]) .premium-header-card[b-qgdn8hpmvf],
[data-theme="dark"] .premium-header-card[b-qgdn8hpmvf] {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

:host-context([data-theme="dark"]) .header-card-icon[b-qgdn8hpmvf],
[data-theme="dark"] .header-card-icon[b-qgdn8hpmvf] {
    background: #0f172a !important;
    border-color: #334155 !important;
}

:host-context([data-theme="dark"]) .header-card-heading[b-qgdn8hpmvf],
[data-theme="dark"] .header-card-heading[b-qgdn8hpmvf] {
    color: #f8fafc !important;
}

:host-context([data-theme="dark"]) .header-card-subheading[b-qgdn8hpmvf],
[data-theme="dark"] .header-card-subheading[b-qgdn8hpmvf] {
    color: #38bdf8 !important;
}

:host-context([data-theme="dark"]) .items-main-card[b-qgdn8hpmvf],
[data-theme="dark"] .items-main-card[b-qgdn8hpmvf] {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

:host-context([data-theme="dark"]) .card-body[b-qgdn8hpmvf],
[data-theme="dark"] .card-body[b-qgdn8hpmvf] {
    background: #1e293b !important;
    color: #f8fafc !important;
}

:host-context([data-theme="dark"]) .field-label[b-qgdn8hpmvf],
[data-theme="dark"] .field-label[b-qgdn8hpmvf] {
    color: #cbd5e1 !important;
}

:host-context([data-theme="dark"]) .premium-input[b-qgdn8hpmvf],
[data-theme="dark"] .premium-input[b-qgdn8hpmvf] {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

:host-context([data-theme="dark"]) .premium-input option[b-qgdn8hpmvf],
[data-theme="dark"] .premium-input option[b-qgdn8hpmvf] {
    background: #0f172a !important;
    color: #f8fafc !important;
}

:host-context([data-theme="dark"]) table.table.items-table thead tr th[b-qgdn8hpmvf],
:host-context([data-theme="dark"]) .items-table th[b-qgdn8hpmvf],
[data-theme="dark"] table.table.items-table thead tr th[b-qgdn8hpmvf],
[data-theme="dark"] .items-table th[b-qgdn8hpmvf] {
    background: #0f172a !important;
    color: #38bdf8 !important;
    border-bottom-color: #334155 !important;
}

:host-context([data-theme="dark"]) .items-table td[b-qgdn8hpmvf],
[data-theme="dark"] .items-table td[b-qgdn8hpmvf] {
    background: #1e293b !important;
    border-bottom-color: #334155 !important;
    color: #cbd5e1 !important;
}

:host-context([data-theme="dark"]) .items-table tr td:first-child[b-qgdn8hpmvf],
[data-theme="dark"] .items-table tr td:first-child[b-qgdn8hpmvf] {
    color: #38bdf8 !important;
}

:host-context([data-theme="dark"]) .return-amount-cell[b-qgdn8hpmvf],
[data-theme="dark"] .return-amount-cell[b-qgdn8hpmvf] {
    background-color: #311213 !important;
    border-left-color: #451a1c !important;
    color: #f87171 !important;
}

:host-context([data-theme="dark"]) .btn-cancel-modal[b-qgdn8hpmvf],
[data-theme="dark"] .btn-cancel-modal[b-qgdn8hpmvf] {
    background: #334155 !important;
    color: #f8fafc !important;
}

:host-context([data-theme="dark"]) .btn-cancel-modal:hover[b-qgdn8hpmvf],
[data-theme="dark"] .btn-cancel-modal:hover[b-qgdn8hpmvf] {
    background: #475569 !important;
    color: #ffffff !important;
}
/* /Components/Pages/SampleCollection.razor.rz.scp.css */
/* ════════════════════════════════════════════════════════════════
   SAMPLE COLLECTION — PREMIUM MODERN THEME (MATCHING VIEW BILLS)
   ════════════════════════════════════════════════════════════════ */

:root[b-qc2cjr8tdm] {
    --vb-bg: #f6f8fb;
    --vb-card-bg: #ffffff;
    --vb-border: #f1f5f9;
    --vb-border-dark: #e2e8f0;
    --vb-text-main: #0f172a;
    --vb-text-muted: #64748b;
    --vb-text-subtle: #94a3b8;
    --vb-dark-pill: #1e293b;
    --vb-primary: #4f46e5;
}

/* ── Pure Single Viewport Full-Height Container ────────────── */
.vb-page-container[b-qc2cjr8tdm] {
    width: 100%;
    height: 100%;
    max-height: 100%;
    background-color: #f6f8fb;
    padding: 12px 22px 12px 22px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #0f172a;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ── Top Header Bar ────────────────────────────────────────── */
.vb-header[b-qc2cjr8tdm] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-shrink: 0;
    gap: 14px;
}

.vb-header-left[b-qc2cjr8tdm] {
    display: flex;
    flex-direction: column;
}

.vb-page-title[b-qc2cjr8tdm] {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.vb-breadcrumbs[b-qc2cjr8tdm] {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.vb-breadcrumb-link[b-qc2cjr8tdm] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
    cursor: pointer;
}

.vb-breadcrumb-link:hover[b-qc2cjr8tdm] {
    color: #4f46e5;
    text-decoration: underline;
}

.vb-breadcrumbs span[b-qc2cjr8tdm] {
    color: #94a3b8;
}

.vb-header-actions[b-qc2cjr8tdm] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vb-btn-icon-more[b-qc2cjr8tdm] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    font-weight: 700;
}

.vb-btn-icon-more:hover[b-qc2cjr8tdm] {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.vb-btn-primary[b-qc2cjr8tdm] {
    height: 34px;
    padding: 0 14px;
    border-radius: 8px;
    background: #1e293b;
    color: #ffffff;
    border: none;
    font-size: 12.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.vb-btn-primary:hover[b-qc2cjr8tdm] {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.15);
}

.vb-btn-secondary[b-qc2cjr8tdm] {
    height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    border: 1px solid #e2e8f0;
    font-size: 12.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.vb-btn-secondary:hover[b-qc2cjr8tdm] {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

/* ── 6 KPI / Stat Cards Grid ───────────────────────────────── */
.vb-stats-grid[b-qc2cjr8tdm] {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 10px;
    flex-shrink: 0;
}

@media (max-width: 1380px) {
    .vb-stats-grid[b-qc2cjr8tdm] {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .vb-stats-grid[b-qc2cjr8tdm] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .vb-stats-grid[b-qc2cjr8tdm] {
        grid-template-columns: 1fr;
    }
}

.vb-stat-card[b-qc2cjr8tdm] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: auto;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vb-stat-card:hover[b-qc2cjr8tdm] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.vb-stat-top[b-qc2cjr8tdm] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vb-stat-icon-wrap[b-qc2cjr8tdm] {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vb-stat-icon-wrap .material-symbols-outlined[b-qc2cjr8tdm] {
    font-size: 16px;
}

.vb-stat-tag[b-qc2cjr8tdm] {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.vb-stat-tag .material-symbols-outlined[b-qc2cjr8tdm] {
    font-size: 13px;
}

/* Card 1 — Patients */
.vb-card-invoices .vb-stat-icon-wrap[b-qc2cjr8tdm] { background: #eff6ff; color: #3b82f6; }
.vb-card-invoices .vb-stat-tag[b-qc2cjr8tdm] { background: #f8fafc; color: #6366f1; }

/* Card 2 — Pending */
.vb-card-gross .vb-stat-icon-wrap[b-qc2cjr8tdm] { background: #eff6ff; color: #2563eb; }
.vb-card-gross .vb-stat-tag[b-qc2cjr8tdm] { background: #eff6ff; color: #2563eb; }

/* Card 3 — Accepted */
.vb-card-net .vb-stat-icon-wrap[b-qc2cjr8tdm] { background: #ecfdf5; color: #10b981; }
.vb-card-net .vb-stat-tag[b-qc2cjr8tdm] { background: #ecfdf5; color: #10b981; }

/* Card 4 — Rejected */
.vb-card-discounts .vb-stat-icon-wrap[b-qc2cjr8tdm] { background: #fff1f2; color: #f43f5e; }
.vb-card-discounts .vb-stat-tag[b-qc2cjr8tdm] { background: #fff1f2; color: #f43f5e; }

/* Card 5 — Resampling */
.vb-card-collected .vb-stat-icon-wrap[b-qc2cjr8tdm] { background: #fef3c7; color: #d97706; }
.vb-card-collected .vb-stat-tag[b-qc2cjr8tdm] { background: #fef3c7; color: #d97706; }

/* Card 6 — Received */
.vb-card-balance .vb-stat-icon-wrap[b-qc2cjr8tdm] { background: #f3e8ff; color: #9333ea; }
.vb-card-balance .vb-stat-tag[b-qc2cjr8tdm] { background: #f3e8ff; color: #9333ea; }

.vb-stat-mid[b-qc2cjr8tdm] {
    margin-top: 4px;
}

.vb-stat-label[b-qc2cjr8tdm] {
    font-size: 0.74rem;
    font-weight: 600;
    color: #64748b;
    margin: 0;
}

.vb-stat-bottom[b-qc2cjr8tdm] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 2px;
}

.vb-stat-val[b-qc2cjr8tdm] {
    font-size: 1.12rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1;
}

.vb-trend-badge[b-qc2cjr8tdm] {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.vb-trend-up[b-qc2cjr8tdm] {
    color: #16a34a;
    background: transparent;
}

.vb-trend-down[b-qc2cjr8tdm] {
    color: #e11d48;
    background: transparent;
}

/* ── Filter & Action Toolbar ───────────────────────────────── */
.vb-toolbar[b-qc2cjr8tdm] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 12px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 10px;
}

.vb-toolbar-left[b-qc2cjr8tdm] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.vb-search-wrap[b-qc2cjr8tdm] {
    position: relative;
    width: 200px;
}

.vb-search-icon-left[b-qc2cjr8tdm] {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.vb-search-input[b-qc2cjr8tdm] {
    width: 100%;
    height: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    padding: 0 28px 0 32px;
    font-size: 12.5px;
    color: #1e293b;
    outline: none;
    transition: border-color 0.15s ease;
    box-sizing: border-box;
}

.vb-search-input:focus[b-qc2cjr8tdm] {
    border-color: #6366f1;
}

.vb-search-icon-right[b-qc2cjr8tdm] {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.vb-pill-container[b-qc2cjr8tdm] {
    background: #f1f5f9;
    border-radius: 7px;
    padding: 2.5px;
    display: flex;
    gap: 2px;
    align-items: center;
}

.vb-pill-btn[b-qc2cjr8tdm] {
    background: transparent;
    border: none;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.vb-pill-btn:hover[b-qc2cjr8tdm] {
    color: #0f172a;
}

.vb-pill-btn.active[b-qc2cjr8tdm] {
    background: #1e293b;
    color: #ffffff;
    font-weight: 600;
}

.vb-custom-range-wrap[b-qc2cjr8tdm] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 2px 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.vb-custom-range-group[b-qc2cjr8tdm] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.vb-custom-range-label[b-qc2cjr8tdm] {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.vb-custom-input[b-qc2cjr8tdm] {
    height: 28px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 12px;
    color: #1e293b;
    font-weight: 600;
    background: #ffffff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.vb-custom-input:focus[b-qc2cjr8tdm] {
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.12);
}

.vb-custom-date[b-qc2cjr8tdm] {
    width: 125px;
}

.vb-custom-time[b-qc2cjr8tdm] {
    width: 95px;
}

.vb-btn-custom-apply[b-qc2cjr8tdm] {
    height: 28px;
    padding: 0 10px;
    border-radius: 6px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 2px rgba(79, 70, 229, 0.2);
    transition: all 0.15s ease;
}

.vb-btn-custom-apply:hover[b-qc2cjr8tdm] {
    background: linear-gradient(135deg, #4338ca, #4f46e5);
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.3);
}

.vb-select-dropdown[b-qc2cjr8tdm] {
    height: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vb-toolbar-right[b-qc2cjr8tdm] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.vb-btn-toolbar-action[b-qc2cjr8tdm] {
    height: 32px;
    padding: 0 12px;
    border-radius: 7px;
    background: #ffffff;
    color: #334155;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.vb-btn-toolbar-action:hover:not(:disabled)[b-qc2cjr8tdm] {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.vb-btn-toolbar-action:disabled[b-qc2cjr8tdm] {
    opacity: 0.5;
    cursor: not-allowed;
}

.vb-btn-toolbar-action .material-symbols-outlined[b-qc2cjr8tdm] {
    font-size: 16px;
    color: #64748b;
}

/* ── Main List Table Card & Viewport Fitting ─────────────── */
.vb-table-card[b-qc2cjr8tdm] {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    margin-bottom: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
}

.vb-table-container[b-qc2cjr8tdm] {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    min-height: 0;
    width: 100%;
}

.vb-table[b-qc2cjr8tdm] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12.5px;
    text-align: left;
    white-space: nowrap;
}

.vb-thead[b-qc2cjr8tdm] {
    background: #f8fafc;
}

.vb-th[b-qc2cjr8tdm] {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8fafc;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.02em;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
    box-shadow: 0 1px 0 #e2e8f0;
}

.vb-th-checkbox[b-qc2cjr8tdm] {
    width: 36px;
    padding-left: 14px;
}

.vb-tbody tr[b-qc2cjr8tdm] {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.12s ease;
}

.vb-tbody tr:hover[b-qc2cjr8tdm] {
    background-color: #f8fafc;
}

.sc-tr-selected[b-qc2cjr8tdm] {
    background-color: #f5f3ff !important;
}

.vb-td[b-qc2cjr8tdm] {
    padding: 8px 14px;
    color: #334155;
    vertical-align: middle;
    border-bottom: 1px solid #f8fafc;
    font-size: 12.5px;
}

.vb-td-checkbox[b-qc2cjr8tdm] {
    width: 36px;
    padding-left: 14px;
}

.vb-checkbox[b-qc2cjr8tdm] {
    width: 15px;
    height: 15px;
    border-radius: 4px;
    border: 1.5px solid #cbd5e1;
    cursor: pointer;
    accent-color: #1e293b;
    vertical-align: middle;
}

.vb-bill-id[b-qc2cjr8tdm] {
    font-weight: 600;
    color: #1e293b;
    font-size: 12.5px;
}

.vb-date-text[b-qc2cjr8tdm] {
    color: #475569;
    font-weight: 500;
    font-size: 12.5px;
}

/* Patient Name with Circular Avatar */
.vb-patient-cell[b-qc2cjr8tdm] {
    display: flex;
    align-items: center;
    gap: 9px;
}

.vb-avatar[b-qc2cjr8tdm] {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.vb-avatar:hover[b-qc2cjr8tdm] {
    transform: scale(1.08);
}

.vb-gender-letter[b-qc2cjr8tdm] {
    font-size: 12.5px;
    font-weight: 800;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1;
    text-transform: uppercase;
    user-select: none;
}

.vb-avatar.male[b-qc2cjr8tdm] {
    background: #e0f2fe;
    color: #1d4ed8;
    border: 1.5px solid #93c5fd;
}

.vb-avatar.female[b-qc2cjr8tdm] {
    background: #fce7f3;
    color: #be185d;
    border: 1.5px solid #f9a8d4;
}

.vb-patient-name[b-qc2cjr8tdm] {
    font-weight: 600;
    color: #0f172a;
    font-size: 13px;
}

.vb-doctor-text[b-qc2cjr8tdm] {
    color: #475569;
    font-weight: 500;
    font-size: 12.5px;
}

.vb-services-text[b-qc2cjr8tdm] {
    color: #475569;
    font-weight: 500;
    font-size: 12.5px;
}

/* Status Badges */
.sc-status-pill[b-qc2cjr8tdm] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 9px;
    border-radius: 14px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.sc-status-pending[b-qc2cjr8tdm] {
    background: #fef3c7;
    color: #b45309;
}

.sc-status-accepted[b-qc2cjr8tdm] {
    background: #dcfce7;
    color: #15803d;
}

.sc-status-rejected[b-qc2cjr8tdm] {
    background: #fee2e2;
    color: #b91c1c;
}

.sc-status-resampling[b-qc2cjr8tdm] {
    background: #ffedd5;
    color: #c2410c;
}

.sc-status-received[b-qc2cjr8tdm] {
    background: #ede9fe;
    color: #6d28d9;
}

/* ── Pagination & Table Footer ─────────────────────────────── */
.vb-table-footer[b-qc2cjr8tdm] {
    padding: 6px 14px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 10px;
    background: #ffffff;
    font-size: 12px;
}

.vb-page-size-wrap[b-qc2cjr8tdm] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.vb-page-size-select[b-qc2cjr8tdm] {
    height: 26px;
    padding: 0 6px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    outline: none;
    cursor: pointer;
}

.vb-pagination-controls[b-qc2cjr8tdm] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.vb-page-nav-btn[b-qc2cjr8tdm] {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.vb-page-nav-btn:hover:not(:disabled)[b-qc2cjr8tdm] {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.vb-page-nav-btn:disabled[b-qc2cjr8tdm] {
    opacity: 0.4;
    cursor: not-allowed;
}

.vb-page-number-btn[b-qc2cjr8tdm] {
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.vb-page-number-btn:hover[b-qc2cjr8tdm] {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.vb-page-number-btn.active[b-qc2cjr8tdm] {
    background: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
}

/* ── More Dropdown Actions Menu ────────────────────────────── */
.vb-more-dropdown[b-qc2cjr8tdm] {
    position: relative;
    display: inline-block;
}

.vb-dropdown-menu[b-qc2cjr8tdm] {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    min-width: 185px;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vb-dropdown-item[b-qc2cjr8tdm] {
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    padding: 7px 12px;
    font-size: 12px;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 6px;
}

.vb-dropdown-item:hover[b-qc2cjr8tdm] {
    background-color: #f1f5f9;
    color: #0f172a;
}

.vb-dropdown-item .material-symbols-outlined[b-qc2cjr8tdm] {
    font-size: 15px;
}

/* ════════════════════════════════════════════════════════════════
   MODERN SPECIMEN COLLECTION MODAL & TIMELINE
   ════════════════════════════════════════════════════════════════ */
.sc-modal-backdrop[b-qc2cjr8tdm] {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.sc-modal-content[b-qc2cjr8tdm] {
    background: #ffffff;
    border-radius: 16px;
    width: 95vw;
    max-width: 1400px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.sc-modal-header[b-qc2cjr8tdm] {
    background: #ffffff;
    padding: 12px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.sc-modal-title-info[b-qc2cjr8tdm] {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.sc-modal-info-item[b-qc2cjr8tdm] {
    display: flex;
    flex-direction: column;
}

.sc-modal-info-label[b-qc2cjr8tdm] {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sc-modal-info-value[b-qc2cjr8tdm] {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
}

/* Subview Toggle in Modal Header */
.sc-subview-toggle[b-qc2cjr8tdm] {
    display: flex;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 3px;
    gap: 3px;
    margin-right: 16px;
    border: 1px solid #e2e8f0;
}

.tab-sub-btn[b-qc2cjr8tdm] {
    border: none;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: #64748b;
}

.tab-sub-btn:hover[b-qc2cjr8tdm] {
    color: #0f172a;
}

.tab-sub-btn.active[b-qc2cjr8tdm] {
    background: #ffffff;
    color: #4f46e5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.sc-modal-close-btn[b-qc2cjr8tdm] {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sc-modal-close-btn:hover[b-qc2cjr8tdm] {
    background: #f1f5f9;
    color: #0f172a;
}

.sc-modal-body[b-qc2cjr8tdm] {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f8fafc;
}

.sc-modal-grid[b-qc2cjr8tdm] {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 16px;
    height: 100%;
}

@media (max-width: 1080px) {
    .sc-modal-grid[b-qc2cjr8tdm] {
        grid-template-columns: 1fr;
        height: auto;
    }
}

.sc-grid-left[b-qc2cjr8tdm], .sc-grid-right[b-qc2cjr8tdm] {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sc-card-panel[b-qc2cjr8tdm] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.sc-card-header-brand[b-qc2cjr8tdm] {
    padding: 10px 14px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
}

.sc-link-pill[b-qc2cjr8tdm] {
    background: transparent;
    border: none;
    color: #4f46e5;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.sc-link-pill:hover[b-qc2cjr8tdm] {
    background: #eff6ff;
}

.sc-tab-pill-group[b-qc2cjr8tdm] {
    display: flex;
    background: #f1f5f9;
    border-radius: 7px;
    padding: 2.5px;
    gap: 2px;
}

.sc-tab-pill[b-qc2cjr8tdm] {
    border: none;
    background: transparent;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 5px;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.sc-tab-pill:hover[b-qc2cjr8tdm] {
    color: #0f172a;
}

.sc-tab-pill.active[b-qc2cjr8tdm] {
    background: #ffffff;
    color: #4f46e5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.sc-flow-id-badge[b-qc2cjr8tdm] {
    font-size: 0.7rem;
    font-weight: 800;
    background: #eff6ff;
    color: #3b82f6;
    padding: 3px 9px;
    border-radius: 10px;
    border: 1px solid #dbeafe;
}

.sc-card-body-row[b-qc2cjr8tdm] {
    padding: 12px 14px;
}

/* ── Modern Left Billed Tests Card List ────────────────────── */
.sc-billed-test-list[b-qc2cjr8tdm] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 0;
}

.sc-billed-test-row[b-qc2cjr8tdm] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    transition: all 0.15s ease;
}

.sc-billed-test-row:hover[b-qc2cjr8tdm] {
    border-color: #cbd5e1;
    background: #f8fafc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.sc-billed-test-row.is-transferred-row[b-qc2cjr8tdm] {
    background: #f0f9ff;
    border-color: #bae6fd;
}

.sc-test-main[b-qc2cjr8tdm] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sc-test-dot[b-qc2cjr8tdm] {
    font-size: 18px;
    color: #6366f1;
}

.sc-test-title[b-qc2cjr8tdm] {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

/* Department Badges */
.sc-dept-badge[b-qc2cjr8tdm] {
    font-size: 11px;
    font-weight: 700;
    background: #eff6ff;
    color: #3b82f6;
    border: 1px solid #dbeafe;
    padding: 3px 9px;
    border-radius: 6px;
    display: inline-block;
}

.sc-dept-badge.is-transferred[b-qc2cjr8tdm] {
    background: #fdf2f8;
    color: #db2777;
    border-color: #fbcfe8;
}

.sc-card-panel[b-qc2cjr8tdm] {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    overflow: hidden !important;
}

.sc-card-header-brand[b-qc2cjr8tdm] {
    padding: 10px 16px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

/* ── Modern Sample Collection Table ───────────────────────── */
.sc-modern-table[b-qc2cjr8tdm] {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    font-size: 12.5px;
    text-align: left;
    white-space: nowrap;
    background: #ffffff;
}

.sc-modern-table thead[b-qc2cjr8tdm],
.sc-modern-table thead tr[b-qc2cjr8tdm] {
    background: #f1f5f9 !important;
}

.sc-modern-table th[b-qc2cjr8tdm] {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 10px 14px !important;
    border-bottom: 2px solid #cbd5e1 !important;
    border-top: 1px solid #e2e8f0 !important;
    border-left: none !important;
    border-right: none !important;
    vertical-align: middle;
}

.sc-modern-table td[b-qc2cjr8tdm] {
    padding: 10px 14px !important;
    color: #1e293b !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    vertical-align: middle;
    font-size: 12.5px;
    font-weight: 500;
}

.sc-modern-table tbody tr[b-qc2cjr8tdm] {
    background-color: #ffffff;
    transition: background-color 0.12s ease;
}

.sc-modern-table tbody tr:nth-child(even)[b-qc2cjr8tdm] {
    background-color: #f8fafc !important;
}

.sc-modern-table tbody tr:hover[b-qc2cjr8tdm] {
    background-color: #f1f5f9 !important;
}

.is-transferred-sample-row[b-qc2cjr8tdm] {
    background-color: #eff6ff !important;
}

/* Specimen Tube Visual */
.sc-sample-info[b-qc2cjr8tdm] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sc-tube-visual[b-qc2cjr8tdm] {
    width: 14px;
    height: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.sc-tube-cap[b-qc2cjr8tdm] {
    width: 14px;
    height: 9px;
    border-radius: 3px 3px 1px 1px;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.4);
}

.sc-tube-body[b-qc2cjr8tdm] {
    width: 10px;
    height: 23px;
    background: rgba(241, 245, 249, 0.9);
    border: 1px solid #cbd5e1;
    border-top: none;
    border-radius: 0 0 5px 5px;
    overflow: hidden;
    position: relative;
}

.sc-tube-liquid[b-qc2cjr8tdm] {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65%;
    border-radius: 0 0 4px 4px;
}

.sc-sample-name[b-qc2cjr8tdm] {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.2;
}

.sc-sample-desc[b-qc2cjr8tdm] {
    font-size: 0.72rem;
    color: #64748b;
    margin: 2px 0 0;
}

.sc-checkbox[b-qc2cjr8tdm] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid #cbd5e1;
    cursor: pointer;
    accent-color: #1e293b;
    vertical-align: middle;
}

.sc-input-barcode[b-qc2cjr8tdm] {
    height: 32px;
    border-radius: 6px;
    border: 1.5px solid #cbd5e1;
    padding: 0 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: #1e293b;
    background: #ffffff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sc-input-barcode:focus[b-qc2cjr8tdm] {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Modern Action Buttons Layout */
.sc-actions-flex[b-qc2cjr8tdm] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

.sc-btn-accept-mod[b-qc2cjr8tdm] {
    height: 30px !important;
    padding: 0 12px !important;
    border-radius: 6px !important;
    background: #10b981 !important;
    color: #ffffff !important;
    border: 1px solid #059669 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3) !important;
    transition: all 0.15s ease !important;
}

.sc-btn-accept-mod:hover[b-qc2cjr8tdm] {
    background: #059669 !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.45) !important;
    transform: translateY(-1px);
}

.sc-btn-reject-mod[b-qc2cjr8tdm] {
    height: 30px !important;
    padding: 0 12px !important;
    border-radius: 6px !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    border: 1px solid #dc2626 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.3) !important;
    transition: all 0.15s ease !important;
}

.sc-btn-reject-mod:hover[b-qc2cjr8tdm] {
    background: #dc2626 !important;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.45) !important;
    transform: translateY(-1px);
}

.sc-btn-resample-mod[b-qc2cjr8tdm] {
    height: 30px !important;
    padding: 0 12px !important;
    border-radius: 6px !important;
    background: #f59e0b !important;
    color: #ffffff !important;
    border: 1px solid #d97706 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.3) !important;
    transition: all 0.15s ease !important;
}

.sc-btn-resample-mod:hover[b-qc2cjr8tdm] {
    background: #d97706 !important;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.45) !important;
    transform: translateY(-1px);
}

.sc-btn-receive-mod[b-qc2cjr8tdm] {
    height: 30px !important;
    padding: 0 14px !important;
    border-radius: 6px !important;
    background: #3b82f6 !important;
    color: #ffffff !important;
    border: 1px solid #2563eb !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3) !important;
    transition: all 0.15s ease !important;
}

.sc-btn-receive-mod:hover[b-qc2cjr8tdm] {
    background: #2563eb !important;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.45) !important;
    transform: translateY(-1px);
}

.dch-btn-tr-icon[b-qc2cjr8tdm] {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dch-btn-tr-icon:hover[b-qc2cjr8tdm] {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

/* Modal Status Pills */
.sc-pill-accepted[b-qc2cjr8tdm] {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    background: #10b981;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 2px rgba(16, 185, 129, 0.2);
}

.sc-pill-rejected[b-qc2cjr8tdm] {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    background: #ef4444;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 2px rgba(239, 68, 68, 0.2);
}

.sc-pill-resampling[b-qc2cjr8tdm] {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    background: #f59e0b;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 2px rgba(245, 158, 11, 0.2);
}

.sc-pill-received[b-qc2cjr8tdm] {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    background: #6366f1;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 2px rgba(99, 102, 241, 0.2);
}

.sc-pill-pending[b-qc2cjr8tdm] {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    background: #64748b;
    color: #ffffff;
}

/* Modal Card Footer */
.sc-card-footer[b-qc2cjr8tdm] {
    padding: 10px 16px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.sc-footer-action-btn[b-qc2cjr8tdm] {
    height: 32px;
    padding: 0 12px;
    border-radius: 7px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sc-footer-action-btn:hover[b-qc2cjr8tdm] {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.sc-footer-action-btn.btn-danger-soft[b-qc2cjr8tdm] {
    color: #e11d48;
    border-color: #fecdd3;
    background: #fff1f2;
}

.sc-footer-action-btn.btn-danger-soft:hover[b-qc2cjr8tdm] {
    background: #ffe4e6;
    color: #be123c;
}

.sc-btn-save-collection[b-qc2cjr8tdm] {
    height: 34px;
    padding: 0 18px;
    border-radius: 8px;
    background: #10b981;
    color: #ffffff;
    border: none;
    font-size: 12.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
    transition: all 0.15s ease;
}

.sc-btn-save-collection:hover[b-qc2cjr8tdm] {
    background: #059669;
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.sc-footer-action-btn:disabled[b-qc2cjr8tdm],
.sc-btn-save-collection:disabled[b-qc2cjr8tdm] {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    box-shadow: none !important;
    filter: grayscale(40%);
}

/* ════════════════════════════════════════════════════════════════
   MODERN FILTER DRAWER
   ════════════════════════════════════════════════════════════════ */
.sc-drawer-backdrop[b-qc2cjr8tdm] {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    z-index: 9998;
}

.sc-filter-drawer[b-qc2cjr8tdm] {
    position: fixed;
    top: 0;
    right: 0;
    width: 440px;
    max-width: 90vw;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sc-drawer-header[b-qc2cjr8tdm] {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
}

.sc-drawer-header-left[b-qc2cjr8tdm] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sc-drawer-header-left h3[b-qc2cjr8tdm] {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}

.sc-drawer-header-left .material-symbols-outlined[b-qc2cjr8tdm] {
    font-size: 20px;
    color: #0f172a;
}

.sc-drawer-close[b-qc2cjr8tdm] {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sc-drawer-close:hover[b-qc2cjr8tdm] {
    background: #f1f5f9;
    color: #0f172a;
}

.sc-drawer-body[b-qc2cjr8tdm] {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.sc-drawer-tabs[b-qc2cjr8tdm] {
    width: 130px;
    background: #f8fafc;
    border-right: 1px solid #f1f5f9;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sc-drawer-tab-btn[b-qc2cjr8tdm] {
    padding: 9px 12px;
    border-radius: 6px;
    border: none;
    background: transparent;
    text-align: left;
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
    width: 100%;
}

.sc-drawer-tab-btn:hover[b-qc2cjr8tdm] {
    color: #0f172a;
    background: #f1f5f9;
}

.sc-drawer-tab-btn.active[b-qc2cjr8tdm] {
    background: #ffffff;
    color: #4f46e5;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sc-drawer-content[b-qc2cjr8tdm] {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
    overflow-y: auto;
}

.sc-drawer-search-wrap[b-qc2cjr8tdm] {
    position: relative;
    margin-bottom: 12px;
}

.sc-drawer-search-icon[b-qc2cjr8tdm] {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.sc-drawer-search-input[b-qc2cjr8tdm] {
    width: 100%;
    height: 34px;
    border-radius: 7px;
    border: 1px solid #e2e8f0;
    padding: 0 12px 0 32px;
    font-size: 12.5px;
    color: #1e293b;
    outline: none;
    transition: border-color 0.15s ease;
    box-sizing: border-box;
}

.sc-drawer-search-input:focus[b-qc2cjr8tdm] {
    border-color: #4f46e5;
}

.sc-drawer-list[b-qc2cjr8tdm] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
}

.sc-drawer-list-item[b-qc2cjr8tdm] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12.5px;
    color: #334155;
    font-weight: 500;
    transition: background-color 0.12s ease;
}

.sc-drawer-list-item:hover[b-qc2cjr8tdm] {
    background-color: #f8fafc;
    color: #0f172a;
}

.sc-drawer-list-item input[type="checkbox"][b-qc2cjr8tdm] {
    width: 15px;
    height: 15px;
    border-radius: 4px;
    cursor: pointer;
    accent-color: #4f46e5;
}

.sc-drawer-list-item.select-all[b-qc2cjr8tdm] {
    font-weight: 700;
    color: #0f172a;
}

.sc-drawer-footer[b-qc2cjr8tdm] {
    padding: 14px 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
}

.sc-drawer-clear-btn[b-qc2cjr8tdm] {
    padding: 8px 18px;
    border-radius: 7px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sc-drawer-clear-btn:hover[b-qc2cjr8tdm] {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.sc-drawer-apply-btn[b-qc2cjr8tdm] {
    padding: 8px 24px;
    border-radius: 7px;
    border: none;
    background: #1e293b;
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sc-drawer-apply-btn:hover[b-qc2cjr8tdm] {
    background: #0f172a;
}

@keyframes sc-pulse-b-qc2cjr8tdm {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin-b-qc2cjr8tdm {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ── Billed Test Filter — Active Row Highlight ─────────────── */
.sc-billed-test-active[b-qc2cjr8tdm] {
    background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%) !important;
    border-left: 3px solid #4f46e5 !important;
    border-radius: 8px;
}

.sc-billed-test-row[b-qc2cjr8tdm] {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    gap: 6px;
    transition: background 0.15s, border-color 0.15s;
    border-left: 3px solid transparent;
}

.sc-billed-test-row:hover[b-qc2cjr8tdm] {
    background: #f1f5f9;
}

/* Batch-accept "done_all" mini button per billed-test row */
.sc-billed-batch-accept[b-qc2cjr8tdm] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    border: 1px solid #bbf7d0;
    background: #dcfce7;
    color: #15803d;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s, transform 0.1s;
    flex-shrink: 0;
}

.sc-billed-batch-accept:hover[b-qc2cjr8tdm] {
    background: #bbf7d0;
    transform: scale(1.1);
}

/* Header badge on Collection & Acceptance */
.sc-badge-collection-header[b-qc2cjr8tdm] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #eff6ff;
    color: #3b82f6;
    border: 1.5px solid #bfdbfe;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Linked test highlight when sample is clicked/selected */
.sc-billed-test-linked[b-qc2cjr8tdm] {
    background: #f0fdf4 !important;
    border-left: 3px solid #16a34a !important;
    box-shadow: 0 0 0 1px #86efac !important;
}

/* Selected row in sample collection table */
.sc-tr-selected[b-qc2cjr8tdm] {
    background: #f0f9ff !important;
}

/* ════════════════════════════════════════════════════════════════════════════
   SAMPLE COLLECTION — TABLET & RESPONSIVE ARCHITECTURE
   ════════════════════════════════════════════════════════════════════════════ */

/* 1. DESKTOP VIEW (> 1200px) */
@media (min-width: 1201px) {
    .vb-page-container[b-qc2cjr8tdm] {
        height: 100% !important;
        max-height: 100% !important;
        overflow: hidden !important;
    }
    .vb-stats-grid[b-qc2cjr8tdm] {
        grid-template-columns: repeat(6, 1fr) !important;
    }
    .vb-toolbar[b-qc2cjr8tdm] {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
}

/* 2. TABLET VIEW (769px – 1200px) - Beautiful Optimized Tablet Layout */
@media (min-width: 769px) and (max-width: 1200px) {
    .vb-page-container[b-qc2cjr8tdm] {
        height: auto !important;
        min-height: 100% !important;
        max-height: none !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 10px 14px 20px 14px !important;
        gap: 8px !important;
    }

    /* Header */
    .vb-header[b-qc2cjr8tdm] {
        flex-wrap: wrap !important;
        gap: 10px !important;
        margin-bottom: 6px !important;
    }

    .vb-header-actions[b-qc2cjr8tdm] {
        margin-left: auto !important;
    }

    /* 6 Stat Cards: 3x2 Grid with compact sizing */
    .vb-stats-grid[b-qc2cjr8tdm] {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin-bottom: 6px !important;
    }

    .vb-stat-card[b-qc2cjr8tdm] {
        padding: 6px 10px !important;
        border-radius: 8px !important;
    }

    .vb-stat-icon-wrap[b-qc2cjr8tdm] {
        width: 24px !important;
        height: 24px !important;
    }

    .vb-stat-icon-wrap .material-symbols-outlined[b-qc2cjr8tdm] {
        font-size: 14px !important;
    }

    .vb-stat-label[b-qc2cjr8tdm] {
        font-size: 0.7rem !important;
    }

    .vb-stat-val[b-qc2cjr8tdm] {
        font-size: 1rem !important;
    }

    .vb-trend-badge[b-qc2cjr8tdm] {
        font-size: 0.65rem !important;
        padding: 1px 3px !important;
    }

    /* Toolbar: Clean flex wrap */
    .vb-toolbar[b-qc2cjr8tdm] {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding: 8px 10px !important;
        border-radius: 8px !important;
    }

    .vb-toolbar-left[b-qc2cjr8tdm] {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 6px 8px !important;
        width: 100% !important;
    }

    .vb-search-wrap[b-qc2cjr8tdm] {
        width: auto !important;
        min-width: 130px !important;
        flex: 1 1 160px !important;
    }

    .vb-search-input[b-qc2cjr8tdm] {
        height: 30px !important;
        font-size: 12px !important;
    }

    .vb-pill-container[b-qc2cjr8tdm] {
        padding: 2px !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .vb-pill-btn[b-qc2cjr8tdm] {
        padding: 3px 8px !important;
        font-size: 11px !important;
        height: 24px !important;
    }

    .vb-select-dropdown[b-qc2cjr8tdm] {
        height: 30px !important;
        font-size: 11.5px !important;
        padding: 0 8px !important;
        min-width: 120px !important;
        max-width: 170px !important;
    }

    /* Toolbar Right Actions: Horizontal row */
    .vb-toolbar-right[b-qc2cjr8tdm] {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 6px !important;
        width: 100% !important;
        border-top: 1px solid #f1f5f9 !important;
        padding-top: 6px !important;
    }

    .vb-btn-toolbar-action[b-qc2cjr8tdm] {
        height: 28px !important;
        padding: 0 10px !important;
        font-size: 11px !important;
        gap: 4px !important;
        flex: none !important;
    }

    .vb-btn-toolbar-action .material-symbols-outlined[b-qc2cjr8tdm] {
        font-size: 14px !important;
    }

    /* Table Card & Scroll */
    .vb-table-card[b-qc2cjr8tdm] {
        height: auto !important;
        min-height: 360px !important;
        max-height: 480px !important;
        flex: none !important;
        border-radius: 8px !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
    }

    .vb-table-container[b-qc2cjr8tdm] {
        height: auto !important;
        max-height: 420px !important;
        overflow-y: auto !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .vb-table[b-qc2cjr8tdm] {
        font-size: 12px !important;
        white-space: nowrap !important;
    }

    .vb-th[b-qc2cjr8tdm] {
        position: sticky !important;
        top: 0 !important;
        z-index: 10 !important;
        padding: 8px 10px !important;
        font-size: 11px !important;
    }

    .vb-td[b-qc2cjr8tdm] {
        padding: 7px 10px !important;
        font-size: 12px !important;
    }

    .vb-avatar[b-qc2cjr8tdm] {
        width: 24px !important;
        height: 24px !important;
    }

    .vb-gender-letter[b-qc2cjr8tdm] {
        font-size: 11px !important;
    }

    /* Pagination Footer */
    .vb-table-footer[b-qc2cjr8tdm] {
        padding: 6px 12px !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
}

/* 3. MOBILE VIEW (max-width: 768px) */
@media (max-width: 768px) {
    .vb-page-container[b-qc2cjr8tdm] {
        height: auto !important;
        min-height: 100% !important;
        max-height: none !important;
        overflow-y: auto !important;
        padding: 8px !important;
        gap: 6px !important;
    }

    .vb-header[b-qc2cjr8tdm] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
    }

    .vb-header-actions[b-qc2cjr8tdm] {
        justify-content: space-between !important;
        width: 100% !important;
    }

    .vb-stats-grid[b-qc2cjr8tdm] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }

    .vb-toolbar[b-qc2cjr8tdm] {
        flex-direction: column !important;
        padding: 8px !important;
        gap: 6px !important;
    }

    .vb-toolbar-left[b-qc2cjr8tdm],
    .vb-toolbar-right[b-qc2cjr8tdm] {
        display: flex !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        gap: 6px !important;
    }

    .vb-toolbar-right[b-qc2cjr8tdm] {
        justify-content: stretch !important;
        border-top: 1px solid #f1f5f9 !important;
        padding-top: 6px !important;
    }

    .vb-btn-toolbar-action[b-qc2cjr8tdm] {
        flex: 1 1 auto !important;
        justify-content: center !important;
    }

    .vb-table-card[b-qc2cjr8tdm] {
        max-height: 380px !important;
    }

    .vb-table-container[b-qc2cjr8tdm] {
        max-height: 320px !important;
    }
}


/* /Components/Pages/SampleMaster.razor.rz.scp.css */
/* ==========================================================================
   SAMPLE / SPECIMEN MASTER — SINGLE VIEWPORT MODERN OBSIDIAN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Main Layout Wrapper ────────────────────── */
.sm-page-root[b-rqmtjr2wu2] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.sm-top-bar[b-rqmtjr2wu2] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.sm-title-block[b-rqmtjr2wu2] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sm-title-icon-wrap[b-rqmtjr2wu2] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sm-title-icon-wrap .material-symbols-outlined[b-rqmtjr2wu2] {
    font-size: 20px;
}

.sm-breadcrumbs[b-rqmtjr2wu2] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.sm-breadcrumb-link[b-rqmtjr2wu2] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.sm-breadcrumb-link:hover[b-rqmtjr2wu2] {
    color: #2563eb;
}

.sm-breadcrumb-sep[b-rqmtjr2wu2] {
    font-size: 11px;
}

.sm-page-title[b-rqmtjr2wu2] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sm-badge-directory[b-rqmtjr2wu2] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sm-live-dot[b-rqmtjr2wu2] {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.sm-top-actions[b-rqmtjr2wu2] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sm-search-wrap[b-rqmtjr2wu2] {
    position: relative;
    width: 240px;
}

.sm-search-wrap .material-symbols-outlined[b-rqmtjr2wu2] {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.sm-search-input[b-rqmtjr2wu2] {
    width: 100%;
    height: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 10px 0 32px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sm-search-input:focus[b-rqmtjr2wu2] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.sm-btn-primary[b-rqmtjr2wu2] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.sm-btn-primary:hover[b-rqmtjr2wu2] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

.sm-btn-icon[b-rqmtjr2wu2] {
    font-size: 16px;
}

/* ── 3. KPI / Stat Cards Grid ───────────────────────────────── */
.sm-stats-grid[b-rqmtjr2wu2] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex-shrink: 0;
}

.sm-stat-card[b-rqmtjr2wu2] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 7px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.sm-stat-card[b-rqmtjr2wu2]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.sm-card-total[b-rqmtjr2wu2]::before    { background: #3b82f6; }
.sm-card-grouped[b-rqmtjr2wu2]::before  { background: #10b981; }
.sm-card-generic[b-rqmtjr2wu2]::before  { background: #6366f1; }
.sm-card-active[b-rqmtjr2wu2]::before   { background: #f59e0b; }

.sm-stat-card:hover[b-rqmtjr2wu2] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.sm-stat-top[b-rqmtjr2wu2] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sm-stat-icon-wrap[b-rqmtjr2wu2] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sm-stat-icon-wrap .material-symbols-outlined[b-rqmtjr2wu2] {
    font-size: 15px;
}

.sm-stat-tag[b-rqmtjr2wu2] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.sm-stat-tag .material-symbols-outlined[b-rqmtjr2wu2] {
    font-size: 13px;
}

.sm-card-total .sm-stat-icon-wrap[b-rqmtjr2wu2]    { background: #eff6ff; color: #3b82f6; }
.sm-card-total .sm-stat-tag[b-rqmtjr2wu2]          { background: #eff6ff; color: #2563eb; }

.sm-card-grouped .sm-stat-icon-wrap[b-rqmtjr2wu2]  { background: #ecfdf5; color: #059669; }
.sm-card-grouped .sm-stat-tag[b-rqmtjr2wu2]        { background: #ecfdf5; color: #047857; }

.sm-card-generic .sm-stat-icon-wrap[b-rqmtjr2wu2]  { background: #eef2ff; color: #6366f1; }
.sm-card-generic .sm-stat-tag[b-rqmtjr2wu2]       { background: #eef2ff; color: #4f46e5; }

.sm-card-active .sm-stat-icon-wrap[b-rqmtjr2wu2]   { background: #fffbeb; color: #d97706; }
.sm-card-active .sm-stat-tag[b-rqmtjr2wu2]         { background: #fffbeb; color: #b45309; }

.sm-stat-mid[b-rqmtjr2wu2] {
    margin-top: 1px;
}

.sm-stat-label[b-rqmtjr2wu2] {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sm-stat-bottom[b-rqmtjr2wu2] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.sm-stat-val[b-rqmtjr2wu2] {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.sm-stat-subtext[b-rqmtjr2wu2] {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── 4. Table Card Container (Single Viewport Inner Area) ─── */
.sm-table-card[b-rqmtjr2wu2] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.sm-table-container[b-rqmtjr2wu2] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

.sm-table[b-rqmtjr2wu2] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    text-align: left;
}

/* Light Slate Sticky Header */
.sm-thead[b-rqmtjr2wu2] {
    position: sticky;
    top: 0;
    z-index: 10;
}

.sm-th[b-rqmtjr2wu2] {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 9px 12px;
    border-bottom: 1px solid #e2e8f0;
    border-top: none;
    white-space: nowrap;
    user-select: none;
}

.sm-tbody tr[b-rqmtjr2wu2] {
    background-color: #ffffff;
    transition: background-color 0.12s ease;
}

.sm-tbody tr:hover[b-rqmtjr2wu2] {
    background-color: #f8fafc;
}

.sm-td[b-rqmtjr2wu2] {
    padding: 7px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
    font-size: 12px;
}

.sm-badge-code[b-rqmtjr2wu2] {
    display: inline-block;
    padding: 2px 6px;
    background: #f1f5f9;
    color: #475569;
    font-family: monospace;
    font-weight: 700;
    font-size: 11px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.sm-shortname-pill[b-rqmtjr2wu2] {
    display: inline-block;
    color: #64748b;
    font-family: monospace;
    font-weight: 600;
    font-size: 11.5px;
}

.sm-name-cell[b-rqmtjr2wu2] {
    font-weight: 700;
    color: #0f172a;
    font-size: 12px;
}

.sm-date-text[b-rqmtjr2wu2] {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

/* Action Buttons */
.sm-actions-cell[b-rqmtjr2wu2] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.sm-btn-action[b-rqmtjr2wu2] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.sm-btn-action .material-symbols-outlined[b-rqmtjr2wu2] {
    font-size: 14px;
}

.sm-btn-edit:hover[b-rqmtjr2wu2] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.sm-btn-delete:hover[b-rqmtjr2wu2] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* ── 5. Modal Backdrop & Card Form ──────────────────────────── */
.sm-modal-overlay[b-rqmtjr2wu2] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 16px;
    animation: smFadeIn-b-rqmtjr2wu2 0.15s ease-out;
}

@keyframes smFadeIn-b-rqmtjr2wu2 {
    from { opacity: 0; }
    to { opacity: 1; }
}

.sm-modal-card[b-rqmtjr2wu2] {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: smSlideUp-b-rqmtjr2wu2 0.15s ease-out;
}

@keyframes smSlideUp-b-rqmtjr2wu2 {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.sm-modal-header[b-rqmtjr2wu2] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.sm-modal-title[b-rqmtjr2wu2] {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.sm-modal-close-btn[b-rqmtjr2wu2] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.sm-modal-close-btn:hover[b-rqmtjr2wu2] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.sm-modal-body[b-rqmtjr2wu2] {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 75vh;
    overflow-y: auto;
}

.sm-form-group[b-rqmtjr2wu2] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sm-form-label[b-rqmtjr2wu2] {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sm-form-input[b-rqmtjr2wu2],
.sm-form-textarea[b-rqmtjr2wu2] {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sm-form-input:focus[b-rqmtjr2wu2],
.sm-form-textarea:focus[b-rqmtjr2wu2] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.sm-grid-2col[b-rqmtjr2wu2] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sm-modal-footer[b-rqmtjr2wu2] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.sm-btn-delete[b-rqmtjr2wu2] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #fca5a5;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sm-btn-delete:hover:not(:disabled)[b-rqmtjr2wu2] {
    background: #fee2e2;
}

.sm-btn-delete:disabled[b-rqmtjr2wu2] {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #e2e8f0;
    color: #94a3b8;
}

.sm-btn-save[b-rqmtjr2wu2] {
    height: 32px;
    padding: 0 16px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sm-btn-save:hover[b-rqmtjr2wu2] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}
/* /Components/Pages/StateMaster.razor.rz.scp.css */
/* ==========================================================================
   STATE MASTER — MODERN OBSIDIAN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Layout Wrapper ─────────────────────────── */
.sm-page-root[b-6k4wlhyuf4] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.sm-top-bar[b-6k4wlhyuf4] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.sm-title-block[b-6k4wlhyuf4] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sm-title-icon-wrap[b-6k4wlhyuf4] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sm-title-icon-wrap .material-symbols-outlined[b-6k4wlhyuf4] {
    font-size: 20px;
}

.sm-breadcrumbs[b-6k4wlhyuf4] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.sm-breadcrumb-link[b-6k4wlhyuf4] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.sm-breadcrumb-link:hover[b-6k4wlhyuf4] {
    color: #2563eb;
}

.sm-breadcrumb-sep[b-6k4wlhyuf4] {
    font-size: 11px;
}

.sm-page-title[b-6k4wlhyuf4] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sm-badge-directory[b-6k4wlhyuf4] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sm-live-dot[b-6k4wlhyuf4] {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.sm-top-actions[b-6k4wlhyuf4] {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Filter Pills */
.sm-filter-pills[b-6k4wlhyuf4] {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f8fafc;
    padding: 2px 4px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.sm-filter-pill[b-6k4wlhyuf4] {
    padding: 3px 10px;
    border-radius: 4px;
    border: none;
    background: transparent;
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sm-filter-pill:hover[b-6k4wlhyuf4] {
    color: #0f172a;
}

.sm-filter-pill.active[b-6k4wlhyuf4] {
    background: #0f172a;
    color: #ffffff;
}

/* Search input */
.sm-search-wrap[b-6k4wlhyuf4] {
    position: relative;
    width: 220px;
}

.sm-search-wrap .material-symbols-outlined[b-6k4wlhyuf4] {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.sm-search-input[b-6k4wlhyuf4] {
    width: 100%;
    height: 32px;
    padding: 0 10px 0 30px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sm-search-input:focus[b-6k4wlhyuf4] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.sm-btn-primary[b-6k4wlhyuf4] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.sm-btn-primary:hover[b-6k4wlhyuf4] {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(15, 23, 42, 0.12);
}

/* ── 3. KPI / Stat Cards Grid ───────────────────────────────── */
.sm-stats-grid[b-6k4wlhyuf4] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    flex-shrink: 0;
}

.sm-stat-card[b-6k4wlhyuf4] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 7px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.sm-stat-card[b-6k4wlhyuf4]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.sm-card-total[b-6k4wlhyuf4]::before     { background: #3b82f6; }
.sm-card-country[b-6k4wlhyuf4]::before   { background: #10b981; }
.sm-card-short[b-6k4wlhyuf4]::before     { background: #6366f1; }
.sm-card-order[b-6k4wlhyuf4]::before     { background: #f59e0b; }

.sm-stat-card:hover[b-6k4wlhyuf4] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.sm-stat-top[b-6k4wlhyuf4] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sm-stat-icon-wrap[b-6k4wlhyuf4] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sm-stat-icon-wrap .material-symbols-outlined[b-6k4wlhyuf4] {
    font-size: 15px;
}

.sm-stat-tag[b-6k4wlhyuf4] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.sm-stat-tag .material-symbols-outlined[b-6k4wlhyuf4] {
    font-size: 13px;
}

.sm-card-total .sm-stat-icon-wrap[b-6k4wlhyuf4]   { background: #eff6ff; color: #3b82f6; }
.sm-card-total .sm-stat-tag[b-6k4wlhyuf4]         { background: #eff6ff; color: #2563eb; }

.sm-card-country .sm-stat-icon-wrap[b-6k4wlhyuf4] { background: #ecfdf5; color: #10b981; }
.sm-card-country .sm-stat-tag[b-6k4wlhyuf4]       { background: #ecfdf5; color: #059669; }

.sm-card-short .sm-stat-icon-wrap[b-6k4wlhyuf4]   { background: #eef2ff; color: #6366f1; }
.sm-card-short .sm-stat-tag[b-6k4wlhyuf4]         { background: #eef2ff; color: #4f46e5; }

.sm-card-order .sm-stat-icon-wrap[b-6k4wlhyuf4]   { background: #fffbeb; color: #f59e0b; }
.sm-card-order .sm-stat-tag[b-6k4wlhyuf4]         { background: #fffbeb; color: #d97706; }

.sm-stat-mid[b-6k4wlhyuf4] {
    margin-top: 1px;
}

.sm-stat-label[b-6k4wlhyuf4] {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sm-stat-bottom[b-6k4wlhyuf4] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.sm-stat-val[b-6k4wlhyuf4] {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.sm-stat-subtext[b-6k4wlhyuf4] {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── 4. Table Card Container (Single Viewport) ─────────────── */
.sm-table-card[b-6k4wlhyuf4] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.sm-table-container[b-6k4wlhyuf4] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

.sm-table[b-6k4wlhyuf4] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    text-align: left;
}

/* Light Slate Sticky Header */
.sm-thead[b-6k4wlhyuf4] {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8fafc !important;
}

.sm-th[b-6k4wlhyuf4] {
    background-color: #f8fafc !important;
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 8px 12px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: none !important;
    white-space: nowrap;
    user-select: none;
}

.sm-tbody tr[b-6k4wlhyuf4] {
    background-color: #ffffff;
    transition: background-color 0.12s ease;
}

.sm-tbody tr:hover[b-6k4wlhyuf4] {
    background-color: #f8fafc;
}

.sm-td[b-6k4wlhyuf4] {
    padding: 6px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
    font-size: 12px;
}

.sm-badge-pill[b-6k4wlhyuf4] {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.sm-badge-country[b-6k4wlhyuf4] {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

/* Action buttons in row */
.sm-row-actions[b-6k4wlhyuf4] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sm-btn-icon-action[b-6k4wlhyuf4] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: #f8fafc;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.sm-btn-icon-action:hover[b-6k4wlhyuf4] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.sm-btn-icon-delete:hover[b-6k4wlhyuf4] {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
}

.sm-btn-icon-action .material-symbols-outlined[b-6k4wlhyuf4] {
    font-size: 15px;
}

/* ── 5. Pagination Footer ───────────────────────────────────── */
.sm-pagination-bar[b-6k4wlhyuf4] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 14px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
    font-size: 11.5px;
    color: #64748b;
}

.sm-page-controls[b-6k4wlhyuf4] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sm-btn-page[b-6k4wlhyuf4] {
    height: 26px;
    min-width: 26px;
    padding: 0 6px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.sm-btn-page:hover:not(:disabled)[b-6k4wlhyuf4] {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.sm-btn-page:disabled[b-6k4wlhyuf4] {
    opacity: 0.4;
    cursor: not-allowed;
}

.sm-btn-page .material-symbols-outlined[b-6k4wlhyuf4] {
    font-size: 14px;
}

/* ── 6. Modal Form Overlay & Card ───────────────────────────── */
.sm-modal-overlay[b-6k4wlhyuf4] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 16px;
}

.sm-modal-card[b-6k4wlhyuf4] {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 520px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sm-modal-header[b-6k4wlhyuf4] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.sm-modal-title[b-6k4wlhyuf4] {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.sm-modal-close-btn[b-6k4wlhyuf4] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.sm-modal-close-btn:hover[b-6k4wlhyuf4] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.sm-modal-body[b-6k4wlhyuf4] {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sm-form-group[b-6k4wlhyuf4] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sm-field-label[b-6k4wlhyuf4] {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sm-input[b-6k4wlhyuf4] {
    width: 100%;
    height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 12.5px;
    color: #1e293b;
    background: #ffffff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sm-input:focus[b-6k4wlhyuf4] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.sm-modal-footer[b-6k4wlhyuf4] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}
/* /Components/Pages/Stock.razor.rz.scp.css */
/* Scoped styles for Stock component */

.items-page[b-5zguaio146] {
    min-height: 100vh;
    background: transparent !important;
}

.items-shell[b-5zguaio146] {
    max-width: 1320px;
    margin: 0 auto;
}

.items-content[b-5zguaio146] {
    width: min(1240px, 100%);
    margin: 0 auto;
    text-align: center;
}

.premium-header-card[b-5zguaio146] {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-radius: 16px !important;
    padding: 1.25rem 2rem !important;
    color: #1e1b4b !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem !important;
    margin-bottom: 1.75rem !important;
}

.header-card-left[b-5zguaio146] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-card-icon[b-5zguaio146] {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

.header-card-icon svg[b-5zguaio146] {
    stroke: #2563eb !important;
}

.header-card-text[b-5zguaio146] {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.header-card-heading[b-5zguaio146] {
    color: #0f172a !important;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
}

.header-card-subheading[b-5zguaio146] {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b !important;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.status-dot[b-5zguaio146] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    margin-right: 6px;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
}

.header-card-right[b-5zguaio146] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.items-search-wrap[b-5zguaio146] {
    position: relative;
    display: flex;
    align-items: center;
}

.items-search[b-5zguaio146] {
    width: 220px;
    height: 38px !important;
    border-radius: 20px !important;
    border: 1px solid #cbd5e1 !important;
    padding-left: 2.4rem !important;
    font-size: 0.8rem !important;
    background: #ffffff !important;
    color: #1e293b !important;
    box-shadow: none !important;
    transition: all 0.25s ease !important;
}

.items-search:focus[b-5zguaio146] {
    outline: none !important;
    width: 280px !important;
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

.items-search-icon[b-5zguaio146] {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
}

.view-toggle[b-5zguaio146] {
    display: inline-flex;
    border: 1px solid #cbd5e1 !important;
    border-radius: 20px !important;
    overflow: hidden;
    background: #f8fafc !important;
    height: 38px;
    padding: 2px;
    align-items: center;
}

.view-toggle button[b-5zguaio146] {
    border: 0 !important;
    background: transparent !important;
    color: #64748b !important;
    width: 36px;
    height: 32px;
    border-radius: 16px !important;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle button.active[b-5zguaio146] {
    background: #ffffff !important;
    color: #4f46e5 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.add-item-btn[b-5zguaio146] {
    height: 38px !important;
    border-radius: 20px !important;
    background: #4f46e5 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0 1.5rem !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
    transition: all 0.2s ease-in-out !important;
}

.add-item-btn:hover[b-5zguaio146] {
    background: #3f39c5 !important;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35) !important;
    transform: translateY(-1.5px);
}

.items-main-card[b-5zguaio146] {
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    overflow: hidden;
    margin-top: 1.5rem !important;
    background: #ffffff !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
}

.items-main-card .table-responsive[b-5zguaio146] {
    max-height: 550px !important;
    overflow-y: auto !important;
    overflow-x: auto !important;
}

.items-table[b-5zguaio146] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

table.table.items-table thead tr th[b-5zguaio146],
.items-table th[b-5zguaio146] {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    background: #ffffff !important;
    color: #8a99ad !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.74rem !important;
    letter-spacing: 0.8px !important;
    padding: 18px 24px !important;
    border-bottom: 2px solid #eef2f6 !important;
    text-align: left !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.items-table td[b-5zguaio146] {
    border-top: none !important;
    border-bottom: 1px solid #eef2f6 !important;
    padding: 18px 24px !important;
    font-size: 0.8rem !important;
    background: #ffffff !important;
    color: #64748b !important;
    vertical-align: middle !important;
}

.items-table td:last-child[b-5zguaio146] {
    white-space: nowrap !important;
    text-align: center !important;
}

.items-table tr td:first-child[b-5zguaio146] {
    color: #3b82f6 !important;
    font-weight: 700 !important;
}

.action-btn[b-5zguaio146] {
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    margin: 0 2px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #94a3b8 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.action-btn:hover[b-5zguaio146] {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}

.action-btn i[b-5zguaio146] {
    font-size: 0.85rem !important;
}

.items-card-grid[b-5zguaio146] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
}

.item-card[b-5zguaio146] {
    background: #ffffff !important;
    border: 1px solid #eef2f6 !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.item-card:hover[b-5zguaio146] {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(37, 99, 235, 0.25) !important;
}

.item-card-head[b-5zguaio146] {
    background: #ffffff !important;
    color: #1e293b !important;
    padding: 0.6rem 1rem !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid rgba(99, 102, 241, 0.1) !important;
}

.card-item-code[b-5zguaio146] {
    color: #4b5563 !important;
    font-weight: 700 !important;
    margin-right: 6px;
}

.card-item-name[b-5zguaio146] {
    color: #374151 !important;
    font-weight: 700 !important;
}

.item-card-body[b-5zguaio146] {
    padding: 0.75rem 1rem !important;
    color: #64748b !important;
    font-size: 0.8rem !important;
}

.detail-row[b-5zguaio146] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0 !important;
    border-bottom: 1px solid #eef2f6 !important;
}

.detail-row:last-child[b-5zguaio146] {
    border-bottom: none !important;
}

.detail-row span[b-5zguaio146] {
    color: #8a99ad !important;
    font-weight: 700 !important;
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.detail-row strong[b-5zguaio146] {
    color: #000000 !important;
    font-weight: 600 !important;
}

.btn-cancel-modal[b-5zguaio146] {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: none !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    min-width: 100px !important;
    transition: all 0.2s !important;
}

.btn-cancel-modal:hover[b-5zguaio146] {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.purchase-bill-wrapper[b-5zguaio146] {
    display: flex;
    gap: 2.25rem;
    flex-wrap: wrap;
}

.purchase-bill-fields[b-5zguaio146] {
    flex: 1.5;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.purchase-bill-fields .premium-input[b-5zguaio146] {
    padding: 0 10px !important;
    font-size: 0.8rem !important;
    border-radius: 6px !important;
    height: 32px !important;
    line-height: 32px !important;
    background: #f9fafc !important;
    border: 1px solid #e5e7eb !important;
    color: #1f2937 !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    display: flex !important;
    align-items: center !important;
}

.purchase-bill-fields input[type="date"].premium-input[b-5zguaio146],
.purchase-bill-fields input.premium-input[b-5zguaio146] {
    padding: 0 10px !important;
    height: 32px !important;
    line-height: normal !important;
    background: #f9fafc !important;
    border: 1px solid #e5e7eb !important;
}

.purchase-bill-fields .field-group[b-5zguaio146] {
    gap: 4px;
}

.purchase-bill-fields .field-label[b-5zguaio146] {
    font-size: 0.68rem !important;
    margin-bottom: 4px !important;
    font-weight: 700 !important;
    color: #374151 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.purchase-bill-fields .form-grid[b-5zguaio146] {
    gap: 12px;
}

.purchase-bill-summary[b-5zguaio146] {
    flex: 0.85;
    min-width: 300px;
    max-width: 320px;
    display: flex;
    align-items: stretch;
}

.purchase-item-entry-card[b-5zguaio146] {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0.7rem;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow-x: hidden;
    box-sizing: border-box;
}

.purchase-item-entry-header[b-5zguaio146] {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(52px, 0.55fr) minmax(60px, 0.65fr) minmax(52px, 0.55fr) minmax(52px, 0.55fr) minmax(80px, 0.9fr) minmax(110px, 1fr);
    gap: 10px;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.purchase-item-entry-label[b-5zguaio146] {
    font-size: 0.6rem;
    font-weight: 700;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.purchase-item-entry-label span[b-5zguaio146] {
    color: #ef4444;
}

.purchase-item-entry-fields[b-5zguaio146] {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(52px, 0.55fr) minmax(60px, 0.65fr) minmax(52px, 0.55fr) minmax(52px, 0.55fr) minmax(80px, 0.9fr) minmax(110px, 1fr);
    gap: 10px;
    align-items: center;
    width: 100%;
}

.purchase-item-entry-fields>div[b-5zguaio146],
.purchase-item-entry-header>div[b-5zguaio146] {
    min-width: 0;
}

.purchase-item-input[b-5zguaio146] {
    height: 28px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: white;
    font-size: 0.65rem;
    padding: 0 6px;
    outline: none;
    transition: all 0.2s;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.purchase-item-input:focus[b-5zguaio146] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    background: #f8fbff;
}

.purchase-item-select[b-5zguaio146] {
    height: 28px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: white;
    font-size: 0.65rem;
    padding: 0 6px;
    outline: none;
    transition: all 0.2s;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.purchase-item-select:focus[b-5zguaio146] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    background: #f8fbff;
}

.purchase-item-add-btn[b-5zguaio146] {
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    height: 28px;
    font-weight: 700;
    font-size: 0.65rem;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.purchase-item-add-btn:hover[b-5zguaio146] {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.purchase-item-add-btn:active[b-5zguaio146] {
    transform: translateY(0);
}

.purchase-details-wrapper[b-5zguaio146] {
    width: 100%;
    margin-bottom: 2rem;
}

.purchase-details-link[b-5zguaio146] {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f678f;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.purchase-details-link:hover[b-5zguaio146] {
    color: #0ea5e9;
    gap: 8px;
}

.purchase-items-table-wrapper[b-5zguaio146] {
    border: none !important;
    border-radius: 0;
    overflow: visible;
    background: white;
    margin-bottom: 0.5rem !important;
    box-shadow: none !important;
}

.purchase-items-table-wrapper table[b-5zguaio146] {
    table-layout: fixed;
    width: 100%;
}

.purchase-items-table-wrapper .purchase-item-input[b-5zguaio146],
.purchase-items-table-wrapper .purchase-item-select[b-5zguaio146] {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    height: 26px;
    font-size: 0.65rem;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: white;
    outline: none;
    transition: all 0.2s;
}

.purchase-items-table-wrapper .purchase-item-input:focus[b-5zguaio146],
.purchase-items-table-wrapper .purchase-item-select:focus[b-5zguaio146] {
    border-color: #0273b2;
    box-shadow: 0 0 0 2px rgba(2, 115, 178, 0.1);
    background: #f4f8fa;
}

.purchase-items-table-wrapper .purchase-item-select[b-5zguaio146] {
    min-width: 130px;
}

.purchase-items-table-header[b-5zguaio146] {
    background: #0273b2 !important;
    border-bottom: none;
}

.purchase-items-table-header th[b-5zguaio146] {
    font-weight: 700;
    font-size: 0.72rem;
    color: #ffffff !important;
    padding: 12px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.purchase-add-row-wrapper[b-5zguaio146] {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.purchase-add-row-btn[b-5zguaio146] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 2px dashed #0273b2 !important;
    border-radius: 10px !important;
    background: #f4f8fa !important;
    color: #0273b2 !important;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.45rem 1.25rem;
    min-width: 200px;
    cursor: pointer;
    transition: all 0.22s ease-in-out;
    box-shadow: 0 2px 4px rgba(2, 115, 178, 0.05);
}

.purchase-add-row-btn:hover[b-5zguaio146] {
    background: #e6f2fa !important;
    border-color: #015f94 !important;
    color: #015f94 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(2, 115, 178, 0.12);
}

.purchase-add-row-btn i[b-5zguaio146] {
    font-size: 0.95rem;
    color: #0273b2 !important;
    transition: color 0.22s ease-in-out;
}

.purchase-add-row-btn:hover i[b-5zguaio146] {
    color: #015f94 !important;
}

.purchase-item-readonly[b-5zguaio146] {
    display: block;
    width: 100%;
    height: 26px;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 6px;
    line-height: 24px;
    font-size: 0.65rem;
    color: #475569;
    box-sizing: border-box;
    pointer-events: none;
    user-select: none;
    text-align: right;
}

.purchase-items-table-wrapper .purchase-item-input:disabled[b-5zguaio146],
.purchase-items-table-wrapper .purchase-item-select:disabled[b-5zguaio146] {
    pointer-events: none;
    cursor: default;
    background-color: white !important;
    color: #000000 !important;
    border-color: #d1d5db !important;
}

.btn-add-item-blue[b-5zguaio146] {
    background: #0273b2;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(2, 115, 178, 0.3);
    transition: all 0.2s;
    white-space: nowrap;
    font-size: 0.82rem;
    height: 32px;
}

.btn-add-item-blue:hover[b-5zguaio146] {
    background: #015c8f;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(2, 115, 178, 0.4);
}

.btn-add-item-blue:active[b-5zguaio146] {
    transform: translateY(0);
}

.bill-card-premium[b-5zguaio146] {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 5px solid #3b82f6;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.04);
    transition: all 0.3s ease;
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.25rem;
    padding: 0.4rem 0.65rem;
}

.bill-card-premium:hover[b-5zguaio146] {
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.08);
    border-color: #93c5fd;
    border-left-color: #2563eb;
}

.bill-card-header-premium[b-5zguaio146] {
    margin-bottom: 0.15rem;
    padding-bottom: 0.35rem;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #4f46e5;
    letter-spacing: 0.8px;
    border-bottom: 1px dashed #bfdbfe;
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-premium-gross[b-5zguaio146] {
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 4px solid #1e3a8a !important;
    color: #1e3a8a !important;
    font-weight: 700 !important;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-premium-gross:hover[b-5zguaio146] {
    transform: translateY(-1.5px);
    background-color: #f1f5f9 !important;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.08);
}

.input-premium-gross:focus[b-5zguaio146] {
    border-color: #2563eb !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18) !important;
    outline: none;
}

.input-premium-discount[b-5zguaio146] {
    background-color: #f0fdf4 !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 4px solid #059669 !important;
    color: #065f46 !important;
    font-weight: 700 !important;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-premium-discount:hover[b-5zguaio146] {
    transform: translateY(-1.5px);
    background-color: #ecfdf5 !important;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.08);
}

.input-premium-discount:focus[b-5zguaio146] {
    border-color: #10b981 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18) !important;
    outline: none;
}

.input-premium-tax[b-5zguaio146] {
    background-color: #fffbeb !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 4px solid #d97706 !important;
    color: #92400e !important;
    font-weight: 700 !important;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-premium-tax:hover[b-5zguaio146] {
    transform: translateY(-1.5px);
    background-color: #fef3c7 !important;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.08);
}

.input-premium-tax:focus[b-5zguaio146] {
    border-color: #f59e0b !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18) !important;
    outline: none;
}

.net-payable-wrapper-premium[b-5zguaio146] {
    margin-top: 0.2rem;
    padding-top: 0.5rem;
    border-top: 2px dashed rgba(99, 102, 241, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.net-payable-label-premium[b-5zguaio146] {
    font-size: 0.74rem;
    font-weight: 800;
    color: #4f46e5;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.net-payable-value-premium[b-5zguaio146] {
    font-size: 1.25rem;
    font-weight: 800;
    color: #4f46e5;
    text-shadow: 0 1px 2px rgba(79, 70, 229, 0.1);
}

@keyframes premium-pulse-blink-b-5zguaio146 {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.65;
        transform: scale(0.97);
    }
}

.blink-payable-value[b-5zguaio146] {
    animation: premium-pulse-blink-b-5zguaio146 1.8s infinite ease-in-out;
    display: inline-block;
}

.btn-dotted-add[b-5zguaio146] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px dashed #0f678f !important;
    background: #fff !important;
    color: #0f678f !important;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 20px;
    padding: 8px 32px;
    box-shadow: none;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-dotted-add:hover[b-5zguaio146] {
    background: rgba(15, 103, 143, 0.04) !important;
    border-color: #0d587a !important;
    color: #0d587a !important;
    transform: translateY(-1.5px);
}

.btn-dotted-add:active[b-5zguaio146] {
    transform: translateY(0);
}

.purchase-bill-fields select.premium-input[b-5zguaio146] {
    -webkit-appearance: auto !important;
    appearance: auto !important;
    background-image: none !important;
    padding-right: 24px !important;
}



/* Premium Modal Styles for Vendor */
.modal-card[b-5zguaio146] {
    border-radius: 24px !important;
    border: none !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
    background: #fff;
}

.modal-header-bar[b-5zguaio146] {
    background: #fff !important;
    color: #333 !important;
    padding: 24px 32px !important;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-left[b-5zguaio146] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-badge[b-5zguaio146] {
    background: var(--sidebar-bg);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.modal-title[b-5zguaio146] {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
}

.modal-subtitle[b-5zguaio146] {
    font-size: 0.85rem;
    color: #64748b;
}

.btn-close-modal[b-5zguaio146] {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}

.btn-close-modal:hover[b-5zguaio146] {
    background: #e2e8f0;
    color: #1e293b;
}

.modal-inner[b-5zguaio146] {
    padding: 16px 32px !important;
    background: #fff;
}

.form-section-header[b-5zguaio146] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    margin-top: 4px;
}

.form-section-icon[b-5zguaio146] {
    background: var(--sidebar-bg);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.form-section-title[b-5zguaio146] {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #025091;
}

.form-grid[b-5zguaio146] {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.col-prefix[b-5zguaio146] {
    grid-column: span 3;
}

.col-main[b-5zguaio146] {
    grid-column: span 9;
}

.col-2[b-5zguaio146] {
    grid-column: span 2;
}

.col-3[b-5zguaio146] {
    grid-column: span 3;
}

.col-4[b-5zguaio146] {
    grid-column: span 4;
}

.col-5[b-5zguaio146] {
    grid-column: span 5;
}

.col-6[b-5zguaio146] {
    grid-column: span 6;
}

.col-7[b-5zguaio146] {
    grid-column: span 7;
}

.col-8[b-5zguaio146] {
    grid-column: span 8;
}

.col-9[b-5zguaio146] {
    grid-column: span 9;
}

.col-10[b-5zguaio146] {
    grid-column: span 10;
}

.col-11[b-5zguaio146] {
    grid-column: span 11;
}

.col-12[b-5zguaio146] {
    grid-column: span 12;
}

.field-group[b-5zguaio146] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-label[b-5zguaio146] {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 2px;
}

.field-label.required[b-5zguaio146]::after {
    content: " *";
    color: #ef4444;
}

.premium-input[b-5zguaio146] {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 0.88rem !important;
    color: #4b5563 !important;
    transition: all 0.2s !important;
    height: auto !important;
}

.premium-input[b-5zguaio146]::placeholder {
    color: #cbd5e1 !important;
    opacity: 1 !important;
}

.premium-input:focus[b-5zguaio146] {
    background: #fff !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1) !important;
    outline: none !important;
}

.modal-footer-actions[b-5zguaio146] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.btn-delete-text[b-5zguaio146] {
    color: #ef4444;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-delete-text:hover[b-5zguaio146] {
    background: #fef2f2;
}

.btn-save-premium[b-5zguaio146] {
    background: #1c9f5f;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(28, 159, 95, 0.3);
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-save-premium:hover[b-5zguaio146] {
    background: #168a52;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(28, 159, 95, 0.4);
}

.btn-save-premium:active[b-5zguaio146] {
    transform: translateY(0);
}

.btn-save-premium:disabled[b-5zguaio146] {
    opacity: 0.6;
    cursor: not-allowed;
}


/* Financial Summary Card Styles */
.financial-summary-card[b-5zguaio146] {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    padding: 1.5rem;
    font-family: 'Inter', 'Outfit', sans-serif;
}

.financial-summary-header[b-5zguaio146] {
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.financial-summary-row[b-5zguaio146] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.financial-summary-label[b-5zguaio146] {
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.financial-summary-value[b-5zguaio146] {
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
}

.financial-summary-input[b-5zguaio146] {
    width: 80px;
    height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: #334155;
    outline: none;
    transition: all 0.2s;
    background: #ffffff;
}

.financial-summary-input:focus[b-5zguaio146] {
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.financial-summary-net[b-5zguaio146] {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.financial-summary-net-label[b-5zguaio146] {
    color: #0f172a;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.financial-summary-net-value[b-5zguaio146] {
    color: #4f46e5;
    font-weight: 800;
    font-size: 1.4rem;
}

/* Purchase Entry Master Compact Summary Card */
.compact-summary-card[b-5zguaio146] {
    border-radius: 14px;
    padding: 1.25rem 1.4rem;
    border: 1.5px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.compact-summary-card[b-5zguaio146]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #6366f1, #06b6d4);
    border-radius: 14px 0 0 14px;
}

.compact-summary-card:hover[b-5zguaio146] {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
}

/* Physical Bill Totals - Blue-indigo gradient */
.compact-summary-card.bill-card[b-5zguaio146] {
    background: linear-gradient(135deg, #eef2ff 0%, #f0fdff 100%);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02);
}

.compact-summary-card.bill-card[b-5zguaio146]::before {
    background: linear-gradient(180deg, #6366f1, #06b6d4);
}

/* Computed Items Total - Teal-green gradient */
.compact-summary-card.items-card[b-5zguaio146] {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 100%);
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.08);
}

.compact-summary-card.items-card[b-5zguaio146]::before {
    background: linear-gradient(180deg, #10b981, #06b6d4);
}

.compact-summary-card.items-card:hover[b-5zguaio146] {
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.18);
}

.compact-summary-header[b-5zguaio146] {
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed rgba(37, 99, 235, 0.25);
    padding-left: 8px;
}

.compact-summary-card.items-card .compact-summary-header[b-5zguaio146] {
    color: #10b981;
    border-bottom-color: rgba(16, 185, 129, 0.25);
}

.compact-summary-row[b-5zguaio146] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding-left: 8px;
}

.compact-summary-label[b-5zguaio146] {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.compact-summary-value[b-5zguaio146] {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
}

.compact-summary-input[b-5zguaio146] {
    width: 110px;
    height: 30px;
    border-radius: 8px;
    border: 1.5px solid rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.8);
    text-align: right;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0 10px;
    color: #1e293b;
}

.compact-summary-input:focus[b-5zguaio146] {
    outline: none;
    border-color: #64748b;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: #fff;
}

.compact-summary-net[b-5zguaio146] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    padding-left: 8px;
    border-top: 1.5px solid rgba(99, 102, 241, 0.2);
}

.compact-summary-card.items-card .compact-summary-net[b-5zguaio146] {
    border-top-color: rgba(16, 185, 129, 0.2);
}

.compact-summary-net-label[b-5zguaio146] {
    font-size: 0.8rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compact-summary-net-value[b-5zguaio146] {
    font-size: 1.3rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: -0.5px;
}

.compact-summary-card.items-card .compact-summary-net-value[b-5zguaio146] {
    color: #10b981;
}

/* Stock Indent Status Badges */
.badge-indent-pending[b-5zguaio146] {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #d97706 !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

.badge-indent-approved[b-5zguaio146] {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #059669 !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

.badge-indent-rejected[b-5zguaio146] {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #dc2626 !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

/* Stock volume indicators (Text Only - No Box) */
.badge-stock-high[b-5zguaio146],
.detail-row strong.badge-stock-high[b-5zguaio146] {
    background: transparent !important;
    color: #059669 !important;
    border: none !important;
    padding: 0 !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

.badge-stock-low[b-5zguaio146],
.detail-row strong.badge-stock-low[b-5zguaio146] {
    background: transparent !important;
    color: #d97706 !important;
    border: none !important;
    padding: 0 !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

.badge-stock-empty[b-5zguaio146],
.detail-row strong.badge-stock-empty[b-5zguaio146] {
    background: transparent !important;
    color: #dc2626 !important;
    border: none !important;
    padding: 0 !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
}

/* OVERRIDE FOR HIGH-DENSITY PURCHASE BILL FORM (e.g. ItemMaster Modal) */
.purchase-bill-fields .premium-segmented-control-joined[b-5zguaio146] {
    height: 32px !important;
    border-radius: 6px !important;
    max-width: none !important;
}

.purchase-bill-fields .segment-btn-joined[b-5zguaio146] {
    font-size: 0.8rem !important;
}

.purchase-bill-fields .segment-btn-joined:first-child[b-5zguaio146] {
    border-right: 1px solid #e2e8f0 !important;
}

/* Tabular Grid/Real Table styling for purchase details table */
.purchase-items-table-wrapper table[b-5zguaio146] {
    border-collapse: collapse !important;
    border: 1px solid #cbd5e1 !important;
    width: 100%;
}

.purchase-items-table-wrapper th[b-5zguaio146],
.purchase-items-table-wrapper td[b-5zguaio146] {
    border: 1px solid #cbd5e1 !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

.purchase-items-table-header th[b-5zguaio146] {
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    padding: 10px 8px !important;
    font-weight: 700;
    font-size: 0.72rem;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #0273b2 !important;
}

.purchase-items-table-wrapper .purchase-item-input[b-5zguaio146],
.purchase-items-table-wrapper .purchase-item-select[b-5zguaio146] {
    width: 100% !important;
    height: 34px !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 8px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background: transparent !important;
}

.purchase-items-table-wrapper .purchase-item-input:focus[b-5zguaio146],
.purchase-items-table-wrapper .purchase-item-select:focus[b-5zguaio146] {
    background: #f4f8fa !important;
    box-shadow: inset 0 0 0 2px rgba(2, 115, 178, 0.2) !important;
}

.purchase-items-table-wrapper .purchase-item-readonly[b-5zguaio146] {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    width: 100% !important;
    height: 34px !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 8px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background-color: #f8fafc !important;
    font-weight: 600;
}

.purchase-items-table-wrapper td.purchase-items-table-footer-cell[b-5zguaio146] {
    padding: 16px 24px !important;
}
.modal-overlay[b-5zguaio146] {
    position: fixed;
    inset: 0;
    background: rgba(8, 25, 40, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1050;
    overflow-y: auto;
    animation: modalFadeIn-b-5zguaio146 0.3s ease-out forwards;
}

.modal-card[b-5zguaio146] {
    width: min(1100px, 96%);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(3, 26, 46, 0.28);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 3rem);
    animation: modalScaleIn-b-5zguaio146 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-header-bar[b-5zguaio146] {
    background: linear-gradient(90deg, #0f678f 0%, #0b5777 100%);
    color: #fff;
    padding: 1.05rem 1.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.modal-header-left[b-5zguaio146] {
    display: flex;
    align-items: center;
    gap: .9rem;
}

.modal-badge[b-5zguaio146] {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .12);
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
}

.modal-title[b-5zguaio146] {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
}

.modal-subtitle[b-5zguaio146] {
    font-size: .92rem;
    color: rgba(255, 255, 255, .88);
    margin-top: .15rem;
}

.modal-inner[b-5zguaio146] {
    padding: 0.5rem 1rem 0.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    overflow-y: auto;
    flex: 1;
}

.modal-form-wrap[b-5zguaio146] {
    max-width: 100%;
    margin: 0 auto;
}

.modal-section[b-5zguaio146] {
    background: #fff;
    border: 1px solid #dce9f4;
    border-radius: 12px;
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.modal-row[b-5zguaio146] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.modal-row.full-width[b-5zguaio146] {
    grid-column: span 2;
}

.modal-label[b-5zguaio146] {
    padding-top: 0;
    font-size: .72rem;
    font-weight: 700;
    color: #0b5777;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.modal-field[b-5zguaio146] {
    width: 100%;
}

.modal-input[b-5zguaio146],
.modal-select[b-5zguaio146],
.modal-textarea[b-5zguaio146] {
    border: 1px solid #e6eef8;
    border-radius: 8px;
    background: #fbfdff;
    min-height: 32px;
    padding: .4rem .6rem;
    width: 100%;
    max-width: 250px;
    font-size: .85rem;
}

.modal-textarea[b-5zguaio146] {
    max-width: 100%;
    min-height: 64px;
    resize: vertical;
}

.modal-actions[b-5zguaio146] {
    display: flex;
    justify-content: center;
    gap: .75rem;
    margin-top: 1.2rem;
}

.modal-action-btn[b-5zguaio146] {
    min-width: 130px;
    padding: .65rem 1.25rem;
    border-radius: 10px;
    font-weight: 700;
}

/* Popup Styles */
.action-popup-overlay[b-5zguaio146] {
    position: fixed;
    inset: 0;
    background: rgba(8, 25, 40, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1200;
    animation: modalFadeIn-b-5zguaio146 0.25s ease-out forwards;
}

.action-popup-card[b-5zguaio146] {
    width: min(420px, 96%);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #cfe4f2;
    box-shadow: 0 16px 36px rgba(3, 26, 46, 0.28);
    animation: modalScaleIn-b-5zguaio146 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalFadeIn-b-5zguaio146 {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalScaleIn-b-5zguaio146 {
    from {
        transform: scale(0.95) translateY(12px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.action-popup-header[b-5zguaio146] {
    background: #ffffff;
    color: #0f172a;
    padding: .9rem 1.2rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-family: 'Inter', 'Roboto', 'Segoe UI', sans-serif;
}

.pagination-bar[b-5zguaio146] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-right: 1.5rem !important;
}

.page-btn[b-5zguaio146] {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #4b5563;
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.page-btn:hover:not(:disabled)[b-5zguaio146] {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.page-btn.active[b-5zguaio146] {
    gap: 1rem;
}

.modal-header-left[b-5zguaio146] {
    display: flex;
    align-items: center;
    gap: .9rem;
}

.modal-badge[b-5zguaio146] {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .12);
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
}

.modal-title[b-5zguaio146] {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
}

.modal-subtitle[b-5zguaio146] {
    font-size: .92rem;
    color: rgba(255, 255, 255, .88);
    margin-top: .15rem;
}

.modal-inner[b-5zguaio146] {
    padding: 0.5rem 1rem 0.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    overflow-y: auto;
    flex: 1;
}

.modal-form-wrap[b-5zguaio146] {
    max-width: 100%;
    margin: 0 auto;
}

.modal-section[b-5zguaio146] {
    background: #fff;
    border: 1px solid #dce9f4;
    border-radius: 12px;
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.modal-row[b-5zguaio146] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.modal-row.full-width[b-5zguaio146] {
    grid-column: span 2;
}

.modal-label[b-5zguaio146] {
    padding-top: 0;
    font-size: .72rem;
    font-weight: 700;
    color: #0b5777;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.modal-field[b-5zguaio146] {
    width: 100%;
}

.modal-input[b-5zguaio146],
.modal-select[b-5zguaio146],
.modal-textarea[b-5zguaio146] {
    border: 1px solid #e6eef8;
    border-radius: 8px;
    background: #fbfdff;
    min-height: 32px;
    padding: .4rem .6rem;
    width: 100%;
    max-width: 250px;
    font-size: .85rem;
}

.modal-textarea[b-5zguaio146] {
    max-width: 100%;
    min-height: 64px;
    resize: vertical;
}

.modal-actions[b-5zguaio146] {
    display: flex;
    justify-content: center;
    gap: .75rem;
    margin-top: 1.2rem;
}

.modal-action-btn[b-5zguaio146] {
    min-width: 130px;
    padding: .65rem 1.25rem;
    border-radius: 10px;
    font-weight: 700;
}

/* Popup Styles */
.action-popup-overlay[b-5zguaio146] {
    position: fixed;
    inset: 0;
    background: rgba(8, 25, 40, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1200;
    animation: modalFadeIn-b-5zguaio146 0.25s ease-out forwards;
}

.action-popup-card[b-5zguaio146] {
    width: min(420px, 96%);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #cfe4f2;
    box-shadow: 0 16px 36px rgba(3, 26, 46, 0.28);
    animation: modalScaleIn-b-5zguaio146 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalFadeIn-b-5zguaio146 {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalScaleIn-b-5zguaio146 {
    from {
        transform: scale(0.95) translateY(12px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.action-popup-header[b-5zguaio146] {
    background: #ffffff;
    color: #0f172a;
    padding: .9rem 1.2rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-family: 'Inter', 'Roboto', 'Segoe UI', sans-serif;
}

.pagination-bar[b-5zguaio146] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-right: 1.5rem !important;
}

.page-btn[b-5zguaio146] {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #4b5563;
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.page-btn:hover:not(:disabled)[b-5zguaio146] {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.page-btn.active[b-5zguaio146] {
    background: #02659e !important;
    color: #ffffff !important;
    border-color: #02659e !important;
}

/* Report Toolbar & Filter Styling */
.report-toolbar-card[b-5zguaio146] {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    width: 100%;
}

.report-filters-row[b-5zguaio146] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.filter-group[b-5zguaio146] {
    display: inline-flex;
    align-items: center;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 16px !important;
    height: 34px !important;
    padding: 0 12px !important;
    box-shadow: none !important;
    transition: all 0.25s ease !important;
}

.filter-group:focus-within[b-5zguaio146] {
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

.filter-label[b-5zguaio146] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
    white-space: nowrap;
    margin-right: 4px;
}

.filter-label i[b-5zguaio146] {
    color: #4f46e5 !important;
    font-size: 0.85rem !important;
}

.filter-select[b-5zguaio146] {
    border: none !important;
    background: transparent !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    padding: 0 4px !important;
    height: 100% !important;
    outline: none !important;
    cursor: pointer;
    max-width: 170px;
}

.filter-input-date[b-5zguaio146] {
    border: none !important;
    background: transparent !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    padding: 0 4px !important;
    height: 100% !important;
    outline: none !important;
    cursor: pointer;
    width: 125px;
}

.report-actions-row[b-5zguaio146] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
}

.btn-report-preview[b-5zguaio146] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff !important;
    color: #4f46e5 !important;
    border: 1.5px solid #6366f1 !important;
    border-radius: 16px !important;
    padding: 0 14px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.2s ease !important;
    height: 34px !important;
}

.btn-report-preview:hover:not(:disabled)[b-5zguaio146] {
    background: #4f46e5 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2) !important;
    transform: translateY(-1px);
}

.btn-report-preview:disabled[b-5zguaio146] {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-report-download[b-5zguaio146] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #16a34a !important;
    color: #ffffff !important;
    border: 1.5px solid #16a34a !important;
    border-radius: 16px !important;
    padding: 0 14px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(22, 163, 74, 0.15) !important;
    transition: all 0.2s ease !important;
    height: 34px !important;
}

.btn-report-download:hover:not(:disabled)[b-5zguaio146] {
    background: #15803d !important;
    border-color: #15803d !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.25) !important;
    transform: translateY(-1px);
}

.btn-report-download:disabled[b-5zguaio146] {
    opacity: 0.65;
    cursor: not-allowed;
}
/* /Components/Pages/StockAdjustment.razor.rz.scp.css */
/* Vibrant & Colorful Medico Portal UI Styles for StockAdjustment */

:root[b-4fha8r74q2] {
    --primary-indigo: #4f46e5;
    --indigo-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --emerald-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --amber-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --rose-gradient: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    --card-bg-gradient: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    --header-bg-gradient: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 50%, #f0fdf4 100%);
    --border-indigo: rgba(99, 102, 241, 0.22);
    --border-teal: rgba(13, 148, 136, 0.22);
}

.stock-adj-page[b-4fha8r74q2] {
    padding: 0.85rem 1.25rem 3rem 1.25rem;
    background: transparent !important;
    min-height: auto;
    overflow: visible;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
    width: 100%;
}

.stock-adj-shell[b-4fha8r74q2] {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Premium Colorful Header Card */
.premium-header-card[b-4fha8r74q2] {
    background: var(--header-bg-gradient) !important;
    border: 1px solid var(--border-indigo) !important;
    border-radius: 16px !important;
    padding: 0.85rem 1.5rem !important;
    color: #1e1b4b !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.12) !important;
    flex-shrink: 0;
}

.header-card-left[b-4fha8r74q2] {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-card-icon[b-4fha8r74q2] {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #eef2ff !important;
    border: 1px solid #c7d2fe !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15) !important;
    color: #4f46e5 !important;
}

.header-card-icon i[b-4fha8r74q2] {
    color: #4f46e5 !important;
}

.header-card-heading[b-4fha8r74q2] {
    color: #0f172a !important;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.header-card-subheading[b-4fha8r74q2] {
    font-size: 0.72rem;
    font-weight: 700;
    color: #4338ca !important;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    margin-top: 3px;
    letter-spacing: 0.4px;
}

.status-dot[b-4fha8r74q2] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    margin-right: 6px;
    display: inline-block;
    box-shadow: 0 0 10px #10b981;
}

/* Button UI Enhancements & Text Visibility Fixes */
.btn-indigo-solid[b-4fha8r74q2] {
    background-color: #4f46e5 !important;
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%) !important;
    border: 1px solid #0f172a !important;
    color: #ffffff !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4) !important;
    transition: all 0.2s ease-in-out;
    letter-spacing: 0.2px;
}

.btn-indigo-solid i[b-4fha8r74q2], 
.btn-indigo-solid span[b-4fha8r74q2],
.btn-indigo-solid *[b-4fha8r74q2] {
    color: #ffffff !important;
    fill: #ffffff !important;
    opacity: 1 !important;
}

.btn-indigo-solid:hover[b-4fha8r74q2] {
    background-color: #4338ca !important;
    background: linear-gradient(135deg, #4338ca 0%, #0f172a 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6) !important;
    transform: translateY(-2px);
}

.btn-rose-solid[b-4fha8r74q2] {
    background-color: #e11d48 !important;
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important;
    border: 1px solid #be123c !important;
    color: #ffffff !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.4) !important;
    transition: all 0.2s ease-in-out;
    letter-spacing: 0.2px;
}

.btn-rose-solid i[b-4fha8r74q2], 
.btn-rose-solid span[b-4fha8r74q2],
.btn-rose-solid *[b-4fha8r74q2] {
    color: #ffffff !important;
    fill: #ffffff !important;
    opacity: 1 !important;
}

.btn-rose-solid:hover[b-4fha8r74q2] {
    background-color: #be123c !important;
    background: linear-gradient(135deg, #e11d48 0%, #9f1239 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.6) !important;
    transform: translateY(-2px);
}

.btn-indigo-action[b-4fha8r74q2] {
    background-color: #4f46e5 !important;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
    border: 1px solid #3730a3 !important;
    box-shadow: 0 3px 10px rgba(79, 70, 229, 0.35) !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.btn-indigo-action i[b-4fha8r74q2],
.btn-indigo-action *[b-4fha8r74q2] {
    color: #ffffff !important;
    opacity: 1 !important;
}

.btn-indigo-action:hover[b-4fha8r74q2] {
    background-color: #3730a3 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(79, 70, 229, 0.5) !important;
}

.btn-rose-action[b-4fha8r74q2] {
    background-color: #fee2e2 !important;
    color: #dc2626 !important;
    border: 1px solid #fca5a5 !important;
    font-size: 0.72rem !important;
    transition: all 0.2s ease;
}

.btn-rose-action i[b-4fha8r74q2],
.btn-rose-action *[b-4fha8r74q2] {
    color: #dc2626 !important;
    opacity: 1 !important;
}

.btn-rose-action:hover[b-4fha8r74q2] {
    background-color: #ef4444 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

.btn-rose-action:hover i[b-4fha8r74q2],
.btn-rose-action:hover *[b-4fha8r74q2] {
    color: #ffffff !important;
}

/* Filter Card */
.filter-card[b-4fha8r74q2] {
    border: 1px solid var(--border-indigo) !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.05) !important;
    flex-shrink: 0;
}

.filter-label[b-4fha8r74q2] {
    font-size: 0.72rem;
    font-weight: 800;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.premium-input[b-4fha8r74q2] {
    border-radius: 10px !important;
    border: 1.5px solid #cbd5e1 !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    background-color: #f8fafc !important;
    padding: 0.35rem 0.65rem !important;
    height: 36px !important;
    transition: all 0.2s ease;
}

.premium-input:focus[b-4fha8r74q2] {
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15) !important;
    background-color: #ffffff !important;
}

/* Parallel Table Cards */
.parallel-tables-row[b-4fha8r74q2] {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem !important;
    flex-grow: 1;
    min-height: 0;
}

.parallel-col[b-4fha8r74q2] {
    flex: 1 1 50% !important;
    width: 50% !important;
    min-width: 0 !important;
    display: flex;
    flex-direction: column;
}

.table-card[b-4fha8r74q2] {
    border-radius: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    overflow: hidden;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04) !important;
}

.available-card[b-4fha8r74q2] {
    border-top: 4px solid #6366f1 !important;
}

.adjust-card[b-4fha8r74q2] {
    border-top: 4px solid #0d9488 !important;
}

.table-card-header[b-4fha8r74q2] {
    border-bottom: 1px solid #e2e8f0 !important;
}

.table-card-body[b-4fha8r74q2] {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    min-height: 0 !important;
}

/* Custom Table Vibrant Styling */
.custom-table[b-4fha8r74q2] {
    font-size: 0.78rem !important;
}

.custom-table th[b-4fha8r74q2] {
    background-color: #f1f5f9 !important;
    color: #334155 !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.65rem 0.75rem !important;
    border-bottom: 2px solid #e2e8f0 !important;
    position: sticky;
    top: 0;
    z-index: 10;
}

.custom-table td[b-4fha8r74q2] {
    padding: 0.5rem 0.75rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.table-active-row[b-4fha8r74q2] {
    background-color: #eef2ff !important;
}

.batch-badge-blue[b-4fha8r74q2] {
    background: #e0e7ff !important;
    color: #3730a3 !important;
    font-weight: 800 !important;
    padding: 0.2rem 0.5rem !important;
    border-radius: 6px !important;
    border: 1px solid #c7d2fe !important;
}

.batch-badge-dark[b-4fha8r74q2] {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    padding: 0.2rem 0.5rem !important;
    border-radius: 6px !important;
    border: 1px solid #cbd5e1 !important;
}

.btn-indigo-action[b-4fha8r74q2] {
    background: var(--indigo-gradient) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25) !important;
    transition: all 0.2s ease;
}

.btn-indigo-action:hover[b-4fha8r74q2] {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4) !important;
}

/* Stepper Component Styling */
.qty-stepper-wrapper[b-4fha8r74q2] {
    background: #ffffff;
    padding: 2px;
    border-radius: 10px;
    border: 1.5px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.btn-stepper[b-4fha8r74q2] {
    width: 26px;
    height: 26px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    border: none !important;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.btn-stepper.btn-minus[b-4fha8r74q2] {
    background: #fee2e2 !important;
    color: #ef4444 !important;
}

.btn-stepper.btn-minus:hover[b-4fha8r74q2] {
    background: #ef4444 !important;
    color: #ffffff !important;
    transform: scale(1.08);
}

.btn-stepper.btn-plus[b-4fha8r74q2] {
    background: #d1fae5 !important;
    color: #10b981 !important;
}

.btn-stepper.btn-plus:hover[b-4fha8r74q2] {
    background: #10b981 !important;
    color: #ffffff !important;
    transform: scale(1.08);
}

.stepper-input[b-4fha8r74q2] {
    width: 58px !important;
    min-width: 48px !important;
    text-align: center !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    height: 26px !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    color: #4f46e5 !important;
    -moz-appearance: textfield;
}

.stepper-input[b-4fha8r74q2]::-webkit-outer-spin-button,
.stepper-input[b-4fha8r74q2]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.table-card-footer[b-4fha8r74q2] {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
}

/* Adjustment Log Modal Styling */
.log-modal-backdrop[b-4fha8r74q2] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1050;
}

.log-modal-dialog[b-4fha8r74q2] {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 92vw !important;
    max-width: 1160px !important;
    height: 80vh !important;
    max-height: 80vh !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    z-index: 1060 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    animation: fadeInModal-b-4fha8r74q2 0.2s ease-out;
    border: 1px solid #e2e8f0 !important;
}

@keyframes fadeInModal-b-4fha8r74q2 {
    from {
        opacity: 0;
        transform: translate(-50%, -48%) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.log-modal-header[b-4fha8r74q2] {
    padding: 14px 20px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.log-header-left[b-4fha8r74q2] {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
}

.log-header-icon[b-4fha8r74q2] {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    background: #eef2ff !important;
    border: 1px solid #c7d2fe !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #4f46e5 !important;
    font-size: 1.15rem !important;
    flex-shrink: 0 !important;
}

.log-header-title-wrap[b-4fha8r74q2] {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
}

.log-header-title[b-4fha8r74q2] {
    font-size: 1.08rem !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    margin: 0 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

.log-header-badge[b-4fha8r74q2] {
    background: #e0e7ff !important;
    color: #4338ca !important;
    font-size: 0.74rem !important;
    padding: 3px 9px !important;
    border-radius: 20px !important;
    font-weight: 700 !important;
    border: 1px solid #c7d2fe !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
}

.log-header-right[b-4fha8r74q2] {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    margin-left: auto !important;
}

.log-search-box[b-4fha8r74q2] {
    position: relative !important;
    width: 270px !important;
    display: flex !important;
    align-items: center !important;
}

.log-search-box input[b-4fha8r74q2] {
    height: 38px !important;
    font-size: 0.82rem !important;
    padding-left: 34px !important;
    padding-right: 28px !important;
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    background: #f8fafc !important;
    width: 100% !important;
    color: #1e293b !important;
    outline: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.log-search-box input:focus[b-4fha8r74q2] {
    border-color: #4f46e5 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.12) !important;
}

.log-search-box .search-icon[b-4fha8r74q2] {
    position: absolute !important;
    left: 11px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #94a3b8 !important;
    font-size: 0.85rem !important;
    pointer-events: none !important;
}

.log-search-box .clear-icon[b-4fha8r74q2] {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #94a3b8 !important;
    font-size: 0.85rem !important;
    cursor: pointer !important;
}

.log-search-box .clear-icon:hover[b-4fha8r74q2] {
    color: #ef4444 !important;
}

.log-type-filter[b-4fha8r74q2] {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
}

.log-type-filter label[b-4fha8r74q2] {
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    color: #475569 !important;
    margin: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
}

.log-type-filter select[b-4fha8r74q2] {
    height: 38px !important;
    font-size: 0.82rem !important;
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: #1e293b !important;
    padding: 4px 10px !important;
    outline: none !important;
    width: 130px !important;
    margin: 0 !important;
}

.btn-modal-close-custom[b-4fha8r74q2] {
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    border: none !important;
    background: transparent !important;
    color: #64748b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
    margin-left: 4px !important;
    padding: 0 !important;
}

.btn-modal-close-custom:hover[b-4fha8r74q2] {
    background: #fee2e2 !important;
    color: #ef4444 !important;
}

.log-modal-body[b-4fha8r74q2] {
    padding: 0 !important;
    overflow-y: auto !important;
    flex: 1 1 auto !important;
    position: relative !important;
}

.log-modal-footer[b-4fha8r74q2] {
    padding: 12px 24px !important;
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
}

.btn-header-log[b-4fha8r74q2] {
    background: #ffffff !important;
    color: #4f46e5 !important;
    border: 1.5px solid #818cf8 !important;
    border-radius: 50px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    padding: 0.45rem 1.1rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.btn-header-log:hover[b-4fha8r74q2] {
    background: #eef2ff !important;
    border-color: #4f46e5 !important;
    color: #3730a3 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2) !important;
}

.badge-log-count[b-4fha8r74q2] {
    background: #4f46e5 !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    font-size: 0.7rem !important;
    padding: 1px 7px !important;
    font-weight: 700 !important;
}
/* /Components/Pages/StoreTransfer.razor.rz.scp.css */
/* ==========================================================================
   STOCK TRANSFER REGISTER - CLEAN STYLESHEET
   ========================================================================== */

.transfer-page[b-nwth24mxo6] {
    min-height: 100vh;
    background: transparent !important;
    padding-top: 0.25rem;
}

.transfer-shell[b-nwth24mxo6] {
    max-width: 1360px;
    margin: 0 auto;
}

.transfer-content[b-nwth24mxo6] {
    width: 100%;
    margin: 0 auto;
}

/* Premium Header Card */
.premium-header-card[b-nwth24mxo6] {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-radius: 14px !important;
    padding: 0.9rem 1.4rem !important;
    color: #1e1b4b !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.05) !important;
    margin-bottom: 0.85rem !important;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.header-card-left[b-nwth24mxo6] {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-card-icon[b-nwth24mxo6] {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #ffffff !important;
    border: 1px solid rgba(99, 102, 241, 0.2) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
    color: #4f46e5 !important;
}

.header-card-text[b-nwth24mxo6] {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.header-card-heading[b-nwth24mxo6] {
    color: #0f172a !important;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.2px;
}

.header-card-subheading[b-nwth24mxo6] {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b !important;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    margin-top: 2px;
    text-transform: uppercase;
}

.status-dot[b-nwth24mxo6] {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #10b981;
    margin-right: 6px;
    display: inline-block;
    box-shadow: 0 0 6px #10b981;
}

.header-card-right[b-nwth24mxo6] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-quick-nav[b-nwth24mxo6] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 6px 14px;
    height: 34px;
    border-radius: 18px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-quick-nav:hover[b-nwth24mxo6] {
    background: #f8fafc;
    color: #1e293b;
    border-color: #94a3b8;
}

/* Stats Counter Grid */
.stats-grid[b-nwth24mxo6] {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 0.85rem;
}

@media (max-width: 1200px) {
    .stats-grid[b-nwth24mxo6] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .stats-grid[b-nwth24mxo6] {
        grid-template-columns: 1fr;
    }
}

.stat-card[b-nwth24mxo6] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    overflow: hidden;
}

.stat-card:hover[b-nwth24mxo6] {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.stat-card.active-stat[b-nwth24mxo6] {
    border-color: #4f46e5;
    background: #fcfcff;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.04);
}

.stat-icon-wrapper[b-nwth24mxo6] {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.stat-icon-primary[b-nwth24mxo6] {
    background: #eef2ff;
    color: #4f46e5;
}

.stat-icon-warning[b-nwth24mxo6] {
    background: #fffbeb;
    color: #d97706;
}

.stat-icon-success[b-nwth24mxo6] {
    background: #ecfdf5;
    color: #059669;
}

.stat-icon-danger[b-nwth24mxo6] {
    background: #fff1f2;
    color: #e11d48;
}

.stat-icon-indigo[b-nwth24mxo6] {
    background: #f5f3ff;
    color: #64748b;
}

.stat-info[b-nwth24mxo6] {
    display: flex;
    flex-direction: column;
    text-align: left;
    min-width: 0;
    flex: 1;
}

.stat-value[b-nwth24mxo6] {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.1;
}

.stat-label[b-nwth24mxo6] {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tabs Navigation Bar */
.transfer-nav-tabs[b-nwth24mxo6] {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    padding: 4px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    overflow-x: auto;
}

.tab-btn[b-nwth24mxo6] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    border: none;
    background: transparent;
    font-size: 0.76rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.tab-btn:hover[b-nwth24mxo6] {
    color: #1e293b;
    background: #f8fafc;
}

.tab-btn.active[b-nwth24mxo6] {
    background: #4f46e5;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

.tab-badge[b-nwth24mxo6] {
    font-size: 0.64rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.25);
}

.tab-btn:not(.active) .tab-badge[b-nwth24mxo6] {
    background: #f1f5f9;
    color: #475569;
}

.tab-btn:not(.active) .tab-badge.warning[b-nwth24mxo6] {
    background: #fef3c7;
    color: #b45309;
}

.tab-btn:not(.active) .tab-badge.success[b-nwth24mxo6] {
    background: #d1fae5;
    color: #047857;
}

.tab-btn:not(.active) .tab-badge.danger[b-nwth24mxo6] {
    background: #fee2e2;
    color: #b91c1c;
}

.tab-btn:not(.active) .tab-badge.primary[b-nwth24mxo6] {
    background: #e0e7ff;
    color: #4338ca;
}

/* Filter Toolbar */
.filter-toolbar[b-nwth24mxo6] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 12px;
    margin-bottom: 0.85rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.filter-controls-row[b-nwth24mxo6] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
}

.items-search-wrap[b-nwth24mxo6] {
    position: relative;
    min-width: 240px;
    flex: 1;
    max-width: 300px;
}

.items-search-icon[b-nwth24mxo6] {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.8rem;
}

.items-search[b-nwth24mxo6] {
    height: 34px !important;
    font-size: 0.78rem !important;
    padding-left: 30px !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
}

.items-search:focus[b-nwth24mxo6] {
    background: #ffffff !important;
    border-color: #64748b !important;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.04) !important;
}

.filter-select-wrap[b-nwth24mxo6] {
    flex-shrink: 0;
}

.filter-select[b-nwth24mxo6] {
    height: 34px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 10px;
    outline: none;
    cursor: pointer;
    max-width: 220px;
}

.filter-select:focus[b-nwth24mxo6] {
    border-color: #64748b;
    background: #ffffff;
}

.date-range-box[b-nwth24mxo6] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 8px;
    height: 34px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
}

.date-label[b-nwth24mxo6] {
    font-size: 0.68rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
}

.filter-date-input[b-nwth24mxo6] {
    border: none;
    background: transparent;
    height: 30px;
    font-size: 0.75rem;
    color: #1e293b;
    outline: none;
    padding: 0 2px;
}

.btn-clear-filters[b-nwth24mxo6] {
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px dashed #ef4444;
    background: #fff1f2;
    color: #e11d48;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-clear-filters:hover[b-nwth24mxo6] {
    background: #ffe4e6;
    border-color: #dc2626;
}

.view-toggle[b-nwth24mxo6] {
    display: flex;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 2px;
}

.view-toggle button[b-nwth24mxo6] {
    border: none;
    background: transparent;
    padding: 4px 8px;
    font-size: 0.82rem;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
}

.view-toggle button.active[b-nwth24mxo6] {
    background: #ffffff;
    color: #4f46e5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Main Cards Container */
.items-main-card[b-nwth24mxo6] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

/* Clean Centered Empty State Card */
.empty-state-card[b-nwth24mxo6] {
    padding: 3rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.empty-icon-wrap[b-nwth24mxo6] {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #f8fafc;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    border: 1px solid #e2e8f0;
}

.empty-heading[b-nwth24mxo6] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.empty-subtext[b-nwth24mxo6] {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0 0 10px 0;
    max-width: 400px;
    line-height: 1.4;
}

/* Table Styling */
.items-table[b-nwth24mxo6] {
    font-size: 0.78rem;
}

.items-table thead th[b-nwth24mxo6] {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.items-table tbody td[b-nwth24mxo6] {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
}

.items-table tbody tr:hover td[b-nwth24mxo6] {
    background-color: #f8fafc;
}

/* Badges */
.badge-store-from[b-nwth24mxo6] {
    font-size: 0.72rem;
    font-weight: 700;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fee2e2;
    padding: 2px 7px;
    border-radius: 6px;
    white-space: nowrap;
}

.badge-store-to[b-nwth24mxo6] {
    font-size: 0.72rem;
    font-weight: 700;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    padding: 2px 7px;
    border-radius: 6px;
    white-space: nowrap;
}

/* Status Pills */
.status-pill[b-nwth24mxo6] {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.status-draft[b-nwth24mxo6] {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.status-pending[b-nwth24mxo6], .status-intransit[b-nwth24mxo6] {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.status-completed[b-nwth24mxo6] {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-rejected[b-nwth24mxo6] {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.status-cancelled[b-nwth24mxo6] {
    background: #f1f5f9;
    color: #94a3b8;
}

/* Action Buttons */
.action-btn-group[b-nwth24mxo6] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.action-btn[b-nwth24mxo6] {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.8rem;
}

.action-btn:hover[b-nwth24mxo6] {
    transform: translateY(-1px);
}

.btn-view:hover[b-nwth24mxo6] {
    background: #eef2ff;
    color: #4f46e5;
    border-color: #c7d2fe;
}

.btn-slip:hover[b-nwth24mxo6] {
    background: #e0f2fe;
    color: #0284c7;
    border-color: #bae6fd;
}

.btn-inspect-small[b-nwth24mxo6] {
    padding: 3px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    color: #4338ca;
    cursor: pointer;
}

.btn-inspect-small:hover[b-nwth24mxo6] {
    background: #e0e7ff;
    color: #3730a3;
}

/* Grid View Cards */
.cards-grid[b-nwth24mxo6] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    padding: 1.2rem;
}

.transfer-grid-card[b-nwth24mxo6] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.2s ease;
    text-align: left;
}

.transfer-grid-card:hover[b-nwth24mxo6] {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.card-header-row[b-nwth24mxo6] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-route-box[b-nwth24mxo6] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.route-point[b-nwth24mxo6] {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.route-label[b-nwth24mxo6] {
    font-size: 0.62rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
}

.route-name[b-nwth24mxo6] {
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.route-arrow[b-nwth24mxo6] {
    color: #94a3b8;
    font-size: 0.9rem;
}

.card-reason-box[b-nwth24mxo6] {
    font-size: 0.72rem;
    color: #64748b;
    background: #f8fafc;
    padding: 4px 8px;
    border-radius: 6px;
}

/* Pagination */
.pagination-wrapper[b-nwth24mxo6] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.page-btn[b-nwth24mxo6] {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.page-btn.active[b-nwth24mxo6] {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
}

.page-btn:disabled[b-nwth24mxo6] {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Modal Overlay & Base Card */
.modal-overlay[b-nwth24mxo6] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 1.25rem;
    animation: fadeIn-b-nwth24mxo6 0.15s ease-out;
}

@keyframes fadeIn-b-nwth24mxo6 {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalPop-b-nwth24mxo6 {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-card[b-nwth24mxo6] {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(99, 102, 241, 0.1);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    text-align: left;
    animation: modalPop-b-nwth24mxo6 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-lg-record[b-nwth24mxo6] {
    width: 95%;
    max-width: 1260px;
}

.modal-header-bar[b-nwth24mxo6] {
    padding: 14px 22px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.modal-title-wrap[b-nwth24mxo6] {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-title-icon[b-nwth24mxo6] {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.1);
}

.modal-title[b-nwth24mxo6] {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e1b4b;
    margin: 0;
    line-height: 1.2;
}

.modal-subtitle[b-nwth24mxo6] {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    margin-top: 2px;
}

.btn-modal-print[b-nwth24mxo6] {
    background: #ffffff;
    color: #4f46e5;
    border: 1.5px solid #c7d2fe;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.btn-modal-print:hover[b-nwth24mxo6] {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(79, 70, 229, 0.25);
}

.btn-close-modal[b-nwth24mxo6] {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-close-modal:hover[b-nwth24mxo6] {
    background: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
    transform: scale(1.06);
}

.modal-scroll-area[b-nwth24mxo6] {
    padding: 18px 22px;
    overflow-y: auto;
    max-height: calc(90vh - 130px);
    flex: 1;
}

.modal-scroll-area[b-nwth24mxo6]::-webkit-scrollbar {
    width: 6px;
}

.modal-scroll-area[b-nwth24mxo6]::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.modal-scroll-area[b-nwth24mxo6]::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.modal-scroll-area[b-nwth24mxo6]::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Transfer Route Hero Banner */
.transfer-route-hero[b-nwth24mxo6] {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.route-store-box[b-nwth24mxo6] {
    flex: 1;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.route-store-box.route-from[b-nwth24mxo6] {
    border-left: 4px solid #ef4444;
}

.route-store-box.route-to[b-nwth24mxo6] {
    border-left: 4px solid #10b981;
}

.route-store-badge[b-nwth24mxo6] {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.route-from .route-store-badge[b-nwth24mxo6] {
    color: #dc2626;
}

.route-to .route-store-badge[b-nwth24mxo6] {
    color: #059669;
}

.route-store-name[b-nwth24mxo6] {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.route-store-code[b-nwth24mxo6] {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
}

.route-transit-divider[b-nwth24mxo6] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 8px;
    min-width: 140px;
    flex-shrink: 0;
}

.route-transit-line[b-nwth24mxo6] {
    height: 2px;
    width: 100%;
    background: linear-gradient(to right, #fee2e2, #c7d2fe, #d1fae5);
    border-radius: 2px;
}

.route-transit-badge[b-nwth24mxo6] {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #eef2ff;
    color: #4f46e5;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid #c7d2fe;
}

/* Transfer Metadata Grid */
.transfer-meta-grid[b-nwth24mxo6] {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

@media (max-width: 992px) {
    .transfer-meta-grid[b-nwth24mxo6] {
        grid-template-columns: repeat(3, 1fr);
    }
    .transfer-route-hero[b-nwth24mxo6] {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 600px) {
    .transfer-meta-grid[b-nwth24mxo6] {
        grid-template-columns: 1fr;
    }
}

.meta-card[b-nwth24mxo6] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: border-color 0.15s ease;
}

.meta-card:hover[b-nwth24mxo6] {
    border-color: #cbd5e1;
}

.meta-card-label[b-nwth24mxo6] {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
}

.meta-card-value[b-nwth24mxo6] {
    font-size: 0.84rem;
    font-weight: 700;
    color: #1e293b;
    word-break: break-word;
}

/* Notes / Callout Section */
.transfer-notes-box[b-nwth24mxo6] {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
    font-size: 0.76rem;
}

.note-item[b-nwth24mxo6] {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.note-label[b-nwth24mxo6] {
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
}

.note-val[b-nwth24mxo6] {
    color: #334155;
}

/* Detail Table Section */
.section-title-wrap[b-nwth24mxo6] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 800;
    color: #1e1b4b;
}

.detail-table-wrapper[b-nwth24mxo6] {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.detail-table[b-nwth24mxo6] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    margin: 0;
}

.detail-table thead tr[b-nwth24mxo6] {
    background: #f8fafc;
    border-bottom: 1px solid #cbd5e1;
    height: 34px;
}

.detail-table thead th[b-nwth24mxo6] {
    font-size: 0.68rem;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 8px 10px;
    border-right: 1px solid #f1f5f9;
    white-space: nowrap;
}

.detail-table tbody tr[b-nwth24mxo6] {
    height: 38px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.12s ease;
}

.detail-table tbody tr:hover[b-nwth24mxo6] {
    background: #f8fafc;
}

.detail-table tbody td[b-nwth24mxo6] {
    padding: 8px 10px;
    border-right: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #1e293b;
}

.batch-badge[b-nwth24mxo6] {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: monospace;
    display: inline-block;
}

.trf-qty-cell[b-nwth24mxo6] {
    color: #4f46e5;
    font-weight: 800;
    font-size: 0.84rem;
}

.stock-val-cell[b-nwth24mxo6] {
    color: #0f172a;
    font-weight: 800;
    font-size: 0.84rem;
}

.status-indicator-dot[b-nwth24mxo6] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
    background-color: currentColor;
}

/* Modal Summary Card */
.modal-summary-card[b-nwth24mxo6] {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.summary-metric[b-nwth24mxo6] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}

.summary-metric-label[b-nwth24mxo6] {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
}

.summary-metric-val[b-nwth24mxo6] {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e293b;
}

.summary-metric-val.highlight[b-nwth24mxo6] {
    color: #4f46e5;
    font-size: 1.25rem;
}

.summary-divider[b-nwth24mxo6] {
    width: 1px;
    height: 32px;
    background: #cbd5e1;
}

/* Modal Footer Bar */
.modal-footer-bar[b-nwth24mxo6] {
    padding: 12px 22px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

/* Voucher Slip Styles */
.voucher-slip[b-nwth24mxo6] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    font-family: Arial, sans-serif;
    color: #1e293b;
}

.voucher-header[b-nwth24mxo6] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 14px;
    margin-bottom: 16px;
}

.voucher-title[b-nwth24mxo6] {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: 0.5px;
}

.voucher-info-table[b-nwth24mxo6] {
    width: 100%;
    font-size: 0.8rem;
}

.voucher-info-table td[b-nwth24mxo6] {
    padding: 4px 6px;
}

.voucher-table[b-nwth24mxo6] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    margin-top: 10px;
}

.voucher-table th[b-nwth24mxo6], .voucher-table td[b-nwth24mxo6] {
    border: 1px solid #cbd5e1;
    padding: 6px 8px;
}

.voucher-table th[b-nwth24mxo6] {
    background: #f8fafc;
    font-weight: 700;
}

.voucher-sign-row[b-nwth24mxo6] {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 10px;
}

.voucher-sign-box[b-nwth24mxo6] {
    border-top: 1.5px dashed #64748b;
    width: 180px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    padding-top: 4px;
}

/* Print Media Styles */
@media print {
    body *[b-nwth24mxo6] {
        visibility: hidden;
    }
    #print-section[b-nwth24mxo6], #print-section *[b-nwth24mxo6] {
        visibility: visible;
    }
    #print-section[b-nwth24mxo6] {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 10px;
        border: none;
    }
}
/* /Components/Pages/TestTemplate.razor.rz.scp.css */
/* ═══════════════════════════════════════════════════════════════
   Test Template Editor — TestTemplate.razor.css
   ═══════════════════════════════════════════════════════════════ */

/* Page wrapper */
.tte-page[b-5flpqnvtyl] {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 56px);
    background: #f0f4f8;
    overflow: hidden;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* ── Header ──────────────────────────────────────────────────── */
.tte-header[b-5flpqnvtyl] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.tte-header-left[b-5flpqnvtyl] {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tte-header-icon[b-5flpqnvtyl] {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
}

.tte-breadcrumb[b-5flpqnvtyl] {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    gap: 4px;
    align-items: center;
}

.tte-breadcrumb-sep[b-5flpqnvtyl] { color: #cbd5e1; }

.tte-title[b-5flpqnvtyl] {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tte-badge[b-5flpqnvtyl] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    background: #ecfdf5;
    color: #10b981;
    padding: 3px 9px;
    border-radius: 20px;
    border: 1px solid #d1fae5;
}

.tte-live-dot[b-5flpqnvtyl] {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    animation: ttePulse-b-5flpqnvtyl 1.8s infinite;
}

@keyframes ttePulse-b-5flpqnvtyl {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Header action buttons */
.tte-header-actions[b-5flpqnvtyl] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tte-editor-pills[b-5flpqnvtyl] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tte-pill-modified[b-5flpqnvtyl] {
    font-size: 11px;
    font-weight: 600;
    color: #f59e0b;
    background: #fef9c3;
    border: 1px solid #fde68a;
    padding: 3px 10px;
    border-radius: 20px;
}

.tte-search-wrap[b-5flpqnvtyl] {
    position: relative;
    display: flex;
    align-items: center;
}

.tte-search-icon[b-5flpqnvtyl] {
    position: absolute;
    left: 10px;
    color: #94a3b8;
    font-size: 18px;
}

.tte-search-input[b-5flpqnvtyl] {
    padding: 7px 12px 7px 34px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    color: #1e293b;
    background: #f8fafc;
    width: 220px;
    transition: border-color .2s;
    outline: none;
}

.tte-search-input:focus[b-5flpqnvtyl] { border-color: #6366f1; background: #fff; }

/* Buttons */
.tte-btn-primary[b-5flpqnvtyl] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s, transform .1s;
}

.tte-btn-primary:hover[b-5flpqnvtyl] { opacity: .9; transform: translateY(-1px); }

.tte-btn-secondary[b-5flpqnvtyl] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #475569;
    border: 1.5px solid #e2e8f0;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.tte-btn-secondary:hover[b-5flpqnvtyl] { background: #f8fafc; }

.tte-btn-ghost[b-5flpqnvtyl] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.tte-btn-ghost:hover[b-5flpqnvtyl] { background: #f1f5f9; color: #1e293b; }
.tte-btn-ghost:disabled[b-5flpqnvtyl] { opacity: .4; cursor: not-allowed; }

/* ── Stats Row ────────────────────────────────────────────────── */
.tte-stats-row[b-5flpqnvtyl] {
    display: flex;
    gap: 16px;
    padding: 18px 24px 0;
    flex-shrink: 0;
}

.tte-stat-card[b-5flpqnvtyl] {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 20px;
    flex: 1;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    transition: box-shadow .2s;
}

.tte-stat-card:hover[b-5flpqnvtyl] { box-shadow: 0 4px 16px rgba(99,102,241,.12); }

.tte-stat-icon[b-5flpqnvtyl] { font-size: 30px; }

.tte-stat-value[b-5flpqnvtyl] {
    font-size: 26px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.tte-stat-label[b-5flpqnvtyl] {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

/* ── Template Grid ────────────────────────────────────────────── */
.tte-template-grid[b-5flpqnvtyl] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
    padding: 18px 24px 24px;
    overflow-y: auto;
    flex: 1;
}

.tte-template-card[b-5flpqnvtyl] {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    transition: box-shadow .25s, transform .2s;
    overflow: hidden;
}

.tte-template-card:hover[b-5flpqnvtyl] {
    box-shadow: 0 8px 28px rgba(99,102,241,.16);
    transform: translateY(-2px);
}

.tte-card-inactive[b-5flpqnvtyl] { opacity: .65; }

.tte-card-top[b-5flpqnvtyl] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid #f1f5f9;
}

.tte-card-icon-wrap[b-5flpqnvtyl] {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eef2ff, #c7d2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    font-size: 20px;
    flex-shrink: 0;
}

.tte-card-meta[b-5flpqnvtyl] { flex: 1; min-width: 0; }

.tte-card-name[b-5flpqnvtyl] {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tte-card-sub[b-5flpqnvtyl] { font-size: 11px; color: #94a3b8; margin-top: 1px; }

.tte-card-badge[b-5flpqnvtyl] {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    flex-shrink: 0;
}

.tte-badge-active[b-5flpqnvtyl] { background: #ecfdf5; color: #10b981; border: 1px solid #d1fae5; }
.tte-badge-inactive[b-5flpqnvtyl] { background: #fff1f2; color: #f43f5e; border: 1px solid #ffe4e6; }

.tte-card-preview-text[b-5flpqnvtyl] {
    padding: 12px 18px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    flex: 1;
    min-height: 52px;
}

.tte-card-footer[b-5flpqnvtyl] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    border-top: 1px solid #f1f5f9;
}

.tte-card-date[b-5flpqnvtyl] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
}

.tte-card-actions[b-5flpqnvtyl] { display: flex; gap: 6px; }

.tte-icon-btn[b-5flpqnvtyl] {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all .15s;
}

.tte-icon-btn:hover[b-5flpqnvtyl] { background: #eef2ff; color: #6366f1; border-color: #c7d2fe; }
.tte-icon-btn.tte-icon-danger:hover[b-5flpqnvtyl] { background: #fff1f2; color: #f43f5e; border-color: #fecdd3; }

/* Empty state */
.tte-empty-state[b-5flpqnvtyl] {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    gap: 12px;
}

.tte-empty-icon[b-5flpqnvtyl] { font-size: 64px; color: #c7d2fe; }
.tte-empty-title[b-5flpqnvtyl] { font-size: 18px; font-weight: 700; color: #1e293b; }
.tte-empty-sub[b-5flpqnvtyl] { font-size: 13px; color: #64748b; margin-bottom: 8px; }

/* ── Editor Layout ────────────────────────────────────────────── */
.tte-editor-layout[b-5flpqnvtyl] {
    display: flex;
    flex: 1;
    overflow: hidden;
    gap: 0;
}

/* Sidebar */
.tte-sidebar[b-5flpqnvtyl] {
    width: 268px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid #e2e8f0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tte-sidebar-section[b-5flpqnvtyl] {
    border-bottom: 1px solid #f1f5f9;
    padding: 14px 16px;
}

.tte-sidebar-section-title[b-5flpqnvtyl] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 12px;
}

.tte-sidebar-section-title .material-symbols-outlined[b-5flpqnvtyl] { font-size: 15px; color: #6366f1; }

.tte-form-group[b-5flpqnvtyl] { margin-bottom: 10px; }
.tte-label[b-5flpqnvtyl] { font-size: 11px; font-weight: 600; color: #64748b; display: block; margin-bottom: 4px; }

.tte-input[b-5flpqnvtyl] {
    width: 100%;
    padding: 7px 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    color: #1e293b;
    background: #f8fafc;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
}

.tte-input:focus[b-5flpqnvtyl] { border-color: #6366f1; background: #fff; }

/* Field picker */
.tte-field-picker-section[b-5flpqnvtyl] { flex: 1; }

.tte-field-hint[b-5flpqnvtyl] {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Styles injected into fieldPickerHtml via TemplateEngine.GenerateFieldPickerHtml */
:global(.te-field-category)[b-5flpqnvtyl] { margin-bottom: 10px; }
:global(.te-field-cat-title)[b-5flpqnvtyl] {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0 0 5px;
}

:global(.te-field-chip)[b-5flpqnvtyl] {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    background: #f8fafc;
    cursor: pointer;
    margin-bottom: 4px;
    font-size: 12px;
    transition: background .15s, border-color .15s;
    user-select: none;
}

:global(.te-field-chip:hover)[b-5flpqnvtyl] { background: #eef2ff; border-color: #c7d2fe; }

:global(.te-field-chip-tag)[b-5flpqnvtyl] {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: 700;
    color: #6366f1;
    background: #eef2ff;
    padding: 1px 5px;
    border-radius: 4px;
}

:global(.te-field-chip-label)[b-5flpqnvtyl] { font-size: 11px; color: #64748b; }

/* Shortcuts */
.tte-shortcuts[b-5flpqnvtyl] { display: flex; flex-direction: column; gap: 5px; }

.tte-shortcut[b-5flpqnvtyl] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
}

.tte-shortcut kbd[b-5flpqnvtyl] {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-bottom: 2px solid #cbd5e1;
    border-radius: 5px;
    padding: 1px 6px;
    font-size: 11px;
    font-family: 'Courier New', monospace;
    color: #475569;
}

/* ── Editor Panel ─────────────────────────────────────────────── */
.tte-editor-panel[b-5flpqnvtyl] {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f0f4f8;
}

/* Toolbar */
.tte-toolbar[b-5flpqnvtyl] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
    padding: 6px 14px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.tte-toolbar-group[b-5flpqnvtyl] {
    display: flex;
    align-items: center;
    gap: 2px;
}

.tte-toolbar-divider[b-5flpqnvtyl] {
    width: 1px;
    height: 22px;
    background: #e2e8f0;
    margin: 0 4px;
}

.tte-toolbar-select[b-5flpqnvtyl] {
    padding: 5px 8px;
    border: 1.5px solid #e2e8f0;
    border-radius: 7px;
    font-size: 13px;
    color: #1e293b;
    background: #f8fafc;
    cursor: pointer;
    outline: none;
    min-width: 120px;
}

.tte-toolbar-select-sm[b-5flpqnvtyl] { min-width: 56px; }
.tte-toolbar-select:focus[b-5flpqnvtyl] { border-color: #6366f1; }

.tte-tb-btn[b-5flpqnvtyl] {
    width: 30px;
    height: 30px;
    border: 1.5px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: background .15s, border-color .15s, color .15s;
}

.tte-tb-btn:hover[b-5flpqnvtyl] { background: #eef2ff; border-color: #c7d2fe; color: #6366f1; }
.tte-tb-btn:active[b-5flpqnvtyl] { background: #e0e7ff; }
/* Active/toggled state – set by JS syncToolbar() */
.tte-tb-btn--active[b-5flpqnvtyl] { background: #e0e7ff !important; border-color: #6366f1 !important; color: #4f46e5 !important; }

.tte-color-btn[b-5flpqnvtyl] {
    position: relative;
    cursor: pointer;
    width: 30px;
    height: 30px;
}

.tte-color-input[b-5flpqnvtyl] {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    border: none;
    padding: 0;
}

/* Editor canvas */
.tte-editor-canvas-wrap[b-5flpqnvtyl] {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    justify-content: center;
}

.tte-editor-canvas[b-5flpqnvtyl] {
    width: 100%;
    max-width: 820px;
    min-height: 600px;
    background: #fff;
    border-radius: 12px;
    padding: 40px 48px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    outline: none;
    font-size: 14px;
    line-height: 1.75;
    color: #1e293b;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    border: 2px solid transparent;
    transition: border-color .2s;
}

.tte-editor-canvas:focus[b-5flpqnvtyl] { border-color: #c7d2fe; }

.tte-editor-canvas h1[b-5flpqnvtyl] { font-size: 28px; font-weight: 800; margin: 1.2em 0 .5em; color: #0f172a; }
.tte-editor-canvas h2[b-5flpqnvtyl] { font-size: 22px; font-weight: 700; margin: 1em 0 .4em; color: #1e293b; }
.tte-editor-canvas h3[b-5flpqnvtyl] { font-size: 18px; font-weight: 700; margin: .8em 0 .3em; color: #334155; }
.tte-editor-canvas h4[b-5flpqnvtyl] { font-size: 15px; font-weight: 700; margin: .6em 0 .3em; color: #475569; }
.tte-editor-canvas p[b-5flpqnvtyl] { margin: 0 0 .85em; }
.tte-editor-canvas table[b-5flpqnvtyl] { border-collapse: collapse; width: 100%; margin: 1rem 0; }
.tte-editor-canvas td[b-5flpqnvtyl], .tte-editor-canvas th[b-5flpqnvtyl] { border: 2px solid #cbd5e1; padding: 8px 12px; }
.tte-editor-canvas th[b-5flpqnvtyl] { background: #f1f5f9; font-weight: 700; }
.tte-editor-canvas ul[b-5flpqnvtyl], .tte-editor-canvas ol[b-5flpqnvtyl] { padding-left: 1.5em; margin: .5em 0; }
.tte-editor-canvas blockquote[b-5flpqnvtyl] { border-left: 4px solid #c7d2fe; padding-left: 1em; margin: 1em 0; color: #475569; font-style: italic; }
.tte-editor-canvas pre[b-5flpqnvtyl] { background: #0f172a; color: #f8fafc; padding: 1rem; border-radius: 8px; overflow-x: auto; font-size: 13px; }
.tte-editor-canvas code[b-5flpqnvtyl] { font-family: 'Courier New', monospace; background: #f1f5f9; padding: 1px 4px; border-radius: 4px; font-size: 12px; }
.tte-editor-canvas hr[b-5flpqnvtyl] { border: none; border-top: 2px solid #e2e8f0; margin: 1.5rem 0; }

/* Placeholder when canvas is empty */
.tte-editor-canvas:empty[b-5flpqnvtyl]::before,
.tte-editor-canvas > p:only-child:empty[b-5flpqnvtyl]::before,
.tte-editor-canvas > p:only-child > br:only-child + *:not(*)[b-5flpqnvtyl] {
    content: 'Start typing your template here... Use merge fields on the left to insert dynamic values.';
    color: #94a3b8;
    pointer-events: none;
    font-style: italic;
}

/* Merge-tag chip reachable inside canvas (not scoped by Blazor CSS isolation) */
[b-5flpqnvtyl] .tte-merge-tag {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg,#eef2ff,#e0e7ff);
    border: 1.5px solid #c7d2fe;
    color: #4f46e5;
    font-size: 12px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 6px;
    margin: 0 2px;
    font-family: 'Courier New', monospace;
    user-select: all;
    cursor: default;
}

/* Status bar */
.tte-status-bar[b-5flpqnvtyl] {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 5px 24px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.tte-status-item[b-5flpqnvtyl] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
}

.tte-status-modified[b-5flpqnvtyl] { color: #f59e0b; font-weight: 600; }

/* ── Preview Mode ─────────────────────────────────────────────── */
.tte-preview-panel[b-5flpqnvtyl] {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.tte-preview-header[b-5flpqnvtyl] {
    padding: 12px 24px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

.tte-preview-body[b-5flpqnvtyl] {
    padding: 40px 48px;
    max-width: 820px;
    margin: 24px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    font-size: 14px;
    line-height: 1.75;
    color: #1e293b;
    width: 100%;
    box-sizing: border-box;
}

.tte-preview-body h1[b-5flpqnvtyl] { font-size: 26px; font-weight: 800; margin-bottom: .5em; }
.tte-preview-body h2[b-5flpqnvtyl] { font-size: 20px; font-weight: 700; margin-bottom: .4em; }
.tte-preview-body h3[b-5flpqnvtyl] { font-size: 17px; font-weight: 700; margin-bottom: .3em; }
.tte-preview-body table[b-5flpqnvtyl] { border-collapse: collapse; width: 100%; margin: 1rem 0; }
.tte-preview-body td[b-5flpqnvtyl], .tte-preview-body th[b-5flpqnvtyl] { border: 2px solid #cbd5e1; padding: 8px 12px; }
.tte-preview-body th[b-5flpqnvtyl] { background: #f1f5f9; font-weight: 700; }
.tte-preview-body blockquote[b-5flpqnvtyl] { border-left: 4px solid #c7d2fe; padding-left: 1em; color: #475569; }
/* /Components/Pages/UnitMaster.razor.rz.scp.css */
/* ==========================================================================
   UNIT MASTER — SINGLE VIEWPORT MODERN OBSIDIAN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Main Layout Wrapper ────────────────────── */
.um-page-root[b-5fz9e6eb89] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.um-top-bar[b-5fz9e6eb89] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.um-title-block[b-5fz9e6eb89] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.um-title-icon-wrap[b-5fz9e6eb89] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.um-title-icon-wrap .material-symbols-outlined[b-5fz9e6eb89] {
    font-size: 20px;
}

.um-breadcrumbs[b-5fz9e6eb89] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.um-breadcrumb-link[b-5fz9e6eb89] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.um-breadcrumb-link:hover[b-5fz9e6eb89] {
    color: #2563eb;
}

.um-breadcrumb-sep[b-5fz9e6eb89] {
    font-size: 11px;
}

.um-page-title[b-5fz9e6eb89] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.um-badge-directory[b-5fz9e6eb89] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.um-live-dot[b-5fz9e6eb89] {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.um-top-actions[b-5fz9e6eb89] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.um-search-wrap[b-5fz9e6eb89] {
    position: relative;
    width: 240px;
}

.um-search-wrap .material-symbols-outlined[b-5fz9e6eb89] {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.um-search-input[b-5fz9e6eb89] {
    width: 100%;
    height: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 10px 0 32px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.um-search-input:focus[b-5fz9e6eb89] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.um-btn-primary[b-5fz9e6eb89] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.um-btn-primary:hover[b-5fz9e6eb89] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

.um-btn-icon[b-5fz9e6eb89] {
    font-size: 16px;
}

/* ── 3. KPI / Stat Cards Grid ───────────────────────────────── */
.um-stats-grid[b-5fz9e6eb89] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex-shrink: 0;
}

.um-stat-card[b-5fz9e6eb89] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 7px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.um-stat-card[b-5fz9e6eb89]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.um-card-total[b-5fz9e6eb89]::before    { background: #3b82f6; }
.um-card-decimal[b-5fz9e6eb89]::before  { background: #10b981; }
.um-card-packed[b-5fz9e6eb89]::before   { background: #6366f1; }
.um-card-active[b-5fz9e6eb89]::before   { background: #f59e0b; }

.um-stat-card:hover[b-5fz9e6eb89] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.um-stat-top[b-5fz9e6eb89] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.um-stat-icon-wrap[b-5fz9e6eb89] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.um-stat-icon-wrap .material-symbols-outlined[b-5fz9e6eb89] {
    font-size: 15px;
}

.um-stat-tag[b-5fz9e6eb89] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.um-stat-tag .material-symbols-outlined[b-5fz9e6eb89] {
    font-size: 13px;
}

.um-card-total .um-stat-icon-wrap[b-5fz9e6eb89]    { background: #eff6ff; color: #3b82f6; }
.um-card-total .um-stat-tag[b-5fz9e6eb89]          { background: #eff6ff; color: #2563eb; }

.um-card-decimal .um-stat-icon-wrap[b-5fz9e6eb89]  { background: #ecfdf5; color: #059669; }
.um-card-decimal .um-stat-tag[b-5fz9e6eb89]        { background: #ecfdf5; color: #047857; }

.um-card-packed .um-stat-icon-wrap[b-5fz9e6eb89]   { background: #eef2ff; color: #6366f1; }
.um-card-packed .um-stat-tag[b-5fz9e6eb89]         { background: #eef2ff; color: #4f46e5; }

.um-card-active .um-stat-icon-wrap[b-5fz9e6eb89]   { background: #fffbeb; color: #d97706; }
.um-card-active .um-stat-tag[b-5fz9e6eb89]         { background: #fffbeb; color: #b45309; }

.um-stat-mid[b-5fz9e6eb89] {
    margin-top: 1px;
}

.um-stat-label[b-5fz9e6eb89] {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.um-stat-bottom[b-5fz9e6eb89] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.um-stat-val[b-5fz9e6eb89] {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.um-stat-subtext[b-5fz9e6eb89] {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── 4. Table Card Container (Single Viewport Inner Area) ─── */
.um-table-card[b-5fz9e6eb89] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.um-table-container[b-5fz9e6eb89] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

.um-table[b-5fz9e6eb89] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    text-align: left;
}

/* Light Slate Sticky Header */
.um-thead[b-5fz9e6eb89] {
    position: sticky;
    top: 0;
    z-index: 10;
}

.um-th[b-5fz9e6eb89] {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 9px 12px;
    border-bottom: 1px solid #e2e8f0;
    border-top: none;
    white-space: nowrap;
    user-select: none;
}

.um-tbody tr[b-5fz9e6eb89] {
    background-color: #ffffff;
    transition: background-color 0.12s ease;
}

.um-tbody tr:hover[b-5fz9e6eb89] {
    background-color: #f8fafc;
}

.um-td[b-5fz9e6eb89] {
    padding: 7px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
    font-size: 12px;
}

.um-badge-code[b-5fz9e6eb89] {
    display: inline-block;
    padding: 2px 6px;
    background: #f1f5f9;
    color: #475569;
    font-family: monospace;
    font-weight: 700;
    font-size: 11px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.um-shortname-pill[b-5fz9e6eb89] {
    display: inline-block;
    color: #64748b;
    font-family: monospace;
    font-weight: 600;
    font-size: 11.5px;
}

.um-name-cell[b-5fz9e6eb89] {
    font-weight: 700;
    color: #0f172a;
    font-size: 12px;
}

.um-decimal-badge[b-5fz9e6eb89] {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 5px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #bfdbfe;
}

.um-pack-badge[b-5fz9e6eb89] {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 5px;
    background: #f0fdf4;
    color: #15803d;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #bbf7d0;
}

.um-date-text[b-5fz9e6eb89] {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

/* Action Buttons */
.um-actions-cell[b-5fz9e6eb89] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.um-btn-action[b-5fz9e6eb89] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.um-btn-action .material-symbols-outlined[b-5fz9e6eb89] {
    font-size: 14px;
}

.um-btn-edit:hover[b-5fz9e6eb89] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.um-btn-delete:hover[b-5fz9e6eb89] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* ── 5. Modal Backdrop & Card Form ──────────────────────────── */
.um-modal-overlay[b-5fz9e6eb89] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 16px;
    animation: umFadeIn-b-5fz9e6eb89 0.15s ease-out;
}

@keyframes umFadeIn-b-5fz9e6eb89 {
    from { opacity: 0; }
    to { opacity: 1; }
}

.um-modal-card[b-5fz9e6eb89] {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 540px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: umSlideUp-b-5fz9e6eb89 0.15s ease-out;
}

@keyframes umSlideUp-b-5fz9e6eb89 {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.um-modal-header[b-5fz9e6eb89] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.um-modal-title[b-5fz9e6eb89] {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.um-modal-close-btn[b-5fz9e6eb89] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.um-modal-close-btn:hover[b-5fz9e6eb89] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.um-modal-body[b-5fz9e6eb89] {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 75vh;
    overflow-y: auto;
}

.um-form-group[b-5fz9e6eb89] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.um-form-label[b-5fz9e6eb89] {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.um-form-input[b-5fz9e6eb89],
.um-form-textarea[b-5fz9e6eb89] {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.um-form-input:focus[b-5fz9e6eb89],
.um-form-textarea:focus[b-5fz9e6eb89] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.um-grid-3col[b-5fz9e6eb89] {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.um-grid-2col[b-5fz9e6eb89] {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px;
}

/* Special Symbols Helper */
.um-symbol-section[b-5fz9e6eb89] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.um-symbol-header[b-5fz9e6eb89] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
}

.um-symbol-container[b-5fz9e6eb89] {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.um-sym-btn[b-5fz9e6eb89] {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.12s ease;
    user-select: none;
}

.um-sym-btn:hover[b-5fz9e6eb89] {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #2563eb;
    transform: translateY(-1px);
}

.um-sym-btn:active[b-5fz9e6eb89] {
    transform: translateY(0);
}

.um-modal-footer[b-5fz9e6eb89] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.um-btn-delete[b-5fz9e6eb89] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #fca5a5;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.um-btn-delete:hover:not(:disabled)[b-5fz9e6eb89] {
    background: #fee2e2;
}

.um-btn-delete:disabled[b-5fz9e6eb89] {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #e2e8f0;
    color: #94a3b8;
}

.um-btn-save[b-5fz9e6eb89] {
    height: 32px;
    padding: 0 16px;
    border-radius: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.um-btn-save:hover[b-5fz9e6eb89] {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}
/* /Components/Pages/UserMaster.razor.rz.scp.css */
/* ==========================================================================
   USER MASTER — MODERN OBSIDIAN THEME
   Strict Single-Viewport Layout (No Outer Scroll, Internal Scroll Only)
   ========================================================================== */

/* ── 1. Page Root & Layout Wrapper ─────────────────────────── */
.um-page-root[b-esc5dxy7fv] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
}

/* ── 2. Top Header & Navigation Bar ────────────────────────── */
.um-top-bar[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    gap: 12px;
}

.um-title-block[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.um-title-icon-wrap[b-esc5dxy7fv] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.um-title-icon-wrap .material-symbols-outlined[b-esc5dxy7fv] {
    font-size: 20px;
}

.um-breadcrumbs[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1px;
}

.um-breadcrumb-link[b-esc5dxy7fv] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.um-breadcrumb-link:hover[b-esc5dxy7fv] {
    color: #2563eb;
}

.um-breadcrumb-sep[b-esc5dxy7fv] {
    font-size: 11px;
}

.um-page-title[b-esc5dxy7fv] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.um-badge-directory[b-esc5dxy7fv] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.um-live-dot[b-esc5dxy7fv] {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.um-top-actions[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Filter Pills */
.um-filter-pills[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f8fafc;
    padding: 2px 4px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.um-filter-pill[b-esc5dxy7fv] {
    padding: 3px 10px;
    border-radius: 4px;
    border: none;
    background: transparent;
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
}

.um-filter-pill:hover[b-esc5dxy7fv] {
    color: #0f172a;
}

.um-filter-pill.active[b-esc5dxy7fv] {
    background: #0f172a;
    color: #ffffff;
}

/* Search input */
.um-search-wrap[b-esc5dxy7fv] {
    position: relative;
    width: 200px;
}

.um-search-wrap .material-symbols-outlined[b-esc5dxy7fv] {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.um-search-input[b-esc5dxy7fv] {
    width: 100%;
    height: 32px;
    padding: 0 10px 0 30px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 12px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.um-search-input:focus[b-esc5dxy7fv] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.um-btn-primary[b-esc5dxy7fv] {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.um-btn-primary:hover[b-esc5dxy7fv] {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(15, 23, 42, 0.12);
}

/* ── 3. KPI / Stat Cards Grid ───────────────────────────────── */
.um-stats-grid[b-esc5dxy7fv] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex-shrink: 0;
}

.um-stat-card[b-esc5dxy7fv] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 7px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.um-stat-card[b-esc5dxy7fv]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.um-card-total[b-esc5dxy7fv]::before     { background: #3b82f6; }
.um-card-verified[b-esc5dxy7fv]::before  { background: #10b981; }
.um-card-admin[b-esc5dxy7fv]::before     { background: #6366f1; }
.um-card-pending[b-esc5dxy7fv]::before   { background: #f59e0b; }

.um-stat-card:hover[b-esc5dxy7fv] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.um-stat-top[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.um-stat-icon-wrap[b-esc5dxy7fv] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.um-stat-icon-wrap .material-symbols-outlined[b-esc5dxy7fv] {
    font-size: 15px;
}

.um-stat-tag[b-esc5dxy7fv] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.um-stat-tag .material-symbols-outlined[b-esc5dxy7fv] {
    font-size: 13px;
}

.um-card-total .um-stat-icon-wrap[b-esc5dxy7fv]   { background: #eff6ff; color: #3b82f6; }
.um-card-total .um-stat-tag[b-esc5dxy7fv]         { background: #eff6ff; color: #2563eb; }

.um-card-verified .um-stat-icon-wrap[b-esc5dxy7fv] { background: #ecfdf5; color: #10b981; }
.um-card-verified .um-stat-tag[b-esc5dxy7fv]       { background: #ecfdf5; color: #059669; }

.um-card-admin .um-stat-icon-wrap[b-esc5dxy7fv]   { background: #eef2ff; color: #6366f1; }
.um-card-admin .um-stat-tag[b-esc5dxy7fv]         { background: #eef2ff; color: #4f46e5; }

.um-card-pending .um-stat-icon-wrap[b-esc5dxy7fv] { background: #fffbeb; color: #f59e0b; }
.um-card-pending .um-stat-tag[b-esc5dxy7fv]       { background: #fffbeb; color: #d97706; }

.um-stat-mid[b-esc5dxy7fv] {
    margin-top: 1px;
}

.um-stat-label[b-esc5dxy7fv] {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.um-stat-bottom[b-esc5dxy7fv] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1px;
}

.um-stat-val[b-esc5dxy7fv] {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.um-stat-subtext[b-esc5dxy7fv] {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── 4. Table Card Container (Single Viewport) ─────────────── */
.um-table-card[b-esc5dxy7fv] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.um-table-container[b-esc5dxy7fv] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

.um-table[b-esc5dxy7fv] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    text-align: left;
}

/* Light Slate Sticky Header */
.um-thead[b-esc5dxy7fv] {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8fafc !important;
}

.um-th[b-esc5dxy7fv] {
    background-color: #f8fafc !important;
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 8px 12px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: none !important;
    white-space: nowrap;
    user-select: none;
}

.um-tbody tr[b-esc5dxy7fv] {
    background-color: #ffffff;
    transition: background-color 0.12s ease;
}

.um-tbody tr:hover[b-esc5dxy7fv] {
    background-color: #f8fafc;
}

.um-td[b-esc5dxy7fv] {
    padding: 6px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
    font-size: 12px;
}

/* User Identity Cell */
.um-user-identity[b-esc5dxy7fv] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.um-avatar-circle[b-esc5dxy7fv] {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
    border: 1px solid #dbeafe;
}

.um-avatar-img[b-esc5dxy7fv] {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.um-user-name[b-esc5dxy7fv] {
    font-weight: 700;
    color: #0f172a;
    font-size: 12px;
}

/* Status Badges */
.um-badge-pill[b-esc5dxy7fv] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 7px;
    border-radius: 12px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.um-badge-admin[b-esc5dxy7fv] {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.um-badge-auth2[b-esc5dxy7fv] {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.um-badge-auth1[b-esc5dxy7fv] {
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
}

.um-badge-entry[b-esc5dxy7fv] {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.um-badge-allowed[b-esc5dxy7fv] {
    color: #059669;
    font-weight: 700;
    font-size: 11.5px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.um-badge-denied[b-esc5dxy7fv] {
    color: #94a3b8;
    font-size: 11.5px;
}

.um-badge-verified[b-esc5dxy7fv] {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 12px;
    font-size: 10.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.um-badge-pending[b-esc5dxy7fv] {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
    padding: 1px 7px;
    border-radius: 12px;
    font-size: 10.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* Action buttons in row */
.um-row-actions[b-esc5dxy7fv] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.um-btn-icon-action[b-esc5dxy7fv] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: #f8fafc;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.um-btn-icon-action:hover[b-esc5dxy7fv] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.um-btn-icon-delete:hover[b-esc5dxy7fv] {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
}

.um-btn-icon-action .material-symbols-outlined[b-esc5dxy7fv] {
    font-size: 15px;
}

/* ── 5. Pagination Footer ───────────────────────────────────── */
.um-pagination-bar[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 14px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
    font-size: 11.5px;
    color: #64748b;
}

.um-page-controls[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.um-btn-page[b-esc5dxy7fv] {
    height: 26px;
    min-width: 26px;
    padding: 0 6px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.um-btn-page:hover:not(:disabled)[b-esc5dxy7fv] {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.um-btn-page:disabled[b-esc5dxy7fv] {
    opacity: 0.4;
    cursor: not-allowed;
}

.um-btn-page .material-symbols-outlined[b-esc5dxy7fv] {
    font-size: 14px;
}

/* ── 6. Modal Form Overlay & Card ───────────────────────────── */
.um-modal-overlay[b-esc5dxy7fv] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 16px;
}

.um-modal-card[b-esc5dxy7fv] {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 780px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 90vh;
}

.um-modal-header[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.um-modal-title[b-esc5dxy7fv] {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.um-modal-close-btn[b-esc5dxy7fv] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.um-modal-close-btn:hover[b-esc5dxy7fv] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.um-modal-body[b-esc5dxy7fv] {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

/* Modal Sections */
.um-modal-section[b-esc5dxy7fv] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.um-section-header[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 6px;
    margin-bottom: 2px;
}

.um-section-header .material-symbols-outlined[b-esc5dxy7fv] {
    font-size: 15px;
    color: #2563eb;
}

.um-form-group[b-esc5dxy7fv] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.um-field-label[b-esc5dxy7fv] {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.um-input[b-esc5dxy7fv] {
    width: 100%;
    height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 12.5px;
    color: #1e293b;
    background: #ffffff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.um-input:focus[b-esc5dxy7fv] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.um-modal-footer[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

/* ── 7. Top Bar Button for Tenant Administrator ─────────────── */
.um-btn-tenant-admin[b-esc5dxy7fv] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border-radius: 6px;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #3730a3;
    border: 1px solid #a5b4fc;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(79, 70, 229, 0.08);
}

.um-btn-tenant-admin:hover[b-esc5dxy7fv] {
    background: linear-gradient(135deg, #c7d2fe 0%, #a5b4fc 100%);
    color: #312e81;
    border-color: #818cf8;
    box-shadow: 0 2px 5px rgba(79, 70, 229, 0.18);
    transform: translateY(-1px);
}

/* ── 8. Full Screen Edit View Workspace ─────────────────────── */
.um-fs-container[b-esc5dxy7fv] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    gap: 10px;
    animation: umFadeIn-b-esc5dxy7fv 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes umFadeIn-b-esc5dxy7fv {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Top Header Bar */
.um-fs-header[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 10px 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    flex-shrink: 0;
    gap: 14px;
}

.um-fs-header-left[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 12px;
}

.um-fs-back-btn[b-esc5dxy7fv] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.um-fs-back-btn:hover[b-esc5dxy7fv] {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
}

.um-fs-back-btn .material-symbols-outlined[b-esc5dxy7fv] {
    font-size: 16px;
}

.um-fs-divider[b-esc5dxy7fv] {
    width: 1px;
    height: 28px;
    background: #e2e8f0;
}

.um-fs-title-icon[b-esc5dxy7fv] {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #bfdbfe;
    flex-shrink: 0;
}

.um-fs-title-icon .material-symbols-outlined[b-esc5dxy7fv] {
    font-size: 22px;
}

.um-fs-title-text[b-esc5dxy7fv] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.um-fs-breadcrumbs[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

.um-fs-active-crumb[b-esc5dxy7fv] {
    color: #2563eb;
    font-weight: 600;
}

.um-fs-title[b-esc5dxy7fv] {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.um-badge-admin-pill[b-esc5dxy7fv] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 700;
    color: #4338ca;
    background: #e0e7ff;
    border: 1px solid #c7d2fe;
    padding: 2px 8px;
    border-radius: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.um-badge-verified-pill[b-esc5dxy7fv] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 2px 7px;
    border-radius: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.um-badge-pending-pill[b-esc5dxy7fv] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #d97706;
    background: #fffbeb;
    border: 1px solid #fde68a;
    padding: 2px 7px;
    border-radius: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Header Action Buttons */
.um-fs-header-right[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.um-fs-btn-minimize[b-esc5dxy7fv] {
    height: 34px;
    padding: 0 12px;
    font-weight: 600;
    border-radius: 6px;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #cbd5e1;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.um-fs-btn-minimize:hover[b-esc5dxy7fv] {
    background: #f1f5f9;
    color: #0f172a;
}

.um-fs-btn-cancel[b-esc5dxy7fv] {
    height: 34px;
    padding: 0 14px;
    font-weight: 600;
    border-radius: 6px;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #cbd5e1;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.um-fs-btn-cancel:hover[b-esc5dxy7fv] {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #94a3b8;
}

.um-fs-btn-save[b-esc5dxy7fv] {
    height: 34px;
    padding: 0 18px;
    font-weight: 700;
    border-radius: 6px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: 1px solid #1d4ed8;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
    transition: all 0.15s ease;
}

.um-fs-btn-save:hover:not(:disabled)[b-esc5dxy7fv] {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.um-fs-btn-save:disabled[b-esc5dxy7fv] {
    opacity: 0.6;
    cursor: not-allowed;
}

.um-fs-btn-danger[b-esc5dxy7fv] {
    height: 34px;
    padding: 0 14px;
    font-weight: 600;
    border-radius: 6px;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.um-fs-btn-danger:hover[b-esc5dxy7fv] {
    background: #fee2e2;
    border-color: #fca5a5;
}

.um-fs-btn-verify[b-esc5dxy7fv] {
    height: 34px;
    padding: 0 14px;
    font-weight: 600;
    border-radius: 6px;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.um-fs-btn-verify:hover[b-esc5dxy7fv] {
    background: #d1fae5;
    border-color: #6ee7b7;
}

/* Error Banner */
.um-fs-error-banner[b-esc5dxy7fv] {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.um-fs-error-banner .material-symbols-outlined[b-esc5dxy7fv] {
    font-size: 18px;
    color: #ef4444;
}

/* Full Screen Body Grid */
.um-fs-body[b-esc5dxy7fv] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding-right: 4px;
}

@media (max-width: 1080px) {
    .um-fs-body[b-esc5dxy7fv] {
        grid-template-columns: 1fr;
    }
}

.um-fs-col[b-esc5dxy7fv] {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Card Sections */
.um-fs-card[b-esc5dxy7fv] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.um-fs-card-header[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}

.um-fs-card-title[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.um-fs-card-title .material-symbols-outlined[b-esc5dxy7fv] {
    font-size: 18px;
    color: #2563eb;
}

.um-fs-card-subtitle[b-esc5dxy7fv] {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

/* Privileges Grid */
.um-fs-privilege-grid[b-esc5dxy7fv] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.um-fs-privilege-item[b-esc5dxy7fv] {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.15s ease;
}

.um-fs-privilege-item:hover[b-esc5dxy7fv] {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.um-fs-privilege-item.active[b-esc5dxy7fv] {
    background: #f0fdf4;
    border-color: #86efac;
}

.um-fs-privilege-item input[type="checkbox"][b-esc5dxy7fv] {
    margin-top: 2px;
    width: 17px;
    height: 17px;
    accent-color: #2563eb;
    cursor: pointer;
    flex-shrink: 0;
}

.um-fs-privilege-text[b-esc5dxy7fv] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.um-fs-privilege-name[b-esc5dxy7fv] {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
}

.um-fs-privilege-desc[b-esc5dxy7fv] {
    font-size: 10.5px;
    color: #64748b;
    line-height: 1.3;
}

/* Chip list for branches and groups */
.um-fs-chip-list[b-esc5dxy7fv] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    padding: 8px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.um-fs-chip[b-esc5dxy7fv] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 12px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
}

.um-fs-chip:hover[b-esc5dxy7fv] {
    border-color: #93c5fd;
    background: #eff6ff;
}

.um-fs-chip.active[b-esc5dxy7fv] {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.08);
}

.um-fs-chip input[type="checkbox"][b-esc5dxy7fv] {
    accent-color: #2563eb;
    cursor: pointer;
}

.um-fs-quick-actions[b-esc5dxy7fv] {
    display: flex;
    gap: 6px;
    align-items: center;
}

.um-fs-badge-count[b-esc5dxy7fv] {
    font-size: 11px;
    font-weight: 700;
    color: #2563eb;
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid #bfdbfe;
    margin-right: 4px;
}

.um-fs-btn-xs[b-esc5dxy7fv] {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: #ffffff;
    color: #475569;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    transition: all 0.15s;
}

.um-fs-btn-xs:hover[b-esc5dxy7fv] {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

/* Category Table */
.um-fs-table-wrap[b-esc5dxy7fv] {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    max-height: 220px;
    overflow-y: auto;
    background: #ffffff;
}

.um-fs-table[b-esc5dxy7fv] {
    width: 100%;
    font-size: 11.5px;
    border-collapse: collapse;
}

.um-fs-table thead[b-esc5dxy7fv] {
    background: #f8fafc;
    position: sticky;
    top: 0;
    z-index: 1;
}

.um-fs-table th[b-esc5dxy7fv] {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    font-size: 10.5px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.um-fs-table td[b-esc5dxy7fv] {
    padding: 7px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.um-fs-table tbody tr:hover[b-esc5dxy7fv] {
    background: #f8fafc;
}

/* Sticky Footer */
.um-fs-footer[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 10px 16px;
    box-shadow: 0 -1px 3px rgba(15, 23, 42, 0.02);
    flex-shrink: 0;
}

.um-fs-footer-note[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: #64748b;
}

/* Password Toggle & Input Enhancements */
.um-pwd-toggle-btn[b-esc5dxy7fv] {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

.um-pwd-toggle-btn:hover[b-esc5dxy7fv] {
    color: #0f172a;
}

.um-hint-text[b-esc5dxy7fv] {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 3px;
}

/* Media Preview Boxes */
.um-media-preview-box[b-esc5dxy7fv] {
    margin-top: 6px;
    min-height: 54px;
    display: flex;
    align-items: center;
}

.um-media-img[b-esc5dxy7fv] {
    max-height: 52px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    background: #ffffff;
    padding: 2px;
}

.um-media-placeholder[b-esc5dxy7fv] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #94a3b8;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    padding: 6px 12px;
    border-radius: 6px;
}

.um-media-placeholder .material-symbols-outlined[b-esc5dxy7fv] {
    font-size: 16px;
}

/* ==========================================================================
   USER RIGHTS & ROLE MAPPING WORKSPACE IN USER MASTER
   ========================================================================== */

.um-rights-card[b-esc5dxy7fv] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
}

.um-rights-card-header[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
    gap: 16px;
    flex-wrap: wrap;
}

.um-rights-card-title[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.um-rights-card-title .material-symbols-outlined[b-esc5dxy7fv] {
    font-size: 20px;
    color: #4f46e5;
}

.um-rights-card-subtitle[b-esc5dxy7fv] {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 3px;
}

.um-rights-badge[b-esc5dxy7fv] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: #3730a3;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #c7d2fe;
}

.um-rights-badge .material-symbols-outlined[b-esc5dxy7fv] {
    font-size: 16px;
    color: #4f46e5;
}

/* Template Bar & Controls */
.um-template-bar[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    flex-wrap: wrap;
}

.um-template-select-group[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 220px;
}

.um-template-label[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
}

.um-template-select[b-esc5dxy7fv] {
    flex: 1;
    height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: #1e293b;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.15s ease;
}

.um-template-select:focus[b-esc5dxy7fv] {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.um-rights-search-wrap[b-esc5dxy7fv] {
    position: relative;
    flex: 1;
    min-width: 180px;
    max-width: 260px;
}

.um-rights-search-wrap .material-symbols-outlined[b-esc5dxy7fv] {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    color: #94a3b8;
    pointer-events: none;
}

.um-rights-search-input[b-esc5dxy7fv] {
    width: 100%;
    height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 30px 0 32px;
    font-size: 12px;
    color: #1e293b;
    background: #ffffff;
    box-sizing: border-box;
    transition: all 0.15s;
}

.um-rights-search-input:focus[b-esc5dxy7fv] {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.um-rights-search-clear[b-esc5dxy7fv] {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.um-rights-search-clear:hover[b-esc5dxy7fv] {
    color: #475569;
}

.um-rights-quick-actions[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 6px;
}

.um-quick-btn[b-esc5dxy7fv] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    padding: 6px 10px;
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s;
}

.um-quick-btn .material-symbols-outlined[b-esc5dxy7fv] {
    font-size: 15px;
}

.um-quick-btn:hover[b-esc5dxy7fv] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

/* Informational Note Pill */
.um-template-note-pill[b-esc5dxy7fv] {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 11.5px;
    color: #0369a1;
    line-height: 1.45;
}

.um-template-note-pill code[b-esc5dxy7fv] {
    background: #e0f2fe;
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: 700;
    color: #0284c7;
    font-size: 11px;
}

/* Tree Workspace */
.umr-hierarchy-workspace[b-esc5dxy7fv] {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Main Module Card (Level 1) */
.umr-main-module-card[b-esc5dxy7fv] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: border-color 0.2s;
}

.umr-main-module-card.is-expanded[b-esc5dxy7fv] {
    border-color: #cbd5e1;
    box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.04);
}

.umr-main-header[b-esc5dxy7fv] {
    background: #fafbfc;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    user-select: none;
    border-bottom: 1px solid transparent;
}

.umr-main-module-card.is-expanded .umr-main-header[b-esc5dxy7fv] {
    border-bottom-color: #e2e8f0;
    background: #f8fafc;
}

.umr-main-header-left[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    flex: 1;
}

.umr-main-icon-wrap[b-esc5dxy7fv] {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.umr-main-icon-wrap .material-symbols-outlined[b-esc5dxy7fv] {
    font-size: 20px;
}

.umr-main-title[b-esc5dxy7fv] {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.umr-submodules-count[b-esc5dxy7fv] {
    font-size: 11.5px;
    font-weight: 500;
    color: #94a3b8;
}

.umr-main-meta[b-esc5dxy7fv] {
    margin-top: 2px;
}

.umr-group-badge[b-esc5dxy7fv] {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 5px;
}

.umr-group-badge.has-selected[b-esc5dxy7fv] {
    background: #e0e7ff;
    color: #3730a3;
}

.umr-main-header-right[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 12px;
}

.umr-toggle-chevron-btn[b-esc5dxy7fv] {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.15s;
}

.umr-toggle-chevron-btn:hover[b-esc5dxy7fv] {
    background: #e2e8f0;
    color: #0f172a;
}

/* Sub-Modules Body (Level 2) */
.umr-sub-modules-body[b-esc5dxy7fv] {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8fafc;
}

.umr-sub-module-block[b-esc5dxy7fv] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.umr-sub-header[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.umr-sub-title-wrap[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 6px;
}

.umr-sub-icon[b-esc5dxy7fv] {
    font-size: 16px;
    color: #64748b;
}

.umr-sub-title[b-esc5dxy7fv] {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

.umr-sub-badge[b-esc5dxy7fv] {
    font-size: 10.5px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 4px;
}

.umr-sub-badge.active[b-esc5dxy7fv] {
    background: #ecfdf5;
    color: #065f46;
}

.umr-sub-select-all[b-esc5dxy7fv] {
    font-size: 11.5px;
}

/* Actions Grid (Level 3) */
.umr-actions-grid[b-esc5dxy7fv] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 8px;
}

.umr-action-chip[b-esc5dxy7fv] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.umr-action-chip:hover[b-esc5dxy7fv] {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.umr-action-chip.is-checked[b-esc5dxy7fv] {
    background: #f0fdf4;
    border-color: #86efac;
    box-shadow: 0 1px 2px rgba(16, 185, 129, 0.08);
}

.umr-action-info[b-esc5dxy7fv] {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}

.umr-action-name[b-esc5dxy7fv] {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.umr-action-chip.is-checked .umr-action-name[b-esc5dxy7fv] {
    color: #065f46;
}

.umr-role-id-tag[b-esc5dxy7fv] {
    font-size: 10px;
    color: #94a3b8;
    font-family: monospace;
}

/* Custom Checkbox Design */
.umr-checkbox-label[b-esc5dxy7fv] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    user-select: none;
}

.umr-checkbox[b-esc5dxy7fv] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.umr-checkbox-custom[b-esc5dxy7fv] {
    width: 16px;
    height: 16px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
    position: relative;
}

.umr-checkbox:checked + .umr-checkbox-custom[b-esc5dxy7fv],
.umr-action-chip.is-checked .umr-checkbox-custom[b-esc5dxy7fv] {
    background: #10b981;
    border-color: #10b981;
}

.umr-checkbox:checked + .umr-checkbox-custom[b-esc5dxy7fv]::after,
.umr-action-chip.is-checked .umr-checkbox-custom[b-esc5dxy7fv]::after {
    content: "";
    width: 3.5px;
    height: 7px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.umr-checkbox-custom.is-indeterminate[b-esc5dxy7fv] {
    background: #4f46e5;
    border-color: #4f46e5;
}

.umr-checkbox-custom.is-indeterminate[b-esc5dxy7fv]::after {
    content: "";
    width: 8px;
    height: 2px;
    background: #ffffff;
    border-radius: 1px;
}

.umr-empty-search[b-esc5dxy7fv] {
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    padding: 32px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.umr-empty-search .umr-empty-icon[b-esc5dxy7fv] {
    font-size: 32px;
    color: #94a3b8;
}

.umr-empty-search h4[b-esc5dxy7fv] {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.umr-empty-search p[b-esc5dxy7fv] {
    margin: 0;
    font-size: 12px;
    color: #64748b;
}

/* ── Full Screen User Master & Full Screen User Rights ───────────────── */
.um-fs-fullscreen-body[b-esc5dxy7fv] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    padding: 10px 16px;
    display: flex;
    justify-content: center;
}

.um-user-form-content[b-esc5dxy7fv] {
    width: 100%;
    max-width: 980px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.um-grid-2col[b-esc5dxy7fv] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 768px) {
    .um-grid-2col[b-esc5dxy7fv] {
        grid-template-columns: 1fr;
    }
}

.um-fs-btn-rights[b-esc5dxy7fv] {
    height: 34px;
    padding: 0 14px;
    font-weight: 700;
    border-radius: 6px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: #4338ca;
    border: 1px solid #c7d2fe;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(67, 56, 202, 0.08);
}

.um-fs-btn-rights:hover[b-esc5dxy7fv] {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-color: #a5b4fc;
    color: #3730a3;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(67, 56, 202, 0.15);
}

.um-rights-count-pill[b-esc5dxy7fv] {
    background: #4338ca;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
    line-height: 1.2;
}

.um-rights-banner-card[b-esc5dxy7fv] {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 16px 20px;
}

.um-rights-banner-content[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.um-rights-banner-icon[b-esc5dxy7fv] {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #e0e7ff;
    color: #4338ca;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.um-rights-banner-icon .material-symbols-outlined[b-esc5dxy7fv] {
    font-size: 26px;
}

.um-rights-banner-text[b-esc5dxy7fv] {
    flex: 1 1 0;
    min-width: 0;
}

.um-rights-banner-title[b-esc5dxy7fv] {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}

.um-rights-banner-desc[b-esc5dxy7fv] {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.um-rights-banner-meta[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.um-rights-status-chip[b-esc5dxy7fv] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #065f46;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 2px 8px;
    border-radius: 6px;
}

.um-rights-status-chip .material-symbols-outlined[b-esc5dxy7fv] {
    font-size: 14px;
}

.um-rights-template-chip[b-esc5dxy7fv] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #4338ca;
    background: #e0e7ff;
    border: 1px solid #c7d2fe;
    padding: 2px 8px;
    border-radius: 6px;
}

.um-rights-template-chip .material-symbols-outlined[b-esc5dxy7fv] {
    font-size: 14px;
}

.um-btn-open-rights-hero[b-esc5dxy7fv] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 18px;
    border-radius: 8px;
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff;
    border: 1px solid #4338ca;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    box-shadow: 0 2px 5px rgba(79, 70, 229, 0.25);
    flex-shrink: 0;
}

.um-btn-open-rights-hero:hover[b-esc5dxy7fv] {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.35);
}









@media (max-width: 900px) {
    
}

.um-btn-icon-rights[b-esc5dxy7fv] {
    color: #4f46e5;
}

.um-btn-icon-rights:hover[b-esc5dxy7fv] {
    background: #e0e7ff;
    color: #3730a3;
    border-color: #c7d2fe;
}




/* ==========================================================================
   ROLE EDITOR WORKSPACE (FULL SCREEN/FOCUSED)
   ========================================================================== */
.umr-editor-container[b-esc5dxy7fv] {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Sticky Top Control Header */
.umr-editor-header[b-esc5dxy7fv] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 12px;
    z-index: 100;
}

.umr-editor-header-left[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.umr-btn-back[b-esc5dxy7fv] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s;
}

.umr-btn-back:hover[b-esc5dxy7fv] {
    background: #f1f5f9;
    color: #0f172a;
}

.umr-header-divider[b-esc5dxy7fv] {
    width: 1px;
    height: 32px;
    background: #e2e8f0;
}

.umr-editor-title[b-esc5dxy7fv] {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.umr-editor-header-right[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 12px;
}

.umr-selection-counter-badge[b-esc5dxy7fv] {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4338ca;
}

.umr-selection-counter-badge .material-symbols-outlined[b-esc5dxy7fv] {
    font-size: 18px;
    color: #4f46e5;
}

.umr-counter-max[b-esc5dxy7fv] {
    color: #6366f1;
    font-weight: 500;
}

/* Role Meta Bar */
.umr-role-meta-bar[b-esc5dxy7fv] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 24px;
    display: grid;
    grid-template-columns: 1.5fr 1.5fr auto;
    gap: 20px;
    align-items: flex-end;
}

@media (max-width: 992px) {
    .umr-role-meta-bar[b-esc5dxy7fv] {
        grid-template-columns: 1fr;
    }
}

.umr-input-group[b-esc5dxy7fv],
.umr-filter-group[b-esc5dxy7fv] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.umr-input-label[b-esc5dxy7fv] {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.umr-req-star[b-esc5dxy7fv] {
    color: #ef4444;
}

.umr-input-wrapper[b-esc5dxy7fv] {
    position: relative;
    display: flex;
    align-items: center;
}

.umr-input-icon[b-esc5dxy7fv] {
    position: absolute;
    left: 12px;
    font-size: 20px;
    color: #94a3b8;
    pointer-events: none;
}

.umr-input[b-esc5dxy7fv] {
    width: 100%;
    height: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 12px 0 40px;
    font-size: 13.5px;
    color: #1e293b;
    background: #ffffff;
    box-sizing: border-box;
    transition: all 0.15s;
}

.umr-input:focus[b-esc5dxy7fv] {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.umr-quick-actions[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.umr-quick-btn[b-esc5dxy7fv] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s;
}

.umr-quick-btn .material-symbols-outlined[b-esc5dxy7fv] {
    font-size: 17px;
}

.umr-quick-btn:hover[b-esc5dxy7fv] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

/* ==========================================================================
   HIERARCHY ACCORDIONS & CHECKBOX TREE
   ========================================================================== */
.umr-hierarchy-workspace[b-esc5dxy7fv] {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.umr-btn-primary[b-esc5dxy7fv] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
    transition: all 0.2s ease;
}

.umr-btn-primary:hover:not(:disabled)[b-esc5dxy7fv] {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(79, 70, 229, 0.35);
}

.umr-btn-secondary[b-esc5dxy7fv] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 9px 18px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.umr-btn-secondary:hover:not(:disabled)[b-esc5dxy7fv] {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.umr-btn-primary:disabled[b-esc5dxy7fv] {
    opacity: 0.65;
    cursor: not-allowed;
}
/* Main Module Card (Level 1) */
.umr-main-module-card[b-esc5dxy7fv] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: border-color 0.2s;
}

.umr-main-module-card.is-expanded[b-esc5dxy7fv] {
    border-color: #cbd5e1;
    box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.04);
}

.umr-main-header[b-esc5dxy7fv] {
    background: #fafbfc;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    user-select: none;
    border-bottom: 1px solid transparent;
}

.umr-main-module-card.is-expanded .umr-main-header[b-esc5dxy7fv] {
    border-bottom-color: #e2e8f0;
    background: #f8fafc;
}

.umr-main-header-left[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    flex: 1;
}

.umr-main-icon-wrap[b-esc5dxy7fv] {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.umr-main-icon-wrap .material-symbols-outlined[b-esc5dxy7fv] {
    font-size: 24px;
}

.umr-main-title[b-esc5dxy7fv] {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.umr-submodules-count[b-esc5dxy7fv] {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
}

.umr-main-meta[b-esc5dxy7fv] {
    margin-top: 3px;
}

.umr-group-badge[b-esc5dxy7fv] {
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
}

.umr-group-badge.has-selected[b-esc5dxy7fv] {
    background: #e0e7ff;
    color: #3730a3;
}

.umr-main-header-right[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.umr-toggle-chevron-btn[b-esc5dxy7fv] {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.15s;
}

.umr-toggle-chevron-btn:hover[b-esc5dxy7fv] {
    background: #e2e8f0;
    color: #0f172a;
}

/* Sub-Modules Body (Level 2) */
.umr-sub-modules-body[b-esc5dxy7fv] {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: #f8fafc;
}

.umr-sub-module-block[b-esc5dxy7fv] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.umr-sub-header[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.umr-sub-title-wrap[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.umr-sub-icon[b-esc5dxy7fv] {
    font-size: 18px;
    color: #64748b;
}

.umr-sub-title[b-esc5dxy7fv] {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.umr-sub-badge[b-esc5dxy7fv] {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 4px;
}

.umr-sub-badge.active[b-esc5dxy7fv] {
    background: #ecfdf5;
    color: #065f46;
}

.umr-sub-select-all[b-esc5dxy7fv] {
    font-size: 12px;
}

/* Actions Grid (Level 3) */
.umr-actions-grid[b-esc5dxy7fv] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}

.umr-action-chip[b-esc5dxy7fv] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.umr-action-chip:hover[b-esc5dxy7fv] {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.umr-action-chip.is-checked[b-esc5dxy7fv] {
    background: #f0fdf4;
    border-color: #86efac;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.1);
}

.umr-action-info[b-esc5dxy7fv] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.umr-action-name[b-esc5dxy7fv] {
    font-size: 12.5px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.umr-action-chip.is-checked .umr-action-name[b-esc5dxy7fv] {
    color: #065f46;
}

.umr-role-id-tag[b-esc5dxy7fv] {
    font-size: 10.5px;
    color: #94a3b8;
    font-family: monospace;
}

/* Custom Checkbox Design */
.umr-checkbox-label[b-esc5dxy7fv] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    user-select: none;
}

.umr-checkbox[b-esc5dxy7fv] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.umr-checkbox-custom[b-esc5dxy7fv] {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 5px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
    position: relative;
}

.umr-checkbox:checked + .umr-checkbox-custom[b-esc5dxy7fv],
.umr-action-chip.is-checked .umr-checkbox-custom[b-esc5dxy7fv] {
    background: #10b981;
    border-color: #10b981;
}

.umr-checkbox:checked + .umr-checkbox-custom[b-esc5dxy7fv]::after,
.umr-action-chip.is-checked .umr-checkbox-custom[b-esc5dxy7fv]::after {
    content: "";
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.umr-checkbox-custom.is-indeterminate[b-esc5dxy7fv] {
    background: #4f46e5;
    border-color: #4f46e5;
}

.umr-checkbox-custom.is-indeterminate[b-esc5dxy7fv]::after {
    content: "";
    width: 8px;
    height: 2px;
    background: #ffffff;
    border-radius: 1px;
}

/* Sticky Editor Footer */
.umr-editor-footer[b-esc5dxy7fv] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.03);
    position: sticky;
    bottom: 12px;
    z-index: 90;
    flex-wrap: wrap;
    gap: 12px;
}

.umr-footer-info[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #64748b;
}

.umr-footer-info .material-symbols-outlined[b-esc5dxy7fv] {
    font-size: 18px;
    color: #4f46e5;
}

.umr-footer-buttons[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 10px;
}



/* Host container to allow smooth scrolling inside User Master page */
.umr-fullscreen-scroll-host[b-esc5dxy7fv] {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background: #f8fafc;
    flex: 1 1 0;
    min-height: 0;
}

.umr-clear-search-btn[b-esc5dxy7fv] {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

.umr-clear-search-btn:hover[b-esc5dxy7fv] {
    color: #475569;
}

/* ==========================================================================
   3-TAB RIGHTS PANEL (Role Rights, Group Rights, Branch Rights)
   ========================================================================== */

.urm-tabs-bar[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
    background: #ffffff;
    border-bottom: 2px solid #f1f5f9;
    flex-shrink: 0;
}

.urm-tab-btn[b-esc5dxy7fv] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    bottom: -2px;
}

.urm-tab-btn .material-symbols-outlined[b-esc5dxy7fv] {
    font-size: 18px;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.urm-tab-btn:hover[b-esc5dxy7fv] {
    color: #0f172a;
}

.urm-tab-btn:hover .material-symbols-outlined[b-esc5dxy7fv] {
    color: #4f46e5;
}

.urm-tab-btn.active[b-esc5dxy7fv] {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
    font-weight: 700;
}

.urm-tab-btn.active .material-symbols-outlined[b-esc5dxy7fv] {
    color: #4f46e5;
}

.urm-tab-badge[b-esc5dxy7fv] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    background: #f1f5f9;
    color: #64748b;
    transition: all 0.2s ease;
}

.urm-tab-btn.active .urm-tab-badge[b-esc5dxy7fv] {
    background: #e0e7ff;
    color: #4338ca;
}

/* Tab Notice */
.umr-tab-notice[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: 8px;
    font-size: 12.5px;
    color: #5b21b6;
    margin-bottom: 14px;
}

/* ==========================================================================
   TAB 2: GROUP RIGHTS PANEL
   ========================================================================== */

.ugr-panel[b-esc5dxy7fv] {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 24px 32px 24px;
}

.ugr-panel-header[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 13px;
    color: #1e40af;
    line-height: 1.5;
}

.ugr-panel-header .material-symbols-outlined[b-esc5dxy7fv] {
    font-size: 20px;
    color: #2563eb;
    flex-shrink: 0;
}

/* Group Rights Mode Bar */
.ugr-mode-bar[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    flex-wrap: wrap;
}

.ugr-mode-toggle-group[b-esc5dxy7fv] {
    display: inline-flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    gap: 4px;
}

.ugr-mode-btn[b-esc5dxy7fv] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ugr-mode-btn .material-symbols-outlined[b-esc5dxy7fv] {
    font-size: 18px;
}

.ugr-mode-btn:hover[b-esc5dxy7fv] {
    color: #1e293b;
    background: rgba(255, 255, 255, 0.6);
}

.ugr-mode-btn.active[b-esc5dxy7fv] {
    background: #ffffff;
    color: #4f46e5;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.ugr-mode-pill[b-esc5dxy7fv] {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 2px 6px;
    border-radius: 4px;
    background: #e2e8f0;
    color: #475569;
}

.ugr-mode-btn.active .ugr-mode-pill[b-esc5dxy7fv] {
    background: #e0e7ff;
    color: #4338ca;
}

.ugr-mode-desc[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #475569;
}

.ugr-mode-desc .material-symbols-outlined[b-esc5dxy7fv] {
    font-size: 18px;
    color: #6366f1;
    flex-shrink: 0;
}

/* Universal All Groups Card */
.ugr-card-all-groups[b-esc5dxy7fv] {
    border: 1.5px solid #c7d2fe !important;
    box-shadow: 0 4px 12px -2px rgba(79, 70, 229, 0.08);
}

.ugr-card-all-groups .ugr-group-header[b-esc5dxy7fv] {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%) !important;
    border-bottom: 1px solid #ddd6fe !important;
}

.ugr-group-icon.universal[b-esc5dxy7fv] {
    color: #6366f1;
}

.ugr-group-gcode-tag.universal[b-esc5dxy7fv] {
    background: #ede9fe;
    color: #5b21b6;
    border-color: #c4b5fd;
}

.ugr-card-btn.ugr-btn-apply[b-esc5dxy7fv] {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.ugr-card-btn.ugr-btn-apply:hover[b-esc5dxy7fv] {
    background: #dbeafe;
    border-color: #93c5fd;
}

.ugr-toolbar[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    flex-wrap: wrap;
}

.ugr-add-group-wrap[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 600px;
    flex-wrap: wrap;
}

.ugr-add-icon[b-esc5dxy7fv] {
    font-size: 22px;
    color: #6366f1;
    flex-shrink: 0;
}

.ugr-group-select[b-esc5dxy7fv] {
    flex: 1;
    min-width: 220px;
    height: 38px;
    font-size: 13px;
}

.ugr-add-btn[b-esc5dxy7fv] {
    white-space: nowrap;
}

.ugr-add-all-btn[b-esc5dxy7fv] {
    white-space: nowrap;
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}

.ugr-add-all-btn:hover[b-esc5dxy7fv] {
    background: #e0e7ff;
    color: #3730a3;
    border-color: #c7d2fe;
}

.ugr-toolbar-right[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Chevron Icon for Expand/Collapse */
.ugr-chevron-icon[b-esc5dxy7fv] {
    font-size: 22px;
    color: #64748b;
    transition: transform 0.2s ease;
    user-select: none;
    margin-right: -2px;
}

.ugr-chevron-icon.expanded[b-esc5dxy7fv] {
    transform: rotate(90deg);
}

.ugr-group-card.is-collapsed[b-esc5dxy7fv] {
    border-color: #e2e8f0;
}

.ugr-group-card.is-collapsed .ugr-group-header[b-esc5dxy7fv] {
    border-bottom: none;
}

/* Copy from dropdown */
.ugr-copy-wrap[b-esc5dxy7fv] {
    display: inline-flex;
    align-items: center;
    position: relative;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 4px 0 8px;
    transition: all 0.15s ease;
}

.ugr-copy-wrap:hover[b-esc5dxy7fv] {
    border-color: #94a3b8;
    background: #f8fafc;
}

.ugr-copy-icon[b-esc5dxy7fv] {
    font-size: 15px;
    color: #64748b;
    pointer-events: none;
    margin-right: 4px;
}

.ugr-copy-select[b-esc5dxy7fv] {
    height: 28px;
    border: none;
    background: transparent;
    font-size: 11.5px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    outline: none;
    max-width: 180px;
}

.ugr-copy-select:focus[b-esc5dxy7fv] {
    outline: none;
}

/* Group Card */
.ugr-group-card[b-esc5dxy7fv] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ugr-group-card:hover[b-esc5dxy7fv] {
    border-color: #cbd5e1;
    box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.05);
}

.ugr-group-header[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    gap: 12px;
    flex-wrap: wrap;
    transition: background-color 0.15s ease;
}

.ugr-group-header:hover[b-esc5dxy7fv] {
    background: #f1f5f9;
}

.ugr-group-header-left[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ugr-group-icon[b-esc5dxy7fv] {
    font-size: 20px;
    color: #4f46e5;
}

.ugr-group-title[b-esc5dxy7fv] {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
}

.ugr-group-gcode-tag[b-esc5dxy7fv] {
    font-family: monospace;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.ugr-group-count-badge[b-esc5dxy7fv] {
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #64748b;
    transition: all 0.2s ease;
}

.ugr-group-count-badge.has-selected[b-esc5dxy7fv] {
    background: #dbeafe;
    color: #1e40af;
    font-weight: 700;
}

.ugr-group-header-actions[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ugr-card-btn[b-esc5dxy7fv] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ugr-card-btn .material-symbols-outlined[b-esc5dxy7fv] {
    font-size: 15px;
}

.ugr-card-btn:hover[b-esc5dxy7fv] {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.ugr-card-btn.ugr-btn-remove[b-esc5dxy7fv] {
    color: #dc2626;
    border-color: #fecaca;
    padding: 4px 7px;
}

.ugr-card-btn.ugr-btn-remove:hover[b-esc5dxy7fv] {
    background: #fee2e2;
    border-color: #fca5a5;
}

.ugr-permissions-wrapper[b-esc5dxy7fv] {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ugr-sub-section[b-esc5dxy7fv] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ugr-sub-title[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.ugr-sub-title .material-symbols-outlined[b-esc5dxy7fv] {
    font-size: 17px;
    color: #64748b;
}

.ugr-sub-badge[b-esc5dxy7fv] {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #94a3b8;
}

.ugr-sub-badge.active[b-esc5dxy7fv] {
    background: #e0e7ff;
    color: #4338ca;
}

.ugr-actions-grid[b-esc5dxy7fv] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px;
}

.ugr-action-chip[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.ugr-action-chip:hover[b-esc5dxy7fv] {
    background: #ffffff;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.ugr-action-chip.is-checked[b-esc5dxy7fv] {
    background: #f0fdf4;
    border-color: #86efac;
}

.ugr-action-chip.is-checked .umr-action-name[b-esc5dxy7fv] {
    color: #166534;
    font-weight: 600;
}

.ugr-empty[b-esc5dxy7fv] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #64748b;
}

.ugr-empty .material-symbols-outlined[b-esc5dxy7fv] {
    font-size: 40px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.ugr-empty p[b-esc5dxy7fv] {
    margin: 0;
    font-size: 13.5px;
    max-width: 480px;
    line-height: 1.5;
}

/* ==========================================================================
   TAB 3: BRANCH RIGHTS PANEL
   ========================================================================== */

.ubr-panel[b-esc5dxy7fv] {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 24px 32px 24px;
}

.ubr-all-toggle[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    gap: 16px;
    flex-wrap: wrap;
}

.ubr-selected-counter[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ubr-counter-pill[b-esc5dxy7fv] {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.ubr-counter-pill.has-selection[b-esc5dxy7fv] {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

.ubr-counter-pill strong[b-esc5dxy7fv] {
    font-weight: 700;
}

.ubr-hint-text[b-esc5dxy7fv] {
    font-size: 11.5px;
    color: #94a3b8;
    font-style: italic;
}

.ubr-branches-grid[b-esc5dxy7fv] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.ubr-branch-chip[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    user-select: none;
}

.ubr-branch-chip:hover[b-esc5dxy7fv] {
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.05);
}

.ubr-branch-chip.is-checked[b-esc5dxy7fv] {
    background: #f0fdf4;
    border-color: #86efac;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.1);
}

.ubr-branch-info[b-esc5dxy7fv] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.ubr-branch-name[b-esc5dxy7fv] {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ubr-branch-chip.is-checked .ubr-branch-name[b-esc5dxy7fv] {
    color: #166534;
}

.ubr-branch-short[b-esc5dxy7fv] {
    font-size: 11.5px;
    color: #64748b;
    font-family: monospace;
}

.ubr-branch-type-tags[b-esc5dxy7fv] {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.ubr-tag[b-esc5dxy7fv] {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 2px 6px;
    border-radius: 4px;
}

.ubr-tag.main[b-esc5dxy7fv] {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.ubr-tag.branch[b-esc5dxy7fv] {
    background: #e0e7ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

.ubr-tag.cc[b-esc5dxy7fv] {
    background: #f3e8ff;
    color: #6b21a8;
    border: 1px solid #e9d5ff;
}
/* /Components/Pages/UserMasterRights.razor.rz.scp.css */
/* ==========================================================================
   USER MASTER RIGHTS (ROLE TEMPLATES) - STYLING
   ========================================================================== */

.umr-page-root[b-0gd5rbtojg] {
    width: 100%;
    min-height: 100vh;
    background: #f8fafc;
    color: #1e293b;
    font-family: inherit;
    padding-bottom: 60px;
    box-sizing: border-box;
}

/* ==========================================================================
   DIRECTORY VIEW (OVERVIEW)
   ========================================================================== */
.umr-directory-container[b-0gd5rbtojg] {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Hero Header */
.umr-hero-header[b-0gd5rbtojg] {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
    flex-wrap: wrap;
    gap: 20px;
}

.umr-hero-left[b-0gd5rbtojg] {
    display: flex;
    align-items: center;
    gap: 20px;
}

.umr-hero-icon-box[b-0gd5rbtojg] {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

.umr-hero-icon-box .material-symbols-outlined[b-0gd5rbtojg] {
    font-size: 32px;
}

.umr-breadcrumbs[b-0gd5rbtojg] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 4px;
}

.umr-crumb-link[b-0gd5rbtojg] {
    color: #64748b;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s;
}

.umr-crumb-link:hover[b-0gd5rbtojg] {
    color: #4f46e5;
}

.umr-crumb-sep[b-0gd5rbtojg] {
    color: #cbd5e1;
}

.umr-crumb-active[b-0gd5rbtojg] {
    color: #4f46e5;
    font-weight: 600;
}

.umr-hero-title[b-0gd5rbtojg] {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
    letter-spacing: -0.02em;
}

.umr-hero-subtitle[b-0gd5rbtojg] {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
    max-width: 680px;
    line-height: 1.5;
}

/* Primary Button */
.umr-btn-primary[b-0gd5rbtojg] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
    transition: all 0.2s ease;
}

.umr-btn-primary:hover:not(:disabled)[b-0gd5rbtojg] {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(79, 70, 229, 0.35);
}

.umr-btn-primary:disabled[b-0gd5rbtojg] {
    opacity: 0.65;
    cursor: not-allowed;
}

.umr-btn-secondary[b-0gd5rbtojg] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 9px 18px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.umr-btn-secondary:hover:not(:disabled)[b-0gd5rbtojg] {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

/* KPI Stat Cards */
.umr-stats-row[b-0gd5rbtojg] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.umr-stat-card[b-0gd5rbtojg] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}

.umr-stat-card:hover[b-0gd5rbtojg] {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
}

.umr-stat-icon-wrap[b-0gd5rbtojg] {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.umr-stat-icon-wrap .material-symbols-outlined[b-0gd5rbtojg] {
    font-size: 24px;
}

.stat-blue[b-0gd5rbtojg] {
    background: #eff6ff;
    color: #2563eb;
}

.stat-emerald[b-0gd5rbtojg] {
    background: #ecfdf5;
    color: #059669;
}

.stat-violet[b-0gd5rbtojg] {
    background: #f5f3ff;
    color: #7c3aed;
}

.umr-stat-details[b-0gd5rbtojg] {
    display: flex;
    flex-direction: column;
}

.umr-stat-label[b-0gd5rbtojg] {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.04em;
}

.umr-stat-val[b-0gd5rbtojg] {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.umr-stat-sub[b-0gd5rbtojg] {
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 2px;
}

/* Toolbar */
.umr-toolbar[b-0gd5rbtojg] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.umr-search-wrapper[b-0gd5rbtojg] {
    position: relative;
    flex: 1;
    max-width: 420px;
}

.umr-search-icon[b-0gd5rbtojg] {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #94a3b8;
}

.umr-search-input[b-0gd5rbtojg] {
    width: 100%;
    height: 38px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 36px 0 38px;
    font-size: 13.5px;
    color: #1e293b;
    background: #f8fafc;
    box-sizing: border-box;
    transition: all 0.2s;
}

.umr-search-input:focus[b-0gd5rbtojg] {
    outline: none;
    border-color: #4f46e5;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.umr-clear-search-btn[b-0gd5rbtojg] {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.umr-clear-search-btn:hover[b-0gd5rbtojg] {
    color: #475569;
}

.umr-refresh-btn[b-0gd5rbtojg] {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.umr-refresh-btn:hover[b-0gd5rbtojg] {
    background: #f1f5f9;
    color: #0f172a;
}

/* Roles Grid */
.umr-roles-grid[b-0gd5rbtojg] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}

.umr-role-card[b-0gd5rbtojg] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.2s ease;
}

.umr-role-card:hover[b-0gd5rbtojg] {
    border-color: #cbd5e1;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -3px rgba(0, 0, 0, 0.06);
}

.umr-role-card-header[b-0gd5rbtojg] {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
    background: #fafbfc;
}

.umr-role-title-box[b-0gd5rbtojg] {
    display: flex;
    align-items: center;
    gap: 12px;
}

.umr-role-avatar[b-0gd5rbtojg] {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.umr-role-name[b-0gd5rbtojg] {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.umr-role-guid[b-0gd5rbtojg] {
    font-size: 11px;
    color: #94a3b8;
    font-family: monospace;
}

.umr-role-menu[b-0gd5rbtojg] {
    display: flex;
    align-items: center;
    gap: 6px;
}

.umr-card-icon-btn[b-0gd5rbtojg] {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: #ffffff;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.umr-card-icon-btn .material-symbols-outlined[b-0gd5rbtojg] {
    font-size: 18px;
}

.umr-btn-edit:hover[b-0gd5rbtojg] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.umr-btn-copy:hover[b-0gd5rbtojg] {
    background: #f5f3ff;
    color: #7c3aed;
    border-color: #ddd6fe;
}

.umr-btn-delete:hover[b-0gd5rbtojg] {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.umr-role-card-body[b-0gd5rbtojg] {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.umr-progress-header[b-0gd5rbtojg] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
}

.umr-progress-label[b-0gd5rbtojg] {
    color: #64748b;
    font-weight: 500;
}

.umr-progress-val[b-0gd5rbtojg] {
    color: #0f172a;
}

.umr-progress-val strong[b-0gd5rbtojg] {
    color: #4f46e5;
}

.umr-progress-track[b-0gd5rbtojg] {
    width: 100%;
    height: 8px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
}

.umr-progress-fill[b-0gd5rbtojg] {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5 0%, #06b6d4 100%);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.umr-module-tags[b-0gd5rbtojg] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.umr-module-tag[b-0gd5rbtojg] {
    font-size: 11px;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.umr-module-tag.is-muted[b-0gd5rbtojg] {
    color: #94a3b8;
    background: #f8fafc;
    border-style: dashed;
}

.umr-role-card-footer[b-0gd5rbtojg] {
    padding: 12px 20px;
    background: #fafbfc;
    border-top: 1px solid #f1f5f9;
}

.umr-btn-card-action[b-0gd5rbtojg] {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: none;
    color: #4f46e5;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 4px;
    transition: color 0.15s;
}

.umr-btn-card-action:hover[b-0gd5rbtojg] {
    color: #3730a3;
}

/* Empty State */
.umr-empty-state[b-0gd5rbtojg] {
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 56px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.umr-empty-graphic[b-0gd5rbtojg] {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.umr-empty-graphic .material-symbols-outlined[b-0gd5rbtojg] {
    font-size: 36px;
}

.umr-empty-state h3[b-0gd5rbtojg] {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.umr-empty-state p[b-0gd5rbtojg] {
    margin: 0;
    font-size: 13.5px;
    color: #64748b;
    max-width: 460px;
    line-height: 1.5;
}

/* ==========================================================================
   ROLE EDITOR WORKSPACE (FULL SCREEN/FOCUSED)
   ========================================================================== */
.umr-editor-container[b-0gd5rbtojg] {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Sticky Top Control Header */
.umr-editor-header[b-0gd5rbtojg] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 12px;
    z-index: 100;
}

.umr-editor-header-left[b-0gd5rbtojg] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.umr-btn-back[b-0gd5rbtojg] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s;
}

.umr-btn-back:hover[b-0gd5rbtojg] {
    background: #f1f5f9;
    color: #0f172a;
}

.umr-header-divider[b-0gd5rbtojg] {
    width: 1px;
    height: 32px;
    background: #e2e8f0;
}

.umr-editor-title[b-0gd5rbtojg] {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.umr-editor-header-right[b-0gd5rbtojg] {
    display: flex;
    align-items: center;
    gap: 12px;
}

.umr-selection-counter-badge[b-0gd5rbtojg] {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4338ca;
}

.umr-selection-counter-badge .material-symbols-outlined[b-0gd5rbtojg] {
    font-size: 18px;
    color: #4f46e5;
}

.umr-counter-max[b-0gd5rbtojg] {
    color: #6366f1;
    font-weight: 500;
}

/* Role Meta Bar */
.umr-role-meta-bar[b-0gd5rbtojg] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 24px;
    display: grid;
    grid-template-columns: 1.5fr 1.5fr auto;
    gap: 20px;
    align-items: flex-end;
}

@media (max-width: 992px) {
    .umr-role-meta-bar[b-0gd5rbtojg] {
        grid-template-columns: 1fr;
    }
}

.umr-input-group[b-0gd5rbtojg],
.umr-filter-group[b-0gd5rbtojg] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.umr-input-label[b-0gd5rbtojg] {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.umr-req-star[b-0gd5rbtojg] {
    color: #ef4444;
}

.umr-input-wrapper[b-0gd5rbtojg] {
    position: relative;
    display: flex;
    align-items: center;
}

.umr-input-icon[b-0gd5rbtojg] {
    position: absolute;
    left: 12px;
    font-size: 20px;
    color: #94a3b8;
    pointer-events: none;
}

.umr-input[b-0gd5rbtojg] {
    width: 100%;
    height: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 12px 0 40px;
    font-size: 13.5px;
    color: #1e293b;
    background: #ffffff;
    box-sizing: border-box;
    transition: all 0.15s;
}

.umr-input:focus[b-0gd5rbtojg] {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.umr-quick-actions[b-0gd5rbtojg] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.umr-quick-btn[b-0gd5rbtojg] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s;
}

.umr-quick-btn .material-symbols-outlined[b-0gd5rbtojg] {
    font-size: 17px;
}

.umr-quick-btn:hover[b-0gd5rbtojg] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

/* ==========================================================================
   HIERARCHY ACCORDIONS & CHECKBOX TREE
   ========================================================================== */
.umr-hierarchy-workspace[b-0gd5rbtojg] {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Main Module Card (Level 1) */
.umr-main-module-card[b-0gd5rbtojg] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: border-color 0.2s;
}

.umr-main-module-card.is-expanded[b-0gd5rbtojg] {
    border-color: #cbd5e1;
    box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.04);
}

.umr-main-header[b-0gd5rbtojg] {
    background: #fafbfc;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    user-select: none;
    border-bottom: 1px solid transparent;
}

.umr-main-module-card.is-expanded .umr-main-header[b-0gd5rbtojg] {
    border-bottom-color: #e2e8f0;
    background: #f8fafc;
}

.umr-main-header-left[b-0gd5rbtojg] {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    flex: 1;
}

.umr-main-icon-wrap[b-0gd5rbtojg] {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.umr-main-icon-wrap .material-symbols-outlined[b-0gd5rbtojg] {
    font-size: 24px;
}

.umr-main-title[b-0gd5rbtojg] {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.umr-submodules-count[b-0gd5rbtojg] {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
}

.umr-main-meta[b-0gd5rbtojg] {
    margin-top: 3px;
}

.umr-group-badge[b-0gd5rbtojg] {
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
}

.umr-group-badge.has-selected[b-0gd5rbtojg] {
    background: #e0e7ff;
    color: #3730a3;
}

.umr-main-header-right[b-0gd5rbtojg] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.umr-toggle-chevron-btn[b-0gd5rbtojg] {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.15s;
}

.umr-toggle-chevron-btn:hover[b-0gd5rbtojg] {
    background: #e2e8f0;
    color: #0f172a;
}

/* Sub-Modules Body (Level 2) */
.umr-sub-modules-body[b-0gd5rbtojg] {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: #f8fafc;
}

.umr-sub-module-block[b-0gd5rbtojg] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.umr-sub-header[b-0gd5rbtojg] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.umr-sub-title-wrap[b-0gd5rbtojg] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.umr-sub-icon[b-0gd5rbtojg] {
    font-size: 18px;
    color: #64748b;
}

.umr-sub-title[b-0gd5rbtojg] {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.umr-sub-badge[b-0gd5rbtojg] {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 4px;
}

.umr-sub-badge.active[b-0gd5rbtojg] {
    background: #ecfdf5;
    color: #065f46;
}

.umr-sub-select-all[b-0gd5rbtojg] {
    font-size: 12px;
}

/* Actions Grid (Level 3) */
.umr-actions-grid[b-0gd5rbtojg] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}

.umr-action-chip[b-0gd5rbtojg] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.umr-action-chip:hover[b-0gd5rbtojg] {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.umr-action-chip.is-checked[b-0gd5rbtojg] {
    background: #f0fdf4;
    border-color: #86efac;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.1);
}

.umr-action-info[b-0gd5rbtojg] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.umr-action-name[b-0gd5rbtojg] {
    font-size: 12.5px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.umr-action-chip.is-checked .umr-action-name[b-0gd5rbtojg] {
    color: #065f46;
}

.umr-role-id-tag[b-0gd5rbtojg] {
    font-size: 10.5px;
    color: #94a3b8;
    font-family: monospace;
}

/* Custom Checkbox Design */
.umr-checkbox-label[b-0gd5rbtojg] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    user-select: none;
}

.umr-checkbox[b-0gd5rbtojg] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.umr-checkbox-custom[b-0gd5rbtojg] {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 5px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
    position: relative;
}

.umr-checkbox:checked + .umr-checkbox-custom[b-0gd5rbtojg],
.umr-action-chip.is-checked .umr-checkbox-custom[b-0gd5rbtojg] {
    background: #10b981;
    border-color: #10b981;
}

.umr-checkbox:checked + .umr-checkbox-custom[b-0gd5rbtojg]::after,
.umr-action-chip.is-checked .umr-checkbox-custom[b-0gd5rbtojg]::after {
    content: "";
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.umr-checkbox-custom.is-indeterminate[b-0gd5rbtojg] {
    background: #4f46e5;
    border-color: #4f46e5;
}

.umr-checkbox-custom.is-indeterminate[b-0gd5rbtojg]::after {
    content: "";
    width: 8px;
    height: 2px;
    background: #ffffff;
    border-radius: 1px;
}

/* Sticky Editor Footer */
.umr-editor-footer[b-0gd5rbtojg] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.03);
    position: sticky;
    bottom: 12px;
    z-index: 90;
    flex-wrap: wrap;
    gap: 12px;
}

.umr-footer-info[b-0gd5rbtojg] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #64748b;
}

.umr-footer-info .material-symbols-outlined[b-0gd5rbtojg] {
    font-size: 18px;
    color: #4f46e5;
}

.umr-footer-buttons[b-0gd5rbtojg] {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Delete Modal */
.umr-modal-backdrop[b-0gd5rbtojg] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 16px;
}

.umr-modal-dialog[b-0gd5rbtojg] {
    background: #ffffff;
    border-radius: 14px;
    max-width: 440px;
    width: 100%;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: umrFadeIn-b-0gd5rbtojg 0.2s ease-out;
}

@keyframes umrFadeIn-b-0gd5rbtojg {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.umr-modal-header[b-0gd5rbtojg] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px 12px 24px;
}

.umr-modal-icon-danger[b-0gd5rbtojg] {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fee2e2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
}

.umr-modal-header h3[b-0gd5rbtojg] {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.umr-modal-body[b-0gd5rbtojg] {
    padding: 0 24px 20px 24px;
    font-size: 13.5px;
    color: #475569;
    line-height: 1.5;
}

.umr-modal-warning-sub[b-0gd5rbtojg] {
    font-size: 12px;
    color: #dc2626;
    margin-top: 8px;
    background: #fef2f2;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #fee2e2;
}

.umr-modal-footer[b-0gd5rbtojg] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 24px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.umr-btn-danger[b-0gd5rbtojg] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dc2626;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.umr-btn-danger:hover:not(:disabled)[b-0gd5rbtojg] {
    background: #b91c1c;
}

/* Spinner */
.umr-spinner[b-0gd5rbtojg] {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: umrSpin-b-0gd5rbtojg 0.7s linear infinite;
}

@keyframes umrSpin-b-0gd5rbtojg {
    to {
        transform: rotate(360deg);
    }
}
/* /Components/Pages/VendorMaster.razor.rz.scp.css */
/* Isolated styles for VendorMaster component */

.items-page[b-6kj8mrs7fz] {
    min-height: 100vh;
    background: transparent !important;
}

.items-shell[b-6kj8mrs7fz] {
    max-width: 1320px;
    margin: 0 auto;
}

.items-content[b-6kj8mrs7fz] {
    width: min(1240px, 100%);
    margin: 0 auto;
    text-align: center;
}

.premium-header-card[b-6kj8mrs7fz] {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-radius: 16px !important;
    padding: 1.25rem 2rem !important;
    color: #1e1b4b !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem !important;
}

.header-card-left[b-6kj8mrs7fz] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-card-icon[b-6kj8mrs7fz] {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

.header-card-icon svg[b-6kj8mrs7fz] {
    stroke: #2563eb !important;
}

.header-card-text[b-6kj8mrs7fz] {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.header-card-heading[b-6kj8mrs7fz] {
    color: #0f172a !important;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
}

.header-card-subheading[b-6kj8mrs7fz] {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b !important;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.status-dot[b-6kj8mrs7fz] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    margin-right: 6px;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
}

.header-card-right[b-6kj8mrs7fz] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.items-search-wrap[b-6kj8mrs7fz] {
    position: relative;
    display: flex;
    align-items: center;
}

.items-search[b-6kj8mrs7fz] {
    width: 220px;
    height: 38px !important;
    border-radius: 20px !important;
    border: 1px solid #cbd5e1 !important;
    padding-left: 2.4rem !important;
    font-size: 0.8rem !important;
    background: #ffffff !important;
    color: #1e293b !important;
    box-shadow: none !important;
    transition: all 0.25s ease !important;
}

.items-search:focus[b-6kj8mrs7fz] {
    outline: none !important;
    width: 280px !important;
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

.items-search-icon[b-6kj8mrs7fz] {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
}

.view-toggle[b-6kj8mrs7fz] {
    display: inline-flex;
    border: 1px solid #cbd5e1 !important;
    border-radius: 20px !important;
    overflow: hidden;
    background: #f8fafc !important;
    height: 38px;
    padding: 2px;
    align-items: center;
}

.view-toggle button[b-6kj8mrs7fz] {
    border: 0 !important;
    background: transparent !important;
    color: #64748b !important;
    width: 36px;
    height: 32px;
    border-radius: 16px !important;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle button.active[b-6kj8mrs7fz] {
    background: #ffffff !important;
    color: #4f46e5 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.add-item-btn[b-6kj8mrs7fz] {
    height: 38px !important;
    border-radius: 20px !important;
    background: #4f46e5 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0 1.5rem !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
    transition: all 0.2s ease-in-out !important;
}

.add-item-btn:hover[b-6kj8mrs7fz] {
    background: #3f39c5 !important;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35) !important;
    transform: translateY(-1.5px);
}

.items-main-card[b-6kj8mrs7fz] {
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    overflow: hidden;
    margin-top: 1.5rem !important;
    background: #ffffff !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
}

.items-table[b-6kj8mrs7fz] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

table.table.items-table thead tr th[b-6kj8mrs7fz],
.items-table th[b-6kj8mrs7fz] {
    background: #ffffff !important;
    color: #8a99ad !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.74rem !important;
    letter-spacing: 0.8px !important;
    padding: 10px 16px !important;
    border-bottom: 2px solid #eef2f6 !important;
    text-align: center !important;
}

.items-table td[b-6kj8mrs7fz] {
    border-top: none !important;
    border-bottom: 1px solid #eef2f6 !important;
    padding: 10px 16px !important;
    font-size: 0.8rem !important;
    background: #ffffff !important;
    color: #64748b !important;
    vertical-align: middle !important;
    text-align: center !important;
}

.items-table td:last-child[b-6kj8mrs7fz] {
    white-space: nowrap !important;
    text-align: center !important;
}

.items-table tr td:first-child[b-6kj8mrs7fz] {
    color: #3b82f6 !important;
    font-weight: 700 !important;
}

.items-table tr td:nth-child(2)[b-6kj8mrs7fz],
.items-table tr td:nth-child(3)[b-6kj8mrs7fz] {
    color: #1e293b !important;
    font-weight: 700 !important;
}

.action-btn[b-6kj8mrs7fz] {
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    margin: 0 2px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #94a3b8 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.action-btn:hover[b-6kj8mrs7fz] {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}

.action-btn i[b-6kj8mrs7fz] {
    font-size: 0.85rem !important;
}

.items-card-grid[b-6kj8mrs7fz] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
}

.item-card[b-6kj8mrs7fz] {
    background: #ffffff !important;
    border: 1px solid #eef2f6 !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.item-card:hover[b-6kj8mrs7fz] {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(37, 99, 235, 0.25) !important;
}

.item-card-head[b-6kj8mrs7fz] {
    background: #ffffff !important;
    color: #1e293b !important;
    padding: 0.6rem 1rem !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid rgba(99, 102, 241, 0.1) !important;
}

.card-item-code[b-6kj8mrs7fz] {
    color: #4b5563 !important;
    font-weight: 700 !important;
    margin-right: 6px;
}

.card-item-name[b-6kj8mrs7fz] {
    color: #374151 !important;
    font-weight: 700 !important;
}

.item-card-body[b-6kj8mrs7fz] {
    padding: 0.75rem 1rem !important;
    color: #64748b !important;
    font-size: 0.8rem !important;
}

.detail-row[b-6kj8mrs7fz] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0 !important;
    border-bottom: 1px solid #eef2f6 !important;
}

.detail-row:last-child[b-6kj8mrs7fz] {
    border-bottom: none !important;
}

.detail-row span[b-6kj8mrs7fz] {
    color: #8a99ad !important;
    font-weight: 700 !important;
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.detail-row strong[b-6kj8mrs7fz] {
    color: #000000 !important;
    font-weight: 600 !important;
}

/* Modal styles */
.modal-overlay[b-6kj8mrs7fz] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.modal-card[b-6kj8mrs7fz] {
    border-radius: 20px !important;
    border: none !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-header-bar[b-6kj8mrs7fz] {
    background: #fff !important;
    color: #333 !important;
    padding: 16px 32px !important;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-left[b-6kj8mrs7fz] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-title[b-6kj8mrs7fz] {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    color: #000000 !important;
    letter-spacing: -0.2px;
}

.btn-close-modal[b-6kj8mrs7fz] {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}

.btn-close-modal:hover[b-6kj8mrs7fz] {
    background: #e2e8f0;
    color: #1e293b;
}

.modal-inner[b-6kj8mrs7fz] {
    padding: 16px 32px !important;
    background: #fff;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.modal-inner[b-6kj8mrs7fz]  form {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.modal-inner[b-6kj8mrs7fz]  .modal-scroll-area,
.vendor-master-modal-scroll-area[b-6kj8mrs7fz] {
    overflow-y: auto !important;
    flex: 1;
    padding-right: 8px;
    min-height: 0;
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e1 #f8fafc !important;
}

.vendor-master-modal-scroll-area[b-6kj8mrs7fz]::-webkit-scrollbar,
.modal-inner[b-6kj8mrs7fz]  .modal-scroll-area::-webkit-scrollbar {
    width: 5px !important;
}

.vendor-master-modal-scroll-area[b-6kj8mrs7fz]::-webkit-scrollbar-track,
.modal-inner[b-6kj8mrs7fz]  .modal-scroll-area::-webkit-scrollbar-track {
    background: #f8fafc !important;
    border-radius: 4px !important;
}

.vendor-master-modal-scroll-area[b-6kj8mrs7fz]::-webkit-scrollbar-thumb,
.modal-inner[b-6kj8mrs7fz]  .modal-scroll-area::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 4px !important;
}

.vendor-master-modal-scroll-area[b-6kj8mrs7fz]::-webkit-scrollbar-thumb:hover,
.modal-inner[b-6kj8mrs7fz]  .modal-scroll-area::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

.form-section-header[b-6kj8mrs7fz] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    margin-top: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid #f1f5f9;
}

.form-section-title[b-6kj8mrs7fz] {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #4f46e5;
}

.form-grid[b-6kj8mrs7fz] {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    margin-bottom: 12px;
    row-gap: 12px;
}

.col-1[b-6kj8mrs7fz] { grid-column: span 1; }
.col-2[b-6kj8mrs7fz] { grid-column: span 2; }
.col-3[b-6kj8mrs7fz] { grid-column: span 3; }
.col-4[b-6kj8mrs7fz] { grid-column: span 4; }
.col-5[b-6kj8mrs7fz] { grid-column: span 5; }
.col-6[b-6kj8mrs7fz] { grid-column: span 6; }
.col-7[b-6kj8mrs7fz] { grid-column: span 7; }
.col-8[b-6kj8mrs7fz] { grid-column: span 8; }
.col-9[b-6kj8mrs7fz] { grid-column: span 9; }
.col-10[b-6kj8mrs7fz] { grid-column: span 10; }
.col-11[b-6kj8mrs7fz] { grid-column: span 11; }
.col-12[b-6kj8mrs7fz] { grid-column: span 12; }

.field-group[b-6kj8mrs7fz] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label[b-6kj8mrs7fz] {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 2px;
}

.field-label.required[b-6kj8mrs7fz]::after {
    content: " *";
    color: #ef4444;
}

.premium-input[b-6kj8mrs7fz] {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 0.88rem !important;
    color: #4b5563 !important;
    transition: all 0.2s !important;
    height: auto !important;
}

.premium-input[b-6kj8mrs7fz]::placeholder {
    color: #cbd5e1 !important;
    opacity: 1 !important;
}

.premium-input:focus[b-6kj8mrs7fz] {
    background: #fff !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1) !important;
    outline: none !important;
}

.btn-save-premium[b-6kj8mrs7fz] {
    background: #1c9f5f !important;
    color: white !important;
    border: none !important;
    padding: 10px 28px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(28, 159, 95, 0.3) !important;
    transition: all 0.2s !important;
    white-space: nowrap;
}

.btn-save-premium:hover[b-6kj8mrs7fz] {
    background: #168a52 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(28, 159, 95, 0.4) !important;
}

/* Pagination bar */
.page-btn[b-6kj8mrs7fz] {
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #64748b !important;
    border-radius: 8px !important;
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
    font-weight: 600;
    margin: 0 2px;
    transition: all 0.2s;
}

.page-btn.active[b-6kj8mrs7fz] {
    background: #4f46e5 !important;
    color: #ffffff !important;
    border-color: #4f46e5 !important;
}

.page-btn:hover:not(.active):not(:disabled)[b-6kj8mrs7fz] {
    background: #f8fafc !important;
    color: #1e293b !important;
}
/* /Components/Pages/ViewBills.razor.rz.scp.css */
/* ════════════════════════════════════════════════════════════════
   VIEW BILLS — PREMIUM MODERN THEME (MEDIUM COMFORTABLE FONTS)
   ════════════════════════════════════════════════════════════════ */

:root[b-s5gpwit4vk] {
    --vb-bg: #f6f8fb;
    --vb-card-bg: #ffffff;
    --vb-border: #f1f5f9;
    --vb-border-dark: #e2e8f0;
    --vb-text-main: #0f172a;
    --vb-text-muted: #64748b;
    --vb-text-subtle: #94a3b8;
    --vb-dark-pill: #1e293b;
    --vb-primary: #4f46e5;
}

.vb-avatar-other[b-s5gpwit4vk] {
    background: #f1f5f9 !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0 !important;
}

/* ── Pure Single Viewport Full-Height Container ────────────── */
.vb-page-container[b-s5gpwit4vk] {
    width: 100%;
    height: 100%;
    max-height: 100%;
    background-color: #f6f8fb;
    padding: 12px 22px 12px 22px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #0f172a;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ── Top Header Bar ────────────────────────────────────────── */
.vb-header[b-s5gpwit4vk] {
    position: relative !important;
    z-index: 1050 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-shrink: 0;
    gap: 14px;
    overflow: visible !important;
}

.vb-header-left[b-s5gpwit4vk] {
    display: flex;
    flex-direction: column;
}

.vb-page-title[b-s5gpwit4vk] {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.vb-breadcrumbs[b-s5gpwit4vk] {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.vb-breadcrumb-link[b-s5gpwit4vk] {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
    cursor: pointer;
}

.vb-breadcrumb-link:hover[b-s5gpwit4vk] {
    color: #4f46e5;
    text-decoration: underline;
}

.vb-breadcrumbs span[b-s5gpwit4vk] {
    color: #94a3b8;
}

.vb-header-actions[b-s5gpwit4vk] {
    position: relative !important;
    z-index: 1050 !important;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: visible !important;
}

.vb-billing-popup-setting[b-s5gpwit4vk] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.vb-billing-popup-setting input[b-s5gpwit4vk] {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #2563eb;
    cursor: pointer;
}

.vb-inline-billing-editor[b-s5gpwit4vk] {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.vb-inline-billing-back[b-s5gpwit4vk] {
    margin: 0 0 10px;
}

.vb-btn-icon-more[b-s5gpwit4vk] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    font-weight: 700;
}

.vb-btn-icon-more:hover[b-s5gpwit4vk] {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.vb-btn-primary[b-s5gpwit4vk] {
    height: 34px;
    padding: 0 14px;
    border-radius: 8px;
    background: #1e293b;
    color: #ffffff;
    border: none;
    font-size: 12.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.vb-btn-primary:hover[b-s5gpwit4vk] {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.15);
}

.vb-btn-secondary[b-s5gpwit4vk] {
    height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    border: 1px solid #e2e8f0;
    font-size: 12.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.vb-btn-secondary:hover[b-s5gpwit4vk] {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

/* ── 6 KPI / Stat Cards Grid ───────────────────────────────── */
.vb-stats-grid[b-s5gpwit4vk] {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 10px;
    flex-shrink: 0;
}

@media (max-width: 1380px) {
    .vb-stats-grid[b-s5gpwit4vk] {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .vb-stats-grid[b-s5gpwit4vk] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .vb-stats-grid[b-s5gpwit4vk] {
        grid-template-columns: 1fr;
    }
}

/* ── Single-Line Stat Bar (Matching User Screenshot) ───────── */
.vb-stats-grid.vb-stats-single-line[b-s5gpwit4vk] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 8px;
    flex-shrink: 0;
    padding: 0;
}

.vb-stat-pill[b-s5gpwit4vk] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.4;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.vb-pill-label[b-s5gpwit4vk] {
    font-weight: 700;
    opacity: 0.85;
}

.vb-pill-val[b-s5gpwit4vk] {
    font-weight: 800;
}

/* Individual Pill Colors matching Screenshot */
.vb-pill-invoices[b-s5gpwit4vk] {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

.vb-pill-gross[b-s5gpwit4vk] {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.vb-pill-discounts[b-s5gpwit4vk] {
    background: #fefce8;
    border-color: #fef08a;
    color: #854d0e;
}

.vb-pill-net[b-s5gpwit4vk] {
    background: #f0f9ff;
    border-color: #bae6fd;
    color: #0369a1;
}

.vb-pill-collected[b-s5gpwit4vk] {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #15803d;
}

.vb-pill-balance[b-s5gpwit4vk] {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.vb-stat-card[b-s5gpwit4vk] {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: auto;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vb-stat-card:hover[b-s5gpwit4vk] {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.vb-stat-top[b-s5gpwit4vk] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vb-stat-icon-wrap[b-s5gpwit4vk] {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vb-stat-icon-wrap .material-symbols-outlined[b-s5gpwit4vk] {
    font-size: 16px;
}

.vb-stat-tag[b-s5gpwit4vk] {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.vb-stat-tag .material-symbols-outlined[b-s5gpwit4vk] {
    font-size: 13px;
}

/* Card 1 — Invoices */
.vb-card-invoices .vb-stat-icon-wrap[b-s5gpwit4vk] { background: #eff6ff; color: #3b82f6; }
.vb-card-invoices .vb-stat-tag[b-s5gpwit4vk] { background: #f8fafc; color: #6366f1; }

/* Card 2 — Gross */
.vb-card-gross .vb-stat-icon-wrap[b-s5gpwit4vk] { background: #eff6ff; color: #2563eb; }
.vb-card-gross .vb-stat-tag[b-s5gpwit4vk] { background: #eff6ff; color: #2563eb; }

/* Card 3 — Discounts */
.vb-card-discounts .vb-stat-icon-wrap[b-s5gpwit4vk] { background: #fff1f2; color: #f43f5e; }
.vb-card-discounts .vb-stat-tag[b-s5gpwit4vk] { background: #fff1f2; color: #f43f5e; }

/* Card 4 — Net Revenue */
.vb-card-net .vb-stat-icon-wrap[b-s5gpwit4vk] { background: #ecfdf5; color: #10b981; }
.vb-card-net .vb-stat-tag[b-s5gpwit4vk] { background: #ecfdf5; color: #10b981; }

/* Card 5 — Collected */
.vb-card-collected .vb-stat-icon-wrap[b-s5gpwit4vk] { background: #f0fdf4; color: #059669; }
.vb-card-collected .vb-stat-tag[b-s5gpwit4vk] { background: #f0fdf4; color: #059669; }

/* Card 6 — Outstanding Balance */
.vb-card-balance .vb-stat-icon-wrap[b-s5gpwit4vk] { background: #fef2f2; color: #ef4444; }
.vb-card-balance .vb-stat-tag[b-s5gpwit4vk] { background: #fef2f2; color: #ef4444; }

.vb-stat-mid[b-s5gpwit4vk] {
    margin-top: 4px;
}

.vb-stat-label[b-s5gpwit4vk] {
    font-size: 0.74rem;
    font-weight: 600;
    color: #64748b;
    margin: 0;
}

.vb-stat-bottom[b-s5gpwit4vk] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 2px;
}

.vb-stat-val[b-s5gpwit4vk] {
    font-size: 1.12rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1;
}

.vb-trend-badge[b-s5gpwit4vk] {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.vb-trend-up[b-s5gpwit4vk] {
    color: #16a34a;
    background: transparent;
}

.vb-trend-down[b-s5gpwit4vk] {
    color: #e11d48;
    background: transparent;
}

/* ── Filter & Action Toolbar ───────────────────────────────── */
.vb-toolbar[b-s5gpwit4vk] {
    position: relative !important;
    z-index: 950 !important;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px 12px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 10px;
    overflow: visible !important;
}

.vb-toolbar-right[b-s5gpwit4vk] {
    position: relative !important;
    z-index: 960 !important;
    overflow: visible !important;
}

.vb-toolbar-left[b-s5gpwit4vk] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.vb-search-wrap[b-s5gpwit4vk] {
    position: relative;
    width: 200px;
}

.vb-search-icon-left[b-s5gpwit4vk] {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.vb-search-input[b-s5gpwit4vk] {
    width: 100%;
    height: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    padding: 0 28px 0 32px;
    font-size: 12.5px;
    color: #1e293b;
    outline: none;
    transition: border-color 0.15s ease;
    box-sizing: border-box;
}

.vb-search-input:focus[b-s5gpwit4vk] {
    border-color: #6366f1;
}

.vb-search-icon-right[b-s5gpwit4vk] {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.vb-pill-container[b-s5gpwit4vk] {
    background: #f1f5f9;
    border-radius: 7px;
    padding: 2.5px;
    display: flex;
    gap: 2px;
    align-items: center;
}

.vb-pill-btn[b-s5gpwit4vk] {
    background: transparent;
    border: none;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.vb-pill-btn:hover[b-s5gpwit4vk] {
    color: #0f172a;
}

.vb-pill-btn.active[b-s5gpwit4vk] {
    background: #1e293b;
    color: #ffffff;
    font-weight: 600;
}

.vb-select-dropdown[b-s5gpwit4vk] {
    height: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vb-toolbar-right[b-s5gpwit4vk] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.vb-btn-toolbar-action[b-s5gpwit4vk] {
    height: 32px;
    padding: 0 12px;
    border-radius: 7px;
    background: #ffffff;
    color: #334155;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.vb-btn-toolbar-action:hover[b-s5gpwit4vk] {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.vb-btn-toolbar-action .material-symbols-outlined[b-s5gpwit4vk] {
    font-size: 16px;
    color: #64748b;
}

/* ── Table Card & Strict Viewport-Fitting Styles ───────────── */
.vb-table-card[b-s5gpwit4vk] {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    margin-bottom: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
}

.vb-table-container[b-s5gpwit4vk] {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    min-height: 0;
    width: 100%;
}

.vb-table[b-s5gpwit4vk] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12.5px;
    text-align: left;
    white-space: nowrap;
}

.vb-thead[b-s5gpwit4vk] {
    background: #f8fafc;
}

.vb-th[b-s5gpwit4vk] {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8fafc;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.02em;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
    box-shadow: 0 1px 0 #e2e8f0;
}

.vb-th-checkbox[b-s5gpwit4vk] {
    width: 36px;
    padding-left: 14px;
}

.vb-th-sortable[b-s5gpwit4vk] {
    cursor: pointer;
    user-select: none;
}

.vb-th-sort-icon[b-s5gpwit4vk] {
    font-size: 15px;
    vertical-align: middle;
    color: #94a3b8;
    margin-left: 2px;
}

.vb-tbody tr[b-s5gpwit4vk] {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.12s ease;
}

.vb-tbody tr:hover[b-s5gpwit4vk] {
    background-color: #f8fafc;
}

.vb-td[b-s5gpwit4vk] {
    padding: 8px 14px;
    color: #334155;
    vertical-align: middle;
    border-bottom: 1px solid #f8fafc;
    font-size: 12.5px;
}

.vb-td-checkbox[b-s5gpwit4vk] {
    width: 36px;
    padding-left: 14px;
}

.vb-checkbox[b-s5gpwit4vk] {
    width: 15px;
    height: 15px;
    border-radius: 4px;
    border: 1.5px solid #cbd5e1;
    cursor: pointer;
    accent-color: #1e293b;
    vertical-align: middle;
}

.vb-bill-id[b-s5gpwit4vk] {
    font-weight: 600;
    color: #1e293b;
    font-size: 12.5px;
}

.vb-date-text[b-s5gpwit4vk] {
    color: #475569;
    font-weight: 500;
    font-size: 12.5px;
}

/* Patient Name with Circular Avatar */
.vb-patient-cell[b-s5gpwit4vk] {
    display: flex;
    align-items: center;
    gap: 9px;
}

.vb-avatar[b-s5gpwit4vk] {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.vb-avatar:hover[b-s5gpwit4vk] {
    transform: scale(1.08);
}

.vb-avatar-icon[b-s5gpwit4vk] {
    font-size: 17px !important;
}

.vb-gender-letter[b-s5gpwit4vk] {
    font-size: 12.5px;
    font-weight: 800;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1;
    text-transform: uppercase;
    user-select: none;
}

.vb-avatar-male[b-s5gpwit4vk] {
    background: #e0f2fe;
    color: #1d4ed8;
    border: 1.5px solid #93c5fd;
}

.vb-avatar-female[b-s5gpwit4vk] {
    background: #fce7f3;
    color: #be185d;
    border: 1.5px solid #f9a8d4;
}

.vb-avatar-child[b-s5gpwit4vk] {
    background: #fef3c7;
    color: #b45309;
    border: 1.5px solid #fcd34d;
}

.vb-patient-name[b-s5gpwit4vk] {
    font-weight: 600;
    color: #0f172a;
    font-size: 13px;
}

.vb-doctor-text[b-s5gpwit4vk] {
    color: #475569;
    font-weight: 500;
    font-size: 12.5px;
}

.vb-services-text[b-s5gpwit4vk] {
    color: #475569;
    font-weight: 500;
    font-size: 12.5px;
}

.vb-amount-text[b-s5gpwit4vk] {
    font-weight: 700;
    color: #0f172a;
    font-size: 13px;
}

.vb-discount-badge[b-s5gpwit4vk] {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2.5px 7px;
    border-radius: 6px;
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #ffedd5;
    font-weight: 750;
    font-size: 11.5px;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

.vb-due-badge[b-s5gpwit4vk] {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2.5px 7px;
    border-radius: 6px;
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fee2e2;
    font-weight: 750;
    font-size: 11.5px;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

/* Status Badges */
.vb-status-badge[b-s5gpwit4vk] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 9px;
    border-radius: 14px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.vb-status-paid[b-s5gpwit4vk] {
    background: #dcfce7;
    color: #15803d;
}

.vb-status-due[b-s5gpwit4vk] {
    background: #fee2e2;
    color: #b91c1c;
}

.vb-status-partial[b-s5gpwit4vk] {
    background: #fef3c7;
    color: #b45309;
}

/* Payment Mode Mini-Pills */
.vb-paymode-group[b-s5gpwit4vk] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.vb-paymode-pill[b-s5gpwit4vk] {
    padding: 2px 7px;
    border-radius: 12px;
    font-size: 10.5px;
    font-weight: 600;
    background: #f1f5f9;
    color: #64748b;
}

.vb-paymode-pill.active-cash[b-s5gpwit4vk] {
    background: #dcfce7;
    color: #15803d;
}

.vb-paymode-pill.active-upi[b-s5gpwit4vk] {
    background: #e0e7ff;
    color: #4338ca;
}

.vb-paymode-pill.active-card[b-s5gpwit4vk] {
    background: #fef3c7;
    color: #b45309;
}

/* Actions Column */
.vb-actions-group[b-s5gpwit4vk] {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vb-action-btn[b-s5gpwit4vk] {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.vb-action-btn:hover[b-s5gpwit4vk] {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.vb-action-btn .material-symbols-outlined[b-s5gpwit4vk] {
    font-size: 15px;
}

/* ── Pagination & Table Footer ─────────────────────────────── */
.vb-table-footer[b-s5gpwit4vk] {
    padding: 6px 14px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 10px;
    background: #ffffff;
    font-size: 12px;
}

.vb-page-size-wrap[b-s5gpwit4vk] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.vb-page-size-select[b-s5gpwit4vk] {
    height: 26px;
    padding: 0 6px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    outline: none;
    cursor: pointer;
}

.vb-pagination-controls[b-s5gpwit4vk] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.vb-page-nav-btn[b-s5gpwit4vk] {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.vb-page-nav-btn:hover:not(:disabled)[b-s5gpwit4vk] {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.vb-page-nav-btn:disabled[b-s5gpwit4vk] {
    opacity: 0.4;
    cursor: not-allowed;
}

.vb-page-number-btn[b-s5gpwit4vk] {
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.vb-page-number-btn:hover[b-s5gpwit4vk] {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.vb-page-number-btn.active[b-s5gpwit4vk] {
    background: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
}

/* ── More Dropdown Actions Menu ────────────────────────────── */
.vb-more-dropdown[b-s5gpwit4vk] {
    position: relative !important;
    display: inline-block;
    overflow: visible !important;
    z-index: 1;
}

.vb-more-dropdown.active[b-s5gpwit4vk] {
    z-index: 10050 !important;
}

.vb-toolbar-right .vb-more-dropdown.active[b-s5gpwit4vk] {
    z-index: 10050 !important;
}

.vb-dropdown-menu[b-s5gpwit4vk] {
    position: absolute !important;
    right: 0 !important;
    top: calc(100% + 4px) !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22), 0 4px 10px rgba(15, 23, 42, 0.12) !important;
    z-index: 10060 !important;
    min-width: 195px !important;
    padding: 6px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.vb-dropdown-menu.drop-up[b-s5gpwit4vk] {
    top: auto !important;
    bottom: calc(100% + 4px) !important;
}

tr.row-dropdown-active[b-s5gpwit4vk],
tr.row-dropdown-active td[b-s5gpwit4vk] {
    position: relative !important;
    z-index: 10000 !important;
}

.vb-dropdown-item[b-s5gpwit4vk] {
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    padding: 7px 12px;
    font-size: 12px;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 6px;
}

.vb-dropdown-item:hover[b-s5gpwit4vk] {
    background-color: #f1f5f9;
    color: #0f172a;
}

.vb-dropdown-item .material-symbols-outlined[b-s5gpwit4vk] {
    font-size: 15px;
}

.vb-dropdown-item.text-success[b-s5gpwit4vk] {
    color: #16a34a;
}
.vb-dropdown-item.text-success:hover[b-s5gpwit4vk] {
    background-color: #dcfce7;
    color: #15803d;
}

.vb-dropdown-item.text-danger[b-s5gpwit4vk] {
    color: #ef4444;
}
.vb-dropdown-item.text-danger:hover[b-s5gpwit4vk] {
    background-color: #fee2e2;
    color: #b91c1c;
}

/* ── Filter Drawer ─────────────────────────────────────────── */
.vb-drawer-backdrop[b-s5gpwit4vk] {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    z-index: 9998;
}

.vb-filter-drawer[b-s5gpwit4vk] {
    position: fixed;
    top: 0;
    right: 0;
    width: 450px;
    max-width: 90vw;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.vb-drawer-header[b-s5gpwit4vk] {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vb-drawer-body[b-s5gpwit4vk] {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.vb-drawer-tabs[b-s5gpwit4vk] {
    width: 125px;
    background: #f8fafc;
    border-right: 1px solid #f1f5f9;
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vb-drawer-tab-btn[b-s5gpwit4vk] {
    padding: 9px 10px;
    border-radius: 6px;
    border: none;
    background: transparent;
    text-align: left;
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
}

.vb-drawer-tab-btn.active[b-s5gpwit4vk] {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.vb-drawer-content[b-s5gpwit4vk] {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
    overflow-y: auto;
}

.vb-drawer-footer[b-s5gpwit4vk] {
    padding: 14px 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
}

.vb-drawer-clear-btn[b-s5gpwit4vk] {
    padding: 7px 16px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
}

.vb-drawer-apply-btn[b-s5gpwit4vk] {
    padding: 7px 20px;
    border-radius: 6px;
    border: none;
    background: #1e293b;
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
}

/* Quick Edit Patient Button in Table */
.vb-btn-quick-edit-pat[b-s5gpwit4vk] {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 2px 4px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    opacity: 0.6;
}
.vb-patient-cell:hover .vb-btn-quick-edit-pat[b-s5gpwit4vk],
.vb-btn-quick-edit-pat:hover[b-s5gpwit4vk] {
    color: #4f46e5;
    background: #eef2ff;
    opacity: 1;
}

/* ════════════════════════════════════════════════════════════════
   FULL SCREEN BILLING VIEW (WITHOUT NAVBAR)
   ════════════════════════════════════════════════════════════════ */
.vb-billing-modal-fullscreen[b-s5gpwit4vk] {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 117.6470588% !important;
    min-width: 117.6470588vw !important;
    max-width: 117.6470588vw !important;
    height: 117.6470588% !important;
    min-height: 117.6470588vh !important;
    max-height: 117.6470588vh !important;
    z-index: 99999 !important;
    background: #f1f5f9 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    animation: vbFullscreenFadeIn-b-s5gpwit4vk 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes vbFullscreenFadeIn-b-s5gpwit4vk {
    from {
        opacity: 0;
        transform: scale(0.995);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.vb-billing-modal-fullscreen .billing-page-wrapper[b-s5gpwit4vk] {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    padding: 16px 24px !important;
    box-sizing: border-box !important;
    flex: 1 !important;
}

/* ═══════════════════════════════════════════════════════════════
   CONTAINER QUERIES — sidebar-aware responsive layout
   Breakpoints: >=1160px full | 700-1159px two-col | <700px single-col
   ═══════════════════════════════════════════════════════════════ */

/* ── FULL LAYOUT (>= 1160px container) ────────────────────────── */
@container vb-page (min-width: 1160px) {
    .vb-page-container[b-s5gpwit4vk] {
        height: 100%;
        max-height: 100%;
        overflow: hidden;
    }
    .vb-toolbar[b-s5gpwit4vk] {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }
    .vb-toolbar-right[b-s5gpwit4vk] {
        display: flex;
        align-items: center;
        gap: 8px;
    }
}

/* ── TWO-COL / TABLET LAYOUT (700px - 1159px container) — Matches Desktop Look ── */
@container vb-page (min-width: 700px) and (max-width: 1159px) {
    .vb-page-container[b-s5gpwit4vk] {
        height: 100%;
        max-height: 100%;
        overflow: hidden;
        padding: 10px 16px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .vb-header[b-s5gpwit4vk] {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 12px;
        margin-bottom: 4px;
        flex-shrink: 0;
    }

    .vb-header-left[b-s5gpwit4vk] {
        flex-shrink: 0;
    }

    .vb-page-title[b-s5gpwit4vk] {
        font-size: 1.15rem;
    }

    .vb-header-actions[b-s5gpwit4vk] {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .vb-stats-grid.vb-stats-single-line[b-s5gpwit4vk] {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        overflow-x: auto;
        gap: 6px;
        margin-bottom: 6px;
        flex-shrink: 0;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .vb-stats-grid.vb-stats-single-line[b-s5gpwit4vk]::-webkit-scrollbar {
        display: none;
    }

    .vb-stat-pill[b-s5gpwit4vk] {
        font-size: 11px;
        padding: 3px 8px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .vb-toolbar[b-s5gpwit4vk] {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 8px;
        padding: 6px 10px;
        border-radius: 8px;
        flex-shrink: 0;
        overflow: visible !important;
    }

    .vb-toolbar[b-s5gpwit4vk]::-webkit-scrollbar {
        display: none;
    }

    .vb-toolbar-left[b-s5gpwit4vk] {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 6px;
        flex: 1 1 auto;
        min-width: 0;
    }

    .vb-search-wrap[b-s5gpwit4vk] {
        width: 150px;
        min-width: 120px;
        flex-shrink: 0;
    }

    .vb-search-input[b-s5gpwit4vk] {
        height: 30px;
        font-size: 11.5px;
        padding: 0 24px 0 28px;
    }

    .vb-pill-container[b-s5gpwit4vk] {
        padding: 2px;
        flex-wrap: nowrap;
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }

    .vb-pill-btn[b-s5gpwit4vk] {
        padding: 3px 7px;
        font-size: 11px;
        height: 24px;
        white-space: nowrap;
    }

    .vb-select-dropdown[b-s5gpwit4vk] {
        height: 30px;
        font-size: 11.5px;
        padding: 0 6px;
        min-width: 100px;
        max-width: 140px;
        flex-shrink: 0;
    }

    .vb-toolbar-right[b-s5gpwit4vk] {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
        width: auto;
        border-top: none;
        padding-top: 0;
        margin-left: auto;
    }

    .vb-btn-toolbar-action[b-s5gpwit4vk] {
        height: 28px;
        padding: 0 8px;
        font-size: 11px;
        gap: 4px;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .vb-btn-toolbar-action .material-symbols-outlined[b-s5gpwit4vk] {
        font-size: 14px;
    }

    .vb-table-card[b-s5gpwit4vk] {
        flex: 1 1 auto;
        min-height: 0;
        height: auto;
        max-height: none;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    }

    .vb-table-container[b-s5gpwit4vk] {
        flex: 1 1 auto;
        min-height: 0;
        height: 100%;
        max-height: none;
        overflow-y: auto;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .vb-table[b-s5gpwit4vk] {
        font-size: 12px;
        white-space: nowrap;
    }

    .vb-th[b-s5gpwit4vk] {
        position: sticky;
        top: 0;
        z-index: 10;
        padding: 8px 10px;
        font-size: 11px;
    }

    .vb-td[b-s5gpwit4vk] {
        padding: 7px 10px;
        font-size: 12px;
    }

    .vb-avatar[b-s5gpwit4vk] {
        width: 24px;
        height: 24px;
    }

    .vb-gender-letter[b-s5gpwit4vk] {
        font-size: 11px;
    }

    .vb-table-footer[b-s5gpwit4vk] {
        padding: 6px 12px;
        flex-wrap: nowrap;
        gap: 8px;
        flex-shrink: 0;
    }
}

/* ── SINGLE-COL LAYOUT (< 700px container) ─────────────────────── */
@container vb-page (max-width: 699px) {
    .vb-page-container[b-s5gpwit4vk] {
        height: auto;
        min-height: 100%;
        max-height: none;
        overflow-y: auto;
        padding: 8px;
        gap: 6px;
    }

    .vb-header[b-s5gpwit4vk] {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .vb-header-actions[b-s5gpwit4vk] {
        justify-content: space-between;
        width: 100%;
    }

    .vb-stats-grid.vb-stats-single-line[b-s5gpwit4vk] {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }

    .vb-stat-pill[b-s5gpwit4vk] {
        justify-content: center;
        font-size: 10.5px;
        padding: 2px 4px;
    }

    .vb-toolbar[b-s5gpwit4vk] {
        flex-direction: column;
        padding: 8px;
        gap: 6px;
    }

    .vb-toolbar-left[b-s5gpwit4vk],
    .vb-toolbar-right[b-s5gpwit4vk] {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        gap: 6px;
    }

    .vb-toolbar-right[b-s5gpwit4vk] {
        justify-content: stretch;
        border-top: 1px solid #f1f5f9;
        padding-top: 6px;
    }

    .vb-btn-toolbar-action[b-s5gpwit4vk] {
        flex: 1 1 auto;
        justify-content: center;
    }

    /* Table: Preserve standard tabular view with clean horizontal & vertical scrolling */
    .vb-table-card[b-s5gpwit4vk] {
        flex: 1 1 auto;
        min-height: 320px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border-radius: 8px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
    }

    .vb-table-container[b-s5gpwit4vk] {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: auto !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100%;
    }

    .vb-table[b-s5gpwit4vk] {
        min-width: 950px !important;
        width: 100% !important;
        display: table !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }

    .vb-thead[b-s5gpwit4vk] {
        display: table-header-group !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 10 !important;
        background: #f8fafc !important;
    }

    .vb-tbody[b-s5gpwit4vk] {
        display: table-row-group !important;
    }

    .vb-tbody tr[b-s5gpwit4vk] {
        display: table-row !important;
        background: #ffffff !important;
        border: none !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
    }

    .vb-th[b-s5gpwit4vk] {
        display: table-cell !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 10 !important;
        background: #f8fafc !important;
        padding: 8px 10px !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        color: #475569 !important;
        border-bottom: 1px solid #e2e8f0 !important;
        white-space: nowrap !important;
        vertical-align: middle !important;
    }

    .vb-td[b-s5gpwit4vk] {
        display: table-cell !important;
        padding: 6px 10px !important;
        font-size: 12px !important;
        border-bottom: 1px solid #f1f5f9 !important;
        vertical-align: middle !important;
        white-space: nowrap !important;
    }

    .vb-td[data-label][b-s5gpwit4vk]::before {
        content: none !important;
        display: none !important;
    }

    .vb-td-right[b-s5gpwit4vk] {
        text-align: right !important;
    }

    /* Pagination: show only current±1 */
    .vb-pagination-controls .vb-page-btn:not(:first-child):not(:last-child):not(.active)[b-s5gpwit4vk] {
        display: none;
    }

    .vb-table-footer[b-s5gpwit4vk] {
        flex-wrap: wrap;
        gap: 6px;
        justify-content: space-between;
    }
}

/* ── Reports & Statements dialog ───────────────────────────── */
.vb-reports-backdrop[b-s5gpwit4vk] {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(8px, 2vw, 24px);
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(5px);
}

.vb-reports-modal[b-s5gpwit4vk] {
    display: flex;
    flex-direction: column;
    width: min(1080px, 100%);
    max-height: 92vh;
    max-height: 92dvh;
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 18px;
    background: #f5f7fb;
    box-shadow: 0 28px 80px rgba(2, 6, 23, 0.34);
}

.vb-reports-header[b-s5gpwit4vk] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(120deg, #111827 0%, #1e293b 62%, #243b53 100%);
    flex: 0 0 auto;
}

.vb-reports-header h2[b-s5gpwit4vk] {
    margin: 0;
    color: #fff;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.015em;
}

.vb-reports-context[b-s5gpwit4vk] {
    margin: 4px 0 0;
    color: #cbd5e1;
    font-size: 0.74rem;
    font-weight: 500;
    line-height: 1.5;
}

.vb-reports-header-actions[b-s5gpwit4vk] {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
}

.vb-reports-branch[b-s5gpwit4vk] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.1);
}

.vb-reports-branch select[b-s5gpwit4vk] {
    max-width: 220px;
    min-width: 112px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.vb-reports-branch select option[b-s5gpwit4vk] {
    color: #0f172a;
}

.vb-reports-close[b-s5gpwit4vk],
.vb-reports-close-footer[b-s5gpwit4vk] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.vb-reports-close[b-s5gpwit4vk] {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.vb-reports-close:hover[b-s5gpwit4vk] {
    background: rgba(255, 255, 255, 0.2);
}

.vb-reports-body[b-s5gpwit4vk] {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    padding: 16px 20px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #f5f7fb;
}

.vb-report-date-card[b-s5gpwit4vk] {
    padding: 13px 15px;
    border: 1px solid #d9e5f5;
    border-radius: 13px;
    background: linear-gradient(110deg, #f8fbff 0%, #fff 72%);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.035);
}

.vb-report-date-topline[b-s5gpwit4vk] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.vb-report-date-title[b-s5gpwit4vk] {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
}

.vb-report-date-title > .material-symbols-outlined[b-s5gpwit4vk] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    flex: 0 0 auto;
    border-radius: 9px;
    background: #eaf2ff;
    color: #2563eb;
    font-size: 18px;
}

.vb-report-date-title h3[b-s5gpwit4vk] {
    margin: 0;
    color: #0f172a;
    font-size: 12.5px;
    font-weight: 800;
}

.vb-report-date-title p[b-s5gpwit4vk] {
    margin: 3px 0 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.4;
}

.vb-report-date-presets[b-s5gpwit4vk] {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
}

.vb-report-date-preset[b-s5gpwit4vk] {
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid #dbe3ee;
    border-radius: 7px;
    background: #fff;
    color: #475569;
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.vb-report-date-preset:hover[b-s5gpwit4vk] {
    border-color: #a5b4fc;
    color: #3730a3;
}

.vb-report-date-preset.active[b-s5gpwit4vk] {
    border-color: #a5b4fc;
    background: #eef2ff;
    color: #3730a3;
}

.vb-report-date-fields[b-s5gpwit4vk] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
    gap: 10px;
    max-width: 600px;
    margin-top: 12px;
}

.vb-report-date-field[b-s5gpwit4vk] {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.vb-report-date-field label[b-s5gpwit4vk] {
    color: #475569;
    font-size: 10.5px;
    font-weight: 700;
}

.vb-report-date-field input[b-s5gpwit4vk] {
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 0 9px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    font-size: 12px;
    font-weight: 600;
}

.vb-report-date-field input:hover[b-s5gpwit4vk] {
    border-color: #94a3b8;
}

.vb-report-date-arrow[b-s5gpwit4vk] {
    padding-bottom: 9px;
    color: #94a3b8;
    font-size: 17px;
}

.vb-report-card[b-s5gpwit4vk] {
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid #e3e8f0;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.035);
}

.vb-report-card--register[b-s5gpwit4vk] {
    border-left: 3px solid #8b5cf6;
}

.vb-report-card--consolidated[b-s5gpwit4vk] {
    border-color: #cbdcf4;
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.06);
}

.vb-report-card-heading[b-s5gpwit4vk] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.vb-report-grid[b-s5gpwit4vk] {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.vb-report-grid--two[b-s5gpwit4vk] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vb-report-grid--referral-due[b-s5gpwit4vk] {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
}

.vb-report-card-filter[b-s5gpwit4vk] {
    display: grid;
    gap: 4px;
    margin: -1px 0 10px;
}

.vb-report-empty[b-s5gpwit4vk] {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 10000;
    margin-top: 2px;
    padding: 10px 12px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.1);
    color: #64748b;
    font-size: 11.5px;
}

.vb-report-unified-filter[b-s5gpwit4vk] {
    display: grid;
    gap: 6px;
    margin: 2px 0 12px;
}

.vb-report-unified-filter > label[b-s5gpwit4vk] {
    color: #475569;
    font-size: 11px;
    font-weight: 700;
}

.vb-report-unified-control[b-s5gpwit4vk] {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 11px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.vb-report-unified-control:focus-within[b-s5gpwit4vk] {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.13);
}

.vb-report-unified-control > .material-symbols-outlined[b-s5gpwit4vk] {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 19px;
}

.vb-report-unified-control > input[b-s5gpwit4vk] {
    width: 100%;
    min-width: 0;
    height: 38px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f172a;
    font-size: 12.5px;
    font-weight: 500;
}

.vb-report-unified-control > input[b-s5gpwit4vk]::placeholder {
    color: #94a3b8;
}

.vb-report-unified-control:focus-within > input:focus-visible[b-s5gpwit4vk] {
    outline: none;
}

.vb-report-unified-clear[b-s5gpwit4vk] {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-size: 19px;
    line-height: 1;
}

.vb-report-unified-clear:hover[b-s5gpwit4vk] {
    background: #f1f5f9;
    color: #0f172a;
}

.vb-report-unified-options[b-s5gpwit4vk] {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    left: 0;
    z-index: 10001;
    max-height: 280px;
    overflow-y: auto;
    padding: 4px;
    border: 1px solid #dbe3ee;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
}

.vb-report-unified-option[b-s5gpwit4vk] {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #0f172a;
    cursor: pointer;
    text-align: left;
}

.vb-report-unified-option + .vb-report-unified-option[b-s5gpwit4vk] {
    margin-top: 2px;
}

.vb-report-unified-option:hover[b-s5gpwit4vk],
.vb-report-unified-option:focus-visible[b-s5gpwit4vk],
.vb-report-unified-option.is-active[b-s5gpwit4vk] {
    background: #f8fafc;
}

.vb-report-option-kind[b-s5gpwit4vk] {
    display: inline-flex;
    min-width: 54px;
    justify-content: center;
    padding: 4px 7px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.vb-report-option-kind--doctor[b-s5gpwit4vk] {
    border-color: #bae6fd;
    background: #f0f9ff;
    color: #0369a1;
}

.vb-report-option-kind--test[b-s5gpwit4vk] {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}

.vb-report-option-kind--group[b-s5gpwit4vk] {
    border-color: #e9d5ff;
    background: #faf5ff;
    color: #7e22ce;
}

.vb-report-option-copy[b-s5gpwit4vk] {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.vb-report-option-copy strong[b-s5gpwit4vk],
.vb-report-option-copy small[b-s5gpwit4vk] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vb-report-option-copy strong[b-s5gpwit4vk] {
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
}

.vb-report-option-copy small[b-s5gpwit4vk] {
    color: #64748b;
    font-size: 10.5px;
}

.vb-report-selected-filters[b-s5gpwit4vk] {
    display: grid;
    min-width: 0;
    gap: 7px;
}

.vb-report-filter-help[b-s5gpwit4vk] {
    margin-top: -2px;
    color: #64748b;
    font-size: 10.5px;
    line-height: 1.4;
}

.vb-report-selected-filter-set[b-s5gpwit4vk] {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 8px;
}

.vb-report-selected-filter-label[b-s5gpwit4vk] {
    display: inline-flex;
    flex: 0 0 60px;
    align-items: center;
    gap: 4px;
    padding-top: 4px;
    color: #475569;
    font-size: 10px;
    font-weight: 800;
}

.vb-report-selected-filter-label b[b-s5gpwit4vk] {
    display: inline-grid;
    min-width: 17px;
    height: 17px;
    place-items: center;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 9px;
}

.vb-report-selected-chip-list[b-s5gpwit4vk] {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 5px;
}

.vb-report-selected-chip[b-s5gpwit4vk] {
    display: inline-flex;
    max-width: min(100%, 360px);
    min-width: 0;
    align-items: center;
    gap: 6px;
    padding: 4px 7px 4px 9px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1e40af;
    cursor: pointer;
    font-size: 10.5px;
    line-height: 1.25;
}

.vb-report-selected-chip > span:first-child[b-s5gpwit4vk] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vb-report-selected-chip strong[b-s5gpwit4vk] {
    margin-right: 3px;
    font-weight: 800;
}

.vb-report-selected-chip small[b-s5gpwit4vk] {
    flex: 0 0 auto;
    color: currentColor;
    font-size: 9px;
    font-weight: 700;
    opacity: 0.78;
}

.vb-report-selected-chip > .material-symbols-outlined[b-s5gpwit4vk] {
    flex: 0 0 auto;
    font-size: 14px;
}

.vb-report-selected-chip:hover[b-s5gpwit4vk] {
    filter: brightness(0.97);
}

.vb-report-selected-chip--doctor[b-s5gpwit4vk] {
    border-color: #bae6fd;
    background: #f0f9ff;
    color: #0369a1;
}

.vb-report-selected-chip--test[b-s5gpwit4vk] {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}

.vb-report-selected-chip--group[b-s5gpwit4vk] {
    border-color: #e9d5ff;
    background: #faf5ff;
    color: #7e22ce;
}

.vb-report-filter-hint[b-s5gpwit4vk] {
    color: #64748b;
    font-size: 10.5px;
    line-height: 1.4;
}

.vb-report-clear-selected[b-s5gpwit4vk] {
    justify-self: start;
    padding: 0;
    border: 0;
    background: transparent;
    color: #475569;
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.vb-report-clear-selected:hover[b-s5gpwit4vk] {
    color: #0f172a;
}

.vb-report-segments[b-s5gpwit4vk] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.vb-report-segment[b-s5gpwit4vk] {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
    padding: 11px;
    border: 1px solid #e5eaf1;
    border-radius: 11px;
    background: #f8fafc;
}

.vb-reports-modal .vb-btn-toolbar-action[b-s5gpwit4vk] {
    min-width: 0;
    height: 36px;
    border-radius: 9px;
    font-size: 12px;
}

.vb-report-action--primary[b-s5gpwit4vk] {
    border-color: #c7d2fe;
    background: #eef2ff;
    color: #3730a3;
}

.vb-report-action--primary:hover[b-s5gpwit4vk] {
    border-color: #a5b4fc;
    background: #e0e7ff;
    color: #312e81;
}

.vb-reports-footer[b-s5gpwit4vk] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 20px;
    border-top: 1px solid #e8edf3;
    background: #fff;
    flex: 0 0 auto;
}

.vb-reports-status[b-s5gpwit4vk] {
    color: #64748b;
    font-size: 11.5px;
    line-height: 1.45;
}

.vb-reports-close-footer[b-s5gpwit4vk] {
    min-height: 34px;
    padding: 0 17px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 12.5px;
    font-weight: 700;
}

.vb-reports-close-footer:hover[b-s5gpwit4vk] {
    border-color: #94a3b8;
    background: #f8fafc;
}

.vb-reports-modal :is(button, input, select):focus-visible[b-s5gpwit4vk] {
    outline: 3px solid rgba(59, 130, 246, 0.42);
    outline-offset: 2px;
}

@media (max-width: 820px) {
    .vb-reports-modal[b-s5gpwit4vk] {
        max-height: 96vh;
        max-height: 96dvh;
    }

    .vb-report-grid--two[b-s5gpwit4vk],
    .vb-report-grid--referral-due[b-s5gpwit4vk] {
        grid-template-columns: minmax(0, 1fr);
    }

    .vb-report-segments[b-s5gpwit4vk] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .vb-reports-backdrop[b-s5gpwit4vk] {
        align-items: flex-end;
        padding: 0;
    }

    .vb-reports-modal[b-s5gpwit4vk] {
        width: 100%;
        max-height: 96vh;
        max-height: 96dvh;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 18px 18px 0 0;
    }

    .vb-reports-header[b-s5gpwit4vk] {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 10px;
        padding: 14px 16px;
    }

    .vb-reports-header > div:first-child[b-s5gpwit4vk] {
        gap: 9px !important;
    }

    .vb-reports-header > div:first-child > div:first-child[b-s5gpwit4vk] {
        width: 34px !important;
        height: 34px !important;
    }

    .vb-reports-header-actions[b-s5gpwit4vk] {
        width: 100%;
        justify-content: space-between;
    }

    .vb-reports-branch[b-s5gpwit4vk] {
        flex: 1 1 auto;
    }

    .vb-reports-branch select[b-s5gpwit4vk] {
        max-width: none;
        flex: 1 1 auto;
    }

    .vb-reports-body[b-s5gpwit4vk] {
        gap: 10px;
        padding: 11px;
    }

    .vb-report-card[b-s5gpwit4vk] {
        padding: 12px;
    }

    .vb-report-date-card[b-s5gpwit4vk] {
        padding: 12px;
    }

    .vb-report-date-topline[b-s5gpwit4vk] {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .vb-report-date-presets[b-s5gpwit4vk] {
        justify-content: flex-start;
    }

    .vb-report-date-fields[b-s5gpwit4vk] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
        gap: 8px;
        margin-top: 10px;
    }

    .vb-report-date-arrow[b-s5gpwit4vk] {
        display: none;
    }

    .vb-report-segments[b-s5gpwit4vk] {
        grid-template-columns: minmax(0, 1fr);
    }

    .vb-report-card > div[style*="grid-template-columns: 1fr 1fr"][b-s5gpwit4vk] {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .vb-report-card-heading[b-s5gpwit4vk] {
        align-items: stretch;
        flex-direction: column;
    }

    .vb-report-card-heading > button[b-s5gpwit4vk] {
        width: 100%;
        justify-content: center;
    }

    .vb-reports-footer[b-s5gpwit4vk] {
        padding: 10px 12px;
    }

    .vb-reports-status[b-s5gpwit4vk] {
        font-size: 10.5px;
    }
}

/* ════════════════════════════════════════════════════════════════
   BILLING ACTIVITY & AUDIT LOGS MODAL
   ════════════════════════════════════════════════════════════════ */
.vb-logs-modal-overlay[b-s5gpwit4vk] {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: vbLogsFadeIn-b-s5gpwit4vk 0.15s ease-out;
}

@keyframes vbLogsFadeIn-b-s5gpwit4vk {
    from { opacity: 0; }
    to { opacity: 1; }
}

.vb-logs-modal-dialog[b-s5gpwit4vk] {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 1120px;
    height: 88vh;
    max-height: 88vh;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    border: 1px solid #cbd5e1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: vbLogsSlideUp-b-s5gpwit4vk 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes vbLogsSlideUp-b-s5gpwit4vk {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.vb-logs-modal-header[b-s5gpwit4vk] {
    padding: 14px 20px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.vb-logs-header-left[b-s5gpwit4vk] {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vb-logs-icon-badge[b-s5gpwit4vk] {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.25);
    border: 1px solid rgba(99, 102, 241, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #818cf8;
}

.vb-logs-title-wrap[b-s5gpwit4vk] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vb-logs-title[b-s5gpwit4vk] {
    font-size: 1.08rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.01em;
}

.vb-logs-count-badge[b-s5gpwit4vk] {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.4);
    letter-spacing: 0.02em;
}

.vb-logs-subtitle[b-s5gpwit4vk] {
    font-size: 0.74rem;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 2px;
}

.vb-logs-header-right[b-s5gpwit4vk] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vb-logs-hdr-btn[b-s5gpwit4vk] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    padding: 0 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f1f5f9;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.vb-logs-hdr-btn:hover:not(:disabled)[b-s5gpwit4vk] {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.vb-logs-close-btn[b-s5gpwit4vk] {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #cbd5e1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: all 0.15s ease;
}

.vb-logs-close-btn:hover[b-s5gpwit4vk] {
    background: rgba(239, 68, 68, 0.25);
    color: #ffffff;
    border-color: rgba(239, 68, 68, 0.4);
}

.vb-logs-kpi-bar[b-s5gpwit4vk] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
    overflow-x: auto;
}

.vb-logs-kpi-pill[b-s5gpwit4vk] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    white-space: nowrap;
}

.vb-logs-kpi-pill:hover[b-s5gpwit4vk] {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.vb-logs-kpi-pill.active[b-s5gpwit4vk] {
    background: #1e293b;
    color: #ffffff;
    border-color: #1e293b;
}

.vb-logs-kpi-dot[b-s5gpwit4vk] {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.dot-all[b-s5gpwit4vk] { background: #64748b; }
.dot-billing[b-s5gpwit4vk] { background: #3b82f6; }
.dot-specimen[b-s5gpwit4vk] { background: #14b8a6; }
.dot-result[b-s5gpwit4vk] { background: #8b5cf6; }
.dot-payment[b-s5gpwit4vk] { background: #10b981; }

.vb-logs-kpi-pill.active .vb-logs-kpi-dot[b-s5gpwit4vk] {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.vb-logs-kpi-val[b-s5gpwit4vk] {
    background: #f1f5f9;
    color: #0f172a;
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
}

.vb-logs-kpi-pill.active .vb-logs-kpi-val[b-s5gpwit4vk] {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.vb-logs-toolbar[b-s5gpwit4vk] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.vb-logs-search-box[b-s5gpwit4vk] {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 240px;
    min-width: 200px;
}

.vb-logs-search-box .material-symbols-outlined[b-s5gpwit4vk] {
    position: absolute;
    left: 10px;
    pointer-events: none;
}

.vb-logs-input[b-s5gpwit4vk] {
    width: 100%;
    height: 32px;
    padding: 0 30px 0 32px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 12px;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
    transition: all 0.15s ease;
}

.vb-logs-input:focus[b-s5gpwit4vk] {
    background: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
}

.vb-logs-input-clear[b-s5gpwit4vk] {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

.vb-logs-filter-group[b-s5gpwit4vk] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vb-logs-select[b-s5gpwit4vk] {
    height: 32px;
    padding: 0 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #334155;
    background: #f8fafc;
    outline: none;
    cursor: pointer;
}

.vb-logs-select:focus[b-s5gpwit4vk] {
    border-color: #4f46e5;
}

.vb-logs-date-picker[b-s5gpwit4vk] {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 2px 8px;
}

.vb-logs-date-input[b-s5gpwit4vk] {
    height: 26px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 0 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #1e293b;
    background: #ffffff;
}

.vb-logs-fetch-btn[b-s5gpwit4vk] {
    height: 26px;
    padding: 0 10px;
    background: #4f46e5;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.vb-logs-fetch-btn:hover[b-s5gpwit4vk] {
    background: #4338ca;
}

.vb-logs-table-wrap[b-s5gpwit4vk] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    background: #ffffff;
}

.vb-logs-loading-state[b-s5gpwit4vk],
.vb-logs-empty-state[b-s5gpwit4vk] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 240px;
    padding: 40px 16px;
    text-align: center;
}

.vb-logs-table[b-s5gpwit4vk] {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    text-align: left;
}

.vb-logs-table thead th[b-s5gpwit4vk] {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f1f5f9;
    color: #475569;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 9px 12px;
    border-bottom: 1px solid #e2e8f0;
}

.vb-logs-table tbody td[b-s5gpwit4vk] {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
}

.vb-logs-table tbody tr:hover[b-s5gpwit4vk] {
    background: #f8fafc;
}

.vb-logs-td-date[b-s5gpwit4vk] {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

.vb-logs-bill-badge[b-s5gpwit4vk] {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s;
}

.vb-logs-bill-badge:hover[b-s5gpwit4vk] {
    background: #2563eb;
    color: #ffffff;
}

.vb-logs-td-pat[b-s5gpwit4vk] {
    font-weight: 700;
    color: #0f172a;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vb-logs-module-pill[b-s5gpwit4vk] {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.module-billing[b-s5gpwit4vk] { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.module-specimen[b-s5gpwit4vk] { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.module-result[b-s5gpwit4vk] { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.module-auth[b-s5gpwit4vk] { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.module-default[b-s5gpwit4vk] { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }

.vb-logs-event-pill[b-s5gpwit4vk] {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.event-success[b-s5gpwit4vk] { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.event-warning[b-s5gpwit4vk] { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.event-danger[b-s5gpwit4vk] { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.event-info[b-s5gpwit4vk] { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.event-specimen[b-s5gpwit4vk] { background: #f0fdfa; color: #0d9488; border: 1px solid #99f6e4; }
.event-default[b-s5gpwit4vk] { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }

.vb-logs-td-summary[b-s5gpwit4vk] {
    max-width: 320px;
    font-size: 11.5px;
    color: #334155;
    font-weight: 500;
    line-height: 1.35;
}

.vb-logs-user-pill[b-s5gpwit4vk] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
}

.vb-logs-view-btn[b-s5gpwit4vk] {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.vb-logs-view-btn:hover[b-s5gpwit4vk] {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #ffffff;
}

.vb-logs-footer[b-s5gpwit4vk] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.vb-logs-done-btn[b-s5gpwit4vk] {
    padding: 6px 18px;
    border-radius: 6px;
    background: #1e293b;
    color: #ffffff;
    border: none;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.vb-logs-done-btn:hover[b-s5gpwit4vk] {
    background: #0f172a;
}

/* ── Submodal Event Details ─────────────────────────────────── */
.vb-logs-submodal-overlay[b-s5gpwit4vk] {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.vb-logs-submodal-dialog[b-s5gpwit4vk] {
    background: #ffffff;
    border-radius: 14px;
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    border: 1px solid #cbd5e1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.vb-logs-submodal-header[b-s5gpwit4vk] {
    background: #0f172a;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
}

.vb-logs-submodal-body[b-s5gpwit4vk] {
    padding: 18px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vb-logs-detail-card[b-s5gpwit4vk] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vb-logs-detail-card-title[b-s5gpwit4vk] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #475569;
    letter-spacing: 0.03em;
    padding-bottom: 5px;
    border-bottom: 1px solid #e2e8f0;
}

.vb-logs-detail-row[b-s5gpwit4vk] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
}

.vb-logs-detail-row .lbl[b-s5gpwit4vk] {
    color: #64748b;
    font-weight: 600;
}

.vb-logs-detail-row .val[b-s5gpwit4vk] {
    color: #0f172a;
}

.vb-logs-action-banner[b-s5gpwit4vk] {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 10px 14px;
}

.vb-logs-submodal-footer[b-s5gpwit4vk] {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Cancel Bill Modal & Badges */
.vb-pill-cancelled.active[b-s5gpwit4vk] {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
}

/* ══════════════════════════════════════════════════════════════
   PREMIUM CANCEL BILL CONFIRMATION MODAL
   ══════════════════════════════════════════════════════════════ */
.vb-cancel-confirm-overlay[b-s5gpwit4vk] {
    position: fixed !important;
    inset: 0 !important;
    z-index: 100000 !important;
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    animation: vbLogsFadeIn-b-s5gpwit4vk 0.18s ease-out;
}

.vb-cancel-confirm-dialog[b-s5gpwit4vk] {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(226, 232, 240, 0.85);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: vbModalScaleIn-b-s5gpwit4vk 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes vbModalScaleIn-b-s5gpwit4vk {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.vb-cancel-dialog-stripe[b-s5gpwit4vk] {
    height: 4px;
    background: linear-gradient(90deg, #ef4444 0%, #f43f5e 50%, #dc2626 100%);
    width: 100%;
}

.vb-cancel-dialog-header[b-s5gpwit4vk] {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    padding: 18px 22px 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vb-cancel-header-left[b-s5gpwit4vk] {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vb-cancel-header-icon[b-s5gpwit4vk] {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vb-cancel-header-title[b-s5gpwit4vk] {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.vb-cancel-header-sub[b-s5gpwit4vk] {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: #64748b;
}

.vb-cancel-close-btn[b-s5gpwit4vk] {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.vb-cancel-close-btn:hover[b-s5gpwit4vk] {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}

.vb-cancel-dialog-body[b-s5gpwit4vk] {
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: calc(85vh - 130px);
    overflow-y: auto;
}

/* Patient & Bill Demographics Card */
.vb-cancel-pat-card[b-s5gpwit4vk] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.vb-cancel-pat-info[b-s5gpwit4vk] {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.vb-cancel-pat-avatar[b-s5gpwit4vk] {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #4338ca;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vb-cancel-pat-name[b-s5gpwit4vk] {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vb-cancel-pat-meta[b-s5gpwit4vk] {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 1px;
}

.vb-cancel-bill-badge-box[b-s5gpwit4vk] {
    text-align: right;
    flex-shrink: 0;
}

.vb-cancel-bill-badge[b-s5gpwit4vk] {
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    display: inline-block;
}

.vb-cancel-bill-time[b-s5gpwit4vk] {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

/* Financial Metric Breakdown */
.vb-cancel-metrics-grid[b-s5gpwit4vk] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.vb-cancel-metric-box[b-s5gpwit4vk] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
}

.vb-cancel-metric-lbl[b-s5gpwit4vk] {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.vb-cancel-metric-val[b-s5gpwit4vk] {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin-top: 2px;
}

/* Prominent Refund Card */
.vb-cancel-refund-card[b-s5gpwit4vk] {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1.5px solid #fca5a5;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.vb-cancel-refund-left[b-s5gpwit4vk] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vb-cancel-refund-icon[b-s5gpwit4vk] {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #ffffff;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.1);
}

.vb-cancel-refund-title[b-s5gpwit4vk] {
    font-size: 12.5px;
    font-weight: 700;
    color: #991b1b;
}

.vb-cancel-refund-sub[b-s5gpwit4vk] {
    font-size: 11px;
    color: #b91c1c;
    margin-top: 1px;
}

.vb-cancel-refund-amount[b-s5gpwit4vk] {
    font-size: 19px;
    font-weight: 900;
    color: #dc2626;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

/* Preset Reason Chips */
.vb-cancel-chips-wrap[b-s5gpwit4vk] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.vb-cancel-chip[b-s5gpwit4vk] {
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.vb-cancel-chip:hover[b-s5gpwit4vk] {
    border-color: #cbd5e1;
    background: #f1f5f9;
    color: #1e293b;
}

.vb-cancel-chip.active[b-s5gpwit4vk] {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
    font-weight: 700;
}

.vb-cancel-remarks-input[b-s5gpwit4vk] {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12.5px;
    color: #1e293b;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    background: #ffffff;
    box-sizing: border-box;
}

.vb-cancel-remarks-input:focus[b-s5gpwit4vk] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

/* Notice Banner */
.vb-cancel-notice-banner[b-s5gpwit4vk] {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 10px;
    padding: 10px 13px;
    font-size: 11.5px;
    color: #92400e;
    line-height: 1.45;
}

/* Modal Footer */
.vb-cancel-dialog-footer[b-s5gpwit4vk] {
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.vb-cancel-btn-back[b-s5gpwit4vk] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.vb-cancel-btn-back:hover[b-s5gpwit4vk] {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.vb-cancel-btn-only[b-s5gpwit4vk] {
    background: #ffffff;
    border: 1.5px solid #fca5a5;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 700;
    color: #dc2626;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.vb-cancel-btn-only:hover[b-s5gpwit4vk] {
    background: #fef2f2;
    border-color: #f87171;
}

.vb-cancel-btn-print[b-s5gpwit4vk] {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 12.5px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
    transition: all 0.15s ease;
}

.vb-cancel-btn-print:hover[b-s5gpwit4vk] {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
    transform: translateY(-1px);
}





/* /Components/Pages/WarehouseMaster.razor.rz.scp.css */
/* Isolated styles for WarehouseMaster component */

.items-page[b-jbssq1ogaf] {
    min-height: 100vh;
    background: transparent !important;
}

.items-shell[b-jbssq1ogaf] {
    max-width: 1320px;
    margin: 0 auto;
}

.items-content[b-jbssq1ogaf] {
    width: min(1240px, 100%);
    margin: 0 auto;
    text-align: center;
}

.premium-header-card[b-jbssq1ogaf] {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-radius: 16px !important;
    padding: 1.25rem 2rem !important;
    color: #1e1b4b !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem !important;
}

.header-card-left[b-jbssq1ogaf] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-card-icon[b-jbssq1ogaf] {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

.header-card-icon svg[b-jbssq1ogaf] {
    stroke: #2563eb !important;
}

.header-card-text[b-jbssq1ogaf] {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.header-card-heading[b-jbssq1ogaf] {
    color: #0f172a !important;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
}

.header-card-subheading[b-jbssq1ogaf] {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b !important;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.status-dot[b-jbssq1ogaf] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    margin-right: 6px;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
}

.header-card-right[b-jbssq1ogaf] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.items-search-wrap[b-jbssq1ogaf] {
    position: relative;
    display: flex;
    align-items: center;
}

.items-search[b-jbssq1ogaf] {
    width: 220px;
    height: 38px !important;
    border-radius: 20px !important;
    border: 1px solid #cbd5e1 !important;
    padding-left: 2.4rem !important;
    font-size: 0.8rem !important;
    background: #ffffff !important;
    color: #1e293b !important;
    box-shadow: none !important;
    transition: all 0.25s ease !important;
}

.items-search:focus[b-jbssq1ogaf] {
    outline: none !important;
    width: 280px !important;
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

.items-search-icon[b-jbssq1ogaf] {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
}

.view-toggle[b-jbssq1ogaf] {
    display: inline-flex;
    border: 1px solid #cbd5e1 !important;
    border-radius: 20px !important;
    overflow: hidden;
    background: #f8fafc !important;
    height: 38px;
    padding: 2px;
    align-items: center;
}

.view-toggle button[b-jbssq1ogaf] {
    border: 0 !important;
    background: transparent !important;
    color: #64748b !important;
    width: 36px;
    height: 32px;
    border-radius: 16px !important;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle button.active[b-jbssq1ogaf] {
    background: #ffffff !important;
    color: #4f46e5 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.add-item-btn[b-jbssq1ogaf] {
    height: 38px !important;
    border-radius: 20px !important;
    background: #4f46e5 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0 1.5rem !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
    transition: all 0.2s ease-in-out !important;
}

.add-item-btn:hover[b-jbssq1ogaf] {
    background: #3f39c5 !important;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35) !important;
    transform: translateY(-1.5px);
}

.items-main-card[b-jbssq1ogaf] {
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    overflow: hidden;
    margin-top: 1.5rem !important;
    background: #ffffff !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
}

.items-table[b-jbssq1ogaf] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

table.table.items-table thead tr th[b-jbssq1ogaf],
.items-table th[b-jbssq1ogaf] {
    background: #ffffff !important;
    color: #8a99ad !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.74rem !important;
    letter-spacing: 0.8px !important;
    padding: 10px 16px !important;
    border-bottom: 2px solid #eef2f6 !important;
    text-align: center !important;
}

.items-table td[b-jbssq1ogaf] {
    border-top: none !important;
    border-bottom: 1px solid #eef2f6 !important;
    padding: 10px 16px !important;
    font-size: 0.8rem !important;
    background: #ffffff !important;
    color: #64748b !important;
    vertical-align: middle !important;
    text-align: center !important;
}

.items-table td:last-child[b-jbssq1ogaf] {
    white-space: nowrap !important;
    text-align: center !important;
}

.items-table tr td:first-child[b-jbssq1ogaf] {
    color: #3b82f6 !important;
    font-weight: 700 !important;
}

.items-table tr td:nth-child(2)[b-jbssq1ogaf],
.items-table tr td:nth-child(3)[b-jbssq1ogaf] {
    color: #1e293b !important;
    font-weight: 700 !important;
}

.action-btn[b-jbssq1ogaf] {
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    margin: 0 2px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #94a3b8 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.action-btn:hover[b-jbssq1ogaf] {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}

.action-btn i[b-jbssq1ogaf] {
    font-size: 0.85rem !important;
}

.items-card-grid[b-jbssq1ogaf] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
}

.item-card[b-jbssq1ogaf] {
    background: #ffffff !important;
    border: 1px solid #eef2f6 !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.item-card:hover[b-jbssq1ogaf] {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(37, 99, 235, 0.25) !important;
}

.item-card-head[b-jbssq1ogaf] {
    background: #ffffff !important;
    color: #1e293b !important;
    padding: 0.6rem 1rem !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid rgba(99, 102, 241, 0.1) !important;
}

.card-item-code[b-jbssq1ogaf] {
    color: #4b5563 !important;
    font-weight: 700 !important;
    margin-right: 6px;
}

.card-item-name[b-jbssq1ogaf] {
    color: #374151 !important;
    font-weight: 700 !important;
}

.item-card-body[b-jbssq1ogaf] {
    padding: 0.75rem 1rem !important;
    color: #64748b !important;
    font-size: 0.8rem !important;
}

.detail-row[b-jbssq1ogaf] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0 !important;
    border-bottom: 1px solid #eef2f6 !important;
}

.detail-row:last-child[b-jbssq1ogaf] {
    border-bottom: none !important;
}

.detail-row span[b-jbssq1ogaf] {
    color: #8a99ad !important;
    font-weight: 700 !important;
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.detail-row strong[b-jbssq1ogaf] {
    color: #000000 !important;
    font-weight: 600 !important;
}

/* Modal styles */
.modal-overlay[b-jbssq1ogaf] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.modal-card[b-jbssq1ogaf] {
    border-radius: 20px !important;
    border: none !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-header-bar[b-jbssq1ogaf] {
    background: #fff !important;
    color: #333 !important;
    padding: 16px 32px !important;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-left[b-jbssq1ogaf] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-title[b-jbssq1ogaf] {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    color: #000000 !important;
    letter-spacing: -0.2px;
}

.btn-close-modal[b-jbssq1ogaf] {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}

.btn-close-modal:hover[b-jbssq1ogaf] {
    background: #e2e8f0;
    color: #1e293b;
}

.modal-inner[b-jbssq1ogaf] {
    padding: 16px 32px !important;
    background: #fff;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.modal-inner[b-jbssq1ogaf]  form {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.modal-inner[b-jbssq1ogaf]  .modal-scroll-area {
    overflow-y: auto !important;
    flex: 1;
    padding-right: 8px;
    min-height: 0;
}

.form-section-header[b-jbssq1ogaf] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    margin-top: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid #f1f5f9;
}

.form-section-title[b-jbssq1ogaf] {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #4f46e5;
}

.form-grid[b-jbssq1ogaf] {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    margin-bottom: 12px;
    row-gap: 12px;
}

.col-1[b-jbssq1ogaf] { grid-column: span 1; }
.col-2[b-jbssq1ogaf] { grid-column: span 2; }
.col-3[b-jbssq1ogaf] { grid-column: span 3; }
.col-4[b-jbssq1ogaf] { grid-column: span 4; }
.col-5[b-jbssq1ogaf] { grid-column: span 5; }
.col-6[b-jbssq1ogaf] { grid-column: span 6; }
.col-7[b-jbssq1ogaf] { grid-column: span 7; }
.col-8[b-jbssq1ogaf] { grid-column: span 8; }
.col-9[b-jbssq1ogaf] { grid-column: span 9; }
.col-10[b-jbssq1ogaf] { grid-column: span 10; }
.col-11[b-jbssq1ogaf] { grid-column: span 11; }
.col-12[b-jbssq1ogaf] { grid-column: span 12; }

.field-group[b-jbssq1ogaf] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label[b-jbssq1ogaf] {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 2px;
}

.field-label.required[b-jbssq1ogaf]::after {
    content: " *";
    color: #ef4444;
}

.premium-input[b-jbssq1ogaf] {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 0.88rem !important;
    color: #4b5563 !important;
    transition: all 0.2s !important;
    height: auto !important;
}

.premium-input[b-jbssq1ogaf]::placeholder {
    color: #cbd5e1 !important;
    opacity: 1 !important;
}

.premium-input:focus[b-jbssq1ogaf] {
    background: #fff !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1) !important;
    outline: none !important;
}

.btn-save-premium[b-jbssq1ogaf] {
    background: #1c9f5f !important;
    color: white !important;
    border: none !important;
    padding: 10px 28px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(28, 159, 95, 0.3) !important;
    transition: all 0.2s !important;
    white-space: nowrap;
}

.btn-save-premium:hover[b-jbssq1ogaf] {
    background: #168a52 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(28, 159, 95, 0.4) !important;
}

/* Pagination bar */
.page-btn[b-jbssq1ogaf] {
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #64748b !important;
    border-radius: 8px !important;
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
    font-weight: 600;
    margin: 0 2px;
    transition: all 0.2s;
}

.page-btn.active[b-jbssq1ogaf] {
    background: #4f46e5 !important;
    color: #ffffff !important;
    border-color: #4f46e5 !important;
}

.page-btn:hover:not(.active):not(:disabled)[b-jbssq1ogaf] {
    background: #f8fafc !important;
    color: #1e293b !important;
}
