/* ==========================================================================
   OSPOS Modern Desktop ERP Design System
   Full-Width Edge-to-Edge Responsive Workspace Architecture
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --font-family: 'Cairo', 'Inter', system-ui, -apple-system, sans-serif;
    
    --shell-bg: #0f131c;
    --topbar-bg: #141923;
    --sidebar-bg: #171d28;
    --rail-bg: #11151f;
    --canvas-bg: #0f131c;
    
    --tile-bg: #181e2b;
    --tile-hover: #1f2737;
    
    --primary: #4f46e5;
    --text-light: #f1f5f9;
    --text-muted: #94a3b8;
    --border-dark: rgba(255, 255, 255, 0.08);
    
    --radius-tile: 20px;
    --radius-sm: 8px;
    --radius-md: 12px;
}

/* ==========================================================================
   Base Page & Layout Shell
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    font-family: var(--font-family) !important;
    background-color: #0f131c !important;
    color: #f1f5f9 !important;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.pos-desktop-shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background: #0f131c;
}

/* ==========================================================================
   Top Application Bar
   ========================================================================== */
.pos-topbar {
    height: 52px;
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--border-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    flex-shrink: 0;
    z-index: 1000;
}

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

.top-ctrl-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 13px;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    position: relative;
}

.top-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.btn-close-app:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
}

.top-ctrl-btn.has-overdue-alert {
    color: #f87171 !important;
}

.bell-counter-bubble {
    position: absolute;
    top: -2px;
    right: -3px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
    animation: pulseWarn 1.8s infinite;
}

@keyframes pulseWarn {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.topbar-clock-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-family: monospace;
    font-size: 12.5px;
    color: #f8fafc;
    font-weight: 600;
}

.clock-ring-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.topbar-center-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
}

.pos-tab-item {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 8px;
    color: #94a3b8;
    text-decoration: none !important;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.2s;
}

.pos-tab-item:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.05);
}

.pos-tab-item.active {
    background: #ffffff;
    color: #0f172a !important;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.topbar-quick-invoice-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
    color: #ffffff !important;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
    margin-right: 8px;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.35);
    transition: all 0.2s;
}

.topbar-quick-invoice-btn:hover,
.topbar-quick-invoice-btn.active {
    background: linear-gradient(135deg, #0369a1 0%, #0891b2 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.5);
}

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

.topbar-brand-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-lion-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.45));
}

.topbar-company-title {
    color: #f1f5f9;
    font-weight: 800;
    font-size: 14.5px;
}

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

.user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.user-role-tag {
    background: #ea580c;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 8px;
    margin-bottom: 2px;
}

.user-full-name {
    color: #e2e8f0 !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}

.user-avatar-badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Application Frame & Navigation
   ========================================================================== */
.pos-app-frame {
    display: flex;
    flex: 1;
    height: calc(100vh - 52px);
    overflow: hidden;
    background: #0f131c !important;
}

/* Right Sidebar */
.pos-right-sidebar {
    width: 210px;
    background: var(--sidebar-bg);
    border-left: 1px solid var(--border-dark);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: width 0.25s ease;
    overflow-y: auto;
    z-index: 100;
}

.pos-right-sidebar.collapsed {
    width: 58px;
}

.pos-right-sidebar.collapsed .menu-label,
.pos-right-sidebar.collapsed .sidebar-title-badge,
.pos-right-sidebar.collapsed .invoice-btn-text {
    display: none;
}

.pos-right-sidebar.collapsed .sidebar-top-action {
    padding: 8px 6px;
}

.pos-right-sidebar.collapsed .btn-create-invoice {
    padding: 8px;
    justify-content: center;
}

.sidebar-header {
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-dark);
}

.sidebar-title-badge {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 700;
}

.sidebar-hamburger {
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.sidebar-hamburger:hover {
    color: #38bdf8;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-top-action {
    padding: 10px 10px 12px;
    border-bottom: 1px solid var(--border-dark);
}

.btn-create-invoice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
    border-radius: var(--radius-md);
    padding: 9px 12px;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
    transition: all 0.2s ease;
}

.btn-create-invoice:hover,
.btn-create-invoice.active {
    background: linear-gradient(135deg, #0369a1 0%, #0891b2 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(6, 182, 212, 0.45);
}

.invoice-btn-icon {
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.invoice-btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.invoice-main-title {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
}

.invoice-sub-title {
    font-size: 10px;
    color: #cffafe;
    font-weight: 600;
}

.sidebar-menu-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.sidebar-menu-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    color: #cbd5e1;
    text-decoration: none !important;
    font-size: 13.5px;
    font-weight: 600;
    border-right: 3px solid transparent;
    transition: all 0.2s;
}

.sidebar-menu-list li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #38bdf8;
    border-right-color: #38bdf8;
}

.sidebar-menu-list li.active a {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border-right-color: #38bdf8;
    font-weight: 800;
}

.menu-label {
    display: flex;
    align-items: center;
}

.sidebar-overdue-pill {
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 10px;
    margin-right: 6px;
}

.menu-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
}

.menu-icon-wrap img {
    width: 18px;
    height: 18px;
    filter: brightness(0.95);
}

/* Left Quick Tool Rail */
.pos-left-rail {
    display: none !important;
    width: 0 !important;
}

.rail-tool-item {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s;
}

.rail-tool-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: scale(1.08);
}

.rail-logout {
    margin-top: auto;
    color: #ef4444;
}

.rail-logout:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Full-Width Main Content Workspace (التمدد الكامل بكافة التبويبات)
   ========================================================================== */
.pos-center-workspace {
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background: #0f131c !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
}

.pos-canvas-card {
    flex: 1 0 auto;
    width: 100% !important;
    min-height: 100% !important;
    background: #141923 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 22px 28px 36px 28px !important;
    display: block !important;
    box-sizing: border-box !important;
    color: #f1f5f9 !important;
}

.pos-canvas-card::after {
    content: "";
    display: table;
    clear: both;
}

.pos-canvas-footer {
    text-align: center;
    padding: 24px 0 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 36px;
    clear: both;
    width: 100%;
}

.copyright-text {
    font-size: 12.5px;
    font-weight: 700;
    color: #64748b;
}

/* ==========================================================================
   MODULE TOPBAR & HEADER BANNER (ترويسة الأقسام)
   ========================================================================== */
.pos-module-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    gap: 14px;
}

.module-title-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.module-title-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}

.module-title-meta h1 {
    font-size: 20px;
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 4px;
    line-height: 1.2;
}

.module-title-meta p {
    font-size: 12.5px;
    color: #94a3b8;
    margin: 0;
}

.module-actions-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

#title_bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 12px;
}

.action-btn-primary,
#title_bar .btn-primary,
#title_bar .btn-info {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    padding: 9px 18px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
    transition: all .2s !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.action-btn-primary:hover,
#title_bar .btn-primary:hover,
#title_bar .btn-info:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45) !important;
    background: linear-gradient(135deg, #059669, #047857) !important;
    color: #ffffff !important;
}

.action-btn-glass,
#title_bar .btn-default {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #f1f5f9 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 9px 16px !important;
    border-radius: 10px !important;
    transition: all .2s !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.action-btn-glass:hover,
#title_bar .btn-default:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* ==========================================================================
   TOOLBAR & FILTER CONTROLS (شريط الأدوات والفلترة)
   ========================================================================== */
#toolbar {
    margin-bottom: 16px;
    width: 100%;
}

#toolbar .btn-toolbar,
#toolbar .form-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

#toolbar #delete {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    border: 1px solid #ef4444 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    border-radius: 9px !important;
    padding: 8px 16px !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
}

#toolbar #delete:hover:not(:disabled) {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.55) !important;
    transform: translateY(-1px);
}

#toolbar #bulk_edit {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    border: 1px solid #f59e0b !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    border-radius: 9px !important;
    padding: 8px 16px !important;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.4) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
}

#toolbar #bulk_edit:hover:not(:disabled) {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.55) !important;
    transform: translateY(-1px);
}

#toolbar #generate_barcodes {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
    border: 1px solid #8b5cf6 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    border-radius: 9px !important;
    padding: 8px 16px !important;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
}

#toolbar #generate_barcodes:hover:not(:disabled) {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.55) !important;
    transform: translateY(-1px);
}

#toolbar #email {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    border: 1px solid #38bdf8 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    border-radius: 9px !important;
    padding: 8px 16px !important;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
}

#toolbar #email:hover:not(:disabled) {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.55) !important;
    transform: translateY(-1px);
}

#toolbar button:disabled,
#toolbar button[disabled] {
    opacity: 0.38 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
    filter: grayscale(0.7) !important;
}

/* Date Range Picker & Filter inputs in Toolbar */
#daterangepicker,
#toolbar input.form-control {
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #f8fafc !important;
    border-radius: 10px !important;
    height: 38px !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
}

.bootstrap-select > .btn.btn-default {
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #f8fafc !important;
    border-radius: 10px !important;
    height: 38px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
}

.bootstrap-select > .btn.btn-default:hover,
.bootstrap-select > .btn.btn-default:focus {
    background: #27354f !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
}

.bootstrap-select .dropdown-menu {
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
    border-radius: 10px !important;
}

.bootstrap-select .dropdown-menu li a {
    color: #cbd5e1 !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
}

.bootstrap-select .dropdown-menu li a:hover,
.bootstrap-select .dropdown-menu li.selected a {
    background: rgba(56, 189, 248, 0.15) !important;
    color: #38bdf8 !important;
}

/* ==========================================================================
   DATA TABLES (جداول الأصناف، المجموعات، والموردين)
   ========================================================================== */
.bootstrap-table .fixed-table-toolbar {
    margin-bottom: 12px !important;
}

.bootstrap-table .fixed-table-toolbar .search input {
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    height: 38px !important;
    padding: 8px 16px !important;
    font-size: 13.5px !important;
    box-shadow: none !important;
    transition: all .2s !important;
}

.bootstrap-table .fixed-table-toolbar .search input:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25) !important;
    background: #24334d !important;
}

.bootstrap-table .fixed-table-toolbar .columns-right button {
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #cbd5e1 !important;
    border-radius: 8px !important;
    height: 38px !important;
}

#table_holder {
    width: 100% !important;
    clear: both;
    margin-top: 12px;
    background: transparent !important;
}

.bootstrap-table {
    width: 100% !important;
    background: #0f172a !important;
}

.bootstrap-table .fixed-table-container {
    border: 1px solid #24344d !important;
    border-radius: 14px !important;
    background-color: #0f172a !important;
    background: #0f172a !important;
    width: 100% !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

.bootstrap-table .fixed-table-header {
    background-color: #0b1120 !important;
    background: #0b1120 !important;
}

.bootstrap-table .fixed-table-body {
    background-color: #0f172a !important;
    background: #0f172a !important;
}

.bootstrap-table .fixed-table-container .table,
.bootstrap-table .table,
.table-striped,
.table-bordered {
    width: 100% !important;
    margin-bottom: 0 !important;
    background-color: #0f172a !important;
    background: #0f172a !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: none !important;
}

/* ── TABLE HEADERS (ترويسة الجدول باللون الأزرق المضيء عالي التباين) ── */
.bootstrap-table .fixed-table-container .table thead,
.bootstrap-table .fixed-table-container .table thead th,
.bootstrap-table .fixed-table-container .table thead th .th-inner,
.bootstrap-table .table > thead > tr > th,
.table > thead > tr > th,
.table thead th {
    background-color: #0b1120 !important;
    background: #0b1120 !important;
    color: #38bdf8 !important; /* Sky Blue - Ultra sharp contrast */
    font-weight: 800 !important;
    font-size: 13.5px !important;
    border-bottom: 2px solid #2563eb !important;
    border-top: none !important;
    border-left: 1px solid #1e293b !important;
    border-right: 1px solid #1e293b !important;
    padding: 13px 14px !important;
    white-space: nowrap !important;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.bootstrap-table .fixed-table-container .table thead th .th-inner,
.bootstrap-table .fixed-table-container .table thead th a,
.bootstrap-table .fixed-table-container .table thead th .sortable {
    color: #38bdf8 !important;
    font-weight: 800 !important;
}

/* ── TABLE ROWS & CELLS (خلفية داكنة ثابتة ونص أبيض فاقع يمنع الأبيض على الأبيض) ── */
/* ODD ROWS */
.bootstrap-table .fixed-table-container .table tbody tr,
.bootstrap-table .fixed-table-container .table tbody tr:nth-of-type(odd),
.bootstrap-table .fixed-table-container .table tbody tr:nth-child(odd),
.bootstrap-table .table > tbody > tr:nth-of-type(odd),
.table-striped > tbody > tr:nth-of-type(odd),
.table-striped > tbody > tr:nth-child(odd),
.table > tbody > tr:nth-of-type(odd),
.table > tbody > tr:nth-child(odd),
.bootstrap-table .table tbody tr:nth-child(odd) td,
.bootstrap-table .fixed-table-container .table tbody tr:nth-child(odd) td,
.table-striped > tbody > tr:nth-of-type(odd) > td,
.table-striped > tbody > tr:nth-of-type(odd) > th,
.table > tbody > tr > td {
    background-color: #111a2e !important;
    background: #111a2e !important;
    color: #ffffff !important;
}

/* EVEN ROWS */
.bootstrap-table .fixed-table-container .table tbody tr:nth-of-type(even),
.bootstrap-table .fixed-table-container .table tbody tr:nth-child(even),
.bootstrap-table .table > tbody > tr:nth-of-type(even),
.table-striped > tbody > tr:nth-of-type(even),
.table-striped > tbody > tr:nth-child(even),
.table > tbody > tr:nth-of-type(even),
.table > tbody > tr:nth-child(even),
.bootstrap-table .table tbody tr:nth-child(even) td,
.bootstrap-table .fixed-table-container .table tbody tr:nth-child(even) td,
.table-striped > tbody > tr:nth-of-type(even) > td,
.table-striped > tbody > tr:nth-of-type(even) > th {
    background-color: #17223b !important;
    background: #17223b !important;
    color: #ffffff !important;
}

/* HOVER ROWS */
.bootstrap-table .fixed-table-container .table tbody tr:hover,
.bootstrap-table .fixed-table-container .table tbody tr:hover td,
.bootstrap-table .table > tbody > tr:hover,
.bootstrap-table .table > tbody > tr:hover > td,
.table-hover > tbody > tr:hover,
.table-hover > tbody > tr:hover > td,
.table > tbody > tr:hover > td {
    background-color: #203152 !important;
    background: #203152 !important;
    color: #ffffff !important;
}

/* SELECTED ROWS */
.bootstrap-table .fixed-table-container .table tbody tr.selected,
.bootstrap-table .fixed-table-container .table tbody tr.selected td,
.bootstrap-table .table > tbody > tr.selected,
.bootstrap-table .table > tbody > tr.selected > td,
.table > tbody > tr.selected > td {
    background-color: #1d3c6e !important;
    background: #1d3c6e !important;
    color: #ffffff !important;
}

/* ALL TABLE DATA CELLS (td) */
.bootstrap-table .fixed-table-container .table tbody td,
.bootstrap-table .table tbody td,
.table > tbody > tr > td,
.table tbody td {
    padding: 12px 14px !important;
    vertical-align: middle !important;
    border-top: 1px solid #1f2e47 !important;
    border-bottom: 1px solid #1f2e47 !important;
    border-left: 1px solid #1a273d !important;
    border-right: 1px solid #1a273d !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    -webkit-font-smoothing: antialiased;
}

/* Table Text Links */
.bootstrap-table .table tbody td a:not(.btn):not(.modal-dlg) {
    color: #60a5fa !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}
.bootstrap-table .table tbody td a:not(.btn):not(.modal-dlg):hover {
    color: #93c5fd !important;
    text-decoration: underline !important;
}

/* Table Checkboxes */
.bootstrap-table .table tbody td input[type="checkbox"],
.bootstrap-table .table thead th input[type="checkbox"],
.table input[type="checkbox"] {
    width: 17px !important;
    height: 17px !important;
    cursor: pointer !important;
    accent-color: #2563eb !important;
}

/* Action Icons inside Tables */
.bootstrap-table .fixed-table-container .table tbody td a.modal-dlg,
.bootstrap-table .fixed-table-container .table tbody td a[href*="inventory"],
.bootstrap-table .fixed-table-container .table tbody td a[href*="delete"],
.bootstrap-table .fixed-table-container .table tbody td a[href*="generateBarcodes"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    margin: 0 3px !important;
    text-decoration: none !important;
    transition: all .2s !important;
    font-size: 13.5px !important;
}

/* Edit Icon */
.bootstrap-table .table tbody td a.modal-dlg[href*="view"],
.bootstrap-table .table tbody td a.modal-dlg[href*="items/view"] {
    background: rgba(59, 130, 246, 0.25) !important;
    color: #93c5fd !important;
    border: 1px solid #3b82f6 !important;
}
.bootstrap-table .table tbody td a.modal-dlg[href*="view"]:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5) !important;
}

/* Inventory adjustment icon */
.bootstrap-table .table tbody td a[href*="inventory"] {
    background: rgba(245, 158, 11, 0.25) !important;
    color: #fde047 !important;
    border: 1px solid #f59e0b !important;
}
.bootstrap-table .table tbody td a[href*="inventory"]:hover {
    background: #d97706 !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5) !important;
}

/* Delete icon in table */
.bootstrap-table .table tbody td a[href*="delete"] {
    background: rgba(239, 68, 68, 0.25) !important;
    color: #fca5a5 !important;
    border: 1px solid #ef4444 !important;
}
.bootstrap-table .table tbody td a[href*="delete"]:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.5) !important;
}

