/**
 * Gudang Kamera - Modern Aesthetic Design System
 * Elevated UI with Plus Jakarta Sans, Soft Ambient Shadows, Sleek Badges, and Micro-interactions.
 */

/* ========================================================================= */
/* 1. Global Typography & Font Smoothing                                     */
/* ========================================================================= */
body, 
.page-content, 
.main-content, 
.card, 
.modal, 
.dropdown-menu,
.navbar,
.btn,
.form-control,
.form-select {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

.font-monospace,
code,
.badge-sku,
.badge-rfid,
.badge-modern-sku,
.badge-modern-qr,
.code-mono {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    letter-spacing: -0.02em;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    color: #0f172a;
}

[data-bs-theme="dark"] h1, 
[data-bs-theme="dark"] h2, 
[data-bs-theme="dark"] h3, 
[data-bs-theme="dark"] h4, 
[data-bs-theme="dark"] h5, 
[data-bs-theme="dark"] h6 {
    color: #f8fafc !important;
}

/* ========================================================================= */
/* 2. Modern Elevated Cards & Ambient Shadows                                */
/* ========================================================================= */
.card {
    border-radius: 14px !important;
    border: 1px solid rgba(226, 232, 240, 0.85) !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 4px 14px -2px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    background-color: #ffffff;
}

[data-bs-theme="dark"] .card {
    background-color: #1a2234 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

/* Remove legacy angled corner lines/brackets from all cards */
.card::before,
.card::after,
.card:before,
.card:after {
    display: none !important;
    content: none !important;
    border: none !important;
    width: 0 !important;
    height: 0 !important;
}

.card-header {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 1.15rem 1.4rem !important;
    border-top-left-radius: 14px !important;
    border-top-right-radius: 14px !important;
}

[data-bs-theme="dark"] .card-header {
    background: #1a2234 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.card-body {
    padding: 1.4rem !important;
}

/* ========================================================================= */
/* 3. KPI Metric Stat Cards (Linear / Stripe Executive Widgets)              */
/* ========================================================================= */
.kpi-stat-card {
    position: relative;
    overflow: hidden;
    border-radius: 14px !important;
    border: 1px solid rgba(226, 232, 240, 0.85) !important;
    background: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 4px 14px -2px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.kpi-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.08), 0 4px 8px -2px rgba(0, 0, 0, 0.03) !important;
}

[data-bs-theme="dark"] .kpi-stat-card {
    background: #1a2234 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .kpi-stat-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5) !important;
}

.kpi-icon-capsule {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.kpi-stat-card:hover .kpi-icon-capsule {
    transform: scale(1.08);
}

.kpi-icon-primary {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(99, 102, 241, 0.05));
    color: #4f46e5;
    border: 1px solid rgba(79, 70, 229, 0.18);
}

.kpi-icon-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.05));
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.18);
}

.kpi-icon-info {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(2, 132, 199, 0.05));
    color: #0284c7;
    border: 1px solid rgba(14, 165, 233, 0.18);
}

.kpi-icon-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.05));
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.18);
}

.kpi-icon-purple {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.12), rgba(126, 34, 206, 0.05));
    color: #7e22ce;
    border: 1px solid rgba(147, 51, 234, 0.18);
}

.kpi-value-text {
    font-size: 21px !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.2;
    margin-bottom: 2px;
}

.kpi-value-text.kpi-currency,
.kpi-currency {
    font-size: 17.5px !important;
    white-space: nowrap !important;
    letter-spacing: -0.02em !important;
}

.kpi-label-text {
    font-size: 11.5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    font-weight: 700 !important;
    color: #64748b !important;
    margin-bottom: 4px;
}

[data-bs-theme="dark"] .kpi-label-text {
    color: #94a3b8 !important;
}

/* ========================================================================= */
/* 4. Sleek DataTables & Table Styling                                       */
/* ========================================================================= */
.table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.table thead th {
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    padding: 13px 16px !important;
    border-top: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    vertical-align: middle !important;
}

[data-bs-theme="dark"] .table thead th {
    background: #151c2c !important;
    color: #94a3b8 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.table tbody td {
    padding: 13px 16px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 13.5px !important;
    transition: background-color 0.15s ease;
}

[data-bs-theme="dark"] .table tbody td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.table-hover tbody tr:hover td {
    background-color: #f8fafc !important;
}

[data-bs-theme="dark"] .table-hover tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.03) !important;
}

/* Product Avatar Box in Tables */
.product-avatar-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.15);
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(37, 99, 235, 0.08);
}

[data-bs-theme="dark"] .product-avatar-box {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(30, 64, 175, 0.3));
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.25);
}

