/* NilePOS Console UI convergence — NP-03 */
:root {
    --nile-blue-50: #eff6ff;
    --nile-blue-100: #dbeafe;
    --nile-blue-200: #bfdbfe;
    --nile-blue-300: #93c5fd;
    --nile-blue-400: #60a5fa;
    --nile-blue-500: #3b82f6;
    --nile-blue-600: #2563eb;
    --nile-blue-700: #1d4ed8;
    --nile-blue-800: #1e40af;
    --nile-blue-900: #1e3a8a;
    --nile-blue-950: #172554;
    --clr-primary: var(--dynamic-primary, var(--nile-blue-600));
    --secondary-color: var(--dynamic-secondary, var(--nile-blue-800));
    --sidebar-color: var(--dynamic-sidebar, var(--nile-blue-950));
    --clr-secondary: var(--nile-blue-800);
    --nile-surface: #ffffff;
    --nile-surface-muted: #f8fafc;
    --nile-border: #e2e8f0;
    --nile-text: #0f172a;
    --nile-text-muted: #64748b;
}

body { background: var(--nile-surface-muted); color: var(--nile-text); }
a { transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease; }

.side-bar {
    background: linear-gradient(180deg, var(--nile-blue-950) 0%, var(--nile-blue-900) 100%) !important;
    border-right: 1px solid rgba(147, 197, 253, .12);
    box-shadow: 10px 0 35px rgba(23, 37, 84, .14);
}
.side-bar-logo { border-bottom-color: rgba(191, 219, 254, .18) !important; padding: 18px 14px !important; }
.side-bar-logo img { height: 42px !important; max-width: 180px; object-fit: contain; }
.side-bar-manu li > a { border-radius: 9px; margin: 2px 10px; color: #dbeafe !important; }
.side-bar-manu li:hover > a,
.side-bar-manu li.active > a,
.side-bar-manu li .dropdown-menu li a:hover,
.side-bar-manu li .dropdown-menu li a.active {
    background: rgba(59, 130, 246, .18) !important;
    color: #fff !important;
}
.side-bar-manu li:hover:before,
.side-bar-manu li.active:before { background: var(--nile-blue-400) !important; }
.side-bar-manu .sidebar-icon svg path { fill: #bfdbfe; }
.side-bar-manu li.active .sidebar-icon svg path,
.side-bar-manu li:hover .sidebar-icon svg path { fill: #fff; }

.main-header-section {
    background: rgba(255,255,255,.97) !important;
    border-bottom: 1px solid var(--nile-border);
    box-shadow: 0 5px 24px rgba(15, 23, 42, .045) !important;
}
.main-header-section .btn-light { border: 1px solid var(--nile-border); background: #fff; }
.main-header-section .dropdown-menu { border: 1px solid var(--nile-border) !important; border-radius: 10px !important; box-shadow: 0 16px 40px rgba(15,23,42,.12) !important; overflow: hidden; }

.btn-primary,
.btn-custom-warning,
.bg-custom-primary,
.dropdown-item.active,
.dropdown-item:active,
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background: var(--nile-blue-600) !important;
    border-color: var(--nile-blue-600) !important;
    color: #fff !important;
}
.btn-primary:hover,
.btn-custom-warning:hover { background: var(--nile-blue-700) !important; border-color: var(--nile-blue-700) !important; }
.btn-outline-primary { border-color: var(--nile-blue-600) !important; color: var(--nile-blue-700) !important; }
.btn-outline-primary:hover { background: var(--nile-blue-600) !important; color: #fff !important; }
.text-custom-primary, .text-custom-primary:hover, .text-primary { color: var(--nile-blue-700) !important; }

.form-control:focus,
.form-select:focus,
select:focus,
textarea:focus,
.choices.is-focused .choices__inner,
.choices.is-open .choices__inner {
    border-color: var(--nile-blue-400) !important;
    box-shadow: 0 0 0 .2rem rgba(59, 130, 246, .12) !important;
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--nile-blue-600); }

.card,
.business-stat-container,
.dashboard-card,
.modal-content,
.table-responsive {
    border-color: var(--nile-border) !important;
}
.card, .business-stat-container { box-shadow: 0 8px 28px rgba(15, 23, 42, .05) !important; }
.card-header { border-bottom-color: var(--nile-border) !important; }
.table > :not(caption) > * > * { border-bottom-color: #edf2f7; }
.table thead th { color: #334155; background-color: #f8fafc; }

.badge.bg-primary, .badge-primary { background: var(--nile-blue-600) !important; }
.page-item.active .page-link { background: var(--nile-blue-600) !important; border-color: var(--nile-blue-600) !important; }
.page-link { color: var(--nile-blue-700); }
.progress-bar { background-color: var(--nile-blue-600); }

.mybazar-login-section { background: linear-gradient(135deg, #eff6ff 0%, #fff 52%, #dbeafe 100%); }
.mybazar-login-section .login-wrapper,
.mybazar-login-section .login-card { border-color: var(--nile-blue-100); box-shadow: 0 20px 60px rgba(30,64,175,.10); }

.alert-primary { color: var(--nile-blue-900); background: var(--nile-blue-50); border-color: var(--nile-blue-200); }

/* Prevent legacy brand pinks from resurfacing in common surfaces. */
.bg-pink, .bg-rose { background: var(--nile-blue-600) !important; }
.text-pink, .text-rose { color: var(--nile-blue-700) !important; }

@media (max-width: 991px) {
    .side-bar { box-shadow: 12px 0 36px rgba(23,37,84,.24); }
}

/* NilePOS sidebar label and icon normalization — NP-20F */
.side-bar-manu li > a {
    min-width: 0;
    white-space: nowrap !important;
    overflow: hidden;
}

.side-bar-manu li > a .sidebar-icon {
    display: inline-flex !important;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    margin-right: 10px !important;
}

.side-bar-manu li > a .sidebar-icon svg {
    display: block;
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px;
}

.side-bar-manu li > a .sidebar-icon i {
    margin: 0 !important;
    font-size: 18px;
    line-height: 1;
}

.side-bar-manu li > a .sidebar-label {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.side-bar-manu li.dropdown > a .sidebar-label {
    padding-right: 18px;
}

.side-bar.active:not(:hover) .side-bar-manu li > a .sidebar-label {
    opacity: 0;
}