/* Pagination Bar */
.bootstrap-table .fixed-table-pagination {
    background: #0b1120 !important;
    border-top: 1px solid #1f2e47 !important;
    padding: 14px 18px !important;
    margin-top: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
}

.bootstrap-table .fixed-table-pagination .pagination-detail {
    color: #e2e8f0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

.bootstrap-table .fixed-table-pagination .pagination-detail .page-list .btn-group .btn {
    background: #111a2e !important;
    border: 1px solid #2d3f5e !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
}

.bootstrap-table .fixed-table-pagination .pagination {
    margin: 0 !important;
}

.bootstrap-table .fixed-table-pagination .pagination ul li a,
.bootstrap-table .fixed-table-pagination .pagination .page-item .page-link {
    color: #ffffff !important;
    background: #111a2e !important;
    border: 1px solid #2d3f5e !important;
    border-radius: 8px !important;
    margin: 0 3px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    padding: 7px 14px !important;
    transition: all 0.2s ease !important;
}

.bootstrap-table .fixed-table-pagination .pagination ul li a:hover,
.bootstrap-table .fixed-table-pagination .pagination .page-item .page-link:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
}

.bootstrap-table .fixed-table-pagination .pagination ul li.active a,
.bootstrap-table .fixed-table-pagination .pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5) !important;
}

/* ==========================================================================
   MODAL DIALOGS & POPUPS (النوافذ المنبثقة للأصناف والموردين)
   ========================================================================== */
.bootstrap-dialog .modal-dialog,
.modal-dialog {
    border-radius: 18px !important;
}

.bootstrap-dialog .modal-content,
.modal-content {
    background: #172033 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 18px !important;
    color: #f8fafc !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75) !important;
    overflow: hidden !important;
}

.bootstrap-dialog .modal-header,
.modal-header {
    background: #0f172a !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 18px 24px !important;
    color: #f8fafc !important;
}

.bootstrap-dialog .modal-header .bootstrap-dialog-title,
.modal-header .modal-title {
    font-size: 16.5px !important;
    font-weight: 800 !important;
    color: #f8fafc !important;
}

.bootstrap-dialog .modal-header .bootstrap-dialog-close-button .close,
.modal-header .close {
    color: #94a3b8 !important;
    opacity: 0.8 !important;
    font-size: 22px !important;
    text-shadow: none !important;
    transition: color .2s !important;
}

.bootstrap-dialog .modal-header .bootstrap-dialog-close-button .close:hover,
.modal-header .close:hover {
    color: #ef4444 !important;
    opacity: 1 !important;
}

.bootstrap-dialog .modal-body,
.modal-body {
    padding: 24px !important;
    color: #e2e8f0 !important;
    background: #172033 !important;
}

.bootstrap-dialog .modal-footer,
.modal-footer {
    background: #0f172a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 16px 24px !important;
}

.bootstrap-dialog .modal-footer .btn-primary,
.modal-footer .btn-primary {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    padding: 10px 22px !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
    cursor: pointer !important;
    transition: all .2s !important;
}

.bootstrap-dialog .modal-footer .btn-primary:hover,
.modal-footer .btn-primary:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45) !important;
}

.bootstrap-dialog .modal-footer .btn-default,
.modal-footer .btn-default {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 10px 18px !important;
    cursor: pointer !important;
    transition: all .2s !important;
}

.bootstrap-dialog .modal-footer .btn-default:hover,
.modal-footer .btn-default:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

.modal-body label.control-label {
    color: #cbd5e1 !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-align: right !important;
}

.modal-body .form-control {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    height: 38px !important;
    font-size: 13.5px !important;
    transition: all .2s !important;
}

.modal-body .form-control:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25) !important;
    background: #1e2d45 !important;
    outline: none !important;
}

.modal-body textarea.form-control {
    height: auto !important;
    min-height: 80px !important;
}

.modal-body .input-group-addon {
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #94a3b8 !important;
    border-radius: 8px !important;
}

.modal-body select.form-control {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
}

.modal-body .fileinput .thumbnail {
    background: #0f172a !important;
    border: 1px dashed rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px !important;
}

.modal-body input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #38bdf8;
    cursor: pointer;
}

.modal-body label.text-danger.required {
    color: #f87171 !important;
}

.modal-footer {
    background: #0f172a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 16px 24px !important;
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    padding: 10px 22px !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
}

.modal-footer .btn-default {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 10px 18px !important;
}

#required_fields_message {
    color: #94a3b8;
    font-size: 12px;
    margin-bottom: 14px;
}

/* ==========================================================================
   RECEIVINGS / INVENTORY / STORE (المخزن واستلام البضاعة)
   ========================================================================== */
.pos-receiving-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
    margin-top: 10px;
}

.pos-receiving-layout #register_wrapper {
    flex: 1 1 70%;
    min-width: 0;
}

.pos-receiving-layout #overall_sale {
    flex: 0 0 30%;
    min-width: 320px;
    max-width: 400px;
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 20px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

@media (max-width: 1100px) {
    .pos-receiving-layout {
        flex-direction: column;
    }
    .pos-receiving-layout #overall_sale {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
    }
}

/* Mode Form (استلام / إرجاع / مناقلة) */
.pos-receiving-layout #mode_form {
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    padding: 12px 18px !important;
    margin-bottom: 14px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
}

.pos-receiving-layout #mode_form .panel-body {
    padding: 0 !important;
    margin: 0 !important;
}

.pos-receiving-layout #mode_form ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.pos-receiving-layout #mode_form label.control-label {
    color: #94a3b8 !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Add Item & Scanner Form */
.pos-receiving-layout #add_item_form {
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    padding: 12px 18px !important;
    margin-bottom: 16px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
}

.pos-receiving-layout #add_item_form .panel-body {
    padding: 0 !important;
    margin: 0 !important;
}

.pos-receiving-layout #add_item_form ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}

.pos-receiving-layout #add_item_form label {
    color: #93c5fd !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    margin: 0 !important;
    white-space: nowrap;
}

.pos-receiving-layout #add_item_form #item {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    height: 40px !important;
    min-width: 320px;
    transition: all .2s !important;
}

.pos-receiving-layout #add_item_form #item:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25) !important;
    background: #172033 !important;
}

.pos-receiving-layout #new_item_button {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 9px !important;
    padding: 9px 16px !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35) !important;
}

/* Cart Table in Receivings */
.pos-receiving-layout table#register {
    width: 100% !important;
    background: #0f172a !important;
    border: 1px solid #24344d !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.pos-receiving-layout table#register thead th {
    background: #0b1120 !important;
    color: #38bdf8 !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    padding: 13px 12px !important;
    border-bottom: 2px solid #2563eb !important;
    text-align: center !important;
    letter-spacing: 0.3px;
}

.pos-receiving-layout table#register tbody tr,
.pos-receiving-layout table#register tbody tr:nth-of-type(odd) td {
    background: #111a2e !important;
    color: #ffffff !important;
}

.pos-receiving-layout table#register tbody tr:nth-of-type(even) td {
    background: #17223b !important;
    color: #ffffff !important;
}

.pos-receiving-layout table#register tbody tr:hover td {
    background: #203152 !important;
    color: #ffffff !important;
}

.pos-receiving-layout table#register tbody td {
    border-top: 1px solid #1f2e47 !important;
    border-bottom: 1px solid #1f2e47 !important;
    padding: 12px 10px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    vertical-align: middle !important;
    text-align: center !important;
    color: #ffffff !important;
}

.pos-receiving-layout table#register input.form-control {
    background: #090e18 !important;
    border: 1.5px solid #2d3f5e !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    text-align: center !important;
    font-weight: 700 !important;
    height: 38px !important;
    font-size: 14px !important;
}

.pos-receiving-layout table#register input.form-control:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.3) !important;
    background: #0f172a !important;
}

.pos-receiving-layout table#register select.form-control {
    background: #090e18 !important;
    border: 1.5px solid #2d3f5e !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    height: 38px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.pos-receiving-layout table#register a[href*="deleteItem"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    background: rgba(239, 68, 68, 0.25) !important;
    color: #fca5a5 !important;
    border: 1px solid #ef4444 !important;
    transition: all .2s !important;
}

.pos-receiving-layout table#register a[href*="deleteItem"]:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.5) !important;
}

/* Receivings Summary Panel (#overall_sale) */
.pos-receiving-layout #overall_sale .panel-body {
    padding: 0 !important;
}

.pos-receiving-layout #overall_sale #select_customer {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pos-receiving-layout #overall_sale #supplier_label {
    display: block;
    color: #93c5fd;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 8px !important;
}

.pos-receiving-layout #overall_sale #supplier {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-radius: 9px !important;
    padding: 8px 12px !important;
    height: 38px !important;
    margin-bottom: 10px;
}

.pos-receiving-layout #overall_sale #new_supplier_button {
    background: linear-gradient(135deg, #ca8a04, #eab308) !important;
    border: none !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
    width: 100% !important;
}

.pos-receiving-layout #overall_sale #sale_totals {
    width: 100% !important;
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    margin-bottom: 16px !important;
}

.pos-receiving-layout #overall_sale #sale_totals th {
    font-size: 18px !important;
    font-weight: 900 !important;
    color: #34d399 !important;
    border: none !important;
    padding: 6px 4px !important;
}

.pos-receiving-layout #overall_sale #comment {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    margin-bottom: 14px;
    font-size: 12.5px !important;
}

.pos-receiving-layout #finish_receiving_button {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    padding: 12px 18px !important;
    width: 100% !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35) !important;
    cursor: pointer !important;
    transition: all .2s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 10px;
}

.pos-receiving-layout #finish_receiving_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.45) !important;
}

.pos-receiving-layout #cancel_receiving_button {
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    color: #fca5a5 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    padding: 10px 16px !important;
    width: 100% !important;
    cursor: pointer !important;
    margin-top: 8px;
    text-align: center !important;
}

.pos-receiving-layout #cancel_receiving_button:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Home Dashboard Stage
   ========================================================================== */
.pos-home-center-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 150px);
    width: 100%;
    padding: 24px 10px;
}

.pos-action-tiles-grid {
    display: grid;
    grid-template-columns: repeat(5, 140px);
    gap: 18px;
    justify-content: center;
}

.pos-action-tile {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-tile);
    background: #181e2b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pos-action-tile:hover {
    transform: translateY(-6px) scale(1.03);
    background: #202737;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.5);
}

.tile-icon-box {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.pos-action-tile:hover .tile-icon-box {
    transform: scale(1.15);
}

.tile-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #f1f5f9;
    letter-spacing: -0.2px;
    text-align: center;
}