/* ========================================================================= */
/* 5. Modern Pill Badges & Chips                                             */
/* ========================================================================= */
.badge-pill-modern {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 3px 9px !important;
    line-height: 1.4;
    transition: all 0.15s ease;
}

/* Condition Badges */
.badge-condition-new {
    background-color: #ecfdf5 !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0 !important;
}

[data-bs-theme="dark"] .badge-condition-new {
    background-color: rgba(16, 185, 129, 0.18) !important;
    color: #6ee7b7 !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
}

.badge-condition-likenew {
    background-color: #fffbeb !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
}

[data-bs-theme="dark"] .badge-condition-likenew {
    background-color: rgba(245, 158, 11, 0.18) !important;
    color: #fcd34d !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
}

.badge-condition-used {
    background-color: #fef2f2 !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca !important;
}

[data-bs-theme="dark"] .badge-condition-used {
    background-color: rgba(239, 68, 68, 0.18) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
}

/* Stock Badges */
.badge-stock-high {
    background-color: #ecfdf5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
    font-weight: 700 !important;
}

.badge-stock-low {
    background-color: #fffbeb !important;
    color: #92400e !important;
    border: 1px solid #fde68a !important;
    font-weight: 700 !important;
}

.badge-stock-empty {
    background-color: #fef2f2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca !important;
    font-weight: 700 !important;
}

/* Modern Monospace Badges */
.badge-modern-sku {
    background-color: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 2.5px 7px !important;
}

[data-bs-theme="dark"] .badge-modern-sku {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}

.badge-modern-qr {
    background-color: #faf5ff !important;
    color: #6b21a8 !important;
    border: 1px solid #e9d5ff !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 2.5px 7px !important;
}

[data-bs-theme="dark"] .badge-modern-qr {
    background-color: rgba(147, 51, 234, 0.18) !important;
    color: #d8b4fe !important;
    border-color: rgba(147, 51, 234, 0.35) !important;
}

.badge-modern-cab {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 3px 8px !important;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.35 !important;
    max-width: 100% !important;
    display: inline-block !important;
}

[data-bs-theme="dark"] .badge-modern-cab {
    background-color: rgba(29, 78, 216, 0.18) !important;
    color: #93c5fd !important;
    border-color: rgba(29, 78, 216, 0.35) !important;
}

/* ========================================================================= */
/* 6. Refined Buttons & Interactive Controls                                 */
/* ========================================================================= */
.btn {
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 7px 14px !important;
    letter-spacing: -0.01em;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
    border: 1px solid #4338ca !important;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25) !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%) !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35) !important;
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: 1px solid #059669 !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25) !important;
    color: #ffffff !important;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35) !important;
    transform: translateY(-1px);
}

.btn-action-qr {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    border-radius: 6px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-action-qr:hover {
    background-color: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.2);
    transform: translateY(-1px);
}

[data-bs-theme="dark"] .btn-action-qr {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .btn-action-qr:hover {
    background-color: #38bdf8 !important;
    color: #0f172a !important;
    border-color: #38bdf8 !important;
}

/* ========================================================================= */
/* 7. Modern Inputs, Selects & Focus Rings                                   */
/* ========================================================================= */
.form-control,
.form-select {
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    padding: 8px 13px !important;
    font-size: 13.5px !important;
    transition: all 0.15s ease !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18) !important;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* ========================================================================= */
/* 8. Studio Grade Scanner Console & Viewfinder                              */
/* ========================================================================= */
.scanner-studio-card {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35) !important;
}

.scanner-studio-header {
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 1.1rem 1.5rem !important;
}

.scanner-viewfinder-frame {
    position: relative;
    background: #000000;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.15);
}

