/* Enhanced Black & White Modern Responsive Inventory App CSS */

/* Import Google Fonts for better typography */
@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@100..900&display=swap');/* CSS Variables for consistent theming */

:root {
    --primary-color: linear-gradient(135deg, #320e84, #200264);
    --secondary-color: #333;
    --accent-color: #555;
    --text-primary: #111;
    --text-secondary: #666;
    --text-light: #999;
    --bg-primary: #fff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f5;
    --border-color: #e1e5e9;
    --border-dark: #111;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.2s ease;
}

/* Base Styles */
* {
    box-sizing: border-box;
  font-family: "Noto Kufi Arabic", sans-serif;

}
/* ----------------------------some modification here ------------------------ */
/* Filter and Button Styles */
.filter-tag {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 5px;
    font-size: 12px;
}

.disabled {
    pointer-events: none;
}

.btn-orange {
    background-color: #fd7e14;
    border-color: #fd7e14;
    color: white;
}

.btn-orange:hover {
    background-color: #e76b00;
    border-color: #e76b00;
}

.btn-purple {
    background-color: #6f42c1;
    border-color: #6f42c1;
    color: white;
}

.btn-purple:hover {
    background-color: #5a359a;
    border-color: #5a359a;
}

.btn-green {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-green:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-black {
    background-color: #343a40;
    border-color: #343a40;
    color: white;
}

.btn-black:hover {
    background-color: #23272b;
    border-color: #1d2124;
}



/* Badge Styles */
.badge {
    font-size: 0.75em;
    padding: 0.375rem 0.5rem;
    border-radius: 0.375rem;
}
.justify-center{
    justify-content: center;
}
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* Modal Styles */
.selected-orders-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.selected-orders-info span {
    font-weight: bold;
    color: #007bff;
    font-size: 1.1em;
}

.custom-modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.custom-modal-content {
    background: white;
    padding: 25px;
    box-sizing: border-box;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.custom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.custom-modal-header h5 {
    margin: 0;
    color: #333;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.close-btn {
    font-size: 1.5rem;
    cursor: pointer;
    border: none;
    background: none;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    color: #000;
    background-color: #f8f9fa;
}

.modal-body {
    margin-bottom: 25px;
}

.modal-body p {
    margin: 0 0 15px 0;
    text-align: center;
    font-size: 16px;
    color: #495057;
    line-height: 1.5;
}

.footer-new {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.w-100 {
    width: 100%;
}

.input {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.input:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Button Group Styles */
.btn-group .btn {
    border-radius: 0;
    margin-right: 1px;
}

.btn-group .btn:first-child {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.btn-group .btn:last-child {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
    margin-right: 0;
}

/* No Results Styles */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-results p {
    font-size: 16px;
    margin: 0;
}

/* Utility Classes */
.me-1 {
    margin-right: 0.25rem;
}

.me-2 {
    margin-right: 0.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.py-4 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: #6c757d;
}

.text-dark {
    color: #212529;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .custom-modal-content {
        width: 95%;
        padding: 20px;
        margin: 10px;
    }
    
    .footer-new {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-new .btn {
        width: 100%;
        text-align: center;
    }
    
    .d-flex.flex-wrap {
        flex-direction: column;
        gap: 10px;
    }
    
    .d-flex.flex-wrap .btn {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .table-container {
        font-size: 12px;
    }
    
    .btn-group {
        display: flex;
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin-bottom: 2px;
        border-radius: 0.375rem !important;
    }
}

@media (max-width: 576px) {
    .index-content h2 {
        font-size: 1.5rem;
    }
    
    .filter-status {
        font-size: 12px;
    }
    
    .filter-tag {
        font-size: 10px;
        padding: 1px 6px;
    }
    
    .table {
        font-size: 11px;
    }
    
    .status-badge {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .badge {
        font-size: 0.65em;
        padding: 0.25rem 0.4rem;
    }
}


.btn:hover:not(.disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Loading state for forms */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}



/* ----------------------------some modification here ------------------------ */

.list-status{
    display: flex;
    align-items: center;
}
.list-status a{
   padding: 10px 13px;
   text-decoration: none;
   color: #000;
}
.list-status a:hover{
 background: #d5d5d595;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg-primary);
    color: var(--text-primary);
  font-family: "Noto Kufi Arabic", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    direction: rtl;
}
.w-200{
    width: 200px;
}
.layout {
    display: flex;
    min-height: 100vh;
}

/* Enhanced Sidebar */
.sidebar {
    background: var(--primary-color);
    color: #fff;
    width: 260px;
    min-height: 100vh;
    box-sizing: border-box;
    padding: 24px 10px;
    display: flex;
    flex-direction: column;
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: 0.2s;
}

.sidebar .logo {
    display: flex;
    align-items: center;
}
#img-circle{
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
}
.sidebar .logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.sidebar .logo h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.5px;
}

.sidebar nav {
    flex: 1;
    padding: 0 12px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    margin-bottom: 4px;
}

.sidebar a {
    color: #e1e5e9;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.sidebar a i {
    font-size: 18px;
    min-width: 20px;
    text-align: center;
}

.sidebar a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateX(4px);
}

.sidebar a.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-weight: 600;
}

.sidebar a.active::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #fff;
    border-radius: 0 2px 2px 0;
}

.sidebar .user {
    margin: 10px 0 0 0;
    text-align: center;
    font-size: 13px;
    color: #999;
    padding: 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
}

/* Enhanced Main Content */
.main-content {
    margin-right: 260px;
    padding: 32px 40px;
    box-sizing: border-box;
    background: var(--bg-primary);
    min-height: 100vh;
    width: calc(100% - 260px);
}

/* Typography Improvements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

h1 { font-size: 32px; margin-bottom: 24px; }
h2 { font-size: 24px; margin-bottom: 20px; }
h3 { font-size: 20px; margin-bottom: 16px; }
h4 { font-size: 18px; margin-bottom: 14px; }

p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

/* Enhanced Forms */
.form-group {
    margin-bottom: 24px;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
    letter-spacing: 0.2px;
}

.results .no-results {
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    font-weight: bold;
    color: #721c24;
    border-radius: 6px;
}

form input[type="text"],
form input[type="number"],
form input[type="password"],
form input[type="email"],
form select,
.input,
form textarea {
    width: 100%;
    min-width: 150px;
    padding: 7px 12px;
    box-sizing: border-box;
    border: 1px solid #cacaca;
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
    outline: none;
}
.input:focus{
   border: 1px solid #51adf3; 
}
.btn-success{
    background: rgb(0, 187, 0);
}
#modal-product-grid{
    display: grid;
    grid-template-columns: repeat(5,1fr);
}
#img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
#img-card{
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.p-20{
    padding: 20px;
    box-sizing: border-box;
}
.flex-wrap{
    flex-wrap: wrap;
}
.pagination{
    display: flex;
    justify-content: center;
    gap: 5px;
}
.pagination ul{
    list-style: none;
}
.pagination ul li{
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
  

     background: #fff;
    color: #000000;
    border: 1px solid rgba(0, 0, 0, 0.7);
}
.pagination ul li a{
    text-decoration: none;
    color: #000;
}
.pagination ul .active{
    background: #000;
    color: #fff;
}
form input:focus,
form select:focus,
form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.1);
}
.gap-10{
    gap: 10px;
}
.circle-icon{
   box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 
            0 4px 6px rgba(0, 0, 0, 0.05);
            border: 1px solid #e5e7eb;
width: 50px;
height: 50px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
}
form input::placeholder {
    color: var(--text-light);
    font-size: 15px;
}