.tile-cyan   { color: #06b6d4; }
.tile-teal   { color: #14b8a6; }
.tile-purple { color: #8b5cf6; }
.tile-orange { color: #f97316; }
.tile-pink   { color: #ec4899; }
.tile-amber  { color: #f59e0b; }
.tile-red    { color: #f43f5e; }
.tile-yellow  { color: #eab308; }
.tile-emerald { color: #10b981; }
.tile-indigo  { color: #6366f1; }

/* Unified Notification Center Dropdown */
.pos-notif-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 310px;
    background: #182030;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
    z-index: 9999;
    padding: 0;
    overflow: hidden;
    color: #e2e8f0;
    font-size: 13px;
    text-align: right;
    direction: rtl;
    animation: fadeInDown 0.15s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.pos-notif-header {
    padding: 12px 16px;
    background: #0f1420;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    font-size: 13.5px;
}

.pos-notif-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
}

.pos-notif-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    color: #cbd5e1;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.18s;
}

.pos-notif-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.pos-notif-badge {
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.badge-danger-glow {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.badge-warning-glow {
    background: #f59e0b;
    color: #0f172a;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.badge-info-glow {
    background: #06b6d4;
    color: #042f2e;
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

.pos-notif-footer {
    background: #0f1420;
    padding: 10px 14px;
    display: flex;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pos-notif-footer-btn {
    flex: 1;
    text-align: center;
    padding: 7px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    color: #cbd5e1;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pos-notif-footer-btn:hover {
    background: var(--gold-primary);
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(212, 160, 23, 0.3);
}

.pos-tile-with-badge {
    position: relative;
}

.home-tile-alert-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ef4444;
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
    animation: pulseWarn 2s infinite;
}

/* ==========================================================================
   Debts Module
   ========================================================================== */
.pos-debts-module-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

.debts-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
}

@media (max-width: 1200px) {
    .debts-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .debts-stats-grid { grid-template-columns: 1fr; }
}

.debt-stat-card {
    background: #131b2e !important;
    border-radius: 14px !important;
    border: 1px solid #233148 !important;
    padding: 16px 18px !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.debt-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    border-color: #38bdf8 !important;
}

.stat-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-balance { background: rgba(239, 68, 68, 0.2) !important; color: #f87171 !important; border: 1px solid rgba(239, 68, 68, 0.35) !important; }
.icon-overdue { background: rgba(249, 115, 22, 0.2) !important; color: #fb923c !important; border: 1px solid rgba(249, 115, 22, 0.35) !important; }
.icon-paid    { background: rgba(16, 185, 129, 0.2) !important; color: #34d399 !important; border: 1px solid rgba(16, 185, 129, 0.35) !important; }
.icon-total   { background: rgba(56, 189, 248, 0.2) !important; color: #38bdf8 !important; border: 1px solid rgba(56, 189, 248, 0.35) !important; }

.card-overdue.is-active-alert {
    border: 1.5px solid #ef4444 !important;
    background: linear-gradient(135deg, #1e1320 0%, #2b1318 100%) !important;
    box-shadow: 0 4px 18px rgba(239, 68, 68, 0.3) !important;
}

.stat-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-label {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    margin-bottom: 2px;
}

.stat-value {
    font-size: 20px !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    line-height: 1.2;
}

.stat-value.stat-danger { color: #f87171 !important; text-shadow: 0 0 10px rgba(248, 113, 113, 0.3); }
.stat-value.stat-success { color: #34d399 !important; text-shadow: 0 0 10px rgba(52, 211, 153, 0.3); }

.stat-value-group {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.stat-sub {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
}

.debts-overdue-alert-banner {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2) 0%, rgba(185, 28, 28, 0.25) 100%) !important;
    border: 1.5px solid #ef4444 !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3) !important;
    width: 100%;
}

.alert-icon-ring {
    font-size: 24px;
    animation: bellShake 2.5s infinite;
}

@keyframes bellShake {
    0%, 100% { transform: rotate(0); }
    10%, 30% { transform: rotate(-15deg); }
    20%, 40% { transform: rotate(15deg); }
    50% { transform: rotate(0); }
}

.alert-content {
    flex: 1;
    font-size: 13.5px;
    color: #fecaca !important;
    line-height: 1.5;
}

.alert-content strong,
.alert-content b {
    color: #ffffff !important;
    font-weight: 800 !important;
}

.btn-alert-filter {
    background: #dc2626 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 12.5px;
    padding: 8px 16px;
    border-radius: 8px;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4) !important;
}

.btn-alert-filter:hover {
    background: #ef4444 !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.6) !important;
}

.debts-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
}

.debts-filter-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 8px 18px !important;
    border-radius: 20px !important;
    background: #141d2e !important;
    color: #cbd5e1 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    border: 1px solid #233148 !important;
    transition: all 0.2s ease;
}

.filter-pill:hover {
    background: #1c273d !important;
    color: #ffffff !important;
    border-color: #38bdf8 !important;
}

.filter-pill.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.5) !important;
}

.filter-pill.pill-overdue.active {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    border-color: #ef4444 !important;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.5) !important;
}

.debts-actions-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.debts-search-box {
    position: relative;
    min-width: 260px;
}

.search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.debts-search-input {
    width: 100%;
    padding: 9px 38px 9px 16px !important;
    border-radius: 10px !important;
    border: 1.5px solid #2d3f5e !important;
    background: #0d1524 !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    outline: none;
    transition: border-color 0.2s ease;
}

.debts-search-input:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
    background: #111d33 !important;
}

.debts-search-btn {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.debts-search-clear {
    position: absolute;
    left: 10px;
    color: #94a3b8;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: bold;
}

.btn-add-new-debt {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 10px !important;
    font-weight: 800 !important;
    font-size: 13.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35) !important;
    transition: all 0.2s ease;
}

.btn-add-new-debt:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5) !important;
}

.debts-table-card {
    background: #0f172a !important;
    border-radius: 14px !important;
    border: 1px solid #24344d !important;
    overflow: hidden !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35) !important;
    width: 100%;
}

.debts-table {
    margin-bottom: 0 !important;
    font-size: 13.5px !important;
    width: 100% !important;
    background: #0f172a !important;
    border-collapse: separate !important;
}

.debts-table thead th {
    background: #0b1120 !important;
    color: #38bdf8 !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    border-bottom: 2px solid #2563eb !important;
    padding: 13px 14px !important;
    white-space: nowrap !important;
    letter-spacing: 0.3px;
}

.debts-table tbody tr {
    background: #111a2e !important;
    transition: background-color 0.15s ease;
}

.debts-table tbody tr:nth-of-type(even) {
    background: #17223b !important;
}

.debts-table tbody tr:hover {
    background: #203152 !important;
}

.debts-table tbody tr.row-overdue {
    background: rgba(220, 38, 38, 0.2) !important;
    border-left: 3px solid #ef4444 !important;
}

.debts-table tbody td {
    padding: 12px 14px !important;
    vertical-align: middle !important;
    border-top: 1px solid #1f2e47 !important;
    border-bottom: 1px solid #1f2e47 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

.customer-info-box {
    display: flex;
    flex-direction: column;
}

.customer-name-text {
    font-weight: 800 !important;
    color: #ffffff !important;
    font-size: 14px !important;
}

.customer-city-sub {
    font-size: 11px !important;
    color: #94a3b8 !important;
}

.phone-actions-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.phone-number-val {
    font-weight: 700 !important;
    color: #38bdf8 !important;
    font-family: monospace;
}

.phone-icons-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-phone-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-wa {
    background: #25D366;
    color: #ffffff !important;
}

.btn-wa:hover {
    background: #1eb857;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.4);
}

.btn-copy-msg {
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
}

.btn-copy-msg:hover {
    background: #334155;
    color: #ffffff;
}

.balance-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 13.5px;
}

.balance-overdue { background: rgba(220, 38, 38, 0.25) !important; color: #fca5a5 !important; border: 1px solid #ef4444 !important; }
.balance-pending { background: rgba(217, 119, 6, 0.25) !important; color: #fde68a !important; border: 1px solid #f59e0b !important; }
.balance-zero    { background: rgba(100, 116, 139, 0.25) !important; color: #cbd5e1 !important; border: 1px solid #64748b !important; }

.debt-date-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.date-str {
    font-weight: 600;
    color: #475569;
}

.days-badge {
    font-size: 10.5px;
    font-weight: 800;
    display: inline-block;
}

.badge-neutral { color: #64748b; }
.badge-danger-pulse {
    color: #dc2626;
    font-weight: 900;
    animation: pulseWarn 2s infinite;
}

.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 800;
    white-space: nowrap;
}

.badge-unpaid  { background: #fee2e2; color: #b91c1c; }
.badge-partial { background: #ffedd5; color: #c2410c; }
.badge-paid    { background: #dcfce7; color: #15803d; }

.notes-preview-text {
    display: inline-block;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #64748b;
}

.table-actions-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-action-tbl {
    padding: 5px 10px;
    border-radius: 7px;
    border: none;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-pay-now {
    background: #4f46e5;
    color: #ffffff;
}

.btn-pay-now:hover {
    background: #4338ca;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
}

.btn-history {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.btn-del {
    background: #fee2e2;
    color: #dc2626;
}

.debts-modal-card {
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.payment-target-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 14px;
}

.pay-balance-wrap {
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
}

.pay-balance-text {
    color: #dc2626;
    font-size: 15px;
}

.history-summary-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    font-size: 13px;
}

/* ==========================================================================
   Sales POS Screen (Register) Layout
   ========================================================================== */
#register_wrapper {
    width: 100% !important;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

#sale_register {
    flex: 1 1 58%;
    min-width: 320px;
}

#overall_sale {
    flex: 1 1 38%;
    min-width: 300px;
}

/* ==========================================================================
   Receipt View Screen Styling
   ========================================================================== */
.pos-receipt-actions-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.pos-btn-receipt-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.pos-btn-receipt-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#receipt_wrapper {
    background: #ffffff;
    max-width: 440px;
    margin: 0 auto 30px auto;
    padding: 26px 22px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.07);
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    color: #1e293b;
    box-sizing: border-box;
}

#receipt_header {
    text-align: center;
    margin-bottom: 16px;
    border-bottom: 1.5px dashed #cbd5e1;
    padding-bottom: 14px;
}

.receipt-branding-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 auto 10px auto;
    padding: 0 4px;
}

.receipt-logo-cell,
.receipt-qr-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.receipt-header-img,
#receipt_header #image {
    max-height: 72px;
    max-width: 95px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.receipt-header-qr,
#receipt_header #receipt_qr_code {
    max-height: 70px;
    max-width: 70px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #1e293b;
    padding: 2px;
    background: #ffffff;
    display: block;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

#receipt_logo_wrap {
    display: flex;
    justify-content: center;
    margin: 0 auto 8px auto;
}

#receipt_header #company_name {
    font-size: 19px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 4px;
}

#receipt_header #company_address,
#receipt_header #company_phone,
#receipt_header #sale_time {
    font-size: 13px;
    color: #475569;
    margin-bottom: 3px;
    font-weight: 600;
}

#receipt_header #sale_receipt {
    display: inline-block;
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 800;
    font-size: 13.5px;
    padding: 4px 16px;
    border-radius: 20px;
    margin: 6px 0;
    border: 1px solid #e2e8f0;
}

#receipt_general_info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    padding: 10px 0;
    border-bottom: 1.5px dashed #cbd5e1;
}

#receipt_items {
    width: 100%;
    margin: 10px 0;
    border-collapse: collapse;
    font-size: 12.5px;
}

#receipt_items th {
    padding: 6px 3px;
    border-bottom: 2px solid #0f172a;
    font-weight: 900;
    color: #0f172a;
    text-align: right;
    font-size: 11.5px;
}

#receipt_items th.total-value,
#receipt_items td.total-value {
    text-align: left;
    direction: ltr;
    font-weight: 800;
}

#receipt_items td {
    padding: 4px 3px;
    border-bottom: 1px dotted #e2e8f0;
    vertical-align: middle;
}

.receipt-single-item-row td {
    padding: 3.5px 3px !important;
    vertical-align: middle !important;
    line-height: 1.25 !important;
}

.receipt-item-name {
    text-align: right !important;
    font-weight: 600 !important;
}

.receipt-item-name .item-title {
    color: #0f172a;
}

.receipt-discount-tag {
    font-size: 10px !important;
    color: #ef4444 !important;
    font-weight: 600 !important;
    margin-right: 4px !important;
    display: inline-block !important;
}

.receipt-item-extra {
    font-size: 10px !important;
    color: #64748b !important;
    margin-right: 4px !important;
    display: inline-block !important;
}

.receipt-item-price,
.receipt-item-qty {
    text-align: center !important;
    white-space: nowrap !important;
    font-size: 11.5px !important;
}

.receipt-item-total {
    text-align: left !important;
    white-space: nowrap !important;
    font-weight: 800 !important;
}

#sale_return_policy {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1.5px dashed #cbd5e1;
    text-align: center;
    font-size: 12.5px;
    font-weight: 700;
    color: #64748b;
}

#receipt_wrapper #barcode {
    text-align: center;
    margin-top: 16px;
}

#receipt_wrapper #barcode img,
#receipt_wrapper #barcode svg {
    display: block;
    margin: 0 auto;
    max-width: 170px;
}

/* ==========================================================================
   REPORTS INTELLIGENT DASHBOARD & ANALYTICS STYLES
   ========================================================================== */
.pos-reports-dashboard {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Header & Month Filter */
.reports-header-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 14px;
    padding: 20px 24px;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.15);
}

.reports-header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.reports-header-title-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.reports-header-icon {
    font-size: 32px;
    background: rgba(255, 255, 255, 0.1);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.reports-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
}

.reports-subtitle {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

.reports-header-filter {
    display: flex;
    align-items: center;
}

.month-selector-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-label {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #cbd5e1;
}

.filter-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reports-month-select {
    min-width: 220px;
    background: #0d1524 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    border-radius: 8px !important;
    height: 38px !important;
    border: 1.5px solid #2d3f5e !important;
    padding: 0 12px !important;
}

.btn-filter-submit {
    height: 38px;
    font-weight: 700;
    padding: 0 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #ffffff !important;
    border: none;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
    transition: all 0.2s;
}

.btn-filter-submit:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    transform: translateY(-1px);
}

/* KPI Stat Cards Grid */
.reports-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.rep-kpi-card {
    background: #131b2e !important;
    border-radius: 14px !important;
    padding: 18px 20px !important;
    border: 1px solid #233148 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.rep-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    border-color: #38bdf8 !important;
}

.rep-kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.rep-kpi-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
}