/* Target Crosshairs in Corners */
.scanner-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: #38bdf8;
    z-index: 12;
    pointer-events: none;
}
.scanner-corner-tl { top: 12px; left: 12px; border-top: 3px solid #38bdf8; border-left: 3px solid #38bdf8; border-top-left-radius: 4px; }
.scanner-corner-tr { top: 12px; right: 12px; border-top: 3px solid #38bdf8; border-right: 3px solid #38bdf8; border-top-right-radius: 4px; }
.scanner-corner-bl { bottom: 12px; left: 12px; border-bottom: 3px solid #38bdf8; border-left: 3px solid #38bdf8; border-bottom-left-radius: 4px; }
.scanner-corner-br { bottom: 12px; right: 12px; border-bottom: 3px solid #38bdf8; border-right: 3px solid #38bdf8; border-bottom-right-radius: 4px; }

/* Animated Neon Laser Scan Beam */
@keyframes laserScanAnimation {
    0% { top: 4%; opacity: 0.85; }
    50% { top: 94%; opacity: 0.85; }
    100% { top: 4%; opacity: 0.85; }
}

.laser-scan-beam {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.8) 20%, #38bdf8 50%, rgba(56, 189, 248, 0.8) 80%, transparent 100%);
    box-shadow: 0 0 14px 2px #38bdf8;
    animation: laserScanAnimation 2.4s infinite cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 15;
    pointer-events: none;
}

/* ========================================================================= */
/* 9. Retail QR Sticker Mockup Card Preview                                  */
/* ========================================================================= */
.sticker-preview-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    position: relative;
    max-width: 330px;
    margin: 0 auto;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.sticker-preview-card .badge,
.sticker-preview-wrapper .badge {
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.35 !important;
    max-width: 100% !important;
    display: inline-block !important;
}

.sticker-preview-card::before,
.sticker-preview-card::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    background: #f1f5f9;
    border-radius: 50%;
    transform: translateY(-50%);
}

.sticker-preview-card::before { left: -6px; }
.sticker-preview-card::after { right: -6px; }

/* ========================================================================= */
/* 10. Modals & Backdrop Blur                                                */
/* ========================================================================= */
.modal-content {
    border-radius: 18px !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.2) !important;
    overflow: hidden;
}

.modal-backdrop.show {
    backdrop-filter: blur(6px) !important;
    background-color: rgba(15, 23, 42, 0.5) !important;
}

.modal-header {
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 18px 24px !important;
    background: #ffffff !important;
}

[data-bs-theme="dark"] .modal-header {
    background: #1a2234 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.modal-footer {
    border-top: 1px solid #f1f5f9 !important;
    padding: 14px 24px !important;
    background: #f8fafc !important;
}

[data-bs-theme="dark"] .modal-footer {
    background: #151c2c !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* ========================================================================= */
/* 11. Global Dark Mode High-Contrast Overrides                              */
/* ========================================================================= */
[data-bs-theme="dark"] .text-dark {
    color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .card-header.bg-white,
[data-bs-theme="dark"] .card-header {
    background-color: transparent !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .card-body.bg-white {
    background-color: transparent !important;
}

[data-bs-theme="dark"] .card-body.bg-light {
    background-color: #151c2c !important;
}

[data-bs-theme="dark"] .table-light,
[data-bs-theme="dark"] .table-light th,
[data-bs-theme="dark"] .table-light td {
    --bs-table-color: #cbd5e1 !important;
    --bs-table-bg: #151c2c !important;
    color: #cbd5e1 !important;
    background-color: #151c2c !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] thead th {
    color: #cbd5e1 !important;
    background-color: #151c2c !important;
}

/* Product Titles & Pricing High-Contrast */
.product-title-text {
    color: #1e293b;
    font-weight: 700;
}

[data-bs-theme="dark"] .product-title-text {
    color: #f8fafc !important;
}

.product-price-text {
    color: #0f172a;
    font-weight: 700;
}

[data-bs-theme="dark"] .product-price-text {
    color: #f1f5f9 !important;
}

.text-muted-dark-adapt {
    color: #64748b;
}

[data-bs-theme="dark"] .text-muted-dark-adapt,
[data-bs-theme="dark"] .text-muted {
    color: #94a3b8 !important;
}

/* Modern Table Headers */
.modern-table-header th {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-weight: 700 !important;
    border-bottom: 2px solid #e2e8f0 !important;
    letter-spacing: 0.04em !important;
}

[data-bs-theme="dark"] .modern-table-header th,
[data-bs-theme="dark"] thead.table-light th {
    background-color: #1a2234 !important;
    color: #cbd5e1 !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
}

/* Cabinet Badges */
.badge-modern-cab,
.badge-opname-cab {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.35 !important;
    max-width: 100% !important;
    display: inline-block !important;
}

[data-bs-theme="dark"] .badge-modern-cab,
[data-bs-theme="dark"] .badge-opname-cab {
    background-color: rgba(56, 189, 248, 0.15) !important;
    color: #38bdf8 !important;
    border-color: rgba(56, 189, 248, 0.35) !important;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.1) !important;
}

.badge-opname-cab-none {
    background-color: #f1f5f9 !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
}

[data-bs-theme="dark"] .badge-opname-cab-none {
    background-color: rgba(255, 255, 255, 0.06) !important;
    color: #94a3b8 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.opname-zone-text {
    color: #64748b;
}

[data-bs-theme="dark"] .opname-zone-text {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .opname-zone-text i {
    color: #38bdf8 !important;
}

/* Structured Cabinet Info Card (Stock Opname & Inventory) */
.cabinet-info-card {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 7px 10px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #3b82f6;
    max-width: 260px;
    text-align: left;
    transition: all 0.2s ease;
}

[data-bs-theme="dark"] .cabinet-info-card {
    background: rgba(30, 41, 59, 0.55);
    border-color: rgba(255, 255, 255, 0.09);
    border-left: 3px solid #38bdf8;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.cabinet-info-card:hover {
    border-color: #cbd5e1;
    border-left-color: #2563eb;
}

[data-bs-theme="dark"] .cabinet-info-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    border-left-color: #38bdf8;
    background: rgba(30, 41, 59, 0.75);
}

.cabinet-info-none {
    border-left: 3px solid #94a3b8 !important;
}

[data-bs-theme="dark"] .cabinet-info-none {
    border-left: 3px solid #64748b !important;
}

.badge-cabinet-code {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 5px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 2px 7px !important;
    letter-spacing: 0.03em !important;
    display: inline-flex !important;
    align-items: center !important;
    width: fit-content !important;
}

[data-bs-theme="dark"] .badge-cabinet-code {
    background: rgba(56, 189, 248, 0.18) !important;
    color: #38bdf8 !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.15) !important;
}

.cabinet-cell-name {
    font-size: 12.5px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    word-break: normal;
    margin-top: 1px;
}

[data-bs-theme="dark"] .cabinet-cell-name {
    color: #f1f5f9 !important;
}

.cabinet-cell-zone {
    font-size: 11px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.3;
    margin-top: 1px;
}

.cabinet-cell-zone i {
    color: #0284c7;
    font-size: 12px;
}

[data-bs-theme="dark"] .cabinet-cell-zone {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .cabinet-cell-zone i {
    color: #38bdf8 !important;
}

/* RFID / Barcode Scanner Hero Styling */
.scanner-hero-box,
.scanner-sample-box {
    background-color: #ffffff;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease-in-out;
}

[data-bs-theme="dark"] .scanner-hero-box,
[data-bs-theme="dark"] .scanner-sample-box {
    background-color: rgba(30, 41, 59, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.scanner-input-label {
    color: #1e293b;
}

[data-bs-theme="dark"] .scanner-input-label {
    color: #f1f5f9 !important;
}

.scanner-input-addon {
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .scanner-input-addon {
    background-color: #151c2c !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

.scanner-addon-icon {
    color: #4f46e5;
}

[data-bs-theme="dark"] .scanner-addon-icon {
    color: #818cf8 !important;
}

.scanner-search-input {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .scanner-search-input {
    background-color: #1e2638 !important;
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

.scanner-search-input:focus {
    color: #0f172a !important;
}

[data-bs-theme="dark"] .scanner-search-input:focus {
    color: #ffffff !important;
    background-color: #1e2638 !important;
    border-color: #818cf8 !important;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.25) !important;
}

[data-bs-theme="dark"] .scanner-search-input::placeholder {
    color: #94a3b8 !important;
}

.scanner-sample-select {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .scanner-sample-select {
    background-color: #1e2638 !important;
    color: #f1f5f9 !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

[data-bs-theme="dark"] .scanner-sample-select option {
    background-color: #1e2638 !important;
    color: #f1f5f9 !important;
}

.scanner-help-text {
    color: #64748b;
}

[data-bs-theme="dark"] .scanner-help-text {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .scanner-help-text strong {
    color: #e2e8f0 !important;
}

.scanner-hero-body {
    background-color: #f8fafc !important;
}

[data-bs-theme="dark"] .scanner-hero-body {
    background-color: #151c2c !important;
}

.scanner-status-badge {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
    border-color: #bfdbfe !important;
}

[data-bs-theme="dark"] .scanner-status-badge {
    background-color: rgba(99, 102, 241, 0.18) !important;
    color: #a5b4fc !important;
    border-color: rgba(99, 102, 241, 0.35) !important;
}

[data-bs-theme="dark"] .input-group-text {
    background-color: #1e2638 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-accent-bg: rgba(255, 255, 255, 0.02) !important;
    color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .table-hover > tbody > tr:hover > * {
    --bs-table-accent-bg: rgba(255, 255, 255, 0.04) !important;
    color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .badge.bg-light,
[data-bs-theme="dark"] .badge-pill-modern.bg-light {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .badge.bg-light.text-secondary,
[data-bs-theme="dark"] .badge-pill-modern.bg-light.text-secondary,
[data-bs-theme="dark"] .badge.bg-light.text-muted,
[data-bs-theme="dark"] .badge-pill-modern.bg-light.text-muted {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .badge-stock-high {
    background-color: rgba(16, 185, 129, 0.18) !important;
    color: #6ee7b7 !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
}

[data-bs-theme="dark"] .badge-stock-low {
    background-color: rgba(245, 158, 11, 0.18) !important;
    color: #fcd34d !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
}

[data-bs-theme="dark"] .badge-stock-empty {
    background-color: rgba(239, 68, 68, 0.18) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
}

[data-bs-theme="dark"] .card-header.bg-white,
[data-bs-theme="dark"] .modal-header.bg-white,
[data-bs-theme="dark"] .modal-footer.bg-white {
    background-color: #1a2234 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ========================================================================= */
/* Global Page Title Box & Breadcrumb System (Breathing Room & Alignment)    */
/* ========================================================================= */
.page-title-box {
    margin: 0 0 1.25rem 0 !important;
    padding: 0.85rem 1.25rem !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border-bottom: none !important;
}

.page-title-box h4 {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    margin-bottom: 0 !important;
}

.page-title-box .breadcrumb {
    font-size: 0.825rem !important;
    padding: 0 !important;
    margin: 0 !important;
}

@media (max-width: 767.98px) {
    .page-title-box {
        margin: 0 0 0.85rem 0 !important;
        padding: 0.75rem 1rem !important;
    }

    .page-title-box h4 {
        font-size: 1.05rem !important;
        margin-bottom: 0.25rem !important;
    }

    .page-title-box .breadcrumb {
        font-size: 0.775rem !important;
    }
}

/* ==========================================================================
   MOBILE-FIRST RESPONSIVENESS SUITE (Gudang Kamera)
   ========================================================================== */

/* Safe Area Insets & Mobile Navigation Padding */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    body {
        padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    }
    .mobile-bottom-nav {
        padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    }
}

/* Camera Scanner Viewfinder Mobile Containment */
#camera_sn_reader,
#camera_qr_reader,
#scanner_camera_reader,
#reader {
    width: 100% !important;
    max-height: 280px !important;
    overflow: hidden !important;
    position: relative !important;
    border-radius: 8px !important;
    background: #111 !important;
}

#camera_sn_reader video,
#camera_qr_reader video,
#scanner_camera_reader video,
#reader video {
    width: 100% !important;
    max-height: 280px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
}

#camera_sn_reader canvas,
#camera_qr_reader canvas,
#scanner_camera_reader canvas,
#reader canvas {
    max-width: 100% !important;
}

/* Barcode & QR Code Responsive Scaling */
#sn_barcode_svg,
#barcode_svg,
svg[id*="barcode"] {
    max-width: 100% !important;
    height: auto !important;
}

#sn_qrcode_div canvas,
#sn_qrcode_div img,
div[id*="qrcode"] canvas,
div[id*="qrcode"] img {
    max-width: 100% !important;
    height: auto !important;
}

/* Tablet & Mobile Screens (< 768px) */
@media (max-width: 767.98px) {
    .page-content {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .container-fluid {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    /* Modal responsiveness */
    .modal-dialog {
        margin: 0.5rem auto !important;
        width: calc(100% - 1rem) !important;
        max-width: 100% !important;
    }

    .modal-dialog.modal-dialog-centered {
        min-height: calc(100% - 1rem) !important;
    }

    .modal-content {
        border-radius: 12px !important;
    }

    .modal-header,
    .modal-footer {
        padding: 0.75rem 1rem !important;
    }

    .modal-body {
        padding: 1rem !important;
        max-height: calc(85vh - 110px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Data Table Momentum Touch Scroll */
    .table-responsive {
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
        margin-bottom: 0.75rem;
    }

    /* Table Touch Targets */
    .table .btn-sm,
    .table .btn-icon {
        min-width: 32px;
        min-height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Fluid KPI numbers to prevent card clipping */
    .card-animate .fs-22,
    .card-animate h4,
    .card-animate h3 {
        font-size: clamp(1.05rem, 4.5vw, 1.35rem) !important;
    }

    /* Form Controls on Mobile */
    .form-control,
    .form-select {
        font-size: 0.9rem !important;
    }

    /* Action buttons wrapping */
    .d-flex.gap-2.flex-wrap-mobile {
        flex-wrap: wrap !important;
    }
}

/* Small Smartphone Screens (< 576px) */
@media (max-width: 575.98px) {
    .btn {
        font-size: 0.825rem !important;
    }

    .badge {
        font-size: 0.7rem !important;
    }

    /* Offcanvas bottom sheet refinement */
    .offcanvas-bottom {
        max-height: 75vh !important;
        border-top-left-radius: 16px !important;
        border-top-right-radius: 16px !important;
    }
}




