/* Customers Table Styles */

/* ===== Customers Section ===== */
.CLheader-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-right: 20px;
}

/* Add Button Styles */
.CLadd-employee-btn,
.CLadd-shareholder-btn {
    background: #6F4F37;
    color: white;
    border: 1px solid #5A3A2A;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.CLadd-employee-btn:hover,
.CLadd-shareholder-btn:hover {
    background: #8B5A3C;
    border-color: #6F4F37;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.CLadd-employee-btn:active,
.CLadd-shareholder-btn:active {
    background: #5A3A2A;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.Top4Text{
    font-size: 22px;
    font-weight: 700;
    color: #000;
    margin-left: 20px;
    margin-bottom: 10px;
}

.CLsearch-container {
    display: flex;
    align-items: center;
}

.CLsearch-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    width: 250px;
    background: white;
    transition: border-color 0.2s ease;
}

.CLsearch-input:focus {
    outline: none;
    border-color: #a87a47;
    box-shadow: 0 0 0 2px rgba(168, 122, 71, 0.2);
}

.CLsearch-input::placeholder {
    color: #999;
}

/* ===== Filter Container Styles ===== */
.CLfilter-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
}

/* Override parent container interference */
.ADdashboardcontainer .CLfilter-container {
    margin: 10px auto !important;
}

.CLfilter-container h3 {
    color: #6F4F37;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.CLfilter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.CLfilter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.CLfilter-group label {
    font-size: 14px;
    font-weight: 500;
    color: #6F4F37;
    margin-bottom: 2px;
}

.CLfilter-input,
.CLfilter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.CLfilter-input:focus,
.CLfilter-select:focus {
    outline: none;
    border-color: #6F4F37;
    box-shadow: 0 0 0 2px rgba(111, 79, 55, 0.2);
}

.CLfilter-input::placeholder {
    color: #999;
}

.CLclear-filters {
    background: #6F4F37;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    align-self: flex-end;
    margin-top: 10px;
}

.CLclear-filters:hover {
    background: #5a3f2e;
}

.CLresults-count {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    text-align: center;
    padding: 10px;
    background: #e9ecef;
    border-radius: 6px;
    margin-top: 10px;
}

.CLno-customers {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.CLno-customers p {
    font-size: 16px;
    margin-bottom: 20px;
}

.CLno-customers .CLclear-filters {
    margin-top: 0;
}


/* ===== Responsive Customers List Filter Styles ===== */
@media (max-width: 768px) {
    .CLfilter-container {
        margin: 15px;
        padding: 15px;
    }
    
    .CLfilter-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .CLfilter-group {
        gap: 8px;
    }
    
    .CLclear-filters {
        width: 100%;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .CLfilter-container {
        margin: 10px;
        padding: 12px;
    }
    
    .CLfilter-container h3 {
        font-size: 16px;
    }
    
    .CLfilter-input,
    .CLfilter-select {
        padding: 10px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 768px) {
    .CLheader-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 0 12px;
    }
    
    .CLsearch-input {
        width: 100%;
        max-width: 300px;
    }
}

.CLcustomerscontainer {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    padding: 0 px;
    margin: auto;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    min-height: 160px;
    width: 95%;
  }
  
  .CLcustomerscontainer.searching {
    max-height: 200px;
    overflow-y: hidden;
    flex-wrap: nowrap;
    align-content: flex-start;
  }
  
  @media (max-width: 768px) {
    .CLcustomerscontainer {
      padding: 0 12px;
      gap: 12px;
    }
  }
  

 /* Customer card */
.customer-card {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    padding: 20px;
    display: flex;
    flex-direction: column; /* Stack items vertically */
    justify-content: space-between;
    min-width: 250px;
    min-height: 140px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative; /* for button positioning */
  }
  
  .customer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  }
  
  /* Top row (status dot + info) */
  .customer-info-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }
  
  .status-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
  }
  
  /* Info inside */
  .customer-info {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  .customer-name {
    font-size: 1.05rem;
    font-weight: bold;
    color: #333;
    margin: 0 0 6px 0;
  }
  
  .customer-points {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 6px 0;
  }
  
  /* Levels */
  .customer-level {
    font-size: 0.85rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    text-transform: capitalize;
  }
  
  /* Edit button (always bottom-right) */
  .customer-edit-btn {
    align-self: flex-end;
    margin-top: 10px;
    padding: 6px 12px;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
  }
  
  .customer-edit-btn:hover {
    background: #1565c0;
  }
  
  
  /* Colors per level */
  .level-starter {
    background: #e3f2fd;
    color: #1976d2;
  }
  
  .level-premium {
    background: #e8f5e9;
    color: #388e3c;
  }
  
  .level-advocate {
    background: #fff8e1;
    color: #f9a825;
  }
  
  .level-shareholder {
    background: #fff3e0;
    color: #f57c00;
  }
  
  .level-businesspartner {
    background: #f3e5f5;
    color: #7b1fa2;
  }
  
  
  /* Modal overlay */
  .CLmodal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
  }
  
  /* Modal box */
  .CLmodal {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 360px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    animation: fadeIn 0.2s ease;
  }