.kpi-card-today .rep-kpi-badge { background: rgba(99, 102, 241, 0.25) !important; color: #a5b4fc !important; border: 1px solid rgba(99, 102, 241, 0.4) !important; }
.kpi-card-week .rep-kpi-badge  { background: rgba(56, 189, 248, 0.25) !important; color: #7dd3fc !important; border: 1px solid rgba(56, 189, 248, 0.4) !important; }
.kpi-card-month .rep-kpi-badge { background: rgba(16, 185, 129, 0.25) !important; color: #6ee7b7 !important; border: 1px solid rgba(16, 185, 129, 0.4) !important; }
.kpi-card-total .rep-kpi-badge { background: rgba(245, 158, 11, 0.25) !important; color: #fde68a !important; border: 1px solid rgba(245, 158, 11, 0.4) !important; }

.rep-kpi-icon {
    font-size: 20px;
}

.rep-kpi-label {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    display: block;
    margin-bottom: 4px;
}

.rep-kpi-profit {
    font-size: 22px !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    line-height: 1.2;
    margin-bottom: 8px;
}

.rep-kpi-subinfo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #cbd5e1;
}

.subinfo-dot {
    color: #64748b;
}

.subinfo-item strong {
    color: #38bdf8 !important;
}

.rep-kpi-footer-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.kpi-card-today .rep-kpi-footer-bar { background: linear-gradient(90deg, #4f46e5, #818cf8); }
.kpi-card-week .rep-kpi-footer-bar  { background: linear-gradient(90deg, #0284c7, #38bdf8); }
.kpi-card-month .rep-kpi-footer-bar { background: linear-gradient(90deg, #10b981, #34d399); }
.kpi-card-total .rep-kpi-footer-bar { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

/* Spotlight Top / Least Selling Cards */
.reports-spotlight-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 18px;
}

.spotlight-card {
    background: #131b2e !important;
    border-radius: 14px !important;
    padding: 20px 22px !important;
    border: 1px solid #233148 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.spotlight-card-top {
    border-color: #eab308 !important;
}

.spotlight-card-least {
    border-color: #f97316 !important;
}

.spotlight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.spotlight-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
}

.top-tag {
    background: rgba(234, 179, 8, 0.25) !important;
    color: #fde047 !important;
    border: 1px solid #eab308 !important;
}

.least-tag {
    background: rgba(249, 115, 22, 0.25) !important;
    color: #fdba74 !important;
    border: 1px solid #f97316 !important;
}

.spotlight-star-rank {
    font-size: 11.5px;
    font-weight: 800;
    color: #fde047 !important;
    background: #1e293b !important;
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid #eab308 !important;
}

.spotlight-warning-rank {
    font-size: 11.5px;
    font-weight: 800;
    color: #fdba74 !important;
    background: #1e293b !important;
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid #f97316 !important;
}

.spotlight-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.spotlight-product-name {
    margin: 0;
    font-size: 16.5px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.4;
}

.spotlight-category-pill {
    background: #1e293b !important;
    color: #94a3b8 !important;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 12px;
    white-space: nowrap;
    border: 1px solid #334155 !important;
}

.category-warning {
    background: rgba(249, 115, 22, 0.2) !important;
    color: #fdba74 !important;
    border-color: #ea580c !important;
}

.spotlight-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: #0d1524 !important;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #233148 !important;
    margin-bottom: 12px;
}

.spotlight-stat-box {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.stat-box-label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 2px;
}

.stat-box-val {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff !important;
}

.stat-box-val.highlight-blue  { color: #38bdf8 !important; }
.stat-box-val.highlight-green { color: #34d399 !important; }
.stat-box-val.highlight-red   { color: #f87171 !important; }
.stat-box-val.highlight-amber { color: #fbbf24 !important; }

.spotlight-advice-box {
    font-size: 12px;
    line-height: 1.5;
    background: rgba(245, 158, 11, 0.15) !important;
    color: #fde68a !important;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px dashed #f59e0b !important;
}

.spotlight-empty {
    padding: 24px;
    text-align: center;
    color: #94a3b8;
    font-weight: 600;
}

/* Charts Grid */
.reports-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 18px;
}

.single-chart-grid {
    grid-template-columns: 1fr !important;
}

.rep-chart-card {
    background: #131b2e !important;
    border-radius: 14px !important;
    padding: 20px 22px !important;
    border: 1px solid #233148 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}

.rep-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #1f2e47 !important;
}

.rep-chart-title {
    margin: 0;
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
}

.rep-chart-subtitle {
    font-size: 12px;
    color: #94a3b8 !important;
    font-weight: 500;
}

.chart-tag-pill {
    background: rgba(37, 99, 235, 0.25) !important;
    color: #93c5fd !important;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 12px;
    border: 1px solid #3b82f6 !important;
}

.rep-chart-body {
    position: relative;
    width: 100%;
}

/* Tables Breakdown Row */
.reports-tables-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 18px;
}

.rep-table-card {
    background: #131b2e !important;
    border-radius: 14px !important;
    padding: 18px 20px !important;
    border: 1px solid #233148 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}

.rep-table-card-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #1f2e47 !important;
}

.table-card-title {
    margin: 0;
    font-size: 14.5px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
}

.rep-custom-table {
    margin-bottom: 0;
    width: 100%;
}

.rep-custom-table thead th {
    background: #0b1120 !important;
    color: #38bdf8 !important;
    font-size: 12px;
    font-weight: 800;
    border-bottom: 2px solid #2563eb !important;
    padding: 10px 8px;
}

.rep-custom-table tbody tr {
    background: #111a2e !important;
}

.rep-custom-table tbody tr:nth-of-type(even) {
    background: #17223b !important;
}

.rep-custom-table tbody td {
    padding: 10px 8px;
    font-size: 12.5px;
    vertical-align: middle;
    border-top: 1px solid #1f2e47 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
}

.rank-1 { background: #fef08a; color: #854d0e; }
.rank-2 { background: #e2e8f0; color: #334155; }
.rank-3 { background: #fed7aa; color: #9a3412; }
.rank-slow { background: #fee2e2; color: #b91c1c; }

.badge-cat {
    background: #1e293b !important;
    color: #cbd5e1 !important;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 8px;
    border: 1px solid #334155;
}

.qty-highlight {
    background: rgba(37, 99, 235, 0.25) !important;
    color: #93c5fd !important;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 8px;
    border: 1px solid #3b82f6 !important;
}

.qty-slow {
    background: rgba(220, 38, 38, 0.25) !important;
    color: #fca5a5 !important;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 8px;
    border: 1px solid #ef4444 !important;
}

/* Classic Legacy Section */
.reports-legacy-section {
    background: #131b2e !important;
    border-radius: 14px !important;
    padding: 22px 24px !important;
    border: 1px solid #233148 !important;
    margin-top: 10px;
}

.legacy-section-header {
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #1f2e47 !important;
}

.legacy-title {
    margin: 0;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
}

.legacy-subtitle {
    font-size: 12px;
    color: #94a3b8 !important;
    font-weight: 500;
}

.rep-panel-modern {
    background: #0f172a !important;
    border-radius: 10px !important;
    border: 1px solid #233148 !important;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.rep-panel-heading {
    background: #0b1120 !important;
    color: #38bdf8 !important;
    border-bottom: 1px solid #233148 !important;
    padding: 12px 16px !important;
}

.rep-panel-heading .panel-title {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #38bdf8 !important;
}

.rep-list-group {
    margin-bottom: 0;
}

.rep-list-item {
    background: #131b2e !important;
    border-color: #1f2e47 !important;
    color: #e2e8f0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 11px 16px !important;
    transition: all 0.2s;
}

.rep-list-item:hover {
    background: #203152 !important;
    color: #38bdf8 !important;
    padding-right: 20px !important;
}

/* ==========================================================================
   PRINT MEDIA QUERY - STRICT ISOLATION FOR THERMAL & STANDARD PRINTERS
   ========================================================================== */
@media print {
    a[href]:after,
    a:after,
    a:link:after,
    a:visited:after,
    abbr[title]:after {
        content: "" !important;
        display: none !important;
    }

    header,
    aside,
    nav,
    .pos-topbar,
    .pos-left-rail,
    .pos-right-sidebar,
    #posSidebar,
    .sidebar-top-action,
    .sidebar-header,
    .pos-bottom-bar,
    .pos-canvas-footer,
    .pos-receipt-actions-bar,
    #control_buttons,
    .print_hide,
    .no-print,
    .modal,
    .modal-backdrop,
    .alert,
    .btn,
    button,
    #menubar,
    #footer,
    .topbar,
    .navbar,
    #liveclock,
    .topbar-clock-box,
    .sidebar-menu-list,
    .topbar-user-profile {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -9999px !important;
        overflow: hidden !important;
    }

    @page {
        margin: 0mm !important;
        size: auto;
    }

    html,
    body,
    body.pos-app-body {
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
        color: #000000 !important;
        height: auto !important;
        min-height: auto !important;
        width: 100% !important;
        overflow: visible !important;
        font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .pos-desktop-shell,
    .pos-app-frame,
    .pos-center-workspace,
    .pos-canvas-card {
        display: block !important;
        position: static !important;
        float: none !important;
        height: auto !important;
        min-height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    #receipt_wrapper {
        display: block !important;
        width: 100% !important;
        max-width: 76mm !important;
        margin: 0 auto !important;
        padding: 3mm 1mm !important;
        background: #ffffff !important;
        color: #000000 !important;
        direction: rtl !important;
        text-align: right !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif !important;
        font-size: 11.5px !important;
        line-height: 1.35 !important;
        box-sizing: border-box !important;
    }

    #receipt_header {
        text-align: center !important;
        margin-bottom: 6px !important;
        border-bottom: 1px dashed #000000 !important;
        padding-bottom: 6px !important;
    }

    .receipt-branding-row {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
        margin: 0 auto 4px auto !important;
    }

    .receipt-logo-cell,
    .receipt-qr-cell {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .receipt-header-img,
    #receipt_header #image {
        display: block !important;
        max-height: 52px !important;
        max-width: 80px !important;
        filter: none !important;
        box-shadow: none !important;
    }

    .receipt-header-qr,
    #receipt_header #receipt_qr_code {
        display: block !important;
        max-height: 50px !important;
        max-width: 50px !important;
        border: 1px solid #000000 !important;
        padding: 1px !important;
        background: #ffffff !important;
        box-shadow: none !important;
    }

    #receipt_header #company_name {
        font-size: 14.5px !important;
        font-weight: 900 !important;
        color: #000000 !important;
        margin-bottom: 2px !important;
    }

    #receipt_header #company_address,
    #receipt_header #company_phone,
    #receipt_header #sale_time {
        font-size: 10.5px !important;
        color: #000000 !important;
        margin-bottom: 1px !important;
        font-weight: 600 !important;
    }

    #receipt_header #sale_receipt {
        display: inline-block !important;
        font-weight: 900 !important;
        font-size: 11px !important;
        padding: 1px 8px !important;
        border: 1px solid #000000 !important;
        border-radius: 3px !important;
        margin: 2px 0 !important;
        background: transparent !important;
        color: #000000 !important;
    }

    #receipt_general_info {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        padding: 4px 0 !important;
        border-bottom: 1px dashed #000000 !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        color: #000000 !important;
    }

    #receipt_items {
        width: 100% !important;
        margin: 4px 0 !important;
        border-collapse: collapse !important;
        font-size: 10.5px !important;
        color: #000000 !important;
    }

    #receipt_items th {
        border-bottom: 1.5px solid #000000 !important;
        padding: 3px 1px !important;
        font-weight: 900 !important;
        color: #000000 !important;
        text-align: right !important;
        font-size: 10px !important;
    }

    #receipt_items th.total-value,
    #receipt_items td.total-value {
        text-align: left !important;
        direction: ltr !important;
        font-weight: 800 !important;
    }

    #receipt_items td {
        padding: 2.5px 1px !important;
        border-bottom: 1px dotted #777777 !important;
        vertical-align: middle !important;
        color: #000000 !important;
        line-height: 1.2 !important;
    }

    .receipt-single-item-row td {
        padding: 2.5px 1px !important;
        vertical-align: middle !important;
        line-height: 1.2 !important;
    }

    .receipt-item-name {
        text-align: right !important;
        font-weight: 700 !important;
    }

    .receipt-discount-tag {
        font-size: 9px !important;
        color: #000000 !important;
        font-weight: normal !important;
        margin-right: 3px !important;
        display: inline-block !important;
    }

    .receipt-item-extra {
        font-size: 9px !important;
        color: #333333 !important;
        margin-right: 3px !important;
        display: inline-block !important;
    }

    .receipt-item-price,
    .receipt-item-qty {
        text-align: center !important;
        white-space: nowrap !important;
    }

    .receipt-item-total {
        text-align: left !important;
        white-space: nowrap !important;
        font-weight: 800 !important;
    }

    #receipt_items tr:last-child td {
        border-bottom: none !important;
    }

    #sale_return_policy {
        margin-top: 6px !important;
        padding-top: 5px !important;
        border-top: 1px dashed #000000 !important;
        text-align: center !important;
        font-size: 10px !important;
        font-weight: 600 !important;
        color: #000000 !important;
    }

    #receipt_wrapper #barcode {
        text-align: center !important;
        margin-top: 6px !important;
    }

    #receipt_wrapper #barcode img,
    #receipt_wrapper #barcode svg {
        display: block !important;
        margin: 0 auto !important;
        max-width: 130px !important;
    }

    #page-wrap {
        display: block !important;
        width: 100% !important;
        max-width: 210mm !important;
        margin: 0 auto !important;
        padding: 8mm !important;
        background: #ffffff !important;
        color: #000000 !important;
        direction: rtl !important;
        box-sizing: border-box !important;
        border: none !important;
        box-shadow: none !important;
    }
}

/* ══════════════════════════════════════════════
   CALM & LUXURY POS INVOICING REGISTER (كاشير كوزمتك فاخر وهادئ)
══════════════════════════════════════════════ */
.pos-register-layout {
    display: flex !important;
    gap: 20px !important;
    align-items: flex-start !important;
    direction: rtl !important;
    width: 100% !important;
    padding: 6px 0 24px !important;
}

#register_wrapper {
    flex: 1 1 68% !important;
    min-width: 0 !important;
    float: none !important;
    width: auto !important;
    font-size: 13.5px !important;
    direction: rtl !important;
}