/* Enhanced Buttons */
.btn,
button,
input[type="submit"] {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
      padding: 8px 16px;
      box-sizing: border-box;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    font-family: inherit;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.2px;
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:active,
button:active,
input[type="submit"]:active {
    transform: translateY(0);
}
.btn-green{
    background: rgb(0, 157, 0);
}
.btn-black{
    background: rgb(0, 0, 0);
}
.btn-secondary {
    background: var(--bg-primary);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-sm {
    padding: 8px 16px;
    box-sizing: border-box;
    font-size: 13px;
}

.btn-lg {
      padding: 8px 16px;
      box-sizing: border-box;
    font-size: 13px;
}
.gap-2{
    gap: 20px;
}
.container{
    box-sizing: border-box;
}
/* Enhanced Tables */
.table-container {
    overflow-x: auto;
    margin: 24px 0px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    background: var(--bg-primary);
    display: flex;
    margin-left: 15px;
    box-sizing: border-box;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 1.5;
}

.table th,
.table td {
    padding: 10px 15px;
    box-sizing: border-box;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    
}
.table-nowrap th,.table-nowrap td{
    white-space: nowrap;
}
.table-nowrap {
    width: calc(100vw - 400px);
    overflow: auto;
}
.table-responsive  th,.table-nowrap td{
    white-space: nowrap;
}
.table-responsive  {
    width: calc(100vw - 400px);
    overflow: auto;
}

.table th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: sticky;
    top: 0;
    z-index: 10;
}
tbody tr:nth-child(odd) {
  background-color: #fff; /* light */
}

tbody tr:nth-child(even) {
  background-color: var(--bg-tertiary);   /* dark */
}
.table tr:hover td {
    background: var(--bg-tertiary);
}

.table .btn {
    padding: 6px 12px;
    box-sizing: border-box;
    font-size: 13px;
    margin-right: 4px;
}

/* Enhanced Alerts */
.alert {
    padding: 16px 20px;
    box-sizing: border-box;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background: #f0f9f0;
    color: #2d7d32;
    border-left: 4px solid #4caf50;
}

.alert-danger {
    background: #fef7f7;
    color: #c62828;
    border-left: 4px solid #f44336;
}

.alert-info {
    background: #f3f8ff;
    color: #1565c0;
    border-left: 4px solid #2196f3;
}

.alert-warning {
    background: #fffbf0;
    color: #f57c00;
    border-left: 4px solid #ff9800;
}

/* Enhanced Typeahead */
.typeahead-container {
    position: relative;
}

.typeahead-list {
    position: absolute;
    z-index: 1000;
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    max-height: 200px;
    overflow-y: auto;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.typeahead-item {
    padding: 12px 16px;
    box-sizing: border-box;
    cursor: pointer;
    color: var(--text-primary);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
    transition: var(--transition);
}

.typeahead-item:last-child {
    border-bottom: none;
}

.typeahead-item:hover,
.typeahead-item.active {
    background: var(--primary-color);
    color: #fff;
}

/* Card Component */
.card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-sizing: border-box;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.card-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Utility Classes */
.text-end { text-align: right; }
.text-center { text-align: center; }
.text-start { text-align: left; }
.text-muted { color: var(--text-secondary); }
.text-primary { color: var(--primary-color); }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.ms-1 { margin-left: 0.25rem; }
.ms-2 { margin-left: 0.5rem; }
.ms-3 { margin-left: 1rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 1rem; padding-right: 1rem; }
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none; }
.d-block { display: block; }

.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.justify-content-end { justify-content: flex-end; }

.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }
.flex-grow-1 { flex-grow: 1; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }


.dashboard {
    padding: 2rem;
    box-sizing: border-box;
    background-color: #f4f6f9;
    font-family: 'Segoe UI', sans-serif;
}

.dashboard .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.dashboard .card {
    background-color: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-sizing: border-box;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: 0.3s ease;
}

.dashboard .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.dashboard .card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #111;
}

.dashboard .card p {
    font-size: 1.2rem;
    font-weight: bold;
    color: #007bff;
}


 

       
        .logo-content {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .sidebar-close {
            position: absolute;
            top: 10px;
            left: 10px;
            background: none;
            border: none;
            color: #fff;
            width: 30px;
            height: 30px;
            display: none;
            align-items: center;
            justify-content: center;
            background-color: #d1d1d12d;
            font-size: 20px;
            cursor: pointer;
            box-sizing: border-box;
            border-radius: var(--radius-md);
            transition: var(--transition);
            display: none;
        }

        .sidebar-close:hover {
            background: rgba(255, 255, 255, 0.1);
        }

    

        /* Content Wrapper */
        .content-wrapper {
            flex: 1;
            margin-left: var(--sidebar-width);
            display: flex;
            flex-direction: column;
            transition: var(--transition);
        }

        .content-wrapper.expanded {
            margin-left: 0;
        }

        /* Header Styles */
        .header {
            background: white;
            padding: 0 20px;
            box-sizing: border-box;
            height: 70px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            border-bottom: 1px solid #e1e5e9;
            position: fixed;
            left: 0;
            width: calc(100% - 260px);
            top: 0;
            z-index: 999;
        }


        /* Menu Toggle Button */
        .menu-toggle {
            display: none;
            background: none;
            border: none;
            font-size: 24px;
            color: var(--text-primary);
            cursor: pointer;
            padding: 8px;
            width: 40px;
            height: 40px;
            box-sizing: border-box;
            border-radius: var(--radius-md);
            transition: var(--transition);
        }

        .menu-toggle:hover {
            background: var(--bg-secondary);
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        /* User Dropdown Styles */
        .user-dropdown {
            position: relative;
        }

        .user-trigger {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 15px;
            box-sizing: border-box;
            background: #f8f9fa;
            border: 1px solid #e9ecef;
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            color: #495057;
            text-decoration: none;
        }

        .user-trigger:hover {
            background: #e9ecef;
            border-color: #dee2e6;
        }

        .user-avatar {
            width: 35px;
            height: 35px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            font-size: 14px;
        }

        .user-info {
            display: flex;
            flex-direction: column;
        }

        .user-name {
            font-weight: 600;
            font-size: 14px;
            color: #2c3e50;
        }

        .user-role {
            font-size: 12px;
            color: #6c757d;
        }

        .dropdown-arrow {
            margin-left: 5px;
            font-size: 12px;
            transition: transform 0.3s ease;
        }

        .user-dropdown.active .dropdown-arrow {
            transform: rotate(180deg);
        }

        /* Dropdown Menu */
        .dropdown-menu {
            position: absolute;
            top: 100%;
            right: 0;
            background: white;
            min-width: 200px;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            border: 1px solid #e9ecef;
            opacity: 1;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
    z-index: 10000 !important;
            margin-top: 10px;
        }

        
        .user-dropdown.active .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .dropdown-header {
            padding: 15px 20px;
            box-sizing: border-box;
            border-bottom: 1px solid #f1f3f4;
        }

        .dropdown-header .user-name {
            font-size: 16px;
            margin-bottom: 4px;
        }

        .dropdown-header .user-email {
            font-size: 14px;
            color: #6c757d;
        }

        .dropdown-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 20px;
            color: #495057;
            box-sizing: border-box;
            text-decoration: none;
            transition: background-color 0.2s ease;
        }

        .dropdown-item:hover {
            background-color: #f8f9fa;
        }

        .dropdown-item i {
            font-size: 18px;
            width: 18px;
            color: #6c757d;
        }

        .dropdown-divider {
            height: 1px;
            background: #f1f3f4;
            margin: 8px 0;
        }

        .dropdown-item.logout {
            color: #dc3545;
        }

        .dropdown-item.logout i {
            color: #dc3545;
        }

        /* Main Content */
        .main-content {
            flex: 1;
            padding: 20px 30px;
            margin-top: 60px;
            box-sizing: border-box;
            background: var(--bg-primary);
            min-height: calc(100vh - 70px);
        }

        /* Overlay for mobile */
        .sidebar-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 999;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
        }

        .sidebar-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .index-content{
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            margin: 10px;
            box-sizing: border-box;

        }
        .index-title{
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .index-header{
            display: flex;
            gap: 10px;
        }
  
.login{
   max-width: 400px; 
   margin: 40px auto;
   padding: 20px;
   box-sizing: border-box;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 
            0 4px 6px rgba(0, 0, 0, 0.05);
        border: 1px solid #e5e7eb;
}


     .bw-bg { background: #fff; color: #111; }
    .bw-table th, .bw-table td { background: #fff; color: #111; border-color: #111; }
    .bw-table th { background: #111; color: #fff; }
    .bw-btn { background: #111; color: #fff; border: none; }
    .bw-btn:hover { background: #333; color: #fff; }
    .bw-input, .bw-select { background: #fff; color: #111; border: 1px solid #111; }
    .bw-input:focus, .bw-select:focus { border-color: #333; box-shadow: none; }

    /* Product Search Dropdown Styles */
    .product-search-container {
        position: relative;
        width: 100%;
    }

    .product-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 
            0 4px 6px rgba(0, 0, 0, 0.05);
        border: 1px solid #e5e7eb;
        border-top: none;
        max-height: 300px;
        overflow-y: auto;
        z-index: 1000;
        display: none;
    }

    .product-dropdown.show {
        display: block;
    }

    .product-item {
        padding: 10px;
        border-bottom: 1px solid #eee;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .product-item:hover {
        background-color: #f5f5f5;
    }

    .product-item:last-child {
        border-bottom: none;
    }

    .product-item img {
        width: 40px;
        height: 40px;
        object-fit: cover;
        border-radius: 4px;
    }

    .product-info {
        flex: 1;
    }

    .product-name {
        font-weight: bold;
        color: #111;
    }

    .product-details {
        font-size: 12px;
        color: #666;
    }

    .no-products {
        padding: 15px;
        text-align: center;
        color: #666;
        font-style: italic;
    }

    .loading {
        padding: 15px;
        text-align: center;
        color: #666;
    }

    .product-card {
        border: 1px solid #ddd;
        border-radius: 10px;
        padding: 10px;
        background: #fff;
        position: relative;
    }

    .row {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }

    .row .col-md-4 {
        flex: 0 0 calc(33.333% - 10px);
    }



    .search-disabled {
        opacity: 0.5;
        pointer-events: none;
    }
    .fake-div{
    display: flex;
 }

  .truncated-cell {
            max-width: 150px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            position: relative;
            cursor: help;
            
        }
 
        /* Optional: Style for the tooltip */
        .truncated-cell-hover{
            position: relative;
        }
        .truncated-cell-hover:hover  .truncated-cell-text {
            display: flex;
        }
       .truncated-cell-text{
            position: absolute;
            display: none;
            bottom: 0%;
            left: 50%;
            transform: translateX(-50%);
            background-color: #333;
            color: white;
            border: var(--border-color);
            padding: 3px 12px;
            border-radius: 4px;
            white-space: normal;
            max-width: 300px;
            width: max-content;
            word-wrap: break-word;
            z-index: 1000;
            font-size: 9px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        }

    
/* Error window container */
  .error-window {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
       position: fixed;
    bottom: 0px;
    z-index: 99;
   margin: 20px auto;
   height: 200px;
   overflow-y: auto;
  }



  /* Header inside the error window */
  .error-window h5 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 600;
    color: #721c24;
  }

  /* Table container */
  .error-window .error-table-container {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
 
  }

  /* Table styling */
  .error-window .error-table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    background-color: transparent;
    font-size: 0.8rem;
    border-collapse: collapse;
  }

  .error-window .error-table-bordered {
    border: 1px solid #dc3545;
  }

  .error-window .error-table-bordered th,
  .error-window .error-table-bordered td {
    border: 1px solid #dc3545;
    padding: 0.75rem;
    vertical-align: top;
  }

  /* Table header */
  .error-window .error-table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dc3545;
    background-color: #f8d7da;
    color: #721c24;
    font-weight: 600;
  }

  /* Table rows */
  .error-window .error-table tbody tr:nth-of-type(odd) {
    background-color: rgba(220, 53, 69, 0.05);
  }

  .error-window .error-table tbody tr:hover {
    background-color: rgba(220, 53, 69, 0.08);
  }


  /* Dropdown list container */
.city-list {
    display: none; /* hidden by default */
    position: absolute;
    width: 100%;
    background-color: #f8f9fa; /* Bootstrap bg-light equivalent */
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0;
    margin-top: 2px;
}

.status-badge {
    display: inline-block;
    padding: 6px 10px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 12px;
    text-align: center;
    white-space: nowrap;
    text-transform: capitalize;
}


/* Optional: style list items */
.city-list .list-group-item {
    cursor: pointer;
    padding: 8px 12px;
    font-size: 14px;
}

.city-list .list-group-item:hover {
    background-color: #e9ecef;
}

  /* Responsive adjustments */
  @media (max-width: 768px) {
    .error-window {
      padding: 10px;
    }

    .error-window h5 {
      font-size: 1rem;
    }

    .error-window .error-table-bordered th,
    .error-window .error-table-bordered td {
      padding: 0.5rem;
      font-size: 0.9rem;
    }
}

        /* Responsive Design */
        @media (max-width: 1000px) {
            .index-content{
                justify-content: center;
            }
            .menu-toggle {
                display: flex;
                align-items: center;
                justify-content: center;
            }
            .table-nowrap {
    width: 90vw;
    
}
            .table-responsive  {
    width: 90vw;
    
}
.main-content {
    margin-right: 0px;
    width: 100%;
    
}
 .header {
          width: 100%; 
 }
 .fake-div{
    display: none;
 }
            .sidebar-close {
                display: flex;
            }

            .sidebar {
                width: 0px;
                padding: 24px 0px;
                overflow: hidden;
            }

            .sidebar.show {
                width: 260px;
                                padding: 24px 10px;
                                overflow: auto;

            }

            .content-wrapper {
                margin-left: 0;
            }

            .header {
                padding: 0 15px;
            }

            .user-info {
                display: none;
            }

            .main-content {
                padding: 20px;
            }
        }

        @media (max-width: 768px) {
            .header {
                padding: 0 30px;
            }

            .main-content {
                padding: 15px;
            }

            .user-trigger {
                padding: 6px 10px;
            }

            .user-avatar {
                width: 30px;
                height: 30px;
                font-size: 12px;
            }
        }
        @media (max-width: 600px) {
                       .table-nowrap {
    width: 88vw;
    
}
                       .table-responsive  {
    width: 97vw;
    
}


.flex-wrap-mobile{
    flex-wrap: wrap;
}
  .product-row{
        flex-wrap: wrap;
    }
    .pagination ul li{
    width: 25px;
    height: 25px;

}
.pagination ul li a{
   font-size: 0.6rem;
}


        }