/* Add Employee Modal Styles */
.CLadd-employee-modal {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: addEmployeeModalSlideIn 0.3s ease-out;
}

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

/* Add Employee Form Grid - Two Column Layout */
.add-employee-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 25px;
}

.add-employee-form-grid .form-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.add-employee-form-grid .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.add-employee-form-grid .form-group label {
  font-weight: 600;
  color: #6F4F37;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.add-employee-form-grid .form-group input {
  padding: 12px 15px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}

.add-employee-form-grid .form-group input:focus {
  outline: none;
  border-color: #6F4F37;
  box-shadow: 0 0 0 3px rgba(111, 79, 55, 0.1);
}

.add-employee-form-grid .form-group input::placeholder {
  color: #999;
}

/* Password Requirements Styling */
.password-requirements {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 12px;
  margin-top: 8px;
}

.password-requirements div {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}

.password-requirements div:last-child {
  margin-bottom: 0;
}

.password-requirements div::before {
  content: "✓";
  margin-right: 8px;
  font-weight: bold;
}

  
  .CLmodal h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #333;
  }
  
  .CLmodal label {
    display: block;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #555;
  }
  
.CLmodal input,
.CLmodal select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.9rem;
}

  
  .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
  }
  
  .save-btn {
    background: #4caf50;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
  }
  
  .cancel-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
  }
  
  .save-btn:hover { background: #43a047; }
  .cancel-btn:hover { background: #e53935; }

  /* Modal Button Styles */
  .btn-save {
    background: #4caf50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
  }

  .btn-save:hover {
    background: #43a047;
    transform: translateY(-1px);
  }

  .btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
  }

  .btn-cancel:hover {
    background: #5a6268;
    transform: translateY(-1px);
  }

  .btn-restrict {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
  }

  .btn-restrict:hover {
    background: #e55a2b;
    transform: translateY(-1px);
  }

  .btn-delete {
    background: #f44336;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
  }

  .btn-delete:hover {
    background: #da190b;
    transform: translateY(-1px);
  }

  .btn-edit {
    background: #4caf50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
  }

  .btn-edit:hover {
    background: #43a047;
    transform: translateY(-1px);
  }

  /* Form Group Styles for All Modals */
  .form-group {
    margin-bottom: 20px;
  }

  .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #5b4a33;
    font-size: 0.95rem;
  }

  .form-group input,
  .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
  }

  .form-group input:focus,
  .form-group select:focus {
    outline: none;
    border-color: #6F4F37;
    box-shadow: 0 0 0 3px rgba(111, 79, 55, 0.1);
  }

  .error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    font-weight: 500;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  


.CLorder-container {
    margin: auto;
    width: 95%;
}

.CLheader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.CLorder-header{
    margin-top: 15px;
}

.CLorder-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.CLorder-header h2 {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
}

.CLview-more-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.CLview-more-text {
    font-size: 16px;
    color: #3b82f6;
    margin: 0;
    font-weight: 500;
}

.CLview-more {
    color: #3b82f6;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.2s ease;
}

.CLview-more:hover {
    color: #1d4ed8;
}

.CLtable-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 400px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    position: relative;
    bottom: 0px;
    margin-bottom: 30px;
}

.CLorder-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-height: 290px;
    margin-bottom: 10px;
}

.CLorder-table thead {
    background-color: #a87a47;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.CLorder-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: #f4f1ee;
    border-bottom: 2px solid #e5e7eb;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.CLorder-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    color: #704013;
    font-size: 14px;
}

.CLorder-table tbody tr:hover {
    background-color: #efe0cf;
    transition: background-color 0.5s ease;
}