#overall_sale {
    flex: 0 0 32% !important;
    min-width: 320px !important;
    max-width: 440px !important;
    float: none !important;
    width: auto !important;
    background: #141d2b !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28) !important;
    padding: 20px !important;
    font-size: 13px !important;
    text-align: right !important;
    direction: rtl !important;
    color: #e2e8f0 !important;
}

@media (max-width: 1100px) {
    .pos-register-layout {
        flex-direction: column !important;
    }
    #register_wrapper,
    #overall_sale {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ── Top Control Panels in Register ────────── */
#mode_form,
#add_item_form {
    background: #172132 !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18) !important;
    margin-bottom: 16px !important;
}

#mode_form .panel-body,
#add_item_form .panel-body {
    padding: 12px 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

#mode_form ul,
#add_item_form ul {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
    flex-wrap: wrap !important;
}

#mode_form ul li.first_li,
#add_item_form ul li.first_li {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

#mode_form label.control-label,
#add_item_form label.control-label {
    color: #94a3b8 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

#add_item_form ul li:nth-child(2) {
    flex: 1 !important;
    min-width: 240px !important;
}

#add_item_form input#item {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 10px !important;
    padding: 10px 16px !important;
    height: 44px !important;
    font-size: 14.5px !important;
    color: #ffffff !important;
    transition: all .2s ease !important;
    width: 100% !important;
}

#add_item_form input#item:focus {
    border-color: #38bdf8 !important;
    background: rgba(255, 255, 255, 0.09) !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22) !important;
    outline: none !important;
}

#new_item_button {
    background: #0284c7 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3) !important;
    transition: all .2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

#new_item_button:hover {
    background: #0369a1 !important;
    transform: translateY(-1px) !important;
}

#show_suspended_sales_button {
    background: rgba(245, 158, 11, 0.12) !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
    color: #fde68a !important;
    border-radius: 9px !important;
    padding: 8px 14px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    transition: all .2s ease !important;
}

#show_suspended_sales_button:hover {
    background: rgba(245, 158, 11, 0.22) !important;
    color: #fff !important;
}

#sales_takings_button {
    background: rgba(56, 189, 248, 0.12) !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
    color: #38bdf8 !important;
    border-radius: 9px !important;
    padding: 8px 14px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    transition: all .2s ease !important;
}

#sales_takings_button:hover {
    background: #38bdf8 !important;
    color: #0f172a !important;
}

/* ── Cart Table in Register ────────────────── */
#register {
    width: 100% !important;
    background: #172132 !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.2) !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

#register th {
    background: #0b1120 !important;
    color: #38bdf8 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    padding: 13px 12px !important;
    letter-spacing: .4px !important;
    border-bottom: 2px solid #2563eb !important;
    text-align: center !important;
}

#register td {
    padding: 12px 10px !important;
    border-top: 1px solid #1f2e47 !important;
    border-bottom: 1px solid #1f2e47 !important;
    color: #ffffff !important;
    vertical-align: middle !important;
    text-align: center !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
}

#register tr,
#register tr:nth-child(odd) td {
    background: #111a2e !important;
}

#register tr:nth-child(even) td {
    background: #17223b !important;
}

#register tr:hover td {
    background: #203152 !important;
    color: #ffffff !important;
}

#register input.form-control {
    background: #090e18 !important;
    border: 1.5px solid #2d3f5e !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    text-align: center !important;
    font-weight: 700 !important;
    height: 38px !important;
    font-size: 14px !important;
    transition: all .2s !important;
}

#register input.form-control:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.3) !important;
    background: #0f172a !important;
    outline: none !important;
}

#register td a[href*="deleteItem"] {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    background: rgba(239, 68, 68, 0.25) !important;
    color: #fca5a5 !important;
    border: 1px solid #ef4444 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

#register td a[href*="deleteItem"]:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.5) !important;
}
    transition: all .2s ease !important;
}

#register td a[href*="deleteItem"]:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    transform: scale(1.05) !important;
}

#register td a[title*="تحديث"],
#register td a[title*="Update"] {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    background: rgba(56, 189, 248, 0.12) !important;
    color: #38bdf8 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: all .2s ease !important;
}

#register td a[title*="تحديث"]:hover,
#register td a[title*="Update"]:hover {
    background: #38bdf8 !important;
    color: #0f172a !important;
    transform: rotate(90deg) !important;
}

/* Empty Cart State in Cosmetics Theme */
.pos-cart-empty-cosmetics {
    padding: 56px 24px !important;
    text-align: center !important;
    background: rgba(255, 255, 255, 0.015) !important;
}

.empty-icon-ring {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50% !important;
    background: rgba(56, 189, 248, 0.08) !important;
    color: #38bdf8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 16px !important;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.12) !important;
}

.empty-text-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #f1f5f9 !important;
    margin-bottom: 6px !important;
}

.empty-text-hint {
    font-size: 13.5px !important;
    color: #94a3b8 !important;
    max-width: 460px !important;
    margin: 0 auto !important;
    line-height: 1.6 !important;
}

/* ── Overall Sale Panel (Sidebar) ──────────── */
#overall_sale .sales_table_100 {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 14px !important;
}

#overall_sale .sales_table_100 th,
#overall_sale .sales_table_100 td {
    padding: 9px 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

#overall_sale .sales_table_100 th {
    color: #94a3b8 !important;
}

#overall_sale .sales_table_100 th:last-child,
#overall_sale .sales_table_100 td:last-child {
    color: #f1f5f9 !important;
    font-weight: 600 !important;
}

/* Customer Select Box */
#select_customer {
    margin-bottom: 16px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

#select_customer label#customer_label {
    display: block !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    margin-bottom: 8px !important;
}

#select_customer input#customer {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 9px !important;
    padding: 9px 14px !important;
    height: 40px !important;
    font-size: 13px !important;
    color: #ffffff !important;
    margin-bottom: 10px !important;
}

#select_customer input#customer:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2) !important;
    outline: none !important;
}

#select_customer .btn-info {
    background: #0284c7 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 7px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

#select_customer #show_keyboard_help {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 7px 12px !important;
    font-size: 12px !important;
}

#remove_customer_button {
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
    color: #f87171 !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    margin-top: 6px !important;
    display: inline-block !important;
    transition: all .2s !important;
}

#remove_customer_button:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
}

/* Grand Total Card in Sidebar */
#sale_totals {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    margin: 14px 0 !important;
}

#sale_totals tr:last-child th {
    background: rgba(56, 189, 248, 0.08) !important;
    border: 1px solid rgba(56, 189, 248, 0.18) !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
}

#sale_total {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #38bdf8 !important;
    text-shadow: 0 0 16px rgba(56, 189, 248, 0.35) !important;
    letter-spacing: -.5px !important;
}

#payment_totals {
    background: rgba(251, 191, 36, 0.04) !important;
    border: 1px solid rgba(251, 191, 36, 0.14) !important;
    border-radius: 12px !important;
    padding: 8px 12px !important;
    margin-bottom: 12px !important;
}

#sale_amount_due {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #fbbf24 !important;
    text-shadow: 0 0 14px rgba(251, 191, 36, 0.3) !important;
}

/* Payment Inputs & Dropdowns */
#amount_tendered {
    height: 42px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #34d399 !important;
    text-align: center !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 10px !important;
}

#amount_tendered:focus {
    border-color: #34d399 !important;
    box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.25) !important;
}

/* Bootstrap Select in POS */
.bootstrap-select > .btn-default {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    border-radius: 9px !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

.bootstrap-select > .btn-default:focus,
.bootstrap-select > .btn-default:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #38bdf8 !important;
    color: #fff !important;
}

.bootstrap-select .dropdown-menu {
    background: #172132 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
    padding: 6px 0 !important;
}

.bootstrap-select .dropdown-menu li a {
    color: #cbd5e1 !important;
    font-size: 13px !important;
    padding: 8px 14px !important;
}

.bootstrap-select .dropdown-menu li a:hover,
.bootstrap-select .dropdown-menu li.selected a {
    background: rgba(56, 189, 248, 0.15) !important;
    color: #38bdf8 !important;
}

/* ── Primary Action Buttons ────────────────── */
#finish_sale_button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 15px 20px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4) !important;
    transition: all .2s ease !important;
    width: 100% !important;
    margin-top: 14px !important;
    cursor: pointer !important;
    text-align: center !important;
    display: block !important;
}

#finish_sale_button:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.55) !important;
}

#finish_invoice_quote_button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 13px 18px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35) !important;
    width: 100% !important;
    margin-top: 10px !important;
    cursor: pointer !important;
    text-align: center !important;
}

#add_payment_button {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 11px 18px !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
    width: 100% !important;
    margin-top: 10px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all .2s !important;
}

#add_payment_button:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
    transform: translateY(-1px) !important;
}

/* Secondary Actions (Suspend / Cancel) */
#buttons_sale {
    display: flex !important;
    gap: 10px !important;
    margin-top: 14px !important;
}

#suspend_sale_button {
    flex: 1 !important;
    background: rgba(245, 158, 11, 0.12) !important;
    border: 1px solid rgba(245, 158, 11, 0.28) !important;
    color: #fde68a !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all .2s !important;
}

#suspend_sale_button:hover {
    background: #f59e0b !important;
    color: #0f172a !important;
}

#cancel_sale_button {
    flex: 1 !important;
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid rgba(239, 68, 68, 0.28) !important;
    color: #fca5a5 !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all .2s !important;
}

#cancel_sale_button:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
}

/* Comments & Post-sale Options */
#comment {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 9px !important;
    color: #ffffff !important;
    font-size: 12.5px !important;
    resize: vertical !important;
}

#comment:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2) !important;
}

#overall_sale .checkbox {
    color: #cbd5e1 !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
}

/* ══════════════════════════════════════════════════
   OFFICE INVOICE DESIGNER STUDIO
══════════════════════════════════════════════════ */
.ofc-designer-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 26px 28px;
    margin-bottom: 34px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.ofc-designer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    gap: 12px;
}

.designer-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.designer-title-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #8b5cf6, #d946ef);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 14px rgba(217, 70, 239, 0.35);
    flex-shrink: 0;
}

.designer-title-text h2 {
    font-size: 19px;
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 4px;
}

.designer-title-text p {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.designer-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: start;
}

@media (max-width: 991px) {
    .designer-grid {
        grid-template-columns: 1fr;
    }
}

/* Controls Column */
.designer-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.designer-group-box {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 18px 20px;
}

.designer-group-title {
    font-size: 14px;
    font-weight: 700;
    color: #93c5fd;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.designer-field {
    margin-bottom: 14px;
}

.designer-field:last-child {
    margin-bottom: 0;
}

.designer-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.designer-input {
    width: 100%;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    padding: 9px 12px;
    color: #f8fafc;
    font-size: 13.5px;
    transition: all .2s;
}

.designer-input:focus {
    border-color: #38bdf8;
    background: rgba(30, 41, 59, 1);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
    outline: none;
}

.designer-textarea {
    min-height: 70px;
    resize: vertical;
}

/* Branding Upload Cards */
.designer-brand-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.designer-brand-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    transition: all .2s;
}

.designer-brand-card:hover {
    border-color: #38bdf8;
}

.brand-card-label {
    font-size: 12px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.brand-card-img-wrap {
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background: #0f172a;
    border-radius: 8px;
    padding: 4px;
}

.brand-card-img-wrap img {
    max-height: 65px;
    max-width: 90%;
    object-fit: contain;
    border-radius: 4px;
}

.brand-file-btn {
    display: inline-block;
    padding: 6px 12px;
    font-size: 11.5px;
    font-weight: 600;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s;
}

.brand-file-btn:hover {
    background: #38bdf8;
    color: #0f172a;
}

/* Toggles Grid */
.designer-toggles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.designer-toggle-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12.5px;
    color: #e2e8f0;
    transition: all .2s;
    user-select: none;
}

.designer-toggle-item:hover {
    background: rgba(30, 41, 59, 1);
    border-color: rgba(255, 255, 255, 0.15);
}

.designer-toggle-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #38bdf8;
    cursor: pointer;
}

/* Actions */
.designer-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.btn-save-designer {
    flex: 1;
    min-width: 200px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-save-designer:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-test-print {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e2e8f0;
    font-size: 13.5px;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-test-print:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Thermal Paper Mockup Column */
.designer-preview-wrap {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preview-badge-label {
    font-size: 12.5px;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.thermal-paper {
    background: #ffffff;
    color: #0f172a;
    width: 330px;
    max-width: 100%;
    padding: 20px 18px;
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    position: relative;
    direction: rtl;
    line-height: 1.4;
}

.mockup-header {
    text-align: center;
    border-bottom: 1.5px dashed #cbd5e1;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.mockup-branding-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 8px;
}

.mockup-logo-img {
    max-height: 62px;
    max-width: 80px;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.mockup-qr-img {
    max-height: 60px;
    max-width: 60px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #0f172a;
    padding: 2px;
    background: #fff;
}

.mockup-company-name {
    font-size: 17px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 4px;
}

.mockup-meta {
    font-size: 11.5px;
    color: #475569;
    font-weight: 600;
    margin-bottom: 2px;
}

.mockup-pill {
    display: inline-block;
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 800;
    font-size: 12px;
    padding: 2px 14px;
    border-radius: 12px;
    margin: 4px 0;
    border: 1px solid #e2e8f0;
}

.mockup-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    font-weight: 700;
    color: #334155;
    padding: 6px 0;
    border-bottom: 1.5px dashed #cbd5e1;
    margin-bottom: 8px;
}

.mockup-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11.5px;
    margin-bottom: 10px;
}

.mockup-table th {
    padding: 4px 2px;
    border-bottom: 1.5px solid #0f172a;
    font-weight: 800;
    color: #0f172a;
    text-align: right;
    font-size: 11px;
}

.mockup-table td {
    padding: 4px 2px;
    border-bottom: 1px dotted #e2e8f0;
    color: #1e293b;
}

.mockup-totals-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 3px 0;
}

.mockup-grand-total {
    border-top: 1.5px solid #0f172a;
    border-bottom: 1.5px solid #0f172a;
    padding: 6px 0;
    margin: 6px 0;
    font-size: 14px;
    font-weight: 900;
    color: #0f172a;
}

.mockup-policy {
    text-align: center;
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1.5px dashed #cbd5e1;
}

.mockup-barcode {
    text-align: center;
    margin-top: 8px;
}

.mockup-barcode-bars {
    font-family: monospace;
    letter-spacing: 4px;
    font-weight: 900;
    font-size: 18px;
    line-height: 1;
}

/* ==========================================================================
   AUTOCOMPLETE & DROPDOWNS ENHANCEMENTS
   ========================================================================== */
.ui-autocomplete {
    background: #172033 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
    padding: 6px !important;
    max-height: 320px !important;
    overflow-y: auto !important;
    z-index: 9999 !important;
}

.ui-autocomplete .ui-menu-item {
    border-radius: 8px !important;
    margin-bottom: 2px !important;
    list-style: none !important;
}

.ui-autocomplete .ui-menu-item-wrapper,
.ui-autocomplete .ui-menu-item a {
    color: #e2e8f0 !important;
    padding: 9px 14px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all .15s !important;
    display: block !important;
    text-decoration: none !important;
}

.ui-autocomplete .ui-menu-item-wrapper.ui-state-active,
.ui-autocomplete .ui-menu-item a:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(59, 130, 246, 0.2)) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
}

/* Date Range Picker Dark Theme */
.daterangepicker {
    background: #172033 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #f8fafc !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55) !important;
    border-radius: 12px !important;
    font-family: inherit !important;
}

.daterangepicker .calendar-table {
    background: #172033 !important;
    border: none !important;
}

.daterangepicker .calendar-table table {
    background: #172033 !important;
}

.daterangepicker td.available:hover,
.daterangepicker th.available:hover {
    background: rgba(56, 189, 248, 0.15) !important;
    color: #38bdf8 !important;
    border-radius: 6px !important;
}

.daterangepicker td.active,
.daterangepicker td.active:hover {
    background: #3b82f6 !important;
    color: #ffffff !important;
    border-radius: 6px !important;
}

.daterangepicker td.off,
.daterangepicker td.off.in-range,
.daterangepicker td.off.start-date,
.daterangepicker td.off.end-date {
    background-color: transparent !important;
    color: #64748b !important;
}

.daterangepicker td.in-range {
    background-color: rgba(59, 130, 246, 0.2) !important;
    color: #93c5fd !important;
}

.daterangepicker .ranges li {
    background: #1e293b !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 6px !important;
    margin-bottom: 4px !important;
    font-weight: 600 !important;
    padding: 6px 12px !important;
}

.daterangepicker .ranges li:hover,
.daterangepicker .ranges li.active {
    background: #3b82f6 !important;
    color: #ffffff !important;
}

/* Image Rollover Popup */
#imgPreviewWithStyles,
.img-preview {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    padding: 8px !important;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.6) !important;
    z-index: 99999 !important;
}

#imgPreviewWithStyles img {
    border-radius: 8px !important;
}




/* ==========================================================================
   GLOBAL HIGH-CONTRAST MASTER OVERRIDES ACROSS ALL MODULES
   ========================================================================== */

/* 1. Global Navigation Tabs (Taxes, Configs, Settings) */
.nav-tabs {
    border-bottom: 2px solid #24344d !important;
    margin-bottom: 20px !important;
    gap: 6px;
    display: flex;
    flex-wrap: wrap;
}

.nav-tabs > li > a {
    background: #141d2e !important;
    border: 1px solid #24344d !important;
    color: #94a3b8 !important;
    border-radius: 10px 10px 0 0 !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    padding: 10px 18px !important;
    transition: all 0.2s ease !important;
    margin-right: 0 !important;
}

.nav-tabs > li > a:hover {
    background: #1c273d !important;
    color: #ffffff !important;
    border-color: #38bdf8 !important;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #ffffff !important;
    border: 1px solid #3b82f6 !important;
    border-bottom-color: transparent !important;
    font-weight: 800 !important;
    box-shadow: 0 -2px 10px rgba(37, 99, 235, 0.4) !important;
}

.tab-content {
    background: #131b2e !important;
    border: 1px solid #24344d !important;
    border-radius: 14px !important;
    padding: 24px !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

#config_wrapper,
fieldset#config_info {
    color: #ffffff !important;
}

#config_wrapper .form-group label,
fieldset#config_info label,
.form-horizontal .control-label {
    color: #cbd5e1 !important;
    font-weight: 700 !important;
}

#config_wrapper input.form-control,
#config_wrapper select.form-control,
#config_wrapper textarea.form-control {
    background: #0d1524 !important;
    border: 1.5px solid #2d3f5e !important;
    color: #ffffff !important;
    border-radius: 8px !important;
}

#config_wrapper input.form-control:focus,
#config_wrapper select.form-control:focus,
#config_wrapper textarea.form-control:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
    background: #111d33 !important;
}

/* 2. Panels and General Containers */
.panel-default {
    background-color: #131b2e !important;
    border: 1px solid #24344d !important;
    border-radius: 14px !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

.panel-default > .panel-heading {
    background-color: #0b1120 !important;
    color: #38bdf8 !important;
    border-bottom: 1.5px solid #24344d !important;
    font-weight: 800 !important;
    border-radius: 13px 13px 0 0 !important;
    padding: 12px 18px !important;
}

.panel-default > .panel-body {
    background-color: #131b2e !important;
    color: #ffffff !important;
    border-radius: 0 0 13px 13px !important;
}

/* 3. Universal Table Contrast Rules - Enforce Dark Rows & Pure White Text across all tables */
table.table-striped > tbody > tr:nth-of-type(odd),
table.table-striped > tbody > tr:nth-child(odd),
.table-striped > tbody > tr:nth-of-type(odd) > td,
.table-striped > tbody > tr:nth-of-type(odd) > th,
.bootstrap-table .table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: #111a2e !important;
    background: #111a2e !important;
    color: #ffffff !important;
}

table.table-striped > tbody > tr:nth-of-type(even),
table.table-striped > tbody > tr:nth-child(even),
.table-striped > tbody > tr:nth-of-type(even) > td,
.table-striped > tbody > tr:nth-of-type(even) > th,
.bootstrap-table .table-striped > tbody > tr:nth-of-type(even) > td {
    background-color: #17223b !important;
    background: #17223b !important;
    color: #ffffff !important;
}

table.table > tbody > tr > td,
table.table > tbody > tr > th,
.table > tbody > tr > td,
.table > tbody > tr > th {
    color: #ffffff !important;
    border-top: 1px solid #1f2e47 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
}

/* Prices & Currency Highlight in Tables */
.bootstrap-table .table tbody td:nth-child(n) {
    /* High contrast text smoothing */
    text-rendering: optimizeLegibility;
}

/* 4. High-Contrast Alerts */
.alert-danger {
    background: rgba(220, 38, 38, 0.2) !important;
    border: 1.5px solid #ef4444 !important;
    color: #fecaca !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
}

.alert-success {
    background: rgba(16, 185, 129, 0.2) !important;
    border: 1.5px solid #10b981 !important;
    color: #a7f3d0 !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.2) !important;
    border: 1.5px solid #f59e0b !important;
    color: #fde68a !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
}

.alert-info {
    background: rgba(56, 189, 248, 0.2) !important;
    border: 1.5px solid #38bdf8 !important;
    color: #bae6fd !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
}

/* ==========================================================================
   THEME CONTROL PANEL (MODAL & CONTROLS STYLING)
   ========================================================================== */
.pos-theme-modal .modal-dialog {
    max-width: 580px !important;
    margin: 50px auto !important;
}

.theme-customizer-modal-content {
    background: #ffffff !important;
    border-radius: 20px !important;
    border: 2px solid #cbd5e1 !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25) !important;
    overflow: hidden !important;
    color: #0f172a !important;
    direction: rtl !important;
}

body.theme-dark .theme-customizer-modal-content {
    background: #131b2e !important;
    border-color: #24344d !important;
    color: #f8fafc !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7) !important;
}

.theme-customizer-header {
    background: #0f172a !important;
    color: #ffffff !important;
    padding: 20px 24px !important;
    border-bottom: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.theme-header-info {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}

.theme-header-icon {
    font-size: 28px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.theme-customizer-header .modal-title {
    font-size: 18px !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    margin: 0 !important;
}

.theme-header-desc {
    font-size: 12px !important;
    color: #94a3b8 !important;
    margin: 2px 0 0 0 !important;
}

.theme-customizer-header .close {
    color: #ffffff !important;
    opacity: 0.8 !important;
    font-size: 26px !important;
    text-shadow: none !important;
}
.theme-customizer-header .close:hover {
    color: #ef4444 !important;
    opacity: 1 !important;
}

.theme-customizer-body {
    padding: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    max-height: calc(85vh - 140px) !important;
    overflow-y: auto !important;
}

.theme-ctrl-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.theme-ctrl-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    margin-bottom: 0 !important;
    color: #0f172a !important;
}

body.theme-dark .theme-ctrl-title {
    color: #f1f5f9 !important;
}

.theme-tag-active {
    font-size: 11.5px !important;
    font-weight: 800 !important;
    background: #2563eb !important;
    color: #ffffff !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
}

/* Theme Mode Cards (Light vs Dark) */
.theme-mode-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
}

.theme-mode-card {
    background: #f8fafc !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 14px !important;
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-align: right !important;
    position: relative !important;
}

body.theme-dark .theme-mode-card {
    background: #0f172a !important;
    border-color: #24344d !important;
}

.theme-mode-card:hover {
    transform: translateY(-2px) !important;
    border-color: #2563eb !important;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.15) !important;
}

.theme-mode-card.active {
    border-color: #2563eb !important;
    background: #eff6ff !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25) !important;
}

body.theme-dark .theme-mode-card.active {
    background: #1e2d4d !important;
    border-color: #38bdf8 !important;
}

.mode-card-icon {
    font-size: 26px !important;
    margin-bottom: 8px !important;
}

.mode-card-title {
    font-size: 14.5px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 4px !important;
}

body.theme-dark .mode-card-title {
    color: #ffffff !important;
}

.mode-card-sub {
    font-size: 11.5px !important;
    color: #64748b !important;
    line-height: 1.4 !important;
    margin-bottom: 10px !important;
}

.mode-card-check {
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #2563eb !important;
    display: none !important;
}

.theme-mode-card.active .mode-card-check {
    display: inline-block !important;
}

/* Accent Color Palette Swatches */
.theme-color-palette {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 8px !important;
}

.color-swatch-btn {
    background: #f8fafc !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 10px 6px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

body.theme-dark .color-swatch-btn {
    background: #0f172a !important;
    border-color: #24344d !important;
}

.color-swatch-btn:hover {
    border-color: #2563eb !important;
    transform: translateY(-2px) !important;
}

.color-swatch-btn.active {
    border-color: #2563eb !important;
    background: #eff6ff !important;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.3) !important;
}

body.theme-dark .color-swatch-btn.active {
    background: #1e2c47 !important;
    border-color: #38bdf8 !important;
}

.swatch-circle {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

.swatch-name {
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #334155 !important;
}

body.theme-dark .swatch-name {
    color: #cbd5e1 !important;
}

/* Contrast Toggle Pills */
.theme-contrast-toggle-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.contrast-option-pill {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    cursor: pointer !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
}

body.theme-dark .contrast-option-pill {
    background: #0f172a !important;
    border-color: #24344d !important;
}

.contrast-option-pill:hover {
    border-color: #2563eb !important;
}

.contrast-option-pill input[type="radio"] {
    margin-top: 4px !important;
    width: 17px !important;
    height: 17px !important;
    accent-color: #2563eb !important;
}

.contrast-pill-box {
    display: flex !important;
    flex-direction: column !important;
}

.contrast-pill-box strong {
    font-size: 13.5px !important;
    color: #0f172a !important;
}

body.theme-dark .contrast-pill-box strong {
    color: #f8fafc !important;
}

.contrast-pill-box small {
    font-size: 11.5px !important;
    color: #64748b !important;
    margin-top: 2px !important;
}

/* Font Scale Buttons */
.theme-font-scale-btns {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
}

.font-scale-btn {
    background: #f8fafc !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 10px 8px !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    color: #334155 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
}

body.theme-dark .font-scale-btn {
    background: #0f172a !important;
    border-color: #24344d !important;
    color: #cbd5e1 !important;
}

.font-scale-btn:hover {
    border-color: #2563eb !important;
}

.font-scale-btn.active {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

.theme-live-preview-box {
    background: rgba(37, 99, 235, 0.08) !important;
    border: 1px dashed #2563eb !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #1d4ed8 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

body.theme-dark .theme-live-preview-box {
    background: rgba(56, 189, 248, 0.1) !important;
    border-color: #38bdf8 !important;
    color: #7dd3fc !important;
}

.preview-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: #10b981 !important;
    box-shadow: 0 0 6px #10b981 !important;
    flex-shrink: 0 !important;
}

.theme-customizer-footer {
    background: #f8fafc !important;
    border-top: 1.5px solid #e2e8f0 !important;
    padding: 16px 24px !important;
    display: flex !important;
    justify-content: space-between !important;
}

body.theme-dark .theme-customizer-footer {
    background: #0f172a !important;
    border-color: #24344d !important;
}

.theme-btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 800 !important;
    font-size: 13.5px !important;
    border-radius: 10px !important;
    padding: 10px 22px !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.theme-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.55) !important;
}

.theme-btn-secondary {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #334155 !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    padding: 10px 18px !important;
}

body.theme-dark .theme-btn-secondary {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}


/* ==========================================================================
   HIGH-CONTRAST LIGHT THEME SYSTEM (الوضع الفاتح فائق التباين والوضوح)
   ========================================================================== */
html[data-theme="light"],
html[data-theme="light"] body,
body.theme-light,
.pos-app-body.theme-light {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

body.theme-light .pos-desktop-shell {
    background: #f1f5f9 !important;
}

/* 2. Top Application Bar in Light Mode */
body.theme-light .pos-topbar {
    background: #ffffff !important;
    border-bottom: 2px solid #cbd5e1 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

body.theme-light .top-ctrl-btn {
    color: #1e293b !important;
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
}
body.theme-light .top-ctrl-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}
body.theme-light .btn-close-app:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
}

body.theme-light .topbar-clock-box {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    font-weight: 700 !important;
}

body.theme-light .pos-tab-item {
    color: #334155 !important;
    font-weight: 700 !important;
}
body.theme-light .pos-tab-item:hover {
    color: #0f172a !important;
    background: #f1f5f9 !important;
}
body.theme-light .pos-tab-item.active {
    background: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35) !important;
}