.CLorder-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Styles */
.CLstatus {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.CLstatus.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.CLstatus.pending {
    background-color: #fef3c7;
    color: #922b0e;
    border: 1px solid #fde68a;
}

.CLstatus.cancelled {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ADdashboardcontainer {
        margin-left: 0;
        padding: 16px;
    }
    
    .CLheader {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .CLorder-table th,
    .CLorder-table td {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .CLorder-header h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .CLorder-container {
        padding: 16px;
        margin: 16px;
    }
    
    .CLorder-table th,
    .CLorder-table td {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .CLorder-header h1 {
        font-size: 20px;
    }
}

/* Comprehensive Order Filter Styles - REMOVED DUPLICATE */

.CLfilter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.CLfilter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.CLfilter-group label {
    font-weight: 600;
    color: #5b4a33;
    font-size: 0.9rem;
}

.CLfilter-select,
.CLfilter-input,
.CLfilter-date {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    background-color: #fff;
    color: #333;
    transition: border-color 0.3s ease;
}

.CLfilter-select:focus,
.CLfilter-input:focus,
.CLfilter-date:focus {
    outline: none;
    border-color: #6F4F37;
    box-shadow: 0 0 0 3px rgba(111, 79, 55, 0.1);
}

.CLfilter-input::placeholder {
    color: #999;
}

.CLclear-filters {
    padding: 10px 20px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
}

.CLclear-filters:hover {
    background-color: #c82333;
}

.CLresults-count {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px;
    background-color :#e9ecef;
    border-radius: 8px;
}

/* No Orders Message */
.CLno-orders {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.CLno-orders p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Print Modal Styles */
.CLprint-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.CLprint-modal {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: printModalSlideIn 0.3s ease-out;
}

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

.CLprint-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, #a87a47, #8B5A3C);
    color: white;
    border-radius: 20px 20px 0 0;
}

.CLprint-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.CLprint-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.CLprint-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.CLprint-content {
    padding: 25px;
}

.CLprint-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid #a87a47;
}

.CLprint-summary h4 {
    margin: 0 0 15px 0;
    color: #5b4a33;
    font-size: 1.2rem;
    font-weight: 600;
}

.CLprint-summary p {
    margin: 8px 0;
    color: #333;
    font-size: 0.95rem;
}

.CLprint-orders h4 {
    margin: 0 0 15px 0;
    color: #5b4a33;
    font-size: 1.2rem;
    font-weight: 600;
}

.CLprint-table {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.CLprint-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.CLprint-table th {
    background: #a87a47;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.CLprint-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f3f4f6;
    color: #704013;
    font-size: 0.9rem;
}

.CLprint-table tbody tr:hover {
    background-color: #f8f9fa;
}

.CLprint-table tbody tr:last-child td {
    border-bottom: none;
}

.CLprint-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px 25px;
    border-top: 2px solid #f0f0f0;
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
}

.CLprint-cancel {
    background: #e0d2c3;
    color: #5b4a33;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.CLprint-cancel:hover {
    background: #d0c0ae;
}

.CLprint-confirm {
    background: #a87a47;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.CLprint-confirm:hover {
    background: #8B5A3C;
}

/* Responsive design for print modal */
@media (max-width: 768px) {
    .CLprint-modal {
        margin: 10px;
        max-height: 95vh;
    }
    
    .CLprint-header {
        padding: 15px 20px;
    }
    
    .CLprint-header h3 {
        font-size: 1.2rem;
    }
    
    .CLprint-content {
        padding: 20px;
    }
    
    .CLprint-actions {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .CLprint-cancel,
    .CLprint-confirm {
        width: 100%;
    }
}

/* Print styles */
@media print {
    .CLprint-modal-overlay {
        position: static;
        background: none;
        padding: 0;
    }
    
    .CLprint-modal {
        box-shadow: none;
        border-radius: 0;
        max-width: none;
        width: 100%;
        max-height: none;
    }
    
    .CLprint-header {
        border-radius: 0;
    }
    
    .CLprint-actions {
        display: none;
    }
    
    .CLprint-table {
        border: 1px solid #000;
    }
    
  .CLprint-table th,
  .CLprint-table td {
      border: 1px solid #000;
  }
}

/* Customer Actions Container */
.customer-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.customer-edit-btn {
    background: #4caf50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.customer-edit-btn:hover {
    background: #3d8b40;
}

.customer-delete-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.customer-delete-btn:hover {
    background: #c0392b;
}

/* Restrict User Button */
.restrict-btn {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.restrict-btn:hover {
    background: #e55a2b;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

/* Unrestrict User Button */
.unrestrict-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.unrestrict-btn:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

/* Restricted User Badge */
.restricted-badge {
    background: #ff6b35;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Status Badge */
.status-badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.normal {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.restricted {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* Customers Table Styles */
.CLtable-container {
    border-radius: 20px;
    padding-bottom: 0;
    margin: 0 20px;
}

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

.CLtable-header h2 {
    color: #6F4F37;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.CLtable-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 400px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    position: relative;
    bottom: 0px;
    margin-bottom: 30px;
}

.CLcustomers-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-height: 290px;
    margin-bottom: 10px;
}

.CLcustomers-table thead {
    background-color: #a87a47;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.CLcustomers-table th {
    padding: 16px 20px;
    text-align: center;
    font-weight: 600;
    color: #f4f1ee;
    border-bottom: 2px solid #e5e7eb;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.CLcustomers-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    color: #704013;
    font-size: 14px;
    text-align: center;
}

.CLcustomers-table tbody tr:hover {
    background-color: #efe0cf;
    transition: background-color 0.5s ease;
}

.CLcustomers-table tbody tr:last-child td {
    border-bottom: none;
}

.customer-name-cell {
    font-weight: 600;
    color: #333;
    text-align: left;
}

.customer-points-cell {
    font-weight: 500;
    color: #6F4F37;
    text-align: center;
}

/* Points column header alignment */
.CLcustomers-table th:nth-child(3) {
    text-align: center;
}

/* Level column header alignment */
.CLcustomers-table th:nth-child(4) {
    text-align: center;
}

/* Level column content alignment */
.CLcustomers-table td:nth-child(4) {
    text-align: center;
}


.customer-level-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.customer-level-badge.level-starter {
    background-color: #e3f2fd;
    color: #1976d2;
}

.customer-level-badge.level-premium {
    background-color: #e8f5e9;
    color: #388e3c;
}

.customer-level-badge.level-advocate {
    background-color: #fff8e1;
    color: #f9a825;
}

.customer-level-badge.level-shareholder {
    background-color: #e8f5e8;
    color: #388e3c;
}

.customer-level-badge.level-businesspartner {
    background-color: #fff3e0;
    color: #f57c00;
}

.customer-actions-cell {
    text-align: center;
}

.customer-actions-cell .btn {
    margin: 0 4px;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.customer-actions-cell .btn-edit {
    background-color: #4caf50;
    color: white;
}

.customer-actions-cell .btn-edit:hover {
    background-color: #45a049;
    transform: translateY(-1px);
}

.customer-actions-cell .btn-delete {
    background-color: #f44336;
    color: white;
}

.customer-actions-cell .btn-delete:hover {
    background-color: #da190b;
    transform: translateY(-1px);
}

/* Delete User Modal Styles */
.CLdelete-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.CLdelete-modal {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: deleteModalSlideIn 0.3s ease-out;
}

@keyframes deleteModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.CLdelete-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-radius: 20px 20px 0 0;
}

.CLdelete-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.CLdelete-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.CLdelete-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.CLdelete-content {
    padding: 25px;
}

.CLdelete-warning {
    text-align: center;
    margin-bottom: 25px;
}

.CLdelete-icon {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 15px;
}

.CLdelete-warning h4 {
    margin: 0 0 15px 0;
    color: #5b4a33;
    font-size: 1.2rem;
    font-weight: 600;
}

.CLdelete-warning p {
    margin: 8px 0;
    color: #333;
    font-size: 0.95rem;
}

.CLdelete-password {
    margin-bottom: 20px;
}

.CLdelete-password label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #5b4a33;
    font-size: 0.9rem;
}

.CLdelete-password-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #d9cbb5;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.CLdelete-password-input:focus {
    border-color: #e74c3c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

.CLdelete-error {
    color: #e74c3c;
    font-size: 0.85rem;
    margin: 8px 0 0 0;
    font-weight: 500;
}

.CLdelete-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px 25px;
    border-top: 2px solid #f0f0f0;
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
}

.CLdelete-cancel {
    background: #e0d2c3;
    color: #5b4a33;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.CLdelete-cancel:hover {
    background: #d0c0ae;
}

.CLdelete-confirm {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.CLdelete-confirm:hover {
    background: #c0392b;
}

/* Responsive design for delete modal */
@media (max-width: 768px) {
    .CLdelete-modal {
        margin: 10px;
    }
    
    .CLdelete-header {
        padding: 15px 20px;
    }
    
    .CLdelete-header h3 {
        font-size: 1.2rem;
    }
    
    .CLdelete-content {
        padding: 20px;
    }
    
    .CLdelete-actions {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .CLdelete-cancel,
    .CLdelete-confirm {
        width: 100%;
    }
    
    .customer-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .customer-edit-btn,
    .customer-delete-btn {
        width: 100%;
    }

    /* Table responsive styles */
    .CLtable-container {
        padding: 15px;
        margin: 15px 0;
    }

    .CLtable-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .CLtable-wrapper {
        max-height: 400px;
        position: relative;
    }

    .CLcustomers-table {
        font-size: 0.8rem;
    }

    .CLcustomers-table th,
    .CLcustomers-table td {
        padding: 8px 6px;
    }

    .customer-actions-cell .btn {
        padding: 4px 8px;
        font-size: 0.7rem;
        margin: 0 2px;
    }
}

/* Tablet responsive styles for filters */
@media (max-width: 1024px) {
    .CLfilter-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

/* Small mobile responsive styles for filters */
@media (max-width: 480px) {
    .CLfilter-container {
        padding: 10px;
    }

    .CLfilter-select,
    .CLfilter-input,
    .CLfilter-date {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Restrict User Modal Styles */
.CLrestrict-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.CLrestrict-modal {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: restrictModalSlideIn 0.3s ease-out;
}

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

.CLrestrict-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, #6F4F37, #8B5A3C);
    color: white;
    border-radius: 20px 20px 0 0;
}

.CLrestrict-header.unrestrict {
    background: #d4edda;
    border-bottom-color: #c3e6cb;
}

.CLrestrict-header h3 {
    margin: 0;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.CLrestrict-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.CLrestrict-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.CLrestrict-content {
    padding: 25px;
}

.CLrestrict-warning {
    text-align: center;
    margin-bottom: 25px;
}

.CLrestrict-icon {
    font-size: 48px;
    color: #ff6b35;
    margin-bottom: 15px;
}

.CLrestrict-header.unrestrict .CLrestrict-icon {
    color: #28a745;
}

.CLrestrict-warning h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2rem;
}

.CLrestrict-warning p {
    margin: 8px 0;
    color: #666;
    font-size: 0.95rem;
}

.CLrestrict-warning p strong {
    color: #333;
    font-weight: 600;
}

.CLrestrict-warning-text {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 12px;
    margin-top: 15px;
    color: #856404;
    font-size: 0.9rem;
    line-height: 1.4;
}

.CLrestrict-header.unrestrict .CLrestrict-warning-text {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.CLrestrict-password {
    margin-bottom: 25px;
}

.CLrestrict-password label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

.CLrestrict-password-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.CLrestrict-password-input:focus {
    outline: none;
    border-color: #ff6b35;
}

.CLrestrict-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    font-weight: 500;
}

.CLrestrict-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.CLrestrict-confirm-btn {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.CLrestrict-confirm-btn:hover {
    background: #e55a2b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.CLrestrict-confirm-btn.unrestrict {
    background: #28a745;
}

.CLrestrict-confirm-btn.unrestrict:hover {
    background: #218838;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.CLrestrict-cancel-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.CLrestrict-cancel-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Responsive design for restrict modal */
@media (max-width: 768px) {
    .CLrestrict-modal,
    .CLadd-employee-modal {
        margin: 10px;
        max-height: 95vh;
    }
    
    .CLrestrict-header,
    .modal-header {
        padding: 15px 20px;
    }
    
    .CLrestrict-header h3,
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .CLrestrict-content,
    .modal-body {
        padding: 20px;
    }
    
    .CLrestrict-actions,
    .modal-footer {
        flex-direction: column;
    }
    
    .CLrestrict-confirm-btn,
    .CLrestrict-cancel-btn,
    .btn-cancel,
    .btn-delete,
    .btn-restrict {
        width: 100%;
    }

    /* Add Employee Form Grid Responsive */
    .add-employee-form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .add-employee-form-grid .form-column {
        gap: 15px;
    }

    .add-employee-form-grid .form-group input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}