body.theme-light .topbar-company-title {
    color: #0f172a !important;
    font-weight: 900 !important;
}
body.theme-light .user-full-name {
    color: #0f172a !important;
    font-weight: 800 !important;
}

/* 3. Sidebar in Light Mode */
body.theme-light .pos-right-sidebar {
    background: #ffffff !important;
    border-left: 2px solid #cbd5e1 !important;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.03) !important;
}

body.theme-light .sidebar-header {
    border-bottom: 1.5px solid #e2e8f0 !important;
}
body.theme-light .sidebar-title-badge {
    color: #475569 !important;
    font-weight: 800 !important;
}
body.theme-light .sidebar-hamburger {
    color: #1e293b !important;
}
body.theme-light .sidebar-hamburger:hover {
    color: #2563eb !important;
    background: #eff6ff !important;
}

body.theme-light .sidebar-menu-list li a {
    color: #1e293b !important;
    font-weight: 700 !important;
}
body.theme-light .sidebar-menu-list li a:hover {
    background: #eff6ff !important;
    color: #2563eb !important;
    border-right-color: #2563eb !important;
}
body.theme-light .sidebar-menu-list li.active a {
    background: #dbeafe !important;
    color: #1d4ed8 !important;
    border-right-color: #1d4ed8 !important;
    font-weight: 900 !important;
}

/* 4. Canvas & Center Workspace in Light Mode */
body.theme-light .pos-center-workspace {
    background: #f1f5f9 !important;
}
body.theme-light .pos-canvas-card {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 16px !important;
    margin: 14px 18px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

/* 5. Module Topbar Banner in Light Mode */
body.theme-light .pos-module-topbar {
    border-bottom: 2px solid #e2e8f0 !important;
}
body.theme-light .module-title-meta h1 {
    color: #0f172a !important;
    font-weight: 900 !important;
}
body.theme-light .module-title-meta p {
    color: #475569 !important;
    font-weight: 600 !important;
}

/* 6. DATA TABLES - HIGH CONTRAST LIGHT MODE */
body.theme-light #table_holder,
body.theme-light .bootstrap-table {
    background: transparent !important;
}

body.theme-light .bootstrap-table .fixed-table-container {
    background: #ffffff !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

body.theme-light .bootstrap-table .fixed-table-header {
    background: #0f172a !important;
}
body.theme-light .bootstrap-table .fixed-table-body {
    background: #ffffff !important;
}

body.theme-light .bootstrap-table .fixed-table-container .table,
body.theme-light .bootstrap-table .table {
    background: #ffffff !important;
}

/* Deep Slate Table Headers with Crisp Pure White Text */
body.theme-light .bootstrap-table .fixed-table-container .table thead,
body.theme-light .bootstrap-table .fixed-table-container .table thead th,
body.theme-light .bootstrap-table .fixed-table-container .table thead th .th-inner,
body.theme-light .bootstrap-table .table > thead > tr > th,
body.theme-light .table > thead > tr > th,
body.theme-light .table thead th {
    background: #0f172a !important;
    background-color: #0f172a !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 13.5px !important;
    border-bottom: 3px solid #2563eb !important;
    border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding: 13px 14px !important;
}

body.theme-light .bootstrap-table .fixed-table-container .table thead th a,
body.theme-light .bootstrap-table .fixed-table-container .table thead th .sortable,
body.theme-light .table thead th a {
    color: #ffffff !important;
    font-weight: 800 !important;
}

/* ODD ROWS in Light Mode: Pure White */
body.theme-light .bootstrap-table .fixed-table-container .table tbody tr,
body.theme-light .bootstrap-table .fixed-table-container .table tbody tr:nth-of-type(odd),
body.theme-light .bootstrap-table .fixed-table-container .table tbody tr:nth-child(odd),
body.theme-light .bootstrap-table .table > tbody > tr:nth-of-type(odd),
body.theme-light .table-striped > tbody > tr:nth-of-type(odd),
body.theme-light .table-striped > tbody > tr:nth-child(odd),
body.theme-light .table > tbody > tr:nth-of-type(odd),
body.theme-light .table > tbody > tr:nth-child(odd),
body.theme-light .bootstrap-table .table tbody tr:nth-child(odd) td,
body.theme-light .bootstrap-table .fixed-table-container .table tbody tr:nth-child(odd) td,
body.theme-light .table-striped > tbody > tr:nth-of-type(odd) > td,
body.theme-light .table > tbody > tr > td {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #0f172a !important;
}

/* EVEN ROWS in Light Mode: Crisp Pale Slate-50 */
body.theme-light .bootstrap-table .fixed-table-container .table tbody tr:nth-of-type(even),
body.theme-light .bootstrap-table .fixed-table-container .table tbody tr:nth-child(even),
body.theme-light .bootstrap-table .table > tbody > tr:nth-of-type(even),
body.theme-light .table-striped > tbody > tr:nth-of-type(even),
body.theme-light .table-striped > tbody > tr:nth-child(even),
body.theme-light .table > tbody > tr:nth-of-type(even),
body.theme-light .table > tbody > tr:nth-child(even),
body.theme-light .bootstrap-table .table tbody tr:nth-child(even) td,
body.theme-light .bootstrap-table .fixed-table-container .table tbody tr:nth-child(even) td,
body.theme-light .table-striped > tbody > tr:nth-of-type(even) > td {
    background-color: #f8fafc !important;
    background: #f8fafc !important;
    color: #0f172a !important;
}

/* HOVER ROWS in Light Mode: Vivid Sky Blue Tint */
body.theme-light .bootstrap-table .fixed-table-container .table tbody tr:hover,
body.theme-light .bootstrap-table .fixed-table-container .table tbody tr:hover td,
body.theme-light .bootstrap-table .table > tbody > tr:hover,
body.theme-light .bootstrap-table .table > tbody > tr:hover > td,
body.theme-light .table-hover > tbody > tr:hover,
body.theme-light .table-hover > tbody > tr:hover > td {
    background-color: #e0f2fe !important;
    background: #e0f2fe !important;
    color: #0f172a !important;
}

/* SELECTED ROWS in Light Mode */
body.theme-light .bootstrap-table .fixed-table-container .table tbody tr.selected,
body.theme-light .bootstrap-table .fixed-table-container .table tbody tr.selected td,
body.theme-light .bootstrap-table .table > tbody > tr.selected td {
    background-color: #dbeafe !important;
    background: #dbeafe !important;
    color: #1e3a8a !important;
}

/* High Contrast Cell Text & Clean Crisp Borders */
body.theme-light .bootstrap-table .fixed-table-container .table tbody td,
body.theme-light .bootstrap-table .table tbody td,
body.theme-light .table > tbody > tr > td,
body.theme-light .table tbody td {
    color: #0f172a !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-left: 1px solid #f1f5f9 !important;
    border-right: 1px solid #f1f5f9 !important;
    padding: 12px 14px !important;
}

/* Price & Number Highlight in Light Mode */
body.theme-light .bootstrap-table .table tbody td a:not(.btn):not(.modal-dlg) {
    color: #1d4ed8 !important;
    font-weight: 800 !important;
}
body.theme-light .bootstrap-table .table tbody td a:not(.btn):not(.modal-dlg):hover {
    color: #2563eb !important;
    text-decoration: underline !important;
}

/* Table Pagination in Light Mode */
body.theme-light .bootstrap-table .fixed-table-pagination {
    background: #f8fafc !important;
    border-top: 2px solid #cbd5e1 !important;
}
body.theme-light .bootstrap-table .fixed-table-pagination .pagination-detail {
    color: #334155 !important;
    font-weight: 800 !important;
}
body.theme-light .bootstrap-table .fixed-table-pagination .pagination-detail .page-list .btn-group .btn {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    font-weight: 800 !important;
}
body.theme-light .bootstrap-table .fixed-table-pagination .pagination ul li a {
    color: #0f172a !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    font-weight: 800 !important;
}
body.theme-light .bootstrap-table .fixed-table-pagination .pagination ul li a:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}
body.theme-light .bootstrap-table .fixed-table-pagination .pagination ul li.active a,
body.theme-light .bootstrap-table .fixed-table-pagination .pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    font-weight: 900 !important;
}

/* 7. Action Toolbar Controls in Light Mode */
body.theme-light .bootstrap-table .fixed-table-toolbar .search input,
body.theme-light #daterangepicker,
body.theme-light #toolbar input.form-control,
body.theme-light .search-form input,
body.theme-light .debts-search-input {
    background: #ffffff !important;
    border: 2px solid #94a3b8 !important;
    color: #0f172a !important;
    font-weight: 700 !important;
}
body.theme-light .bootstrap-table .fixed-table-toolbar .search input:focus,
body.theme-light #daterangepicker:focus,
body.theme-light #toolbar input.form-control:focus,
body.theme-light .debts-search-input:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25) !important;
    background: #ffffff !important;
}

body.theme-light .bootstrap-select > .btn.btn-default {
    background: #ffffff !important;
    border: 2px solid #94a3b8 !important;
    color: #0f172a !important;
    font-weight: 700 !important;
}
body.theme-light .bootstrap-select .dropdown-menu {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12) !important;
}
body.theme-light .bootstrap-select .dropdown-menu li a {
    color: #0f172a !important;
    font-weight: 700 !important;
}
body.theme-light .bootstrap-select .dropdown-menu li a:hover,
body.theme-light .bootstrap-select .dropdown-menu li.selected a {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    font-weight: 900 !important;
}

/* 8. Debts Module in Light High Contrast */
body.theme-light .debt-stat-card {
    background: #ffffff !important;
    border: 2px solid #cbd5e1 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}
body.theme-light .debt-stat-card .stat-label {
    color: #475569 !important;
    font-weight: 800 !important;
}
body.theme-light .debt-stat-card .stat-value {
    color: #0f172a !important;
    font-weight: 900 !important;
}
body.theme-light .debt-stat-card .stat-value.stat-danger {
    color: #dc2626 !important;
}
body.theme-light .debt-stat-card .stat-value.stat-success {
    color: #16a34a !important;
}
body.theme-light .debts-table-card {
    background: #ffffff !important;
    border: 2px solid #cbd5e1 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
}
body.theme-light .debts-table thead th {
    background: #0f172a !important;
    color: #ffffff !important;
}
body.theme-light .customer-name-text {
    color: #0f172a !important;
    font-weight: 900 !important;
}
body.theme-light .phone-number-val {
    color: #0369a1 !important;
    font-weight: 800 !important;
}
body.theme-light .filter-pill {
    background: #ffffff !important;
    color: #334155 !important;
    border: 2px solid #cbd5e1 !important;
}
body.theme-light .filter-pill:hover {
    background: #f1f5f9 !important;
    border-color: #2563eb !important;
}

/* 9. Receivings & Store in Light High Contrast */
body.theme-light .pos-receiving-layout #mode_form,
body.theme-light .pos-receiving-layout #add_item_form,
body.theme-light .pos-receiving-layout #overall_sale {
    background: #ffffff !important;
    border: 2px solid #cbd5e1 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
    color: #0f172a !important;
}
body.theme-light .pos-receiving-layout label.control-label,
body.theme-light .pos-receiving-layout label {
    color: #1e293b !important;
    font-weight: 800 !important;
}
body.theme-light .pos-receiving-layout #add_item_form #item {
    background: #ffffff !important;
    border: 2px solid #94a3b8 !important;
    color: #0f172a !important;
    font-weight: 700 !important;
}
body.theme-light .pos-receiving-layout table#register {
    border: 2px solid #cbd5e1 !important;
    background: #ffffff !important;
}
body.theme-light .pos-receiving-layout table#register thead th {
    background: #0f172a !important;
    color: #ffffff !important;
}
body.theme-light .pos-receiving-layout table#register tbody td {
    color: #0f172a !important;
    font-weight: 700 !important;
    border-top: 1px solid #e2e8f0 !important;
}
body.theme-light .pos-receiving-layout table#register tbody tr:nth-of-type(even) td {
    background: #f8fafc !important;
}
body.theme-light .pos-receiving-layout table#register input.form-control,
body.theme-light .pos-receiving-layout table#register select.form-control {
    background: #ffffff !important;
    border: 1.5px solid #94a3b8 !important;
    color: #0f172a !important;
    font-weight: 800 !important;
}

/* 10. Sales Register in Light High Contrast */
body.theme-light #mode_form,
body.theme-light #add_item_form,
body.theme-light #overall_sale {
    background: #ffffff !important;
    border: 2px solid #cbd5e1 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
    color: #0f172a !important;
}
body.theme-light #mode_form label.control-label,
body.theme-light #add_item_form label.control-label {
    color: #1e293b !important;
    font-weight: 800 !important;
}
body.theme-light #add_item_form input#item {
    background: #ffffff !important;
    border: 2px solid #94a3b8 !important;
    color: #0f172a !important;
    font-weight: 800 !important;
}
body.theme-light table#register {
    border: 2px solid #cbd5e1 !important;
    background: #ffffff !important;
}
body.theme-light table#register th {
    background: #0f172a !important;
    color: #ffffff !important;
}
body.theme-light table#register td {
    color: #0f172a !important;
    font-weight: 700 !important;
    border-top: 1px solid #e2e8f0 !important;
}
body.theme-light table#register tr:nth-child(even) td {
    background: #f8fafc !important;
}
body.theme-light #sale_totals {
    background: #f8fafc !important;
    border: 2px solid #cbd5e1 !important;
}
body.theme-light #sale_total {
    color: #0284c7 !important;
    text-shadow: none !important;
}
body.theme-light #sale_amount_due {
    color: #d97706 !important;
    text-shadow: none !important;
}
body.theme-light #amount_tendered {
    background: #ffffff !important;
    border: 2px solid #059669 !important;
    color: #047857 !important;
}

/* 11. Modals & Dialogs in Light High Contrast */
body.theme-light .bootstrap-dialog .modal-content,
body.theme-light .modal-content {
    background: #ffffff !important;
    border: 2px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
}
body.theme-light .bootstrap-dialog .modal-header,
body.theme-light .modal-header {
    background: #0f172a !important;
    color: #ffffff !important;
}
body.theme-light .bootstrap-dialog .modal-body,
body.theme-light .modal-body {
    background: #ffffff !important;
    color: #0f172a !important;
}
body.theme-light .modal-body label.control-label {
    color: #1e293b !important;
    font-weight: 800 !important;
}
body.theme-light .modal-body .form-control {
    background: #ffffff !important;
    border: 2px solid #94a3b8 !important;
    color: #0f172a !important;
    font-weight: 700 !important;
}
body.theme-light .modal-body .form-control:focus {
    border-color: #2563eb !important;
    background: #ffffff !important;
}
body.theme-light .bootstrap-dialog .modal-footer,
body.theme-light .modal-footer {
    background: #f8fafc !important;
    border-top: 1.5px solid #cbd5e1 !important;
}

/* 12. Nav Tabs & Config in Light High Contrast */
body.theme-light .nav-tabs > li > a {
    background: #ffffff !important;
    border: 2px solid #cbd5e1 !important;
    color: #475569 !important;
    font-weight: 800 !important;
}
body.theme-light .nav-tabs > li > a:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}
body.theme-light .nav-tabs > li.active > a {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}
body.theme-light .tab-content {
    background: #ffffff !important;
    border: 2px solid #cbd5e1 !important;
    color: #0f172a !important;
}
body.theme-light #config_wrapper input.form-control,
body.theme-light #config_wrapper select.form-control,
body.theme-light #config_wrapper textarea.form-control {
    background: #ffffff !important;
    border: 2px solid #94a3b8 !important;
    color: #0f172a !important;
    font-weight: 700 !important;
}

/* 13. Reports in Light High Contrast */
body.theme-light .reports-header-card {
    background: #ffffff !important;
    border: 2px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}
body.theme-light .reports-title {
    color: #0f172a !important;
}
body.theme-light .rep-kpi-card,
body.theme-light .spotlight-card,
body.theme-light .rep-chart-card,
body.theme-light .rep-table-card,
body.theme-light .reports-legacy-section {
    background: #ffffff !important;
    border: 2px solid #cbd5e1 !important;
    color: #0f172a !important;
}
body.theme-light .rep-kpi-profit,
body.theme-light .spotlight-product-name,
body.theme-light .rep-chart-title,
body.theme-light .table-card-title,
body.theme-light .legacy-title {
    color: #0f172a !important;
    font-weight: 900 !important;
}
body.theme-light .spotlight-stats-grid {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
}
body.theme-light .stat-box-val {
    color: #0f172a !important;
}

/* 14. DYNAMIC ACCENT COLORS */
html[data-accent="emerald"] .pos-tab-item.active,
html[data-accent="emerald"] .theme-btn-primary,
html[data-accent="emerald"] .btn-primary,
html[data-accent="emerald"] .sidebar-menu-list li.active a,
html[data-accent="emerald"] .nav-tabs > li.active > a,
html[data-accent="emerald"] .theme-tag-active {
    background: #059669 !important;
    border-color: #059669 !important;
    color: #ffffff !important;
}

html[data-accent="purple"] .pos-tab-item.active,
html[data-accent="purple"] .theme-btn-primary,
html[data-accent="purple"] .btn-primary,
html[data-accent="purple"] .sidebar-menu-list li.active a,
html[data-accent="purple"] .nav-tabs > li.active > a,
html[data-accent="purple"] .theme-tag-active {
    background: #7c3aed !important;
    border-color: #7c3aed !important;
    color: #ffffff !important;
}

html[data-accent="amber"] .pos-tab-item.active,
html[data-accent="amber"] .theme-btn-primary,
html[data-accent="amber"] .btn-primary,
html[data-accent="amber"] .sidebar-menu-list li.active a,
html[data-accent="amber"] .nav-tabs > li.active > a,
html[data-accent="amber"] .theme-tag-active {
    background: #d97706 !important;
    border-color: #d97706 !important;
    color: #ffffff !important;
}

html[data-accent="crimson"] .pos-tab-item.active,
html[data-accent="crimson"] .theme-btn-primary,
html[data-accent="crimson"] .btn-primary,
html[data-accent="crimson"] .sidebar-menu-list li.active a,
html[data-accent="crimson"] .nav-tabs > li.active > a,
html[data-accent="crimson"] .theme-tag-active {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
}

/* 15. ULTRA HIGH CONTRAST MODE */
html[data-contrast="ultra"] body.theme-light .bootstrap-table .fixed-table-container,
html[data-contrast="ultra"] body.theme-light .pos-canvas-card,
html[data-contrast="ultra"] body.theme-light .debt-stat-card,
html[data-contrast="ultra"] body.theme-light .debts-table-card,
html[data-contrast="ultra"] body.theme-light #overall_sale,
html[data-contrast="ultra"] body.theme-light .modal-content {
    border: 2.5px solid #475569 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

html[data-contrast="ultra"] body.theme-light .bootstrap-table .fixed-table-container .table tbody td,
html[data-contrast="ultra"] body.theme-light .table tbody td {
    color: #000000 !important;
    font-weight: 800 !important;
    border: 1px solid #cbd5e1 !important;
}

html[data-contrast="ultra"] body.theme-light input.form-control,
html[data-contrast="ultra"] body.theme-light select.form-control {
    border: 2px solid #334155 !important;
    color: #000000 !important;
    font-weight: 800 !important;
}

/* 16. FONT SCALING */
html[data-font-scale="medium"] {
    font-size: 108% !important;
}
html[data-font-scale="large"] {
    font-size: 116% !important;
}


/* ==========================================================================
   17. HOME ACTION TILES IN LIGHT MODE (أيقونات الشاشة الرئيسية في الثيم الفاتح)
   ========================================================================== */
body.theme-light .pos-home-center-stage {
    background: transparent !important;
}

body.theme-light .pos-action-tile {
    background: #ffffff !important;
    border: 2px solid #cbd5e1 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
    color: #0f172a !important;
}

body.theme-light .pos-action-tile:hover {
    background: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.18) !important;
    transform: translateY(-5px) scale(1.02) !important;
}

body.theme-light .pos-action-tile .tile-title {
    color: #0f172a !important;
    font-weight: 800 !important;
    font-size: 14px !important;
}

body.theme-light .pos-action-tile.tile-cyan .tile-icon-box {
    background: rgba(6, 182, 212, 0.15) !important;
    color: #0891b2 !important;
}

body.theme-light .pos-action-tile.tile-teal .tile-icon-box {
    background: rgba(20, 184, 166, 0.15) !important;
    color: #0d9488 !important;
}

body.theme-light .pos-action-tile.tile-purple .tile-icon-box {
    background: rgba(139, 92, 246, 0.15) !important;
    color: #7c3aed !important;
}

body.theme-light .pos-action-tile.tile-orange .tile-icon-box {
    background: rgba(249, 115, 22, 0.15) !important;
    color: #ea580c !important;
}

body.theme-light .pos-action-tile.tile-pink .tile-icon-box {
    background: rgba(244, 63, 94, 0.15) !important;
    color: #e11d48 !important;
}

body.theme-light .pos-action-tile.tile-amber .tile-icon-box {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #d97706 !important;
}

body.theme-light .pos-action-tile.tile-red .tile-icon-box {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #dc2626 !important;
}

body.theme-light .pos-action-tile.tile-yellow .tile-icon-box {
    background: rgba(234, 179, 8, 0.18) !important;
    color: #ca8a04 !important;
}

body.theme-light .pos-action-tile.tile-emerald .tile-icon-box {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #059669 !important;
}

body.theme-light .pos-action-tile.tile-indigo .tile-icon-box {
    background: rgba(99, 102, 241, 0.15) !important;
    color: #4f46e5 !important;
}

/* ==========================================================================
   18. OFFICE DASHBOARD IN LIGHT MODE (لوحة تحكم المكتب في الثيم الفاتح)
   ========================================================================== */
body.theme-light .ofc-wrap {
    background: transparent !important;
}

body.theme-light .ofc-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 2px solid #cbd5e1 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

body.theme-light .ofc-hero::before {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%) !important;
}

body.theme-light .ofc-hero-text h1 {
    color: #0f172a !important;
    font-weight: 900 !important;
}

body.theme-light .ofc-hero-text p {
    color: #475569 !important;
    font-weight: 600 !important;
}

body.theme-light .ofc-hero-text .hero-company {
    background: #dbeafe !important;
    color: #1d4ed8 !important;
    border: 1.5px solid #bfdbfe !important;
}

body.theme-light .ofc-hero-btn.items {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: 1.5px solid #cbd5e1 !important;
}

body.theme-light .ofc-hero-btn.items:hover {
    background: #e2e8f0 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

body.theme-light .ofc-hero-btn.rpts {
    background: #dcfce7 !important;
    color: #15803d !important;
    border: 1.5px solid #86efac !important;
}

body.theme-light .ofc-kpi {
    background: #ffffff !important;
    border: 2px solid #cbd5e1 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
}

body.theme-light .ofc-kpi:hover {
    border-color: #2563eb !important;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.14) !important;
    transform: translateY(-3px) !important;
}

body.theme-light .ofc-kpi-label {
    color: #475569 !important;
    font-weight: 800 !important;
}

body.theme-light .ofc-kpi-value {
    color: #0f172a !important;
    font-weight: 900 !important;
}

body.theme-light .ofc-kpi-sub {
    color: #64748b !important;
    font-weight: 700 !important;
}

body.theme-light .ofc-panel {
    background: #ffffff !important;
    border: 2px solid #cbd5e1 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

body.theme-light .ofc-panel-head {
    background: #f8fafc !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

body.theme-light .ofc-panel-head h3 {
    color: #0f172a !important;
    font-weight: 800 !important;
}

body.theme-light .ofc-panel-head a {
    color: #1d4ed8 !important;
    font-weight: 800 !important;
}

body.theme-light .ofc-table th {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    border-bottom: 2px solid #cbd5e1 !important;
}

body.theme-light .ofc-table td {
    color: #0f172a !important;
    font-weight: 700 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

body.theme-light .ofc-table tr:hover td {
    background: #e0f2fe !important;
}

body.theme-light .ofc-sale-id {
    color: #1d4ed8 !important;
    font-weight: 800 !important;
}

body.theme-light .ofc-amount {
    color: #047857 !important;
    font-weight: 800 !important;
}

body.theme-light .ofc-time {
    color: #64748b !important;
    font-weight: 700 !important;
}

body.theme-light .ofc-prod-name {
    color: #0f172a !important;
    font-weight: 800 !important;
}

body.theme-light .ofc-prod-qty {
    color: #334155 !important;
    font-weight: 700 !important;
}

body.theme-light .ofc-prod-bar-wrap {
    background: #e2e8f0 !important;
}

body.theme-light .ofc-cat-title {
    color: #0f172a !important;
    font-weight: 900 !important;
}

body.theme-light .ofc-cat-count {
    background: #e2e8f0 !important;
    color: #1e293b !important;
    font-weight: 800 !important;
}

body.theme-light .ofc-cat-head {
    border-bottom: 2px solid #cbd5e1 !important;
}

body.theme-light .ofc-mod {
    background: #ffffff !important;
    border: 2px solid #cbd5e1 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
}

body.theme-light .ofc-mod:hover {
    border-color: #2563eb !important;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.16) !important;
    transform: translateY(-4px) !important;
    color: #0f172a !important;
}

body.theme-light .ofc-mod-name {
    color: #0f172a !important;
    font-weight: 800 !important;
}

body.theme-light .ofc-mod-desc {
    color: #475569 !important;
    font-weight: 600 !important;
}

body.theme-light .ofc-designer-card {
    background: #ffffff !important;
    border: 2px solid #cbd5e1 !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06) !important;
}

body.theme-light .ofc-designer-header {
    border-bottom: 2px solid #e2e8f0 !important;
}

body.theme-light .ofc-designer-header h2 {
    color: #0f172a !important;
    font-weight: 900 !important;
}

body.theme-light .ofc-designer-header p {
    color: #475569 !important;
    font-weight: 600 !important;
}

body.theme-light .designer-group-box {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
}

body.theme-light .designer-group-title {
    color: #0f172a !important;
    font-weight: 900 !important;
    border-bottom: 1.5px solid #cbd5e1 !important;
}

body.theme-light .designer-field label {
    color: #0f172a !important;
    font-weight: 800 !important;
}

body.theme-light .designer-input {
    background: #ffffff !important;
    border: 2px solid #94a3b8 !important;
    color: #0f172a !important;
    font-weight: 700 !important;
}

body.theme-light .designer-brand-card {
    background: #ffffff !important;
    border: 2px solid #cbd5e1 !important;
}

body.theme-light .brand-card-label {
    color: #0f172a !important;
    font-weight: 800 !important;
}

body.theme-light .designer-checkbox-item {
    color: #0f172a !important;
    font-weight: 800 !important;
}

/* ==========================================================================
   19. GLOBAL HIGH-CONTRAST DATA & NUMBER CELL RULES (جداول فاقعة الوضوح تماماً)
   ========================================================================== */
body.theme-light .table tbody td,
body.theme-light .bootstrap-table .table tbody td,
body.theme-light .fixed-table-container .table tbody td {
    color: #0f172a !important;
    font-weight: 700 !important;
}

body.theme-light .table tbody td strong,
body.theme-light .table tbody td b {
    color: #000000 !important;
    font-weight: 900 !important;
}

body.theme-light .table tbody td .price,
body.theme-light .table tbody td[data-field*="price"],
body.theme-light .table tbody td[data-field*="unit_price"],
body.theme-light .table tbody td[data-field*="cost_price"] {
    color: #047857 !important;
    font-weight: 800 !important;
}

body.theme-light .table tbody td .quantity,
body.theme-light .table tbody td[data-field*="quantity"],
body.theme-light .table tbody td[data-field*="qty"] {
    color: #000000 !important;
    font-weight: 900 !important;
}

/* Specific styling for ultra contrast when user selects ultra mode */
html[data-contrast="ultra"] body.theme-light .pos-action-tile {
    border: 2.5px solid #334155 !important;
}

html[data-contrast="ultra"] body.theme-light .ofc-hero,
html[data-contrast="ultra"] body.theme-light .ofc-kpi,
html[data-contrast="ultra"] body.theme-light .ofc-panel,
html[data-contrast="ultra"] body.theme-light .ofc-mod,
html[data-contrast="ultra"] body.theme-light .ofc-designer-card {
    border: 2.5px solid #334155 !important;
}

html[data-contrast="ultra"] body.theme-light .table tbody td,
html[data-contrast="ultra"] body.theme-light .bootstrap-table .table tbody td {
    color: #000000 !important;
    font-weight: 800 !important;
    border-color: #94a3b8 !important;
}
